/* The companion's game themes (contract.js THEMES): each page sets a
   data-theme on <html>, and each block below swaps companion.css's tokens and
   type roles for one game's printed look. "carnival" is companion.css's own
   default and has no block. Loaded right after companion.css. */

/* The cold cases: the review team's 2026 file. Slate and oxblood on cotton
   paper, a manila folder round the page, and typewriter labels like the 1987
   papers (products/cold-case-files/design/case-file.css). */
[data-theme="case-file"] {
  --paper: #fdfbf6;
  --mist: #e4dac3;
  --story: #f5f0e3;
  --ink: #262422;
  --navy: #1d3340;
  --file-blue: #1d3340;
  --hairline: #7a7368;
  --muted: #57524a;
  --line: #ddd5c4;
  --display: var(--typed);
  --label: var(--typed);
}

[data-theme="case-file"] h1 {
  border-bottom: 4px double var(--file-blue);
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* The eyebrow is the review team's rubber stamp. */
[data-theme="case-file"] .eyebrow {
  display: inline-block;
  padding: 3px 8px 1px;
  border: 2px solid currentColor;
  border-radius: 3px;
  transform: rotate(-1.5deg);
}

[data-theme="case-file"] .prompt,
[data-theme="case-file"] input,
[data-theme="case-file"] .answer {
  font-family: var(--typed);
}

/* The Christmas storybook kits: the printed Game's pine green, holly red and
   warm cream paper. */
[data-theme="storybook"] {
  --paper: #fffdf7;
  --mist: #f3ecdc;
  --story: #fbf3df;
  --ink: #23201c;
  --navy: #1f4a35;
  --file-blue: #1f4a35;
  --signal-red: #b8282f;
  --error-ink: #8a1f24;
  --success: #2f7a4f;
  --hairline: #8a7d66;
  --muted: #5a5246;
  --line: #e2d8c3;
}

/* The Victorian ledger kit (The Three Visitors): the printed Game's sepia ink,
   sealing-wax red and the cream of its story panels. */
[data-theme="ledger"] {
  --paper: #fffdf8;
  --mist: #f4efe4;
  --story: #f4efe4;
  --ink: #231a14;
  --navy: #2b211a;
  --file-blue: #2b211a;
  --signal-red: #8c1d18;
  --error-ink: #8c1d18;
  --success: #2f4a34;
  --hairline: #8a7a68;
  --muted: #5c4b3e;
  --line: #e2d9c6;
}

/* The office party kit (Secret Santa Sabotage): the printed Game's charcoal
   ink, party red and the pale grey of its memo panels, on white. */
[data-theme="office"] {
  --paper: #ffffff;
  --mist: #f1f2f4;
  --story: #f1f2f4;
  --ink: #22262b;
  --navy: #22262b;
  --file-blue: #22262b;
  --signal-red: #b3202a;
  --error-ink: #b3202a;
  --success: #2f6b46;
  --hairline: #8b9097;
  --muted: #4a5058;
  --line: #dfe1e5;
}

/* The advent book (After Hours at Halloway's): its pages' black ink on white,
   bold uppercase League Spartan titles over a double rule, Courier Prime for
   the store's typed paperwork, and the cover's night green and brass
   (products/escape-rooms/design/system/store-ledger-book.template.html). The
   brass is darkened to read on white. */
[data-theme="halloways"] {
  --paper: #ffffff;
  --mist: #f4eedf;
  --story: #faf8f2;
  --ink: #111111;
  --navy: #103022;
  --file-blue: #111111;
  --signal-red: #7a5a1e;
  --error-ink: #8c1d18;
  --success: #1d5a3a;
  --hairline: #777777;
  --muted: #4a4a4a;
  --line: #dddddd;
  --display: var(--sans);
}

[data-theme="halloways"] h1 {
  border-bottom: 5px double var(--ink);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
}

[data-theme="halloways"] .prompt,
[data-theme="halloways"] input,
[data-theme="halloways"] .answer {
  font-family: var(--typed);
}

/* The murder-records paperbacks (The Killer Paid in Cash): the cover's midnight
   navy and register red over the interior's black on white, bold uppercase
   League Spartan titles standing in for the cover's Oswald
   (products/record-elimination/design/cover.template.html). */
[data-theme="murder-records"] {
  --paper: #ffffff;
  --mist: #e9ebf0;
  --story: #f6f7f9;
  --ink: #111111;
  --navy: #0c0f18;
  --file-blue: #0c0f18;
  --signal-red: #a3201c;
  --error-ink: #8c1d18;
  --success: #1d5a3a;
  --hairline: #777777;
  --muted: #4a4a4a;
  --line: #dddddd;
  --display: var(--sans);
}

[data-theme="murder-records"] h1 {
  border-bottom: 3px solid var(--signal-red);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.05;
  text-transform: uppercase;
}
