/* Shared by every page: fonts, colour tokens (light and dark), base, type, buttons, header and footer. */
@font-face { font-family: "Bricolage Grotesque"; src: url(fonts/bricolage-grotesque-latin-wght-normal.woff2) format("woff2-variations"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Geist"; src: url(fonts/geist-latin-wght-normal.woff2) format("woff2-variations"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Martian Mono"; src: url(fonts/martian-mono-latin-wght-normal.woff2) format("woff2-variations"); font-weight: 100 800; font-display: swap; }

:root {
  color-scheme: light;
  --paper: #f4f2ec; --paper-2: #ebe8df; --surface: #ffffff; --sky: #e6eff8;
  --ink: #0b1e31; --ink-2: #002842; --text: #0b1e31; --muted: #5a6b7c; --faint: #94a2b0;
  --line: rgb(11 30 49 / .10); --line-2: rgb(11 30 49 / .18);
  --accent: #f26722; --accent-deep: #d9541a; --accent-soft: #fff1e8; --on-accent: #ffffff;
  --hl-word: rgb(255 214 64 / .62); --hl-phrase: rgb(120 220 170 / .55); --hl-structure: rgb(255 170 120 / .5); --hl-tone: rgb(150 170 255 / .45);
  --shadow: 0 1px 2px rgb(11 30 49 / .05), 0 24px 48px -20px rgb(11 30 49 / .22);
  --shadow-pop: 0 4px 10px rgb(11 30 49 / .06), 0 28px 60px -16px rgb(11 30 49 / .35);
  --display: "Bricolage Grotesque", "Geist", system-ui, sans-serif;
  --body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Martian Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #071422; --paper-2: #0b1b2d; --surface: #0e2236; --sky: #12304d;
    --text: #eaf1f8; --muted: #9fb0c2; --faint: #66798d; --line: rgb(234 241 248 / .10); --line-2: rgb(234 241 248 / .18);
    --accent: #ff7a3d; --accent-deep: #ff8f5c; --accent-soft: rgb(255 122 61 / .14); --on-accent: #ffffff;
    --hl-word: rgb(255 214 64 / .28); --hl-phrase: rgb(120 220 170 / .24); --hl-structure: rgb(255 150 100 / .26); --hl-tone: rgb(150 170 255 / .26);
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 24px 48px -20px rgb(0 0 0 / .7); --shadow-pop: 0 4px 10px rgb(0 0 0 / .4), 0 28px 60px -16px rgb(0 0 0 / .8);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #071422; --paper-2: #0b1b2d; --surface: #0e2236; --sky: #12304d;
  --text: #eaf1f8; --muted: #9fb0c2; --faint: #66798d; --line: rgb(234 241 248 / .10); --line-2: rgb(234 241 248 / .18);
  --accent: #ff7a3d; --accent-deep: #ff8f5c; --accent-soft: rgb(255 122 61 / .14); --on-accent: #ffffff;
  --hl-word: rgb(255 214 64 / .28); --hl-phrase: rgb(120 220 170 / .24); --hl-structure: rgb(255 150 100 / .26); --hl-tone: rgb(150 170 255 / .26);
  --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 24px 48px -20px rgb(0 0 0 / .7); --shadow-pop: 0 4px 10px rgb(0 0 0 / .4), 0 28px 60px -16px rgb(0 0 0 / .8);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--text); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
button, input, textarea { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
section[id] { scroll-margin-top: 90px; }

/* Type */

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: ""; width: 9px; height: 9px; border-radius: 3px; background: var(--accent); transform: rotate(-12deg); }
.display { font-family: var(--display); font-weight: 800; letter-spacing: -.035em; line-height: .98; margin: 0; color: var(--text); }
.accent { color: var(--accent); position: relative; white-space: nowrap; }
.accent::after { content: ""; position: absolute; left: 0; right: .12em; bottom: -.06em; height: .1em; border-radius: 99px; background: currentColor; opacity: .25; }
.lead { color: var(--muted); font-size: 18px; line-height: 1.65; max-width: 520px; }

/* Buttons and chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 48px; padding: 0 22px; border-radius: 12px; border: 1.5px solid var(--line-2);
  background: var(--surface); color: var(--text); font: 600 15px/1 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .15s, background .15s, border-color .15s, box-shadow .15s; }
.btn:hover { border-color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn .arrow { width: 15px; height: 15px; transition: transform .2s; }
.btn:hover .arrow { transform: translate(2px, -2px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); box-shadow: 0 10px 24px -10px rgb(242 103 34 / .7); }
.btn.primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn.ink { background: var(--ink); border-color: var(--ink); color: #fff; }
:root[data-theme="dark"] .btn.ink { background: var(--surface); border-color: var(--line-2); }
.btn.sm { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.btn.xs { height: 36px; padding: 0 13px; font-size: 13.5px; border-radius: 10px; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--text); background: var(--paper); border-color: transparent; }
.btn.icon { width: 40px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 13px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); font-size: 14px; color: var(--muted); }
.chip b { color: var(--text); font-weight: 600; }
.chip svg.i { width: 16px; height: 16px; color: var(--accent); }

/* Header */
header.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 84%, transparent); backdrop-filter: saturate(1.5) blur(14px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 25px/1 var(--display); letter-spacing: -.045em; color: var(--text); }
.logo svg { width: 34px; height: 34px; }
.links { display: flex; gap: 30px; font-weight: 600; font-size: 15px; }
.links a { text-decoration: none; color: var(--text); opacity: .82; }
.links a:hover { opacity: 1; color: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 8px; }
@media (max-width: 900px) { .links { display: none; } }
@media (max-width: 480px) { .nav-cta { display: none; } }

