/* The McBean look, 2026-10-12. One file, every page past the landing.

   Where it comes from: the reels. Their stone ground, their heavy black
   type, their one orange, and the cut-out outline on anything you can tap.
   The landing page (index.html) is the poster and keeps its own wall; this
   is the workbench, and it is the same material, flat.

   Rules, so a page does not have to re-decide them:
   - The page is stone. Nothing sits on a white card; content sits on the page.
   - One heavy line per page: the question, the course name, the headline.
   - Anything you tap is a paper slab with a 2px ink outline.
   - One orange button per screen, the main action. Orange means "do this".
   - Anything supplemental sits in a darker band so it reads as "later".
   - After an answer, one bright box and everything under it recedes.
   The reference is design-notes/mockups/reel-on-question-B-2026-10-12.html. */

:root {
  --stone:#D8D6CC;      /* the reel ground, sampled from a frame */
  --stone-2:#C9C6BA;    /* a shade down: rules, quiet borders */
  --stone-3:#CBC8BC;    /* the supplemental band */
  --stone-4:#B9B6A9;    /* lines inside a band, progress tracks */
  --paper:#F3F1EB;      /* anything you tap, and the one bright box */
  --ink:#1C1B19;        /* the reel black */
  --ink-2:#3A3835;
  --muted:#6A675F;
  --faint:#8E8B82;
  --orange:#C2410C; --orange-hover:#9A3309;
  --ok:#2E7D4F; --ok-tint:#DFF0E2;     /* the reel green: right, only ever right */
  --bad:#C0392B; --bad-tint:#F6DDD9;   /* the reel red */

  /* The old names, pointed at the new colours. A rule that has not been
     rewritten yet lands on the right material instead of on white. */
  --page: var(--stone); --surface: var(--paper); --surface-2: var(--stone-3);
  --label: var(--ink-2); --line: var(--stone-4); --line-2: var(--stone-2);
  --field-line: var(--ink); --track: var(--stone-4);
  --accent: var(--orange); --accent-hover: var(--orange-hover);

  --mb-width: 900px;    /* a page can narrow this */
  --heavy: 'Archivo Black', 'Archivo', Helvetica, Arial, sans-serif;
  --body: 'Archivo', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--stone); }
