/* front-door.css -- the only stylesheet account.html waits on before its first paint (UAT P5-05, 2026-11-21).
   It draws the boot screen and the static front-door intro shell; the app's own stylesheets (styles.css, account.css,
   keys.css) load media="print" beside it and switch on when loaded (front-door.js, app-css.js). Tokens below are
   copied verbatim from styles.css :root, and tests/front-door-fast.test.mjs fails if any value drifts. The shell
   matches the real intro card (styles.css .auth-card, account.css .front-intro) so the swap does not jump. */
:root{
  --bg:#f6f3ec; --paper:#fffdf9; --paper-alt:#efeadc;
  --ink:#1b1f23; --ink-2:#343b41; --muted:#5e6063;
  --line:#ddd5c1;
  --accent:#0d4a44; --accent-ink:#f8f6ee;
  --shadow-md:0 4px 16px rgba(24,20,10,.07);
  --font-display:"Iowan Old Style","Palatino Linotype",Palatino,"Book Antiqua",Georgia,serif;
  --font-body:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  color-scheme: light;
  --text-page:28px; --text-section:22px; --text-dense:14px; --text-meta:13px;
  --space-sm:8px; --space-md:16px;
  --radius-md:8px;
}
@media (prefers-color-scheme: dark){
  :root{
    --bg:#14171a; --paper:#1a1e22; --paper-alt:#20252a;
    --ink:#e8e5db; --ink-2:#c7c3b8; --muted:#a0a5ab;
    --line:#2c3237;
    --accent:#3fae9d; --accent-ink:#0a1310;
    --shadow-md:0 6px 20px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);font:var(--text-dense)/1.55 var(--font-body)}

/* boot screen (returning visitors, signed-in members): the mark and the wordmark, centred */
.centered-screen{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px;background:var(--bg)}
.boot-brand,.fd-brand{display:flex;align-items:center;gap:12px}
.brand-mark{flex:none;width:40px;height:40px;display:grid;place-items:center}
.brand-mark .brand-glyph{width:100%;height:100%;display:block}
.brand-glyph .brand-steps{fill:var(--ink)}
.brand-glyph .brand-top{fill:var(--accent)}
.brandmark{margin:0;font-family:var(--font-display);font-weight:600;font-size:var(--text-page);color:var(--ink)}

/* static shells, painted from this file alone (no script needed), until account.js mounts the real screen over them:
   - the sign-in card's top (the brand and its tagline, the same words signIn() draws; nothing that says "sign in", so a
     returning member who is still signed in and sees it for a moment is not told otherwise). The default.
   - the front-door intro: only when front-door.js marks a brand-new visitor and the intro switch is on (PR 172).
   The boot screen stays in the HTML for anything without this stylesheet. "#app >" outranks the app sheets' own
   .centered-screen rule, which loads later and would otherwise show the boot screen again. */
#app > .boot-screen{display:none}
#app > .fd-shell{display:none}
#app > .fd-signin{display:flex}
html[data-front-door="intro"] #app > .fd-signin{display:none}
html[data-front-door="intro"] #app > .fd-intro{display:flex}
.fd-card{max-width:560px;width:100%;background:var(--paper);border:1px solid var(--line);border-radius:14px;padding:32px 30px;box-shadow:var(--shadow-md);text-align:left}
.fd-sub{font-size:var(--text-dense);color:var(--muted);margin:var(--space-sm) 0 var(--space-md)}
.fd-signin .fd-sub{margin-bottom:0}
/* the real sign-in card is tall and centres high; start the short shell near where its top will land */
#app > .fd-signin{align-items:flex-start;padding-top:max(24px,12vh)}
.fd-poster{display:block;width:100%;height:auto;aspect-ratio:16/9;border-radius:var(--radius-md);background:var(--paper-alt)}
.fd-note{margin:var(--space-sm) 0 0;color:var(--ink-2);font-size:var(--text-meta)}
@media (max-width:600px){
  .fd-card{padding:20px}
  .fd-shell .brandmark{font-size:var(--text-section);line-height:1.2}
}
