/* ─────────────────────────────────────────────────────────
   LootHub Puzzles — base theme tokens + puzzle-page classes
   SCOPED: nothing in this file applies to global html/body/* —
   styles must live INSIDE a .puzzles-shell or .puzzle wrapper so
   the LootHub purple/gold home and CardInvestor are not affected.
   ───────────────────────────────────────────────────────── */

:root {
  --paper:        #f4ead5;
  --paper-deep:   #ebdfc1;
  --paper-edge:   #ddcfa9;
  --ink:          #2a241b;
  --ink-soft:     #4a4233;
  --ink-mute:     #7a6f5b;
  --amber:        #b8761c;
  --amber-deep:   #8c560f;
  --amber-soft:   #e9c789;
  --olive:        #6b6f38;
  --olive-soft:   #c2c290;
  --burgundy:     #8a3b3b;
  --cream:        #faf4e3;
  --shadow:       0 1px 0 rgba(42, 36, 27, 0.06), 0 2px 8px rgba(42, 36, 27, 0.08);
  --serif:        "Iowan Old Style", "Palatino Linotype", Palatino, "Hoefler Text", Georgia, serif;
  --sans:         -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* All puzzle-page styling lives inside .puzzles-shell or .puzzle wrappers.
   Both are containers used by the puzzle Razor pages. */

.puzzles-shell, .puzzle {
  box-sizing: border-box;
  font-family: var(--serif);
  color: var(--ink);
}
.puzzles-shell *, .puzzle * { box-sizing: border-box; }

.puzzles-shell a, .puzzle a {
  color: var(--amber-deep);
  text-decoration: none;
  border-bottom: 1px solid rgba(184, 118, 28, 0.3);
  transition: border-color 120ms ease, color 120ms ease;
}
.puzzles-shell a:hover, .puzzle a:hover {
  color: var(--burgundy);
  border-bottom-color: var(--burgundy);
}

/* ── puzzle page wrapper (Crossword, Word, Dialectic, About, Connect, etc.) ── */

.puzzle {
  background: var(--cream);
  border: 1px solid var(--paper-edge);
  border-radius: 6px;
  padding: 1.75rem 1.5rem 2rem;
  margin: 1rem auto 2rem;
  max-width: 720px;
  font-size: 18px;
  line-height: 1.6;
}
@media (min-width: 600px) {
  .puzzle { padding: 2.25rem 2.4rem 2.5rem; }
}

.puzzle-head {
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--paper-edge);
}
.puzzle-eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--ink-mute);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}
.puzzle h1, .puzzle h3 {
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.puzzle h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  margin: 1.5rem 0 0.6rem;
  font-family: var(--sans);
  font-weight: 600;
}

/* ── Vocabula / Word ── */

.vocab-word {
  font-size: clamp(2.2rem, 6vw, 3rem);
  margin: 0 0 0.3rem;
  color: var(--amber-deep);
  letter-spacing: -0.01em;
}
.vocab-pron {
  font-family: var(--sans);
  color: var(--ink-mute);
  font-size: 0.95rem;
  margin: 0;
}
.vocab-definition p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0;
}
.vocab-etymology p {
  font-size: 0.98rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.65;
}
.question-text {
  font-size: 1.08rem;
  line-height: 1.55;
  margin: 0 0 1rem;
}

/* ── Dialectic ── */

.dialectic-topic {
  font-size: clamp(1.5rem, 4vw, 1.9rem);
  margin: 0 0 0.4rem;
}
.dialectic-tradition {
  font-family: var(--sans);
  font-size: 0.84rem;
  color: var(--ink-mute);
  letter-spacing: 0.06em;
  margin: 0;
}
.dialectic-claim blockquote {
  margin: 0;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--amber);
  background: rgba(184, 118, 28, 0.05);
  border-radius: 0 4px 4px 0;
  font-style: italic;
}
.dialectic-claim blockquote p { margin: 0 0 0.4rem; font-size: 1.08rem; }
.dialectic-claim blockquote footer {
  font-size: 0.88rem;
  color: var(--ink-mute);
  font-style: normal;
}
.premise-list {
  margin: 0;
  padding-left: 1.5rem;
}
.premise-item {
  margin-bottom: 0.6rem;
  line-height: 1.55;
}
.counter-text {
  padding: 1rem 1.2rem;
  background: rgba(138, 59, 59, 0.06);
  border-left: 3px solid var(--burgundy);
  border-radius: 0 4px 4px 0;
  margin: 0;
  line-height: 1.6;
}

