:root {
  color-scheme: light;
  --ink: #163842;
  --warm: #f2efe6;
  --line: #c6d0c8;
  --accent: #e7ad47;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--warm);
  font-family: Arial, Helvetica, sans-serif;
}

.page-shell {
  width: min(1180px, calc(100% - 48px));
  min-height: 100svh;
  margin: 0 auto;
  display: grid;
  align-items: center;
}

.hero {
  position: relative;
  padding: 54px 0 62px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.mark {
  position: absolute;
  top: 42px;
  right: 0;
  width: clamp(120px, 18vw, 210px);
  aspect-ratio: 1;
  border: 1px solid var(--ink);
}

.mark span { position: absolute; display: block; height: 1px; background: var(--ink); transform-origin: left center; }
.mark span:nth-child(1) { width: 72%; left: 15%; top: 31%; transform: rotate(27deg); }
.mark span:nth-child(2) { width: 57%; left: 28%; top: 53%; transform: rotate(-39deg); }
.mark span:nth-child(3) { width: 49%; left: 23%; top: 71%; transform: rotate(18deg); }

.eyebrow {
  margin: 0 0 22px;
  color: #49636a;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 78%;
  margin: 0;
  font-size: clamp(4.2rem, 15vw, 12.5rem);
  line-height: 0.84;
  letter-spacing: 0;
  font-weight: 800;
}

.statement {
  max-width: 400px;
  margin: 40px 0 0;
  padding-top: 18px;
  border-top: 3px solid var(--accent);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.35;
}

.error-shell { align-content: center; max-width: 760px; }
.error-shell h1 { max-width: none; font-size: clamp(3rem, 10vw, 6rem); }
.error-shell a { width: fit-content; margin-top: 28px; color: var(--ink); font-weight: 700; text-underline-offset: 0.22em; }

@media (max-width: 640px) {
  .page-shell { width: min(100% - 32px, 1180px); }
  .hero { padding-top: 38px; }
  .mark { top: 28px; width: 92px; }
  h1 { max-width: 100%; font-size: clamp(3.7rem, 20vw, 6.5rem); }
  .statement { margin-top: 32px; }
}
