@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/space-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
:root {
  --bg: #FAF8F5;
  --ink: #16131F;
  --muted: #6B6675;
  --faint: #A29DAB;
  --rule: rgba(22, 19, 31, 0.10);
  --glass: #1597B8;
  --glint: #FFFFFF;
  --link: #0E7C98;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--glass); outline-offset: 4px; border-radius: 4px; }

/* logo */
.logo { display: block; width: 100%; height: auto; overflow: visible; }
.logo .word { fill: currentColor; }
.logo .glass { fill: var(--glass); }
.logo .glint path { stroke: var(--glint); }
.logo .glint circle { fill: var(--glint); }

/* home + 404 */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.6vw, 24px);
  padding: 48px 16px;
  text-align: center;
  animation: rise 900ms cubic-bezier(.2, .7, .2, 1) both;
}
.hero h1, .hero > a:first-child { width: min(440px, 78vw); display: block; }
.tagline { color: var(--muted); font-size: clamp(16px, 2.2vw, 19px); letter-spacing: 0.01em; }
.contact {
  margin-top: 4px;
  font-size: 15px;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  transition: color .2s, border-color .2s;
}
.contact:hover { color: var(--link); border-color: currentColor; }

/* footer */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 20px;
  padding: 24px 16px calc(24px + env(safe-area-inset-bottom));
  font-size: 13px;
  color: var(--faint);
}
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

/* legal pages */
.doc-header { padding: 28px 16px 0; display: flex; justify-content: center; }
.home-link { display: block; width: 150px; }
.prose {
  flex: 1;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 16px 64px;
}
.prose h1 { font-size: clamp(28px, 4vw, 34px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
.prose .meta { color: var(--faint); font-size: 14px; margin: 8px 0 32px; }
.prose h2 { font-size: 18px; font-weight: 500; margin: 36px 0 10px; }
.prose p { color: var(--muted); margin-bottom: 14px; }
.prose a { color: var(--link); text-underline-offset: 3px; }

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero { animation: none; }
}
