/* ==========================================================================
   Billmeade Gaming — site stylesheet
   Palette drawn from the game art: near-black green, market green, gold, cream
   ========================================================================== */

:root {
  --bg: #0a0f0b;
  --bg-2: #0d1410;
  --panel: #121a14;
  --panel-2: #16211a;
  --line: #243024;
  --ink: #ede6d3;
  --muted: #9aa892;
  --green: #5fae86;
  --green-soft: #3d7a5c;
  --gold: #b99a4a;
  --gold-bright: #d6b96a;
  --red: #c96f5e;
  --serif: Georgia, 'Times New Roman', Times, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --maxw: 1100px;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--gold-bright); text-decoration: none; }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* --------------------------------------------------------------- header */
.site-head {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #0c120d, var(--bg));
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  color: var(--ink); font-family: var(--serif); font-weight: 700;
  font-size: 1.25rem; letter-spacing: 0.04em;
}
.brand:hover { color: var(--ink); }
.brand .accent { color: var(--green); }
.site-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.site-nav a {
  color: var(--muted); font-size: 0.95rem; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 8px 12px; border-radius: 8px;
}
.site-nav a:hover { color: var(--ink); background: var(--panel); }
.site-nav a[aria-current="page"] { color: var(--gold-bright); }

/* ----------------------------------------------------------------- hero */
.hero { padding: 84px 0 64px; position: relative; }
.hero h1 {
  font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05; margin: 0 0 20px; letter-spacing: 0.01em;
}
.hero h1 em { font-style: normal; color: var(--gold-bright); }
.hero .lede { max-width: 640px; color: var(--muted); font-size: 1.15rem; margin: 0 0 34px; }
.hero .lede strong { color: var(--ink); font-weight: 600; }

.eyebrow {
  color: var(--gold-bright); text-transform: uppercase; letter-spacing: 0.22em;
  font-size: 0.78rem; font-weight: 700; margin: 0 0 14px;
}

/* -------------------------------------------------------------- buttons */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 10px;
  font-weight: 700; font-size: 1rem; letter-spacing: 0.02em;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary { background: var(--gold); color: #171204; }
.btn-primary:hover { color: #171204; background: var(--gold-bright); transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--muted); transform: translateY(-1px); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ------------------------------------------------------------- sections */
.section { padding: 72px 0; }
.section.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section h2 {
  font-family: var(--serif); font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  margin: 0 0 12px;
}
.section .sub { color: var(--muted); max-width: 640px; margin: 0 0 40px; }

/* ------------------------------------------------------------ game grid */
.games-grid {
  display: grid; gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}
.game-card {
  display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; color: var(--ink);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.game-card:hover {
  transform: translateY(-3px); border-color: #3d4436;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35); color: var(--ink);
}
.game-card img { aspect-ratio: 616 / 353; object-fit: cover; width: 100%; }
.game-card img.wide { aspect-ratio: 460 / 215; }
.game-card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.game-card h3 { font-family: var(--serif); font-size: 1.35rem; margin: 0; }
.game-card p { margin: 0; color: var(--muted); font-size: 0.98rem; flex: 1; }
.meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-size: 0.85rem; color: var(--muted); }
.meta .price { color: var(--green); font-weight: 700; }
.badge {
  display: inline-block; padding: 3px 10px; border: 1px solid var(--line);
  color: var(--muted); border-radius: 999px; font-size: 0.72rem;
  letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600;
}
.badge.green { border-color: var(--line); color: var(--muted); }

/* ------------------------------------------------------------ press bar */
.press-quote { text-align: center; padding: 26px 0; }
.press-quote .eyebrow { margin-bottom: 8px; }
.press-quote .name {
  font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0;
}
.press-quote .ctx { color: var(--muted); margin: 8px 0 0; font-size: 0.95rem; }

/* ------------------------------------------------------------ game page */
.game-hero { padding: 64px 0 24px; }
.game-hero .grid {
  display: grid; gap: 44px; align-items: start;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}
@media (max-width: 820px) { .game-hero .grid { grid-template-columns: 1fr; } }
.game-hero h1 { font-family: var(--serif); font-size: clamp(2rem, 5vw, 3rem); line-height: 1.08; margin: 0 0 16px; }
.game-hero .tagline { color: var(--muted); font-size: 1.12rem; margin: 0 0 28px; max-width: 560px; }
.game-hero .art { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }

.facts {
  margin: 34px 0 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden; font-size: 0.92rem;
}
@media (min-width: 700px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.facts li { background: var(--panel); padding: 12px 16px; }
.facts .k { display: block; color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; }
.facts .v { font-weight: 600; }
.facts .v a { color: var(--green); }

.features { list-style: none; padding: 0; margin: 0; max-width: 760px; }
.features li { padding: 10px 0 10px 32px; position: relative; border-bottom: 1px solid var(--line); }
.features li:last-child { border-bottom: none; }
.features li::before { content: "▲"; position: absolute; left: 4px; color: var(--green); font-size: 0.8rem; top: 14px; }

.notice {
  border: 1px solid var(--line); border-left: 3px solid var(--gold);
  border-radius: 10px; padding: 16px 20px; color: var(--muted);
  font-size: 0.95rem; margin: 40px 0 0;
}
.notice a { color: var(--gold-bright); }

/* ---------------------------------------------------------------- prose */
.prose { max-width: 720px; }
.prose h1 { font-family: var(--serif); font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0 0 8px; }
.prose h2 { font-family: var(--serif); color: var(--gold-bright); font-size: 1.35rem; margin: 40px 0 10px; }
.prose p, .prose li { color: #c9c4b4; }
.prose .date { color: var(--muted); font-size: 0.9rem; }

/* ---------------------------------------------------------------- press */
.fact-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.fact-table th, .fact-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.fact-table th { color: var(--gold-bright); text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.12em; }
.table-scroll { overflow-x: auto; }
.asset-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.asset-grid figure { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.asset-grid figcaption { font-size: 0.82rem; color: var(--muted); margin-top: 10px; }
.asset-grid img { border-radius: 6px; background: #fff2; }

/* --------------------------------------------------------------- footer */
.site-foot { border-top: 1px solid var(--line); background: #070b08; margin-top: 80px; }
.site-foot .cols {
  display: grid; gap: 36px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  padding: 52px 0 36px;
}
.site-foot h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--gold-bright); margin: 0 0 14px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin: 8px 0; }
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--ink); }
.site-foot .blurb { color: var(--muted); font-size: 0.95rem; margin: 0; }
.foot-bottom {
  border-top: 1px solid var(--line); padding: 20px 0 28px;
  font-size: 0.82rem; color: var(--muted);
  display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between;
}

/* ------------------------------------------------------------------ 404 */
.err { text-align: center; padding: 120px 0; }
.err .code { font-family: var(--serif); font-size: 6rem; color: var(--red); margin: 0; line-height: 1; }
.err p { color: var(--muted); }
