/* ==========================================================
   BOOM TOMATO PUZZLES — NOIR STYLESHEET v2
   Warm sepia edition. Aged newsprint on a leather desk,
   under the spill of a single desk lamp.
   ========================================================== */
 
/* ---------- FONTS ---------- */
@import url('https://fonts.googleapis.com/css2?family=Special+Elite&family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700;1,900&family=JetBrains+Mono:wght@400;700&display=swap');
 
/* ---------- TOKENS ---------- */
:root {
  /* Paper & ink — the cream stays, it's the star */
  --paper:        #ece3cc;
  --paper-dark:   #d4c9ad;
  --paper-light:  #f4ecd4;
  --paper-warm:   #f7f1e0;
  --ink:          #1a1612;
  --ink-soft:     #3d332a;
  --ink-faded:    #6f655b;
 
  /* Page — deep chocolate / espresso leather */
  --page-bg:      #1d140e;                     /* main: dark roast */
  --page-bg-2:    #2b1e14;                     /* highlight: warm mid */
  --page-bg-3:    #120b07;                     /* shadow: near black coffee */
  --page-text:    rgba(236, 227, 204, 0.88);
  --page-muted:   rgba(236, 227, 204, 0.6);
  --page-rule:    rgba(236, 227, 204, 0.2);
 
  /* Accents */
  --red:          #8b1a1a;
  --red-bright:   #b8292b;
  --amber:        #c8922a;
  --amber-soft:   #a67a1a;
  --ok:           #3d5a2a;
 
  /* Legacy aliases so inherited pages still work */
  --bg:           var(--paper);
  --line:         rgba(26, 22, 18, 0.2);
  --line-strong:  rgba(26, 22, 18, 0.35);
  --accent:       var(--red);
  --accent-2:     var(--amber-soft);
  --muted:        var(--ink-faded);
  --card:         var(--paper-warm);
  --shadow:       0 18px 42px rgba(0, 0, 0, 0.45);
 
  --drop-shadow:  0 18px 42px rgba(0, 0, 0, 0.45), 0 6px 14px rgba(0, 0, 0, 0.3);
  --inner-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
 
  /* Fonts */
  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body:    'Special Elite', 'Courier New', monospace;
  --font-mono:    'JetBrains Mono', ui-monospace, Menlo, Monaco, Consolas, monospace;
  --font-serif:   'Playfair Display', 'Georgia', 'Times New Roman', serif;
}
 
/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
 
/* ==========================================================
   DEFENSIVE TEXT-COLOUR RULES
   These catch pages that set a cream/white background on a
   container but forget to set an explicit text colour. Without
   these rules, body text (cream on noir) would bleed into the
   cream panel and read as invisible.
   ========================================================== */
 
/* Any container that's one of our cream paper tones gets ink text */
.paper, .paper-field, .card, .hero-overlay, .hero-card,
.feature-card, .edition-panel, .constitution,
.today-hero, .member-box,
[class*="card"]:not(.cards):not(.card .stamp),
.polaroid {
  color: var(--ink);
}
 
/* Any container with a light-ish inline background colour also inherits ink.
   Matches background:white/#fff/#f**/ patterns commonly used in old code. */
[style*="background:#fff"], [style*="background: #fff"],
[style*="background:#f"], [style*="background: #f"],
[style*="background:#ece"], [style*="background: #ece"] {
  color: var(--ink);
}
 
/* Rescue rule: if a heading/paragraph sits inside a cream container
   without its own colour, make sure it's readable. */
.paper-field h1, .paper-field h2, .paper-field h3, .paper-field h4, .paper-field h5,
.paper-field p, .paper-field li, .paper-field td, .paper-field th,
.card h1, .card h2, .card h3, .card h4, .card p, .card li,
.feature-card h1, .feature-card h2, .feature-card h3, .feature-card h4,
.feature-card p, .feature-card li,
.edition-panel h1, .edition-panel h2, .edition-panel h3, .edition-panel p, .edition-panel li,
.constitution h1, .constitution h2, .constitution h3, .constitution p {
  color: var(--ink);
}
 
