/* The content pages (src/build/pages/site.ts): games, guides, the roundup. The umbrella page's palette
   (src/client/style.css, documents/ART_DIRECTION.md); no script. Page classes, for page authors:
   .lede .kicker .btn .btn.is-secondary .actions .cards .card .picture .compare (table) .faq .callout .toc .meta */
:root {
  --shadow: #202326;
  --charcoal: #302923;
  --paper: #d4c7ae;
  --amber: #d8ae70;
  --brass: #8e7952;
  --line: rgba(142, 121, 82, 0.45);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--shadow); color: var(--paper); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body { margin: 0; }
a { color: var(--amber); text-underline-offset: 3px; }
a:hover { color: var(--paper); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
img { max-width: 100%; height: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 2; padding: 8px 12px; background: var(--charcoal); }

.site-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1040px; margin: 0 auto; padding: 16px; }
.site-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--amber); font: 600 19px var(--serif); letter-spacing: 0.04em; text-decoration: none; }
.site-head-cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--amber); border-radius: 999px; color: var(--amber); font-size: 15px; font-weight: 600; text-decoration: none; }
.site-head-cta:hover { background: var(--amber); color: var(--shadow); }

.crumbs { max-width: 760px; margin: 0 auto; padding: 0 16px; font-size: 14px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 8px 0 0; padding: 0; list-style: none; opacity: 0.8; }
.crumbs li + li::before { content: '›'; margin-right: 8px; opacity: 0.6; }

.page { max-width: 760px; margin: 0 auto; padding: 24px 16px 64px; }
.page h1 { margin: 8px 0 16px; font: 600 clamp(36px, 7vw, 54px)/1.08 var(--serif); color: var(--paper); text-wrap: balance; }
.page h2 { margin: 48px 0 12px; font: 600 clamp(27px, 4.5vw, 34px)/1.15 var(--serif); color: var(--paper); }
.page h3 { margin: 28px 0 8px; font: 600 23px/1.2 var(--serif); color: var(--paper); }
.page p, .page li { max-width: 68ch; }
.page ul, .page ol { padding-left: 1.3em; }
.page li { margin: 6px 0; }
.page strong { color: var(--amber); font-weight: 600; }
.kicker { margin: 0; color: var(--amber); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.lede { font-size: 19px; opacity: 0.92; }
.meta { font-size: 14px; opacity: 0.7; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border: 1px solid var(--amber); border-radius: 999px; background: var(--amber); color: var(--shadow); font-weight: 600; text-decoration: none; }
.btn:hover { filter: brightness(1.08); color: var(--shadow); }
.btn.is-secondary { background: none; color: var(--amber); }
.btn.is-secondary:hover { background: var(--amber); color: var(--shadow); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
@media (max-width: 520px) { .actions .btn { width: 100%; } }

.picture { margin: 24px 0; }
.picture img { display: block; width: 100%; aspect-ratio: 8 / 5; object-fit: cover; border: 1px solid var(--line); border-radius: 14px; }
.picture figcaption { margin-top: 8px; font-size: 14px; opacity: 0.75; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; margin: 24px 0; padding: 0; list-style: none; }
.page .cards li { max-width: none; margin: 0; }
.card { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--charcoal); }
.card img { display: block; width: 100%; aspect-ratio: 8 / 5; object-fit: cover; }
.card > div { flex: 1; padding: 14px 16px 16px; }
.card h3 { margin: 4px 0 6px; }
.card p { margin: 0 0 8px; font-size: 15px; opacity: 0.9; }

.callout { margin: 24px 0; padding: 16px 18px; border: 1px solid var(--amber); border-radius: 14px; background: var(--charcoal); }
.callout p { margin: 0; }
.toc { display: grid; gap: 4px; margin: 16px 0 0; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; list-style: none; font-size: 15px; }

.table-wrap { margin: 24px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.compare { width: 100%; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare thead th { background: var(--charcoal); color: var(--amber); white-space: nowrap; }
.compare tr:last-child td { border-bottom: 0; }

.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; min-height: 48px; padding: 13px 32px 13px 0; cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 10px; color: var(--amber); font-size: 20px; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0 0 16px; opacity: 0.9; }

.site-foot { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 24px; max-width: 1040px; margin: 0 auto; padding: 32px 16px 48px; border-top: 1px solid var(--line); font-size: 15px; }
.site-foot h2 { margin: 0 0 8px; font: 600 20px var(--serif); color: var(--amber); }
.site-foot ul { margin: 0; padding: 0; list-style: none; }
.site-foot li { margin: 0; }
.site-foot a { display: inline-block; padding: 6px 0; color: var(--paper); opacity: 0.85; }
.site-foot a:hover { color: var(--amber); opacity: 1; }

/* games pages */
.page ul.cards { padding-left: 0; }
.card h3 a, .card h2 a { color: var(--paper); text-decoration: none; }
.card h3 a:hover, .card h2 a:hover { color: var(--amber); }

/* roundup page */
.roundup-table { min-width: 1060px; }
.roundup-table th[scope="row"] { position: sticky; left: 0; z-index: 1; min-width: 132px; max-width: 160px; background: var(--shadow); }
