/* Shared by every page: tokens (DESIGN.md §10), base, header, footer, buttons. */

/* Tokens. The site runs dark ("Night", Jerry 2026-10-31): the dark blocks use a near-black ink. */
:root { --fp-bg: #F6F8FA; --fp-bg-subtle: #E9EEF2; --fp-surface: #FCFDFD; --fp-surface-inverse: #142838; --fp-border: #DCE3E9; --fp-border-strong: #9DB3C5; --fp-text: #142838; --fp-text-body: #4A5866; --fp-text-muted: #5E6B78; --fp-text-label: #58758D; --fp-text-label-strong: #4E6A82; --fp-text-inverse: #F2F5F8; --fp-text-inverse-muted: #B8C8D6; --fp-label-inverse: #9DB3C5; --fp-accent: #58758D; --fp-focus: #58758D; --fp-gap: #A0561A; --fp-gap-bg: #FBF3EA; --fp-chip: #D6E0E8; --fp-chart-1: #142838; --fp-chart-2: #58758D; --fp-chart-3: #9DB3C5; --fp-inverse-line: #3A556C; --fp-shot-bg: #E9EEF2; --fp-shadow-lift: 0 12px 40px rgba(20, 40, 56, 0.25); --fp-font: Inter, "Noto Sans SC", Arial, sans-serif; --fp-font-display: "DM Sans", Inter, "Noto Sans SC", Arial, sans-serif; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --fp-bg: #0A141D; --fp-bg-subtle: #0F2130; --fp-surface: #142838; --fp-surface-inverse: #0F2130; --fp-border: #22394D; --fp-border-strong: #58758D; --fp-text: #F2F5F8; --fp-text-body: #B8C8D6; --fp-text-muted: #9DB3C5; --fp-text-label: #9DB3C5; --fp-text-label-strong: #9DB3C5; --fp-chip: #2C4356; --fp-chart-1: #F2F5F8; --fp-chart-2: #9DB3C5; --fp-chart-3: #58758D; --fp-inverse-line: #2C4356; --fp-shot-bg: #1A3042; --fp-gap: #D98F4A; --fp-shadow-lift: 0 12px 40px rgba(0, 0, 0, 0.4); color-scheme: dark; }
}
:root[data-theme="dark"] { --fp-bg: #0A141D; --fp-bg-subtle: #0F2130; --fp-surface: #142838; --fp-surface-inverse: #0F2130; --fp-border: #22394D; --fp-border-strong: #58758D; --fp-text: #F2F5F8; --fp-text-body: #B8C8D6; --fp-text-muted: #9DB3C5; --fp-text-label: #9DB3C5; --fp-text-label-strong: #9DB3C5; --fp-chip: #2C4356; --fp-chart-1: #F2F5F8; --fp-chart-2: #9DB3C5; --fp-chart-3: #58758D; --fp-inverse-line: #2C4356; --fp-shot-bg: #1A3042; --fp-gap: #D98F4A; --fp-shadow-lift: 0 12px 40px rgba(0, 0, 0, 0.4); color-scheme: dark; }

/* Base */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body { margin: 0; background: var(--fp-bg); color: var(--fp-text-body); font-family: var(--fp-font); font-size: 16px; line-height: 1.6; font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--fp-bg); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--fp-text); text-wrap: balance; font-family: var(--fp-font-display); }
a { color: var(--fp-text-label-strong); }
a:hover { color: var(--fp-text); }
:focus-visible { outline: 2px solid var(--fp-focus); outline-offset: 2px; }
img { display: block; max-width: 100%; height: auto; }

/* Layout */
.band { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.wrap { max-width: 1120px; margin: 0 auto; }
.section { padding-block: 96px; }
section[id] { scroll-margin-top: 72px; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 760px; margin-bottom: 48px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fp-text-label); }
.h2 { font-size: 36px; font-weight: 700; line-height: 1.2; letter-spacing: -0.5px; }
.lead { font-size: 18px; line-height: 1.6; color: var(--fp-text-body); max-width: 640px; }
.tint { background: var(--fp-bg-subtle); }
.tint .eyebrow { color: var(--fp-text-label-strong); }
.ink { background: var(--fp-surface-inverse); color: var(--fp-text-inverse-muted); }
.ink h2, .ink h3 { color: var(--fp-text-inverse); }
.ink .eyebrow { color: var(--fp-label-inverse); }
@media (max-width: 640px) {
  .h2 { font-size: 28px; }
  .section { padding-block: 64px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 24px; border-radius: 999px; font: 600 15px/1 var(--fp-font); text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap; }
.btn-primary { background: #142838; color: #F2F5F8; }
.btn-primary:hover { background: #3A556C; color: #F2F5F8; }
:root[data-theme="dark"] .btn-primary { background: #F2F5F8; color: #142838; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn-primary { background: #F2F5F8; color: #142838; }
}

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: color-mix(in srgb, var(--fp-bg) 86%, transparent); -webkit-backdrop-filter: saturate(1.2) blur(12px); backdrop-filter: saturate(1.2) blur(12px); border-bottom: 1px solid transparent; }
.nav { display: flex; align-items: center; gap: 32px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 3px; color: var(--fp-text); text-decoration: none; font-weight: 700; font-size: 17px; }
.brand svg { flex: none; }
.wordmark { font-family: "DM Mono", ui-monospace, monospace; font-weight: 500; letter-spacing: -0.07em; font-size: 23px; line-height: 1; font-variant-numeric: normal; }
.nav-links { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav-links a { color: var(--fp-text-muted); text-decoration: none; font-size: 14px; font-weight: 500; letter-spacing: -0.005em; transition: color 0.15s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--fp-text); }
.nav-links .login { display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 5px 0 16px; border-radius: 999px; background: transparent; border: 1px solid #3A556C; color: var(--fp-text); font-weight: 600; transition: transform 0.2s cubic-bezier(.2,.8,.2,1), border-color 0.2s; }
.nav-links .login:hover { color: var(--fp-text); border-color: #9DB3C5; transform: translateY(-1px); }
.nav-links .login:active { transform: scale(0.97); }
.nav-links .login .arr { width: 28px; height: 28px; border-radius: 999px; background: color-mix(in srgb, var(--fp-text) 10%, transparent); display: inline-flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.nav-links .login .arr svg { transition: transform 0.35s cubic-bezier(.2,.8,.2,1); }
.nav-links .login:hover .arr svg { animation: arr-slide 0.45s cubic-bezier(.2,.8,.2,1); }
@keyframes arr-slide { 0% { transform: translateX(0); } 45% { transform: translateX(18px); } 46% { transform: translateX(-18px); } 100% { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) {
  .nav-links .login, .nav-links .login .arr svg { transition: none; animation: none !important; }
}
@media (max-width: 640px) {
  .nav { gap: 12px; height: 60px; }
  .brand { gap: 3px; }
  .brand .mark { width: 28px; height: 28px; }
  .wordmark { font-size: 20px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 13px; }
  .nav-links .login { height: 34px; padding-left: 14px; }
  .nav-links .login .arr { width: 24px; height: 24px; }
}

/* Footer */
footer { padding-block: 32px; border-top: 1px solid var(--fp-border); font-size: 13px; color: var(--fp-text-muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
