:root {
  --ink: #17191a;
  --paper: #f2f1ec;
  --muted: #686e6d;
  --line: #c9c8c0;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); }
body { min-height: 100vh; margin: 0; display: flex; flex-direction: column; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 2px; }

.page-shell {
  flex: 1;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(80px, 12vh, 140px) 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero { max-width: 900px; }
.eyebrow, .section-label {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.hero h1 { margin: 0; line-height: 0; }
.wordmark { display: block; width: min(520px, 82vw); height: auto; color: var(--ink); }
.statement {
  max-width: 760px;
  margin: 44px 0 0;
  font-size: clamp(1.6rem, 3.2vw, 3.25rem);
  font-weight: 550;
  letter-spacing: -0.035em;
  line-height: 1.12;
}
.contact {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  align-items: baseline;
  margin-top: clamp(90px, 18vh, 190px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.contact .section-label { margin: 0; }
.contact a { width: fit-content; font-size: clamp(1rem, 1.7vw, 1.25rem); }

.site-footer {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 0 32px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 0.8rem;
}
.site-footer nav { display: flex; gap: 24px; }
.site-footer [aria-current="page"] { color: var(--ink); text-decoration-thickness: 2px; }

.legal-header {
  width: min(820px, calc(100% - 48px));
  margin: 0 auto;
  padding: 38px 0;
}
.legal-header img { display: block; width: 132px; height: auto; }
.legal-page {
  width: min(820px, calc(100% - 48px));
  margin: 50px auto 120px;
}
.legal-page > h1, .not-found h1 {
  margin: 0;
  font-size: clamp(3.5rem, 10vw, 7rem);
  letter-spacing: -0.065em;
  line-height: 0.92;
}
.lede { margin: 34px 0 80px; color: var(--muted); font-size: 1.3rem; line-height: 1.5; }
.legal-page section { display: grid; grid-template-columns: 210px 1fr; gap: 32px; padding: 32px 0; border-top: 1px solid var(--line); }
.legal-page h2 { margin: 0; font-size: 0.95rem; line-height: 1.4; }
.legal-page section p { margin: 0; font-size: 1rem; line-height: 1.65; }
.version { margin: 52px 0 0; color: var(--muted); font-size: 0.8rem; }

.not-found { width: min(760px, calc(100% - 48px)); margin: auto; padding: 80px 0; }
.not-found img { display: block; width: min(280px, 72vw); margin-bottom: 90px; }
.not-found .eyebrow { margin-bottom: 24px; }
.home-link { display: inline-block; margin-top: 48px; font-weight: 650; }

@media (max-width: 640px) {
  .page-shell, .site-footer, .legal-header, .legal-page, .not-found { width: min(100% - 36px, 100%); }
  .page-shell { padding: 72px 0; }
  .wordmark { width: min(340px, 88vw); }
  .statement { margin-top: 34px; }
  .contact { grid-template-columns: 1fr; gap: 12px; margin-top: 100px; }
  .site-footer { flex-direction: column; padding-bottom: 26px; }
  .legal-page { margin-top: 24px; margin-bottom: 80px; }
  .lede { margin-bottom: 56px; }
  .legal-page section { grid-template-columns: 1fr; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
