:root {
  color-scheme: dark;
  --bg: #0f1d38;
  --bg-2: #132648;
  --fg: #f1f4f9;
  --muted: #93a0b8;
  --line: rgba(241, 244, 249, 0.12);
  --accent: #ffb454;
  --head: "Sora", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: radial-gradient(120% 90% at 80% 10%, var(--bg-2), var(--bg) 60%) fixed;
  color: var(--fg);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent); color: var(--bg); }

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1.5rem;
  z-index: 3;
  padding: 0.6rem 0.9rem;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.8rem;
  font-weight: 500;
  transform: translateY(-180%);
  transition: transform 150ms ease;
}
.skip-link:focus { transform: translateY(0); }

.page-shell {
  width: min(1160px, calc(100% - 3rem));
  margin: 0 auto;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem 0;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--head);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.brand-lockup img { width: 24px; height: 24px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.site-nav a { transition: color 150ms ease; }
.site-nav a:hover { color: var(--fg); }

.hero {
  display: grid;
  flex: 1;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 3rem;
  padding: 4rem 0;
}

.hero h1 {
  margin: 0;
  font-family: var(--head);
  font-size: clamp(3rem, 7vw, 6.2rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1;
}

.hero-lede {
  max-width: 32ch;
  margin: 1.6rem 0 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.5;
}
.hero-lede b { color: var(--accent); font-weight: 500; }

.surface {
  display: block;
  width: 100%;
  height: auto;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 0 1.8rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}
.footer-links { display: flex; gap: 1.6rem; }
.site-footer a { transition: color 150ms ease; }
.site-footer a:hover { color: var(--fg); }

/* Legal pages */
.legal-main {
  flex: 1;
  width: min(44rem, 100%);
  padding: 2rem 0 4rem;
}
.legal-main .eyebrow {
  margin: 0 0 0.6rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.legal-main h1 {
  margin: 0;
  font-family: var(--head);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 300;
  letter-spacing: -0.02em;
}
.legal-meta { margin: 0.8rem 0 2.5rem; color: var(--muted); font-size: 0.85rem; }
.legal-main h2 {
  margin: 2.2rem 0 0.6rem;
  font-family: var(--head);
  font-size: 1.05rem;
  font-weight: 500;
}
.legal-main p { margin: 0 0 1rem; color: var(--muted); line-height: 1.6; }
.legal-main p a { color: var(--fg); border-bottom: 1px solid var(--line); }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding: 2.5rem 0 3rem; }
  .surface { max-width: 420px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
