/* SanStatic brand: fonts and colour tokens shared by every page. Load before the page sheet.
   Self-hosted fonts because CSP allows only 'self'. */
@font-face{font-family:"Schibsted Grotesk";src:url(/fonts/schibsted-grotesk.woff2) format("woff2");font-weight:400 900;font-display:swap}
@font-face{font-family:"Geist";src:url(/fonts/geist.woff2) format("woff2");font-weight:100 900;font-display:swap}
@font-face{font-family:"Geist Mono";src:url(/fonts/geist-mono.woff2) format("woff2");font-weight:100 900;font-display:swap}

:root{
  --paper:#ffffff; --tint:#f3f4f6; --ink:#0c0e12; --sub:#545a66; --rule:#e2e4e9;
  --signal:#2346ff; --signal-hover:#1734d6; --signal-ink:#ffffff; --save:#047a48; --save-bg:#e6f5ee; --noise:#6b7280;
  --f-display:"Schibsted Grotesk","Helvetica Neue",Arial,sans-serif;
  --f-body:"Geist",system-ui,-apple-system,"Segoe UI",sans-serif;
  --f-mono:"Geist Mono",ui-monospace,"SF Mono",Menlo,monospace;
  color-scheme:light;
}

/* Funnel pages (style.css, find.css, situations.css, review.css) were written against these names.
   They now point at the brand tokens, so one palette runs the whole site. */
:root{
  --blue:var(--signal); --muted:var(--sub); --line:var(--rule); --bg:var(--paper); --card:var(--paper);
  --ok:var(--save); --warn:#8a5a00; --warn-bg:#fff6df; --bad:#b42318;
}

/* Korean pages (/ko/): Hangul falls back past the Latin brand fonts to a Korean system font, and
   keep-all stops a line from breaking inside a word (Korean wraps at spaces, like English). */
:root:lang(ko){
  --f-display:"Schibsted Grotesk","Apple SD Gothic Neo","Malgun Gothic","Noto Sans KR","Noto Sans CJK KR",sans-serif;
  --f-body:"Geist","Apple SD Gothic Neo","Malgun Gothic","Noto Sans KR","Noto Sans CJK KR",system-ui,sans-serif;
  --f-mono:"Geist Mono","Apple SD Gothic Neo","Malgun Gothic","Noto Sans KR","Noto Sans CJK KR",ui-monospace,monospace;
}
html:lang(ko){word-break:keep-all;overflow-wrap:break-word}
/* Hangul is taller than Latin caps: the tight display leading and tracking make lines touch. */
html:lang(ko) :is(h1,h2,h3,.h1,.h2){line-height:1.22;letter-spacing:-.02em}
/* The machine-draft notice on every /ko/ page, until a native speaker has proofread it. */
.draft-banner{margin:0;padding:8px 16px;background:var(--warn-bg);color:var(--warn);font:500 14px/1.5 var(--f-body);text-align:center;border-bottom:1px solid var(--rule)}
.draft-banner a{color:inherit;font-weight:700}