/* ── choices (used by Word + Dialectic) ── */

.choices {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.6rem;
}
.choice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
  text-align: left;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--paper-edge);
  border-radius: 4px;
  padding: 0.85rem 1rem;
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.5;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, transform 80ms ease;
}
.choice:hover:not(:disabled) {
  border-color: var(--amber-soft);
  background: var(--cream);
}
.choice:active:not(:disabled) { transform: translateY(1px); }
.choice:disabled { cursor: default; }

.choice-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 1.6rem;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--paper-deep);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 0.05rem;
}
.choice-text { flex: 1; }

.choice-correct {
  background: rgba(107, 111, 56, 0.12);
  border-color: var(--olive);
}
.choice-correct .choice-letter {
  background: var(--olive);
  color: var(--cream);
}
.choice-chosen-wrong {
  background: rgba(138, 59, 59, 0.06);
  border-color: rgba(138, 59, 59, 0.4);
}
.choice-chosen-wrong .choice-letter {
  background: var(--burgundy);
  color: var(--cream);
}
.choice-dim { opacity: 0.55; }

/* ── reveal block (used by Word + Dialectic) ── */

.vocab-reveal, .dialectic-reveal {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--paper-edge);
}
.reveal-verdict {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.6rem;
}
.reveal-verdict-good { color: var(--olive); }
.reveal-verdict-soft { color: var(--amber-deep); }
.reveal-explanation {
  margin: 0 0 1.25rem;
  line-height: 1.6;
}
.primary-quote {
  margin: 1.25rem 0 0;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--olive);
  background: rgba(107, 111, 56, 0.05);
  border-radius: 0 4px 4px 0;
  font-style: italic;
}
.primary-quote p { margin: 0 0 0.4rem; }
.primary-quote footer {
  font-size: 0.86rem;
  color: var(--ink-mute);
  font-style: normal;
}
.reveal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 1.5rem;
  font-family: var(--sans);
  font-size: 0.96rem;
}
.action-link {
  color: var(--amber-deep);
  border-bottom: 0;
}
.action-link:hover {
  color: var(--burgundy);
  text-decoration: underline;
}
.action-link-quiet { color: var(--ink-mute); }
.action-link-quiet:hover { color: var(--ink-soft); }

/* ── About page (also used as the puzzle "shell" for static content) ── */

.about {
  background: var(--cream);
  border: 1px solid var(--paper-edge);
  border-radius: 6px;
  padding: 2rem 1.6rem 2.2rem;
  margin: 1rem auto 2rem;
  max-width: 720px;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
}
@media (min-width: 600px) {
  .about { padding: 2.5rem 2.4rem 2.6rem; }
}
.about h1 {
  margin: 0.3rem 0 1rem;
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-weight: 600;
  color: var(--ink);
}
.about h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 1.5rem 0 0.6rem;
  color: var(--ink);
}
.about section { margin-bottom: 1.5rem; }
.about ul { padding-left: 1.1rem; }
.about li { margin-bottom: 0.55rem; line-height: 1.55; }

.coming-soon {
  background: var(--cream);
  border: 1px solid var(--paper-edge);
  border-radius: 6px;
  padding: 2rem 1.6rem 2.2rem;
  margin: 1rem auto 2rem;
  max-width: 720px;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
}
.coming-soon h1 {
  margin: 0.3rem 0 1rem;
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-weight: 600;
}
.coming-lede {
  font-size: 1.1rem;
  color: var(--ink-soft);
  line-height: 1.6;
}