/* Footer */
footer.foot { position: relative; margin-top: 110px; padding: 40px 0 36px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; overflow: hidden; }
.bigword { font: 800 clamp(90px, 19vw, 260px)/.8 var(--display); letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.5px var(--line-2); user-select: none; margin: 0 0 calc(26px + .2em) -6px; } /* .2em clears the p's descender */
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
footer details summary { cursor: pointer; font-weight: 600; color: var(--text); }
footer ul { padding-left: 18px; }
footer li { margin: 6px 0; }
footer a { color: var(--accent); text-underline-offset: 3px; }
.foot-row > p { margin: 0; }
.foot-end { display: grid; gap: 8px; justify-items: end; align-content: start; text-align: right; }
.foot-end p { margin: 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot-links a { color: var(--text); font-weight: 600; text-decoration: none; }
.foot-links a:hover, .foot-links a[aria-current] { color: var(--accent); }
@media (max-width: 640px) { .foot-end { justify-items: start; text-align: left; } }

/* Text pages: about, privacy, terms, contact */
.page { max-width: 808px; padding-top: 72px; }
.page h1 { font-size: clamp(44px, 7vw, 76px); margin: 18px 0 18px; }
.page .lead { max-width: none; margin: 0 0 12px; }
.page .updated { font: 500 11px/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin: 0 0 8px; }
.page h2 { font: 800 25px/1.2 var(--display); letter-spacing: -.025em; color: var(--text); margin: 52px 0 12px; }
.page p, .page li { color: var(--muted); font-size: 16.5px; line-height: 1.75; }
.page p { margin: 0 0 14px; }
.page b { color: var(--text); font-weight: 650; }
.page a:not(.btn) { color: var(--accent); text-underline-offset: 3px; }
.page ul { padding-left: 20px; margin: 0 0 14px; }
.page li { margin: 7px 0; }
.page li::marker { color: var(--accent); }
.page .note { margin: 28px 0 0; padding: 20px 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.page .note p:last-child { margin: 0; }
.page .cta { margin-top: 44px; }
.contact-card { display: grid; gap: 4px; margin: 36px 0 8px; padding: 28px; border-radius: 22px; background: var(--ink); color: #fff; box-shadow: var(--shadow); }
:root[data-theme="dark"] .contact-card { background: var(--surface); }
.contact-card .eyebrow { color: #9fb0c2; }
.contact-card a.mail { font: 800 clamp(22px, 4vw, 34px)/1.2 var(--display); letter-spacing: -.03em; color: #fff; text-decoration: none; overflow-wrap: anywhere; margin: 10px 0 6px; }
.contact-card a.mail:hover { color: var(--accent); }
.contact-card p { margin: 0; color: #9fb0c2; font-size: 15px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
