/* Shared styles for the marketing site: home.html, publishers.html, play.html.
   Header + footer come from chrome.css/chrome.js; this file follows the lobby look. */
:root {
  /* Same tokens as the lobby and game pages, so the whole site reads as one */
  --ink: #1a1a2e;
  --paper: #F2F2F0;
  --card: #ffffff;
  --accent: #ab2b09;
  --accent-ink: #ffffff;
  --accent-text: #ab2b09;
  --correct: #4a7c59;
  --present: #c4962a;
  --absent: #6b6b6b;
  --border: #d4cfc5;
  --muted: #666;
  --surface: #eae8e4;
  --radius: 4px;
  --shadow: 3px 3px 0 rgba(0,0,0,0.06);
  --shadow-strong: 4px 4px 0 rgba(0,0,0,0.14);
  --max: 1080px;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
[data-theme="dark"] {
  --ink: #e2e0da;
  --paper: #1a1924;
  --card: #221f30;
  --accent: #ab2b09;
  --accent-text: #e05a38;
  --correct: #5ba86a;
  --present: #b8892a;
  --absent: #55546a;
  --border: #2e2c42;
  --muted: #a8a8b2;
  --surface: #221f30;
  --shadow: 3px 3px 0 rgba(0,0,0,0.25);
  --shadow-strong: 4px 4px 0 rgba(0,0,0,0.35);
}
[data-theme="dark"] section.alt { background: #1f1d2b; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--paper); color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--accent-text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.skip-link { position: absolute; top: -100%; left: 0; background: var(--accent); color: #fff; padding: 8px 16px; z-index: 999; text-decoration: none; }
.skip-link:focus { top: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 22px; border-radius: 3px; font-weight: 600; font-size: 0.95rem; letter-spacing: 0.02em; text-decoration: none; border: 2px solid var(--accent); cursor: pointer; font-family: inherit; transition: opacity .15s, background .15s, color .15s; }
.btn:hover { opacity: 0.88; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--paper); opacity: 1; }
.btn-sm { padding: 8px 18px; font-size: 0.82rem; }
.btn[disabled] { opacity: .6; cursor: default; }

/* ── Sections ── */
section { padding: 72px 0; }
section.alt { background: var(--surface); }
.eyebrow { font-size: 0.75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 10px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; letter-spacing: -0.3px; }
h1 { font-size: clamp(2.3rem, 6vw, 3.8rem); font-weight: 900; }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: 14px; }
h3 { font-size: 1.2rem; margin-bottom: 8px; }
.lead { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--muted); max-width: 620px; }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head p { color: var(--muted); }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ── Hero ── */
.hero { padding: 64px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 span { color: var(--accent-text); }
.hero .lead { margin: 18px 0 28px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 14px; font-size: .85rem; color: var(--muted); }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; gap: 36px; } }

/* Decorative tile board */
.tiles-demo { display: grid; gap: 6px; justify-content: center; }
.tiles-row { display: flex; gap: 6px; justify-content: center; }
.t { width: clamp(42px, 9vw, 58px); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-family: Georgia, serif; font-weight: 700; font-size: clamp(1.1rem, 3vw, 1.5rem); text-transform: uppercase; border: 2px solid var(--border); background: var(--card); color: var(--ink); border-radius: 3px; }
.t.c { background: var(--correct); border-color: var(--correct); color: #fff; }
.t.p { background: var(--present); border-color: var(--present); color: #fff; }
.t.a { background: var(--absent); border-color: var(--absent); color: #fff; }

/* ── Cards / grids ── */
.grid { display: grid; gap: 20px; }
.grid > * { min-width: 0; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card p { color: var(--muted); font-size: .95rem; }
.card .icon { font-size: 1.6rem; margin-bottom: 10px; line-height: 1; }
.step-num { display: inline-flex; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 12px; font-size: .9rem; }

/* Game cards (play hub + home) */
.game-card { display: flex; flex-direction: column; gap: 10px; border-color: var(--ink); box-shadow: var(--shadow-strong); transition: border-color .15s, box-shadow .15s; }
.game-card:hover { border-color: var(--accent); box-shadow: 4px 4px 0 rgba(171,43,9,0.18); }
.game-card .game-title { font-family: var(--serif); font-size: 1.4rem; font-weight: 700; }
.game-card .game-title span { color: var(--accent-text); }
.game-card .game-status { font-size: .88rem; color: var(--muted); min-height: 1.4em; }
.game-card .game-status.done { color: var(--correct); font-weight: 600; }
.game-card .btn, .game-card .badge { align-self: flex-start; }
.game-card .btn { margin-top: auto; }
.badge { display: inline-block; font-size: .62rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 2px; background: var(--correct); color: #fff; }

/* ── Publisher band ── */
.band { background: var(--ink); color: var(--paper); }
.band h2 { color: var(--paper); }
.band p { color: var(--paper); opacity: .85; }
.band .btn-secondary { color: var(--paper); border-color: var(--paper); }
.band .btn-secondary:hover { background: var(--paper); color: var(--ink); }
.band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
/* In dark mode --ink turns light, so keep the band dark instead of flipping to a light block */
[data-theme="dark"] .band { background: #12111a; color: var(--ink); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
[data-theme="dark"] .band h2, [data-theme="dark"] .band p { color: var(--ink); }
[data-theme="dark"] .band .btn-secondary { color: var(--ink); border-color: var(--ink); }
[data-theme="dark"] .band .btn-secondary:hover { background: var(--ink); color: var(--paper); }

/* ── Checklist ── */
.checks { list-style: none; display: grid; gap: 10px; }
.checks li { padding-left: 30px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--correct); color: #fff; font-size: .75rem; display: flex; align-items: center; justify-content: center; margin-top: 3px; }

/* ── Code sample ── */
.code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85rem; background: #14131c; color: #e6e3da; padding: 16px 18px; border-radius: var(--radius); overflow-x: auto; white-space: pre; }

/* ── FAQ ── */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--border); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-text); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 10px; color: var(--muted); }

/* ── Forms ── */
.form { display: grid; gap: 14px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .form .row { grid-template-columns: 1fr; } }
.form label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 5px; }
.form input, .form textarea, .form select { width: 100%; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 3px; background: var(--card); color: var(--ink); font: inherit; font-size: .95rem; }
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--ink); outline: none; }
.form textarea { min-height: 96px; resize: vertical; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { padding: 12px 14px; border-radius: var(--radius); font-size: .92rem; display: none; }
.form-msg.ok { display: block; background: rgba(74,124,89,.12); color: var(--correct); border: 1px solid var(--correct); }
.form-msg.err { display: block; background: rgba(171,43,9,.08); color: var(--accent); border: 1px solid var(--accent); }
.fine { font-size: .78rem; color: var(--muted); }