/* Muted text inside cream stays readable (slightly faded ink, not cream) */
.paper-field .muted, .card .muted, .feature-card .muted,
.paper-field .today-subtitle, .today-subtitle {
  color: var(--ink-faded);
}
 
/* Leather-sheen page background:
   1. soft amber lamp-glow from above
   2. warm wine-red spill at bottom
   3. broad radial highlight down the center (polished leather shine)
   4. deep espresso gradient base */
body {
  background-color: var(--page-bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -5%, rgba(200, 146, 42, 0.14), transparent 65%),
    radial-gradient(ellipse 70% 45% at 50% 115%, rgba(139, 26, 26, 0.10), transparent 75%),
    radial-gradient(ellipse 55% 70% at 50% 45%, rgba(80, 55, 35, 0.35), transparent 75%),
    linear-gradient(180deg, var(--page-bg-2) 0%, var(--page-bg) 45%, var(--page-bg-3) 100%);
  background-attachment: fixed, fixed, fixed, fixed;
  color: var(--page-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
 
/* Very fine grain — just a whisper, so the leather has pores not gravel */

/* Force dark page background over page-specific overrides */
html, body { background-color: var(--page-bg) !important; }
body { background-image: radial-gradient(ellipse 80% 50% at 50% -5%, rgba(200, 146, 42, 0.14), transparent 65%), radial-gradient(ellipse 70% 45% at 50% 115%, rgba(139, 26, 26, 0.10), transparent 75%), radial-gradient(ellipse 55% 70% at 50% 45%, rgba(80, 55, 35, 0.35), transparent 75%), linear-gradient(180deg, var(--page-bg-2) 0%, var(--page-bg) 45%, var(--page-bg-3) 100%) !important; }

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: 0.14;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='1.6' numOctaves='2'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.8 0'/></filter><rect width='100%25' height='100%25' filter='url(%23g)'/></svg>");
}
 
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red-bright); }
::selection { background: var(--red); color: var(--paper); }
 
/* ---------- CONTAINER ---------- */
.container {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  position: relative;
}
 
/* Magazine / today-shell pattern used by /magazine/*.html */
.today-shell {
  width: min(1120px, calc(100% - 28px));
  margin: 24px auto 0;
  padding: 48px 48px 56px;
  background: var(--paper);
  color: var(--ink);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.2),
    0 8px 18px rgba(0, 0, 0, 0.35),
    0 30px 60px -10px rgba(0, 0, 0, 0.55),
    0 60px 120px -20px rgba(0, 0, 0, 0.5);
  position: relative;
}
.today-shell::before {
  content: '';
  position: absolute;
  top: -8px; left: 0; right: 0;
  height: 10px;
  background: repeating-linear-gradient(90deg, var(--paper) 0 5px, transparent 5px 9px);
}
.today-shell::after {
  content: '';
  position: absolute;
  bottom: -8px; left: 0; right: 0;
  height: 10px;
  background: repeating-linear-gradient(90deg, var(--paper) 0 5px, transparent 5px 9px);
}
 
.today-hero {
  text-align: center;
  margin-bottom: 32px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(26, 22, 18, 0.25);
}
.today-kicker {
  font-family: var(--font-body);
  color: var(--red);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-size: 12px;
  margin: 0 0 10px;
}
.today-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
  color: var(--ink);
  margin: 0 0 8px;
}
.today-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  max-width: 58ch;
  margin: 12px auto 0;
  color: var(--ink-faded);
  font-size: 1.1rem;
  line-height: 1.55;
}
 
