/* ==========================================================================
   N999 Game — shared stylesheet
   Light theme — warm ivory body, white cards, gold/oxblood accents.
   Header, footer and CTA panels stay on the brand's dark "ink" plate
   (the logo artwork is rendered for a dark ground and loses contrast on
   white — see design notes), so a handful of components carry explicit
   ink-context colors instead of inheriting the light body tokens.
   ========================================================================== */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
img, picture, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }

/* ---------- Design tokens ---------- */
:root {
  /* Light body */
  --bg: #faf5ea;
  --bg-soft: #f2e9d8;
  --surface: #ffffff;
  --surface-2: #f7f0e0;
  --border: rgba(180, 130, 40, 0.28);
  --border-strong: rgba(180, 130, 40, 0.5);
  --text: #241009;
  --text-muted: #5c4a3f;
  --text-faint: #786357;

  /* Brand accents (checked for 4.5:1+ against --bg / --surface where used as text) */
  --gold: #c8952f;
  --gold-bright: #e3ac3f;
  --gold-deep: #7a5710;
  --gold-tint: rgba(200, 149, 47, 0.14);
  --green: #1f7a52;
  --red: #8a1626;
  --red-tint: rgba(138, 22, 38, 0.08);
  --purple: #7c4fb0;

  /* Dark "ink" plate — header, footer, CTA bands (where the logo/bright-gold text lives) */
  --ink: #150509;
  --ink-soft: #21090f;
  --ink-border: rgba(227, 172, 63, 0.26);
  --ink-border-strong: rgba(227, 172, 63, 0.48);
  --ink-text: #f3e6c8;
  --ink-text-muted: #c9b39a;

  --radius-lg: 22px;
  --radius-md: 15px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px rgba(60, 30, 15, 0.14);
  --shadow-sm: 0 8px 20px rgba(60, 30, 15, 0.09);
  --glow-gold: 0 0 0 1px rgba(200, 149, 47, 0.4), 0 10px 26px rgba(200, 149, 47, 0.3);
  --header-h: 74px;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
  --container: 1160px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
}
main { display: block; }

/* Faint ambient warmth — fixed pseudo-layer, not background-attachment (avoids mobile jank) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1100px 560px at 8% -10%, rgba(200, 149, 47, 0.10), transparent 60%),
    radial-gradient(900px 520px at 102% 0%, rgba(138, 22, 38, 0.055), transparent 55%),
    radial-gradient(800px 500px at 50% 108%, rgba(180, 130, 40, 0.06), transparent 60%),
    var(--bg);
}

::selection { background: var(--gold); color: #1a0d02; }

:focus-visible {
  outline: 3px solid var(--gold-deep);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

/* Custom scrollbar (webkit) */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--gold), var(--gold-deep)); border-radius: 10px; border: 2px solid var(--bg-soft); }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(var(--gold-bright), var(--gold)); }

/* Skip link */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #1a0d02;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  z-index: 200;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- Links (editorial body) ---------- */
.prose a:not(.btn) { color: var(--gold-deep); text-decoration: underline; text-decoration-color: rgba(122,87,16,0.4); text-underline-offset: 3px; transition: color 0.15s ease; }
.prose a:not(.btn):hover { color: var(--red); text-decoration-color: var(--red); }

