/* ============================================================
   Bethesda Fallout Cat Game Announcement · theme stylesheet
   Warm paper, rust ink and one stamp. Class names are this site's own.
   ============================================================ */

:root {
  --bg: #f7f1e8;
  --card: #fffaf2;
  --ink: #2b2118;
  --muted: #6b5b4b;
  --primary: #c2562f;
  --accent: #e0a03a;
  --primary-dark: #a2441f;
  --line: #e4d6c2;
  --wash: #f1e6d4;
  --radius: 12px;
  --shadow-1: 0 1px 2px rgba(43, 33, 24, 0.06);
  --shadow-2: 0 8px 24px rgba(43, 33, 24, 0.08);
  --font-title: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background-color: var(--bg);
  background-image: radial-gradient(rgba(43, 33, 24, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
}
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--primary-dark); text-underline-offset: 3px; }
a:hover { color: #7f3216; }
h1, h2, h3 { margin: 0; font-family: var(--font-title); font-weight: 700; line-height: 1.2; color: var(--ink); }
h1 { font-size: 36px; }
h2 { font-size: 28px; }
h3 { font-size: 22px; }
p, ul, ol { margin: 0 0 16px; }
q::before { content: "\201C"; }
q::after { content: "\201D"; }
q { quotes: "“" "”"; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.jump { position: absolute; left: 16px; top: -64px; z-index: 20; padding: 12px 16px; border-radius: var(--radius); background: var(--ink); color: var(--card); font-weight: 600; }
.jump:focus { top: 16px; color: var(--card); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section { padding-top: 48px; padding-bottom: 48px; scroll-margin-top: 96px; }
.section-head { max-width: 70ch; margin-bottom: 24px; }
.kicker { margin: 0 0 8px; color: var(--primary-dark); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.footnote { max-width: 70ch; margin: 24px 0 0; color: var(--muted); font-size: 14px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border: 1px solid transparent; border-radius: var(--radius); font-family: var(--font-body); font-size: 16px; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease; }
.btn-small { min-height: 44px; padding: 0 16px; font-size: 14px; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--card); color: var(--ink); }

/* ---------- masthead ---------- */
.masthead { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line); background-color: var(--bg); background-image: radial-gradient(rgba(43, 33, 24, 0.05) 1px, transparent 1px); background-size: 24px 24px; }
.masthead-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.mark { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.mark:hover { color: var(--ink); }
.mark-icon { flex: none; width: 48px; height: 48px; }
.mark-name { display: block; font-family: var(--font-title); font-size: 18px; font-weight: 700; line-height: 1.2; }
.mark-tag { display: block; color: var(--muted); font-size: 12px; }
.menu { display: flex; gap: 24px; }
.menu a { padding-bottom: 4px; border-bottom: 2px dotted var(--primary); color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; }
.menu a:hover { color: var(--primary-dark); }

/* ---------- hero: the answer on the left, the warm-up game on the right ---------- */
.hero { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: center; padding-top: 48px; padding-bottom: 48px; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; color: var(--muted); font-size: 14px; font-weight: 600; }
.eyebrow-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.lead { margin: 16px 0 24px; font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* the game player: cover, then a loading screen, then the game, all in the same box */
.player-frame { position: relative; aspect-ratio: 16 / 10; max-height: 640px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #f3dfbd; box-shadow: var(--shadow-2); }
.player-frame:fullscreen { aspect-ratio: auto; max-height: none; height: 100%; border: 0; border-radius: 0; box-shadow: none; }
.player-cover { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; }
.player-art { position: relative; flex: 1 1 auto; min-height: 0; margin: 0; }
.player-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.player-img-narrow { display: none; }
.player-panel { flex: none; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 24px; padding: 24px; border-top: 1px solid var(--line); background: var(--card); }
.player-kicker { margin: 0 0 4px; color: var(--primary-dark); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.player-name { margin: 0; font-family: var(--font-title); font-size: 22px; font-weight: 700; line-height: 1.2; }
.player-sub { margin: 4px 0 16px; color: var(--muted); font-size: 14px; }
.player-loading { position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; gap: 16px; padding: 24px; background: #f3dfbd; text-align: center; }
.loader-cat { width: 96px; height: 96px; }
.loader-tail { transform-box: fill-box; transform-origin: 0% 100%; animation: tail-sway 0.9s ease-in-out infinite alternate; }
.loader-paws { display: flex; gap: 8px; }
.loader-paws i { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); opacity: 0.25; animation: paw-blink 0.9s ease-in-out infinite; }
.loader-paws i:nth-child(2) { animation-delay: 0.15s; }
.loader-paws i:nth-child(3) { animation-delay: 0.3s; }
.loader-text { margin: 0; font-size: 18px; font-weight: 600; }
@keyframes tail-sway { from { transform: rotate(-10deg); } to { transform: rotate(16deg); } }
@keyframes paw-blink { 0%, 100% { opacity: 0.25; } 40% { opacity: 1; } }

.player-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font-family: var(--font-body); font-size: 14px; font-weight: 600; line-height: 1; cursor: pointer; box-shadow: var(--shadow-1); transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease; }
.chip:hover { border-color: var(--primary); color: var(--primary-dark); }
.chip svg { flex: none; width: 16px; height: 16px; }
.chip[data-gf-liked], .chip[data-gf-liked]:hover { border-color: var(--primary); background: var(--primary); color: #fff; }
.chip-n { min-width: 8px; color: var(--muted); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.chip-msg { color: var(--muted); font-size: 14px; }
.chip-msg:empty { display: none; }
.player-note { margin: 12px 0 0; color: var(--muted); font-size: 14px; }

/* ---------- the fact sheet, with the site's one stamp ---------- */
.ledger { position: relative; padding: 32px 176px 32px 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-1); }
.stamp { position: absolute; top: -12px; right: 24px; display: grid; place-content: center; gap: 4px; width: 128px; height: 128px; margin: 0; border: 3px solid var(--primary); border-radius: 50%; background: var(--card); color: var(--primary-dark); text-align: center; transform: rotate(-12deg); box-shadow: var(--shadow-1); }
.stamp::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--primary); border-radius: 50%; }
.stamp span { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.stamp b { font-family: var(--font-title); font-size: 16px; }
.ledger-list { margin: 0; }
.ledger-list > div { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 12px 0; border-top: 1px dashed var(--line); }
.ledger-list > div:first-child { padding-top: 0; border-top: 0; }
.ledger-list > div:last-child { padding-bottom: 0; }
.ledger-list dt { color: var(--muted); font-weight: 600; }
.ledger-list dd { margin: 0; }
.state { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; vertical-align: 2px; white-space: nowrap; }
.state-yes { background: var(--primary); color: #fff; }
.state-no { border: 1px dashed var(--muted); color: var(--muted); }

/* ---------- the game itself: text beside the announcement post ---------- */
.split { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: start; }
.prose { max-width: 70ch; }
.prose h2 { margin-bottom: 16px; }
.ticks { margin: 0; padding: 0; list-style: none; }
.ticks li { position: relative; padding: 8px 0 8px 32px; border-top: 1px dashed var(--line); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 16px; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); }
.note-card { padding: 24px; border: 1px solid var(--line); border-left: 4px solid var(--primary); border-radius: var(--radius); background: var(--wash); }
.note-card blockquote { margin: 0; }
.note-card blockquote p { margin: 0; font-family: var(--font-title); font-size: 18px; font-weight: 700; font-style: italic; line-height: 1.5; }
.note-card blockquote p + p { margin-top: 12px; }
.note-meta { margin: 16px 0 0; color: var(--muted); font-size: 14px; }

/* ---------- timeline ---------- */
.band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--wash); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 32px 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding-top: 32px; border-top: 2px dashed var(--muted); counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; top: -20px; left: 0; width: 40px; height: 40px; border: 2px solid var(--primary); border-radius: 50%; background: var(--card); color: var(--primary-dark); font-size: 16px; font-weight: 600; line-height: 36px; text-align: center; }
.steps b { display: block; margin-bottom: 8px; font-size: 18px; }
.steps p { margin: 0; }

/* ---------- the two makers ---------- */
.makers { display: grid; grid-template-columns: 7fr 5fr; gap: 24px; }
.maker { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-1); }
.maker h3 { margin-bottom: 16px; }
.shelf-label { margin-bottom: 8px; color: var(--muted); font-size: 14px; }
.shelf { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.shelf li { padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); font-size: 14px; }
.maker-dpa { display: flex; flex-direction: column; justify-content: flex-start; }
.big-year { margin: 0; color: var(--primary); font-family: var(--font-title); font-size: 48px; font-weight: 700; line-height: 1.1; }
.maker .footnote { margin-top: 16px; }

/* ---------- what is still unknown ---------- */
.open { max-width: 70ch; margin: 24px 0 0; padding: 0; list-style: none; counter-reset: open; }
.open li { position: relative; padding: 16px 0 16px 56px; border-top: 1px dashed var(--line); counter-increment: open; }
.open li::before { content: counter(open, decimal-leading-zero); position: absolute; left: 0; top: 16px; color: var(--muted); font-family: var(--font-title); font-size: 22px; font-weight: 700; line-height: 1.4; }

/* ---------- FAQ ---------- */
.faq { max-width: 70ch; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { position: relative; padding: 16px 48px 16px 0; list-style: none; cursor: pointer; font-size: 18px; font-weight: 600; line-height: 1.4; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; top: 12px; right: 0; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; color: var(--primary-dark); font-size: 22px; font-weight: 400; line-height: 30px; text-align: center; }
.faq-item[open] summary::after { content: "−"; }
.faq-item summary:hover::after { border-color: var(--primary); }
.faq-item p { margin: 0; padding: 0 48px 16px 0; }

/* ---------- comments ---------- */
.talk { padding-top: 48px; padding-bottom: 48px; border-top: 1px solid var(--line); scroll-margin-top: 96px; }
.talk-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; }
.talk h2 { margin-bottom: 16px; }
.talk-form { margin-top: 24px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-1); }
.field { display: block; margin-bottom: 16px; }
.field span { display: block; margin-bottom: 8px; font-weight: 600; }
.field i { color: var(--muted); font-size: 14px; font-weight: 400; }
.field input, .field textarea { width: 100%; padding: 12px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.6; }
.field textarea { min-height: 120px; resize: vertical; }
.talk-replying { margin: 0 0 16px; padding: 8px 12px; border-radius: 8px; background: var(--wash); color: var(--muted); font-size: 14px; font-weight: 600; }
.talk-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.talk-msg { margin: 16px 0 0; color: var(--muted); font-size: 14px; }
.talk-msg:empty { display: none; }
.talk-list { margin: 0; padding: 0; list-style: none; }
.talk-list[data-gf-empty]::before { content: "No comments yet. Be the first to say what you think."; display: block; padding: 24px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.talk-list[data-gf-off]::before { content: "Comments are closed on this page."; display: block; padding: 24px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.talk-item { padding: 16px 0; border-top: 1px dashed var(--line); }
.talk-item header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.talk-item header b { font-size: 16px; }
.talk-item time { color: var(--muted); font-size: 14px; }
.talk-to { color: var(--muted); font-size: 14px; }
.talk-owner { padding: 2px 8px; border-radius: 999px; background: var(--accent); color: var(--ink); font-size: 12px; font-weight: 600; }
.talk-item p { margin: 0 0 8px; white-space: pre-wrap; }
.talk-reply { padding: 0; border: 0; background: none; color: var(--primary-dark); font-family: var(--font-body); font-size: 14px; font-weight: 600; text-decoration: underline dotted; cursor: pointer; }
.talk-replies { margin: 8px 0 0; padding: 0 0 0 24px; list-style: none; border-left: 2px solid var(--line); }
.talk-replies .talk-item { border-top: 0; }
.talk-item[data-gf-owner] { margin: 0 -16px; padding: 16px; border-radius: 8px; background: var(--wash); }

/* ---------- footer ---------- */
.footer { margin-top: 48px; padding: 48px 0 32px; background: #2b2118; color: #d9cdbf; }
.footer a { color: #fffaf2; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 5fr 3fr 4fr; gap: 32px; }
.footer-name { margin: 0 0 16px; color: #fffaf2; font-family: var(--font-title); font-size: 22px; font-weight: 700; line-height: 1.2; }
.footer-links { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.footer-fine { margin: 0 0 16px; color: #b9ab9a; font-size: 14px; }
.footer-fine:last-child { margin-bottom: 0; }

/* ---------- inner pages: about, legal ---------- */
.article { max-width: 70ch; padding-top: 48px; padding-bottom: 64px; }
.article h1 { margin-bottom: 16px; }
.article-date { margin: 0 0 32px; color: var(--muted); font-size: 14px; }
.article h2 { margin: 32px 0 16px; font-size: 22px; }
.article ul, .article ol { padding-left: 24px; }
.article li { margin-bottom: 8px; }

/* ---------- the page the game runs in (shown inside the home page player) ---------- */
body.kind-tool { height: 100%; margin: 0; overflow: hidden; background: #f3dfbd; background-image: none; }
.game-tool { height: 100%; }

/* ---------- phones first, then narrow screens ---------- */
@media (max-width: 900px) {
  .hero, .split, .talk-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding-top: 32px; }
  .makers { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .steps li { padding: 0 0 0 64px; border-top: 0; }
  .steps li::before { top: 0; }
}
@media (max-width: 800px) {
  .menu { display: none; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  h1 { font-size: 28px; }
  h2 { font-size: 22px; }
  h3 { font-size: 18px; }
  .lead { font-size: 16px; }
  .masthead-row { min-height: 64px; padding-top: 12px; padding-bottom: 12px; }
  .mark-icon { width: 40px; height: 40px; }
  .mark-name { font-size: 16px; }
  .mark-tag { display: none; }
  .section, .talk { padding-top: 32px; padding-bottom: 32px; }
  .hero-actions .btn, .talk-actions .btn { width: 100%; }
  .hero-actions .btn-ghost { display: none; }
  .player-frame { aspect-ratio: 4 / 5; }
  .player-img-wide { display: none; }
  .player-img-narrow { display: block; }
  .player-panel { grid-template-columns: 1fr; padding: 16px; }
  .player-bar { gap: 8px 12px; }
  .ledger { padding: 24px 16px; }
  .stamp { top: -16px; right: 16px; width: 96px; height: 96px; }
  .stamp b { font-size: 14px; }
  .ledger-list > div { grid-template-columns: 1fr; gap: 4px; }
  .maker { padding: 24px 16px; }
  .faq-item summary::after, .faq-item p { padding-right: 0; }
  .faq-item p { padding: 0 0 16px; }
  .faq-item summary { padding-right: 48px; }
  .footer-grid { grid-template-columns: 1fr; }
  .talk-form { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .loader-tail, .loader-paws i { animation: none; }
  .loader-paws i { opacity: 1; }
}