/* Feature cards used by subscribe.html and similar */
.feature-card {
  background: var(--paper-warm);
  color: var(--ink);
  border: 1px solid rgba(26, 22, 18, 0.2);
  box-shadow: 0 6px 14px -4px rgba(0, 0, 0, 0.18);
  padding: 28px 32px;
  margin-bottom: 26px;
}
.feature-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: start;
}
.feature-heading {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  color: var(--ink);
  margin: 0 0 14px;
}
.feature-copy {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 14px;
}
.feature-actions {
  display: flex;
  gap: 14px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.btn-main, .btn-subtle {
  display: inline-block;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid #000;
}
.btn-main {
  background: var(--ink);
  color: var(--paper);
}
.btn-main:hover { background: var(--red); color: var(--paper); }
.btn-subtle {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-subtle:hover { background: var(--ink); color: var(--paper); }
 
.edition-panel {
  background: var(--paper-light);
  border: 1px solid rgba(26, 22, 18, 0.2);
  padding: 22px;
  color: var(--ink);
}
.edition-panel h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  margin: 0 0 8px;
  color: var(--ink);
}
.edition-panel p {
  font-family: var(--font-serif);
  color: var(--ink-soft);
  margin: 0 0 6px;
}
 
.constitution {
  background: var(--paper-warm);
  color: var(--ink);
  border: 1px solid rgba(26, 22, 18, 0.2);
  padding: 28px;
  text-align: center;
  margin-top: 28px;
}
.constitution h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--ink);
  margin: 0 0 10px;
}
.constitution p {
  font-family: var(--font-serif);
  color: var(--ink-soft);
  margin: 0;
}
 
@media (max-width: 900px) {
  .today-shell { padding: 32px 22px 36px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { padding: 22px; }
}
 
/* ---------- THE GREAT SHEET OF PAPER ----------
   Soft warm glow inside (lamp pooling on page) + deep ambient
   shadow outside (paper resting on desk). */
.paper-field {
  background: var(--paper);
  color: var(--ink);
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
  padding: 56px 64px 60px;
  box-shadow:
    /* inner warm lamp glow, very subtle */
    inset 0 0 80px rgba(200, 146, 42, 0.08),
    inset 0 40px 60px -40px rgba(139, 26, 26, 0.05),
    /* close dark rim */
    0 0 0 1px rgba(0, 0, 0, 0.2),
    /* close drop */
    0 8px 18px rgba(0, 0, 0, 0.35),
    /* medium ambient */
    0 30px 60px -10px rgba(0, 0, 0, 0.55),
    /* large soft halo so the paper bleeds into the desk */
    0 60px 120px -20px rgba(0, 0, 0, 0.5);
  position: relative;
  background-image:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(200, 146, 42, 0.06), transparent 60%),
    linear-gradient(180deg, rgba(139, 26, 26, 0.015), transparent 22%),
    linear-gradient(0deg, rgba(61, 51, 42, 0.03), transparent 22%);
}
.paper-field::before {
  content: '';
  position: absolute;
  top: -8px; left: 0; right: 0;
  height: 10px;
  background: repeating-linear-gradient(90deg, var(--paper) 0 5px, transparent 5px 9px);
}
.paper-field::after {
  content: '';
  position: absolute;
  bottom: -8px; left: 0; right: 0;
  height: 10px;
  background: repeating-linear-gradient(90deg, var(--paper) 0 5px, transparent 5px 9px);
}
 
/* ---------- MASTHEAD ---------- */
.masthead {
  text-align: center;
  padding: 36px 0 14px;
  position: relative;
}
.masthead h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(42px, 7.5vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--paper);
  margin-bottom: 6px;
  text-shadow:
    2px 2px 0 rgba(139, 26, 26, 0.45),
    0 0 30px rgba(200, 146, 42, 0.08);
}
.masthead h1 a {
  color: inherit;
  display: inline-block;
  transition: transform 0.15s;
}
.masthead h1 a:hover {
  color: var(--paper);
  transform: translate(-1px, -1px);
}
 
