:root {
  --paper: #e8eff0;
  --surface: #ffffff;
  --ink: #10293a;
  --copper: #b3643c;
  --muted: #62717b;
  --line: #d1dee2;
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --body: "Avenir Next", Avenir, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--paper); }

body {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.page-shell {
  width: min(100%, 1540px);
  margin: 0 auto;
  padding: clamp(12px, 2vw, 32px);
}

.hero {
  min-height: calc(100vh - clamp(24px, 4vw, 64px));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(24px, 4.8vw, 76px);
  border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 18px 60px rgb(16 41 58 / 8%);
}

.topbar, .footer-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.draft-note, .place, .footer-line p { margin: 0; }

.draft-note { color: var(--copper); }

.place, .footer-line { color: var(--muted); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(300px, 0.94fr);
  align-items: center;
  gap: clamp(36px, 7vw, 120px);
  padding: clamp(54px, 10vh, 110px) 0;
}

.intro { max-width: 690px; }

.eyebrow {
  margin: 0 0 18px;
  color: var(--copper);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1 {
  max-width: 700px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.2rem, 6.1vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.05;
}

h1 span { display: block; }

.lead {
  max-width: 455px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.58;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 21px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  font-size: 0.94rem;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }

.button-primary { background: var(--ink); color: var(--surface); }
.button-primary:hover { background: var(--copper); border-color: var(--copper); }
.button-secondary { background: var(--surface); color: var(--ink); }
.button-secondary:hover { background: var(--paper); }

.button:focus-visible, .footer-line a:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 4px;
}

.signal {
  width: min(100%, 640px);
  justify-self: end;
  color: var(--muted);
}

.signal svg { display: block; width: 100%; height: auto; overflow: visible; }
.signal p { margin: -8px 0 0 35px; font-size: 0.79rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.trace, .key, .baseline { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.trace-faint { stroke: var(--line); stroke-width: 20; }
.trace-main { stroke: var(--copper); stroke-width: 3; }
.node { fill: var(--surface); stroke: var(--copper); stroke-width: 3; }
.node-small { fill: var(--copper); stroke: none; }
.key { fill: color-mix(in srgb, var(--copper) 11%, transparent); stroke: var(--copper); stroke-width: 4; }
.baseline { stroke: var(--line); stroke-width: 2; }

.footer-line {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.footer-line a { color: var(--ink); text-decoration-color: var(--copper); text-underline-offset: 4px; }

@media (max-width: 720px) {
  .page-shell { padding: 0; }
  .hero { min-height: 100svh; border: 0; border-radius: 0; padding: 26px 20px 24px; }
  .topbar, .footer-line { align-items: flex-start; font-size: 0.68rem; }
  .topbar { flex-direction: column; gap: 7px; }
  .hero-grid { grid-template-columns: 1fr; gap: 42px; padding: 58px 0 36px; }
  h1 { font-size: clamp(2.75rem, 15.6vw, 3.55rem); letter-spacing: -0.065em; }
  .lead { margin-top: 22px; }
  .actions { flex-direction: column; margin-top: 28px; }
  .button { width: 100%; min-height: 52px; }
  .signal { width: min(100%, 520px); justify-self: start; }
  .signal p { margin-left: 17px; }
  .footer-line { flex-direction: column; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
