/* Headroom Data — shared styles for every page.

   Layout concept: a calm, ruled page that reads like a good analyst's report.
   One signature element, the ten-question scorecard, sets an AI's answer
   beside the checked answer. Everything else stays quiet around it.

   Colour is a token set: light values on :root, dark values redefined twice
   (system preference, and an explicit data-theme), so no component rule ever
   holds a literal colour. */

:root{
  --paper:#F3F5F7;
  --sheet:#FFFFFF;
  --ink:#101826;
  --ink-2:#3D4859;
  --ink-3:#687385;
  --rule:#D5DCE4;
  --rule-2:#E6EBF0;
  --accent:#2346B8;
  --accent-ink:#FFFFFF;
  --accent-soft:#E4E9F8;
  --ok:#17704A;
  --ok-soft:#DDF0E5;
  --miss:#A9461A;
  --miss-soft:#F8E5DA;

  /* System faces only, as on halfacowgames.com: no font request leaves the
     page, which keeps the privacy notice's "no third-party content" true.
     Brand fonts can come later, self-hosted, never from a font CDN. */
  --display:"Avenir Next","Avenir","Segoe UI Variable Display","Segoe UI","Helvetica Neue",Arial,sans-serif;
  --body:"Iowan Old Style","Charter","Sitka Text","Palatino Linotype",Palatino,Georgia,serif;
  --mono:ui-monospace,"SF Mono","Cascadia Mono",Menlo,Consolas,monospace;

  --measure:66ch;
  --wide:1080px;
  color-scheme:light;
}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    --paper:#0B1018; --sheet:#121A26; --ink:#E4E9F1; --ink-2:#A9B4C4; --ink-3:#7F8A9C;
    --rule:#263244; --rule-2:#1B2533; --accent:#93A9FF; --accent-ink:#0B1018; --accent-soft:#1A2344;
    --ok:#6CD19E; --ok-soft:#10281C; --miss:#F29C70; --miss-soft:#2F1B10;
    color-scheme:dark;
  }
}
:root[data-theme="dark"]{
  --paper:#0B1018; --sheet:#121A26; --ink:#E4E9F1; --ink-2:#A9B4C4; --ink-3:#7F8A9C;
  --rule:#263244; --rule-2:#1B2533; --accent:#93A9FF; --accent-ink:#0B1018; --accent-soft:#1A2344;
  --ok:#6CD19E; --ok-soft:#10281C; --miss:#F29C70; --miss-soft:#2F1B10;
  color-scheme:dark;
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--body);
  font-size:18px;
  line-height:1.6;
  padding-inline:20px;
  padding-block:0 64px;
}
img,svg{max-width:100%}
a{color:var(--accent);text-underline-offset:3px;text-decoration-thickness:1px}
a:hover{text-decoration-thickness:2px}
a:focus-visible,button:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:2px}
h1,h2,h3{font-family:var(--display);color:var(--ink);line-height:1.12;letter-spacing:-.015em;text-wrap:balance;margin:0}
h1{font-size:clamp(34px,5.2vw,56px);font-weight:800}
h2{font-size:clamp(26px,3.2vw,34px);font-weight:700}
h3{font-size:20px;font-weight:700;letter-spacing:-.005em}
p{margin:0}
.wrap{max-width:var(--wide);margin:0 auto}
.skip{position:absolute;left:-9999px}
.skip:focus{left:20px;top:12px;background:var(--sheet);padding:8px 12px;z-index:10}
.label{font-family:var(--mono);font-size:12.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-3)}
.num{font-family:var(--mono);font-variant-numeric:tabular-nums}

/* header */
.site-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 28px;padding-block:22px;border-bottom:1px solid var(--rule)}
.brand{display:inline-flex;align-items:center;gap:10px;color:var(--ink);text-decoration:none;font-family:var(--display);font-weight:800;font-size:21px;letter-spacing:-.02em}
.brand svg{width:30px;height:30px;flex:none}
.brand .dim{font-weight:500;color:var(--ink-2)}
.site-head nav{display:flex;flex-wrap:wrap;gap:6px 22px;font-family:var(--display);font-size:15.5px}
.site-head nav a{color:var(--ink-2);text-decoration:none}
.site-head nav a:hover{color:var(--ink);text-decoration:underline}

/* buttons */
.btn{display:inline-flex;align-items:center;gap:8px;font-family:var(--display);font-weight:700;font-size:16px;padding:12px 18px;border-radius:6px;text-decoration:none;border:1.5px solid var(--accent);background:var(--accent);color:var(--accent-ink)}
.btn:hover{filter:brightness(1.08);text-decoration:none}
.btn.ghost{background:transparent;color:var(--accent)}
.btn.ghost:hover{background:var(--accent-soft)}
/* a button at the foot of a card: same place on every card, never stretched */
.cta{align-self:flex-start;margin-top:auto}

/* footer */
.site-foot{margin-top:72px;padding-top:22px;border-top:1px solid var(--rule);display:flex;flex-direction:column;gap:12px;font-family:var(--display);font-size:14px;color:var(--ink-3)}
.site-foot .row{display:flex;flex-wrap:wrap;gap:6px 18px;justify-content:space-between}
.site-foot a{color:var(--ink-2)}
/* The .legal block is a statutory disclosure (Companies Act 2006 s.82 and the
   2015 trading disclosure regulations), not copy: it changes only when the
   company's record at Companies House changes. */
.legal{font-style:normal;font-size:13px;line-height:1.55;max-width:80ch}

/* document pages (privacy) */
.doc{max-width:var(--measure);margin:48px auto 0;display:flex;flex-direction:column;gap:18px}
.doc h1{font-size:clamp(30px,4.4vw,44px)}
.doc h2{font-size:23px;margin-top:18px}
.doc ul{margin:0;padding-left:22px;display:flex;flex-direction:column;gap:6px}
.doc .updated{font-family:var(--mono);font-size:13px;color:var(--ink-3)}

@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