.tagline-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 10px auto 0;
  max-width: 760px;
  padding: 0 20px;
}
.tagline-line {
  height: 1px;
  background: rgba(236, 227, 204, 0.4);
  flex: 1;
}
.tagline {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--red-bright);
  white-space: nowrap;
  font-size: 15px;
  letter-spacing: 0.08em;
}
 
.dateline {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--page-muted);
  text-align: center;
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(236, 227, 204, 0.2);
}
.dateline span { margin: 0 12px; }
 
/* ---------- TOP NAV ---------- */
.topnav {
  border-top: 1px solid rgba(236, 227, 204, 0.22);
  border-bottom: 1px solid rgba(236, 227, 204, 0.22);
  margin-top: 20px;
  background: rgba(0, 0, 0, 0.18);
}
.topnav .nav-inner {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}
.topnav a {
  padding: 14px 24px;
  position: relative;
  color: rgba(236, 227, 204, 0.72);
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  transition: color 0.15s;
}
.topnav a:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 1px;
  height: 16px;
  background: rgba(236, 227, 204, 0.28);
  transform: translateY(-50%);
}
.topnav a:hover { color: var(--paper); }
.topnav a.active { color: var(--red-bright); }
 
/* ---------- SECTIONS ---------- */
/* Inside .paper-field: ink on cream, tighter spacing */
.paper-field .section {
  padding: 32px 0;
  border-top: 1px solid rgba(26, 22, 18, 0.18);
}
.paper-field .section:first-of-type { border-top: none; padding-top: 0; }
 
/* Outside paper (rare): more breathing room */
.section { padding: 40px 0; }
 
.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
  margin: 0 0 28px;
}
.section-title::before,
.section-title::after {
  content: '';
  height: 1px;
  flex: 1;
  max-width: 280px;
  background: rgba(236, 227, 204, 0.35);
}
.section-title span {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 900;
  color: var(--paper);
}
.paper-field .section-title::before,
.paper-field .section-title::after { background: rgba(26, 22, 18, 0.28); }
.paper-field .section-title span { color: var(--ink); }
 
/* ---------- HERO — POLAROIDS ON THE LEATHER DESK ----------
   A dramatic pulp title dominates. Below it, 4 small polaroid
   prints scattered across the leather desk, slightly tilted,
   held down with red pushpins or strips of masking tape.
   Images are rotated from a pool of 22; tilts/tacks randomized
   stably per day.
*/
.hero-wrap { margin: 0 0 26px; }
 
/* Hero frame — seamless with the leather desk behind, no heavy border */
.hero {
  position: relative;
  padding: 44px 32px 32px;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
  text-align: center;
}
 
/* Pulp title block — large, dramatic, floating above the polaroids */
.hero-title-block {
  margin: 0 0 38px;
  padding: 0 16px;
  position: relative;
  z-index: 2;
}
 
.hero-kicker {
  font-family: var(--font-body);
  color: var(--red);
  font-size: 12px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
 
.hero-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(44px, 6.5vw, 78px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
  text-shadow:
    3px 3px 0 rgba(139, 26, 26, 0.4);
}
 
.hero-tagline {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.8vw, 20px);
  margin: 14px auto 0;
  max-width: 52ch;
  line-height: 1.4;
}
 
/* Corkboard / desk surface where polaroids scatter */
.hero-board {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 34px;
  flex-wrap: wrap;
  padding: 20px 10px 32px;
  position: relative;
  z-index: 1;
}
 
/* Each polaroid */
.polaroid {
  position: relative;
  background: #f6efdd;
  padding: 10px 10px 36px;      /* thicker bottom — real polaroid ratio */
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.15),
    0 12px 24px -6px rgba(0, 0, 0, 0.55),
    0 20px 40px -12px rgba(0, 0, 0, 0.4);
  width: 170px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: default;
}
.polaroid:hover {
  transform: rotate(0deg) scale(1.04) translateY(-4px) !important;
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.2),
    0 18px 32px -6px rgba(0, 0, 0, 0.65),
    0 28px 48px -12px rgba(0, 0, 0, 0.5);
  z-index: 10;
}
.polaroid-photo {
  width: 100%;
  height: 240px;
  background-color: #12203c;    /* matches navy in your vector illustrations */
  background-size: cover;
  background-position: center 25%;  /* slightly above center — frames faces well */
  background-repeat: no-repeat;
  filter: contrast(1.02) saturate(0.95);
}
 