/* ---------- Header (dark ink plate — holds the logo) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(21, 5, 9, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.site-header.is-stuck {
  box-shadow: 0 10px 28px rgba(20, 10, 5, 0.22), 0 1px 0 rgba(227, 172, 63, 0.25);
  border-bottom-color: var(--ink-border);
}
.header-bar {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; transition: filter 0.2s ease, transform 0.2s ease; }
.logo:hover { filter: drop-shadow(0 0 10px rgba(227, 172, 63, 0.5)); transform: translateY(-1px); }
.logo img { display: block; height: 42px; width: auto; }

/* Nav panel: flex at desktop — required so CTA stays on one row (see build spec) */
.nav-panel {
  display: flex;
  align-items: center;
  gap: 18px;
}
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  position: relative;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-text-muted);
  min-height: 40px;
  display: flex;
  align-items: center;
  transition: color 0.15s ease, background 0.15s ease;
}
.site-nav a:hover { color: var(--ink-text); background: rgba(255, 255, 255, 0.07); }
.site-nav a[aria-current="page"] { color: var(--gold-bright); }
.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 5px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--red));
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold) 55%, var(--gold-deep));
  color: #2a1400;
  box-shadow: var(--glow-gold);
}
.btn-primary::before {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.65), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
}
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(200,149,47,0.5), 0 16px 34px rgba(180, 130, 40, 0.35); }
.btn-primary:hover::before { left: 130%; }
.btn-secondary { background: #ffffff; color: var(--text); border-color: var(--red); }
.btn-secondary:hover { background: var(--red); border-color: var(--red); color: #fff8ef; box-shadow: 0 10px 24px rgba(138, 22, 38, 0.3); }
.btn-block { width: 100%; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--ink-border);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--ink-text); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ink-soft);
    border-bottom: 1px solid var(--ink-border);
    flex-direction: column;
    align-items: stretch;
    padding: 14px 20px 22px;
    gap: 6px;
    display: none;
    box-shadow: var(--shadow);
  }
  .nav-panel.is-open { display: flex; }
  .site-nav { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav a { padding: 13px 14px; }
  .site-nav a[aria-current="page"]::after { display: none; }
  .nav-panel .btn-primary { width: 100%; margin-top: 8px; }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Eyebrow / Hero / Article head ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(90deg, rgba(200, 149, 47, 0.18), rgba(138, 22, 38, 0.11));
  color: var(--gold-deep);
  border: 1px solid var(--border-strong);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
}
/* Eyebrow sitting on the dark CTA plate needs the bright ink-context treatment */
.cta-band .eyebrow {
  background: linear-gradient(90deg, rgba(227, 172, 63, 0.24), rgba(255, 61, 104, 0.16));
  color: var(--gold-bright);
  border-color: var(--ink-border-strong);
  box-shadow: 0 0 22px rgba(227, 172, 63, 0.16);
}

.article-head { padding-block: 34px 8px; }
.article-head .wrap > * + * { margin-top: 16px; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  max-width: 780px;
  margin-inline: auto;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.cta-row__note { font-size: 0.85rem; color: var(--text-faint); width: 100%; margin-top: 2px; }

.h1 {
  font-size: clamp(2rem, 5.2vw, 3.05rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  max-width: 780px;
  margin-inline: auto;
  background: linear-gradient(100deg, #3a0c16 0%, #6b3a12 45%, #7a5710 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: #3a0c16;
  -webkit-text-fill-color: transparent;
}

.lede {
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  color: var(--text-muted);
  max-width: 780px;
  margin-inline: auto;
}

/* ---------- Hero banner image ---------- */
.hero-banner { max-width: 780px; margin: 26px auto 0; position: relative; }
.hero-banner img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow), 0 0 60px rgba(200, 149, 47, 0.16);
}

/* ---------- Table of contents ---------- */
.toc {
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  max-width: 780px;
  margin-inline: auto;
  box-shadow: var(--shadow-sm);
}
.toc h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gold-deep); margin-bottom: 10px; }
.toc ol { columns: 1; counter-reset: toc; display: grid; grid-template-columns: 1fr; gap: 6px 24px; }
@media (min-width: 620px) { .toc ol { grid-template-columns: 1fr 1fr; } }
.toc li { break-inside: avoid; }
.toc a { display: block; padding: 6px 4px; border-radius: 6px; color: var(--text-muted); font-size: 0.95rem; transition: color 0.15s ease, background 0.15s ease, padding-left 0.15s ease; }
.toc a:hover { color: var(--gold-deep); background: var(--gold-tint); padding-left: 10px; }

/* ---------- Article body layout ---------- */
.article-body { padding-block: 40px 20px; }
.prose { max-width: 780px; margin-inline: auto; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-top: 2.4em;
  scroll-margin-top: calc(var(--header-h) + 16px);
  display: flex;
  align-items: center;
  gap: 12px;
}
.prose h2::before {
  content: "";
  flex-shrink: 0;
  width: 7px;
  height: 1em;
  border-radius: 4px;
  background: linear-gradient(var(--gold), var(--red));
  box-shadow: 0 0 10px rgba(180, 130, 40, 0.35);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 1.8em;
  color: var(--text);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.prose p { color: var(--text-muted); }
.prose strong { color: var(--red); }
.prose ul, .prose ol { padding-left: 1.3em; color: var(--text-muted); }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.5em; }
.prose blockquote {
  border-left: 3px solid var(--gold);
  padding-left: 1em;
  color: var(--text-muted);
  font-style: italic;
}