body { margin: 0; background: var(--stone); color: var(--ink); font-family: var(--body); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--ink); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---- header: the mark, the wordmark, where you can go. No bar, no border. ---- */
header { max-width: var(--mb-width); margin: 0 auto; padding: 22px 24px 0;
         display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand .badge { width: 34px; height: 34px; border-radius: 6px; border: 2px solid var(--ink);
                object-fit: cover; display: block; flex: none; }
.brand span { font-family: var(--heavy); font-weight: 400; font-size: 16px;
              letter-spacing: -.01em; white-space: nowrap; }
nav { display: flex; gap: 18px; }
nav a { font-size: 15px; font-weight: 600; color: var(--muted); text-decoration: none;
        padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
nav a:hover { color: var(--ink); }
nav a.on { color: var(--ink); border-bottom-color: var(--ink); }
nav .count { color: var(--orange); }
.spacer { flex: 1; }
header .acct { font-size: 15px; font-weight: 600; color: var(--muted); text-decoration: none; }
header .acct:hover { color: var(--ink); }

/* ---- the page and its type ---- */
.page { max-width: var(--mb-width); margin: 0 auto; padding: 34px 24px 56px; }
h1 { font-family: var(--heavy); font-weight: 400; font-size: 32px; line-height: 1.15;
     letter-spacing: -.015em; margin: 0; }
.kicker, .sechead { font-size: 13px; font-weight: 700; letter-spacing: .12em;
     text-transform: uppercase; color: var(--muted); margin: 0; }
h2.sechead, .sechead { margin: 36px 0 14px; }
.lede { font-size: 16.5px; line-height: 1.6; color: var(--ink-2); margin: 10px 0 0; }

/* ---- the slab: a paper block with the cut-out outline ----
   .lift adds the hard drop; use it on the one thing the eye should land on. */
.slab { background: var(--paper); border: 2px solid var(--ink); border-radius: 8px;
        padding: 24px 26px; }
.slab.lift { box-shadow: 0 3px 0 var(--ink); }
/* ---- the band: a shade darker, for what can wait ---- */
.band { background: var(--stone-3); border-radius: 8px; padding: 22px 22px 24px; }

/* ---- buttons ---- */
.btn { font: inherit; font-family: var(--heavy); font-size: 16px; padding: 16px 34px;
       border: 2px solid var(--ink); border-radius: 6px; background: var(--orange); color: #fff;
       cursor: pointer; text-decoration: none; display: inline-block; text-align: center;
       box-shadow: 0 3px 0 var(--ink); }
.btn small { display: block; font-family: var(--body); font-weight: 500; font-size: 13.5px; opacity: .9; margin-top: 3px; }
.btn:hover:not(:disabled) { background: var(--orange-hover); }
.btn:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.btn:disabled { background: transparent; color: var(--muted); border-color: var(--stone-4);
                box-shadow: none; cursor: default; }
.btn2 { font: inherit; font-family: var(--body); font-size: 15px; font-weight: 600;
        padding: 12px 22px; border: 2px solid var(--ink); border-radius: 6px;
        background: var(--paper); color: var(--ink); cursor: pointer; text-decoration: none;
        display: inline-block; text-align: center; box-shadow: 0 2px 0 var(--ink); }
.btn2:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 3px 0 var(--ink); }
.btn2:active:not(:disabled) { transform: translateY(1px); box-shadow: 0 1px 0 var(--ink); }
.btn2:disabled { color: var(--muted); border-color: var(--stone-4); box-shadow: none; cursor: default; }
.quiet { font: inherit; font-family: var(--body); font-size: 15px; font-weight: 600;
         padding: 6px 0; border: 0; background: none; color: var(--ink); cursor: pointer;
         text-decoration: underline; text-underline-offset: 4px; }
.quiet:hover { color: var(--orange); }
.quiet.back, .quiet.dim { color: var(--muted); text-decoration: none; }
.quiet.back:hover, .quiet.dim:hover { color: var(--ink); }
.chip { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .06em;
        text-transform: uppercase; border-radius: 5px; padding: 4px 9px;
        background: var(--stone-3); color: var(--ink-2); white-space: nowrap; }
.chip.next { background: var(--ink); color: var(--paper); }
.chip.done { background: var(--ok-tint); color: var(--ok); }

/* ---- fields ---- */
label { display: block; font-size: 13px; font-weight: 700; letter-spacing: .08em;
        text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
input[type="email"], input[type="text"] {
  width: 100%; font: inherit; font-family: var(--body); font-size: 17px; padding: 14px 15px;
  border: 2px solid var(--ink); border-radius: 6px; background: var(--paper); color: var(--ink);
  outline: none; }
input.bad { border-color: var(--bad); background: var(--bad-tint); }
.err { font-size: 14px; color: var(--bad); margin-top: 8px; line-height: 1.5; }
.err:empty { display: none; }

/* ---- progress: a track, the fill is ink. Progress is not an action. ---- */
.bar { height: 8px; background: var(--stone-4); border-radius: 3px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--ink); border-radius: 3px; }

/* ---- a flat list: rows on the page, one thin line between ---- */
.rows > .row { border-top: 1px solid var(--stone-4); }
.rows > .row:first-child { border-top: 0; }

@media (max-width: 640px) {
  header { padding: 16px 18px 0; gap: 14px; }
  .spacer { display: none; }
  .page { padding: 24px 18px 48px; }
  h1 { font-size: 27px; }
  .slab { padding: 20px 18px; }
  .band { padding: 18px 14px; }
  .btn { width: 100%; }
}
/* The wordmark goes first when the row runs out; the mark still carries the brand.
   Four links (Studying · Videos · Punch list · Account) have to fit a 375px
   phone on one line, so the row tightens a notch too. */
@media (max-width: 460px) {
  .brand span { display: none; }
  header { gap: 12px; }
  nav { gap: 12px; }
  nav a, header .acct { font-size: 14px; }
}