/* Red pushpin variant */
.polaroid.tack::before {
  content: '';
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, #ff6b6b 0%, #c12828 45%, #7a1515 100%);
  box-shadow:
    0 2px 3px rgba(0, 0, 0, 0.4),
    inset -2px -2px 3px rgba(0, 0, 0, 0.3),
    inset 2px 2px 2px rgba(255, 255, 255, 0.25);
  z-index: 3;
}
.polaroid.tack::after {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.5), transparent 60%);
  z-index: 4;
  pointer-events: none;
}
 
/* Masking tape variant */
.polaroid.tape::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  width: 70px;
  height: 22px;
  background:
    linear-gradient(180deg,
      rgba(245, 230, 180, 0.75) 0%,
      rgba(228, 208, 150, 0.82) 50%,
      rgba(245, 230, 180, 0.75) 100%);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.2),
    inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  /* torn edges using clip-path */
  clip-path: polygon(
    0% 30%, 6% 0%, 14% 40%, 22% 10%, 30% 35%, 40% 0%, 50% 30%,
    60% 5%, 70% 35%, 80% 10%, 88% 40%, 94% 0%, 100% 30%,
    100% 70%, 94% 100%, 88% 60%, 80% 90%, 70% 65%, 60% 95%,
    50% 70%, 40% 100%, 30% 65%, 22% 90%, 14% 60%, 6% 100%, 0% 70%);
  z-index: 3;
}
 
/* Tilt classes applied randomly via JS */
.polaroid.tilt-1 { transform: rotate(-5deg); }
.polaroid.tilt-2 { transform: rotate(-2.5deg); }
.polaroid.tilt-3 { transform: rotate(1.5deg); }
.polaroid.tilt-4 { transform: rotate(3.5deg); }
.polaroid.tilt-5 { transform: rotate(-1deg); }
.polaroid.tilt-6 { transform: rotate(2deg); }
.polaroid.tilt-7 { transform: rotate(-3.5deg); }
.polaroid.tilt-8 { transform: rotate(4.5deg); }
 
/* Case card below the board */
.hero-card {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  padding: 26px 32px 30px;
  text-align: center;
  border-top: 3px double rgba(26, 22, 18, 0.45);
  border-bottom: 3px double rgba(26, 22, 18, 0.45);
  margin-top: 26px;
}
.hero-card .case-no {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 10px;
}
.hero-card .case-desc {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 58ch;
  margin: 0 auto 18px;
  line-height: 1.55;
}
.hero-card .btn { margin-top: 4px; }
 
/* LEGACY .hero-overlay fallback — kept for backward compat */
.hero-overlay {
  position: absolute;
  inset: auto 24px 28px 24px;
  max-width: 680px;
  margin: auto;
  background: var(--paper);
  border: 1px solid rgba(26, 22, 18, 0.3);
  padding: 24px 30px 28px;
  text-align: center;
  left: 50%;
  transform: translateX(-50%);
  color: var(--ink);
  z-index: 2;
}
.hero-overlay h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  margin: 0;
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  color: var(--ink);
}
 
/* Responsive */
@media (max-width: 820px) {
  .hero-board { gap: 24px; }
  .polaroid { width: 140px; }
  .polaroid-photo { height: 200px; }
}
@media (max-width: 520px) {
  .hero { padding: 32px 12px 24px; }
  .hero-title { font-size: clamp(34px, 9vw, 52px); }
  .hero-board { gap: 18px 22px; }
  .polaroid { width: 130px; padding: 8px 8px 30px; }
  .polaroid-photo { height: 180px; }
  .hero-card { padding: 20px 16px 24px; }
}
 