/* Wide sections that break out of the 780px reading column */
.prose .full-bleed { max-width: var(--container); margin-inline: auto; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 14px; padding: 0; list-style: none; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.steps li:hover { border-color: var(--border-strong); transform: translateX(2px); }
.steps li::before {
  content: counter(step);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, var(--gold-bright), var(--gold) 60%, var(--gold-deep));
  color: #2a1400;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(180, 130, 40, 0.35);
}
.steps li p, .steps li { color: var(--text); margin: 0; }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; }
.chips li {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.chips li:hover { border-color: var(--gold); color: var(--gold-deep); background: var(--gold-tint); transform: translateY(-1px); }
.chips a { display: block; }

/* ---------- Grid / cards ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 680px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.card {
  position: relative;
  background: linear-gradient(165deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 22px 20px;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.card h3 { margin-top: 0; margin-bottom: 10px; }
.card.card--cons::before { background: linear-gradient(90deg, var(--red), #c24a63); }
.card.card--pros::before { background: linear-gradient(90deg, var(--green), #5fcf9c); }
.card ul { margin: 0; padding-left: 1.2em; color: var(--text-muted); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.table-wrap table { min-width: 560px; }
.table-wrap th, .table-wrap td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 0.94rem; }
.table-wrap th { background: linear-gradient(180deg, var(--surface-2), var(--surface)); color: var(--gold-deep); font-weight: 700; white-space: nowrap; }
.table-wrap tr:last-child td { border-bottom: none; }
.table-wrap tbody tr { transition: background 0.15s ease; }
.table-wrap tbody tr:hover { background: rgba(200, 149, 47, 0.07); }
.table-wrap td { color: var(--text-muted); }

/* ---------- Callout ---------- */
.callout {
  border-left: 4px solid var(--gold);
  background: linear-gradient(90deg, var(--gold-tint), transparent 80%);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 16px 20px;
  color: var(--text);
}
.callout p { color: var(--text); margin: 0; }
.callout strong { color: var(--gold-deep); }

/* ---------- Disclaimer ---------- */
.disclaimer {
  border: 1px solid rgba(138, 22, 38, 0.35);
  background: linear-gradient(90deg, var(--red-tint), transparent 80%);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.disclaimer strong { color: var(--red); }

/* ---------- Screenshot figure ---------- */
.shot { max-width: 300px; margin: 0 auto; text-align: center; }
.shot img {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  width: 100%;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.shot img:hover { box-shadow: var(--glow-gold); transform: translateY(-2px); }
.shot figcaption { margin-top: 10px; font-size: 0.85rem; color: var(--text-faint); }

/* ---------- Review / testimonial ---------- */
.review {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}
.review + .review { margin-top: 12px; }
.review p { color: var(--text); font-style: italic; margin: 0 0 8px; }
.review cite { color: var(--gold-deep); font-weight: 700; font-style: normal; font-size: 0.9rem; }

/* ---------- FAQ accordion ---------- */
.faq { display: grid; gap: 10px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 4px 0;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.faq details[open] { border-color: var(--border-strong); box-shadow: 0 0 0 1px rgba(200, 149, 47, 0.12), var(--shadow-sm); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--gold-deep);
  flex-shrink: 0;
  transition: transform 0.15s ease;
}
.faq details[open] summary::after { content: "\2212"; }
.faq .faq-a { padding: 0 20px 18px; color: var(--text-muted); }
.faq .faq-a > * + * { margin-top: 0.8em; }

/* ---------- CTA band (dark ink plate) ---------- */
.cta-band {
  position: relative;
  background:
    radial-gradient(650px 320px at 88% -15%, rgba(227, 172, 63, 0.22), transparent 60%),
    radial-gradient(520px 280px at 8% 120%, rgba(255, 61, 104, 0.16), transparent 60%),
    linear-gradient(135deg, #2c0f1e, #150509 60%);
  border: 1px solid var(--ink-border-strong);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  text-align: center;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.cta-band h2 { margin-top: 0 !important; color: var(--ink-text); }
.cta-band p { color: var(--ink-text-muted); max-width: 560px; margin-inline: auto; }
.cta-band .btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 20px; }

/* ---------- Post nav ---------- */
.post-nav { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 680px) { .post-nav { grid-template-columns: 1fr 1fr; } }
.post-nav a {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.post-nav a:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.post-nav .post-nav__label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-faint); }
.post-nav .post-nav__title { color: var(--text); font-weight: 700; margin-top: 4px; }
.post-nav .post-nav__next { text-align: right; }

/* ---------- App detail table icon row / stat tiles (index page) ---------- */
.stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 620px) { .stat-row { grid-template-columns: repeat(4, 1fr); } }
.stat-tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px; text-align: center; transition: border-color 0.15s ease, transform 0.15s ease; }
.stat-tile:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.stat-tile strong { display: block; color: var(--gold-deep); font-size: 1.3rem; }
.stat-tile span { color: var(--text-faint); font-size: 0.8rem; }

/* ---------- Blog card grid ---------- */
.card-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 680px) { .card-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
.blog-card {
  position: relative;
  background: linear-gradient(165deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.blog-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--red));
  opacity: 0.85;
}
.blog-card:hover { transform: translateY(-5px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.blog-card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blog-card__body h2 { font-size: 1.15rem; font-weight: 800; }
.blog-card__body p { color: var(--text-muted); font-size: 0.95rem; flex: 1; }
.blog-card__link { color: var(--gold-deep); font-weight: 700; font-size: 0.9rem; }

/* ---------- Page header (non-article pages: blog/faqs/about/privacy) ---------- */
.page-head { padding-block: 44px 30px; text-align: center; }
.page-head .h1 { max-width: 760px; }
.page-head .lede { margin-top: 14px; }
.page-head .cta-row { justify-content: center; }

/* ---------- About page methodology list ---------- */
.method-list { display: grid; gap: 14px; }
.method-list li { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--gold); border-radius: var(--radius-md); padding: 16px 20px; color: var(--text-muted); }
.method-list strong { color: var(--gold-deep); }

/* ---------- Footer (dark ink plate — holds the logo) ---------- */
.site-footer { background: var(--ink-soft); border-top: 1px solid var(--ink-border); margin-top: 60px; position: relative; }
.site-footer::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--red), transparent);
  opacity: 0.7;
}
.footer-grid {
  padding-block: 46px 26px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 30px; } }
