/* crackthecasefiles.com: shared tokens, type and chrome. v3 (2026-11-13): look C, "the deco poster with the red pencil",
   chosen by Eugene from three samples. Owned by the orchestrator. player.css and pages.css build on these tokens;
   do not redefine them and do not edit this file (ask). Spec: DESIGN-C.md. */

@font-face { font-family: "Josefin Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/josefin-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Josefin Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/josefin-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Literata"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/literata-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Literata"; font-weight: 400; font-style: italic; font-display: swap; src: url("fonts/literata-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Literata"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/literata-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Kalam"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/kalam-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Kalam"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/kalam-latin-700-normal.woff2") format("woff2"); }

:root {
  /* Flat poster colors taken from the book's cover. No gradients, no shadows, square corners. */
  --navy: #17202e;        /* ink, rules, solid blocks, the step rail, header and footer */
  --cream: #f1e9d2;       /* the page */
  --cream-hi: #fbf6e6;    /* wells: answer slots, inputs, a selected room */
  --on-navy: #f6efdc;     /* text and outlines on navy, teal and slate */
  --soft: #3a4252;        /* secondary text on cream (passes 4.5:1) */
  --rule: #17202e;
  --amber: #c8973f;       /* tier Open; the stepped bars on navy */
  --amber-hi: #e7b657;    /* a selection in progress; focus ring */
  --teal: #2f6f77;        /* tier Active */
  --slate: #46597a;       /* tier Cold */
  --pencil: #a12a2a;      /* THE RED PENCIL: everything the reader marks or writes, and nothing else */

  --font-show: "Josefin Sans", "Century Gothic", "Avenir Next", "Trebuchet MS", sans-serif; /* numerals, headings, labels, buttons, grid letters */
  --font-read: "Literata", "Iowan Old Style", Palatino, Georgia, serif;                     /* anything read as a sentence */
  --font-hand: "Kalam", "Segoe Print", "Bradley Hand", cursive;                             /* only what the reader writes (in --pencil) */

  --step--1: 0.8rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.563rem;
  --step-3: 1.953rem;
  --step-4: 2.441rem;
  --step-5: 3.052rem;

  --pad: clamp(1.1rem, 4.5vw, 2rem);
  --measure: 62ch;
  --wide: 68rem;          /* max content width on desktop */
  --track: 0.14em;        /* letter-spacing for caps labels and buttons */
}

/* A tier sets two variables; blocks that carry a tier read them. The tier NAME is always printed too. */
[data-tier="open"]   { --tier-bg: var(--amber); --tier-fg: var(--navy); }
[data-tier="active"] { --tier-bg: var(--teal);  --tier-fg: var(--on-navy); }
[data-tier="cold"]   { --tier-bg: var(--slate); --tier-fg: var(--on-navy); }

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 17px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--font-read);
  font-size: var(--step-0);
  line-height: 1.6;
}
h1, h2, h3 { font-family: var(--font-show); font-weight: 700; line-height: 1.08; margin: 0 0 0.5em; text-transform: uppercase; letter-spacing: 0.03em; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); }
p { margin: 0 0 1em; max-width: var(--measure); }
a { color: inherit; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--amber-hi); outline-offset: 2px; }
img, svg { max-width: 100%; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 0.5rem; top: 0.5rem; background: var(--cream-hi); color: var(--navy); padding: 0.5rem 0.75rem; z-index: 50; }

/* caps label: small tracked Josefin, used for tier names, list labels, table heads */
.label { font-family: var(--font-show); font-weight: 700; font-size: var(--step--1); letter-spacing: 0.18em; text-transform: uppercase; }

/* the stepped bars: the one ornament. Three bars, each shorter. Color comes from currentColor. */
.bars { display: flex; flex-direction: column; gap: 5px; }
.bars::before, .bars::after, .bars > span { content: ""; display: block; height: 4px; background: currentColor; }
.bars::before { width: 7.5rem; }
.bars > span { width: 5.25rem; }
.bars::after { width: 3rem; }

/* site header and footer: navy strips */
.site-head {
  background: var(--navy); color: var(--on-navy);
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem 1.25rem; flex-wrap: wrap;
  padding: 0.35rem var(--pad);
}
.site-name { font-family: var(--font-show); font-weight: 700; font-size: var(--step--1); letter-spacing: 0.22em; text-transform: uppercase; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.site-nav { display: flex; flex-wrap: wrap; gap: 0 1.1rem; font-family: var(--font-show); font-weight: 700; font-size: var(--step--1); letter-spacing: 0.1em; text-transform: uppercase; }
.site-nav a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--amber); }
/* phones: the three nav links on one line from 375px, on every page */
@media (max-width: 639px) {
  .site-nav { column-gap: 0.8rem; letter-spacing: 0.05em; }
}
.site-foot {
  background: var(--navy); color: var(--on-navy);
  padding: 1.1rem var(--pad); margin-top: 3rem;
  font-family: var(--font-show); font-weight: 600; font-size: var(--step--1); letter-spacing: 0.06em;
  display: flex; gap: 0.5rem 1.25rem; flex-wrap: wrap; justify-content: space-between; align-items: center;
}
.site-foot nav { display: flex; gap: 1.25rem; }
.site-foot a { min-height: 44px; display: inline-flex; align-items: center; }

/* buttons: square, caps, tracked */
.btn {
  font-family: var(--font-show); font-weight: 700; font-size: 0.9rem; letter-spacing: var(--track); text-transform: uppercase; line-height: 1.2;
  background: var(--navy); color: var(--on-navy);
  border: 2px solid var(--navy); border-radius: 0;
  padding: 0.85rem 1.2rem 0.7rem; min-height: 52px; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
}
.btn:hover { background: #0e141d; }
.btn--quiet { background: transparent; color: var(--navy); }
.btn--quiet:hover { background: rgba(23, 32, 46, 0.08); }
/* a button set on navy, teal or slate */
.btn--on-dark { background: transparent; color: var(--on-navy); border-color: var(--on-navy); }
.btn--on-dark:hover { background: rgba(246, 239, 220, 0.12); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

/* tier chip: a solid block in the tier color with the tier name printed */
.tier { font-family: var(--font-show); font-weight: 700; font-size: var(--step--1); letter-spacing: 0.16em; text-transform: uppercase; padding: 0.3rem 0.55rem 0.15rem; background: var(--tier-bg, var(--navy)); color: var(--tier-fg, var(--on-navy)); display: inline-block; }

/* what the reader writes */
.hand { font-family: var(--font-hand); color: var(--pencil); }

.sample-banner { background: var(--pencil); color: #fff; font-family: var(--font-show); font-weight: 700; padding: 0.4rem var(--pad); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
@media print {
  body { background: #fff; color: #000; }
  .site-head, .site-foot, .skip, .no-print { display: none !important; }
}