.case-kicker {
  font-family: var(--font-body);
  margin: 0 0 6px;
  color: var(--red);
  letter-spacing: 0.25em;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: normal;
}
.case-sub {
  margin: 0 0 6px;
  color: var(--ink-faded);
  font-size: 1rem;
}
.hero h2,
.hero-overlay h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.case-no {
  margin: 10px 0 12px;
  color: var(--ink-faded);
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.case-desc {
  margin: 6px auto 0;
  max-width: 46ch;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink-soft);
  line-height: 1.55;
}
 
/* ---------- BUTTONS ---------- */
.btn,
.btn-primary {
  display: inline-block;
  margin-top: 16px;
  padding: 13px 28px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid #000;
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(0,0,0,0.25), var(--inner-shadow);
  transition: all 0.18s;
}
.btn:hover,
.btn-primary:hover {
  background: var(--red);
  color: var(--paper);
  border-color: #000;
  transform: translate(-1px, -1px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.35), var(--inner-shadow);
}
.btn:active,
.btn-primary:active {
  transform: translate(1px, 1px);
  box-shadow: 0 3px 6px rgba(0,0,0,0.2), var(--inner-shadow);
}
 
.btn-ghost {
  display: inline-block;
  padding: 10px 20px;
  background: transparent;
  color: var(--paper);
  border: 1px solid var(--paper);
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
}
.btn-ghost:hover { background: var(--paper); color: var(--ink); }
 
/* ---------- CARDS ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.card {
  background: var(--paper-warm);
  color: var(--ink);
  border: 1px solid rgba(26, 22, 18, 0.22);
  box-shadow: 0 6px 14px -4px rgba(0,0,0,0.18);
  padding: 26px 22px;
  text-align: center;
  position: relative;
  transition: transform 0.18s, box-shadow 0.18s;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -4px rgba(0,0,0,0.28);
}
.card h3 {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  margin: 0 0 10px;
  font-size: 1.75rem;
  color: var(--ink);
}
.card p {
  font-family: var(--font-serif);
  font-style: italic;
  margin: 0 0 16px;
  color: var(--ink-faded);
  font-size: 1rem;
  line-height: 1.55;
}
.card .play-link {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.card .play-link:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
 
.card.locked::after {
  content: '🔒 SUBSCRIBERS';
  position: absolute;
  top: 12px; right: 12px;
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--red);
  border: 1.5px solid var(--red);
  padding: 3px 8px;
  text-transform: uppercase;
  background: var(--paper);
  transform: rotate(-3deg);
}
 
/* ---------- ARCHIVE STRIP ---------- */
.archive-list {
  text-align: center;
  color: var(--ink-soft);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.8;
}
.archive-list a { color: var(--ink); border-bottom: 1px dotted rgba(26,22,18,0.3); }
.archive-list a:hover { color: var(--red); border-bottom-color: var(--red); }
 
/* ---------- TWO-COLUMN ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.panel {
  background: transparent;
  border-top: 1px solid rgba(26, 22, 18, 0.28);
  padding-top: 22px;
  text-align: center;
}
.panel h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  margin: 0 0 14px;
  font-size: 1.85rem;
  color: var(--ink);
}
.panel ul { margin: 0; padding: 0; list-style: none; }
.panel li {
  padding: 7px 0;
  font-family: var(--font-serif);
  font-size: 1.08rem;
}
.panel li a { color: var(--ink-soft); }
.panel li a:hover { color: var(--red); }
 
/* ---------- MEMBER BOX ---------- */
.member-box {
  text-align: center;
  padding: 40px 24px 36px;
  border-top: 3px double var(--ink);
  border-bottom: 3px double var(--ink);
  position: relative;
  background: linear-gradient(rgba(139,26,26,0.04), rgba(139,26,26,0.08));
  margin-top: 10px;
}
.member-box h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 12px;
  color: var(--ink);
}
.member-box p {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 auto 20px;
  font-size: 1.1rem;
  line-height: 1.55;
}
 