.footer-brand .logo img { height: 46px; width: auto; }
.footer-tagline { color: var(--gold-bright); font-weight: 700; margin-top: 10px; font-size: 0.95rem; }
.footer-desc { color: var(--ink-text-muted); font-size: 0.9rem; margin-top: 12px; max-width: 420px; }
.footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 460px) { .footer-cols { grid-template-columns: 1fr; } }
.footer-col h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gold-bright); margin-bottom: 12px; }
.footer-col ul { display: grid; gap: 8px; }
.footer-col a { color: var(--ink-text-muted); font-size: 0.92rem; transition: color 0.15s ease; }
.footer-col a:hover { color: var(--gold-bright); }
.footer-bottom {
  border-top: 1px solid var(--ink-border);
  padding-block: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink-text-muted);
  font-size: 0.82rem;
}
/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold) 60%, var(--gold-deep));
  color: #2a1400;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--glow-gold);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease, box-shadow 0.2s ease;
  z-index: 90;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { box-shadow: 0 0 0 1px rgba(200,149,47,0.55), 0 14px 30px rgba(180, 130, 40, 0.4); transform: translateY(-2px); }

/* ---------- 404 ---------- */
.not-found { padding-block: 90px; text-align: center; }
.not-found .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 14vw, 7rem);
  font-weight: 700;
  background: linear-gradient(100deg, #3a0c16, #7a5710, #8a1626);
  -webkit-background-clip: text;
  background-clip: text;
  color: #3a0c16;
  -webkit-text-fill-color: transparent;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.section-gap { padding-block: 10px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Print ---------- */
@media print {
  .site-header, .back-to-top, .nav-toggle, .cta-row, .cta-band, .site-footer .footer-bottom + *, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  body::before { display: none !important; }
  .h1, .not-found .code { -webkit-text-fill-color: initial; background: none; color: #000; }
  .prose a[href^="http"]::after,
  .prose a[href^="/"]::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #555; }
  .shot img { box-shadow: none; border: 1px solid #ccc; }
}
