/* Shared styles for the secondary pages (/about, /contact, /privacy, /terms).
   The home page keeps its own inline CSS; the tokens, fonts, nav and footer here mirror it.
   If you change a token or the nav/footer on index.html, change it here too. */
@font-face { font-family: "Sora"; src: url("/fonts/sora-latin.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
@font-face { font-family: "Red Hat Text"; src: url("/fonts/redhattext-latin.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
:root {
  --card: #0E1014; --page: #14181F; --ink: #F2EEE5; --ink-2: #A9AFB8; --line: rgba(242, 238, 229, 0.12);
  --sun: #FFC24B; --nav: rgba(14, 16, 20, 0.6); color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--card); color: var(--ink);
  font-family: "Red Hat Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400; font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--sun); outline-offset: 4px; border-radius: 2px; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: "Sora", system-ui, sans-serif; font-weight: 400; letter-spacing: -0.02em; text-wrap: balance; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }

/* Nav: the home page frosts it on scroll; here it is frosted from the start */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 10; background: var(--nav); -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px); border-bottom: 1px solid var(--line); }
.nav .wrap { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav .home svg { width: 22px; height: 22px; display: block; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 26px; font-size: 14px; color: var(--ink-2); }
.nav ul a { transition: color 150ms ease; }
.nav ul a:hover, .nav ul a[aria-current] { color: var(--ink); }
.nav .go { color: var(--card); background: var(--ink); font-weight: 500; padding: 8px 14px; border-radius: 8px; white-space: nowrap; transition: opacity 150ms ease; }
.nav .go:hover { color: var(--card); opacity: 0.85; }

/* The page: one reading column on the dark ground */
.page { padding: calc(64px + clamp(56px, 9vw, 120px)) 0 clamp(72px, 10vw, 140px); }
.page .wrap { max-width: 860px; }
.kicker { font-size: 14px; color: var(--ink-2); margin-bottom: 14px; }
.page h1 { font-size: clamp(34px, 4.2vw, 56px); line-height: 1.06; letter-spacing: -0.03em; max-width: 16ch; }
.lede { margin-top: clamp(18px, 2vw, 26px); font-size: clamp(17px, 1.5vw, 19px); line-height: 1.55; color: var(--ink-2); max-width: 34em; }
.lede b, .page section b { color: var(--ink); font-weight: 500; }
.page section { margin-top: clamp(40px, 5vw, 64px); padding-top: clamp(24px, 3vw, 32px); border-top: 1px solid var(--line); }
.page section h2 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; max-width: 22ch; }
.page section h3 { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; margin-top: 28px; }
.page section p, .page section li { color: var(--ink-2); max-width: 38em; }
.page section p + p, .page section h3 + p { margin-top: 14px; }
.page section h2 + p { margin-top: 16px; }
.page section ul { margin: 14px 0 0; padding-left: 1.2em; }
.page section li + li { margin-top: 8px; }
.page section a { color: var(--ink); border-bottom: 1px solid var(--line); transition: border-color 150ms ease; }
.page section a:hover { border-color: var(--ink); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; margin-top: 24px; }
.facts div { border-top: 1px solid var(--line); padding-top: 12px; }
.facts span { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 2px; }
.facts a { font-weight: 500; }
.facts a:hover { color: var(--sun); }
.page .dated { margin-top: clamp(40px, 5vw, 64px); font-size: 14px; color: var(--ink-2); }

footer { background: var(--card); border-top: 1px solid var(--line); padding: 28px 0 44px; font-size: 13px; color: var(--ink-2); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 32px; justify-content: space-between; align-items: center; }
footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 24px; }
footer a:hover { color: var(--ink); }
footer .tag { color: var(--ink); margin-right: 12px; }
footer .legal { flex-basis: 100%; margin-top: 10px; font-size: 11px; color: var(--ink-2); opacity: 0.8; }

@media (max-width: 560px) {
  .nav ul { gap: 16px; font-size: 13px; }
  .nav ul li.hide-xs { display: none; }
  .facts { grid-template-columns: 1fr; }
  .page .wrap { padding-left: 20px; padding-right: 20px; }
}