/* ---------- LOGIN BOX PATCH ----------
   Catch the ugly inline-styled login box on the old homepage
   so it looks tolerable while we're deciding how to re-style it. */
body > div[style*="border:1px solid #ccc"],
header > div[style*="border:1px solid #ccc"],
.masthead > div[style*="border:1px solid #ccc"] {
  background: rgba(0, 0, 0, 0.25) !important;
  border: 1px solid rgba(236, 227, 204, 0.2) !important;
  color: var(--page-muted) !important;
  padding: 12px 16px !important;
  max-width: 460px;
  margin: 14px auto !important;
  font-family: var(--font-body) !important;
  font-size: 12px;
  letter-spacing: 0.1em;
}
body > div[style*="border:1px solid #ccc"] h3,
header > div[style*="border:1px solid #ccc"] h3 {
  color: var(--paper) !important;
  font-family: var(--font-display) !important;
  font-style: italic;
  font-size: 18px !important;
  margin-bottom: 8px !important;
  font-weight: 700 !important;
}
 
/* ---------- FORMS ---------- */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
  font-family: var(--font-body);
  font-size: 14px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid rgba(26, 22, 18, 0.3);
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
  border-color: var(--red);
  background: var(--paper-light);
}
 
button { font-family: var(--font-body); cursor: pointer; }
 
/* ---------- STAMPS ---------- */
.stamp {
  display: inline-block;
  font-family: var(--font-body);
  color: var(--red);
  border: 2px solid var(--red);
  padding: 3px 10px;
  transform: rotate(-4deg);
  font-weight: bold;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 11px;
  opacity: 0.9;
}
.stamp.amber { color: var(--amber); border-color: var(--amber); }
.stamp.solved { color: var(--ok); border-color: var(--ok); transform: rotate(6deg); }
 
/* ---------- FOOTER ---------- */
.site-footer {
  margin-top: 60px;
  padding: 28px 0 36px;
  border-top: 1px solid rgba(236, 227, 204, 0.18);
  background: transparent;
  position: relative;
  z-index: 10;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--page-muted);
}
.footer-left { color: var(--page-muted); }
.crosslinks, .footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.crosslinks a, .footer-links a {
  color: var(--page-muted);
  padding: 2px 0;
  border-bottom: 1px solid transparent;
}
.crosslinks a:hover, .footer-links a:hover {
  color: var(--red-bright);
  border-bottom-color: var(--red-bright);
}
 
/* ---------- UTILITIES ---------- */
.mono { font-family: var(--font-mono); }
.serif { font-family: var(--font-serif); }
.muted { color: var(--ink-faded); }
.tiny { font-size: 12px; }
 
hr {
  border: none;
  border-top: 1px solid rgba(236, 227, 204, 0.22);
  margin: 28px 0;
}
.paper-field hr { border-top-color: rgba(26, 22, 18, 0.22); }
 
/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 28px; }
  .hero { min-height: 360px; }
  .hero-overlay {
    inset: auto 16px 16px 16px;
    width: calc(100% - 32px);
    transform: none;
    left: 16px;
    padding: 22px 20px;
  }
  .paper-field { padding: 36px 22px 40px; }
}
 
@media (max-width: 560px) {
  .masthead { padding-top: 22px; }
  .topnav a { padding: 12px 14px; font-size: 11px; letter-spacing: 0.18em; }
  .hero { min-height: 300px; }
  .hero-overlay h2 { font-size: 1.7rem; }
  .case-desc { font-size: 0.98rem; }
  .card h3, .panel h3 { font-size: 1.5rem; }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; gap: 10px; }
}
