/* ==========================================================================
   Amon — 18+ adult PC gaming reference
   Single stylesheet for the whole site (root pages and /explore/).
   ========================================================================== */

/* --- Tokens --- */
:root {
  --rose: #c9184a;        /* primary accent */
  --rose-soft: #ff8fae;
  --sage: #6b9e8a;        /* secondary accent */
  --amber: #e8a33d;       /* tertiary accent */
  --bg: #170d12;
  --bg-alt: #221319;
  --bg-raised: #2b1620;
  --border: #3d222c;
  --text: #f3e8ea;
  --text-dim: #baa0a8;

  --radius: 10px;
  --wrap: 1140px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace;
}

/* --- Reset & base --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 0.9rem; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 600; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; margin-top: 1.6rem; }
h3:first-child { margin-top: 0; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }
strong { color: #fff; font-weight: 650; }
em { color: var(--text); }

a { color: var(--rose-soft); text-decoration: underline; text-decoration-color: rgba(255,143,174,.35); text-underline-offset: 3px; }
a:hover { color: var(--amber); text-decoration-color: var(--amber); }

ul, ol { margin: 0 0 1.1rem; padding-left: 1.25rem; }
li { margin-bottom: 0.45rem; }
li::marker { color: var(--rose); }

code, kbd {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.05em 0.35em;
  color: var(--text);
  overflow-wrap: anywhere;
}
kbd { border-bottom-width: 2px; }

:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; }

/* --- Layout --- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

.grid-2, .grid-3 { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 860px) {
  .grid-2 { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}
.grid-2 > *, .grid-3 > * { min-width: 0; }

.section { padding: 4.5rem 0; }
.section.alt { background: var(--bg-alt); }
.section.bordered { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section .lede { margin-bottom: 2rem; }
.section .grid-2 + p,
.section .grid-3 + p,
.section .grid-3 + .grid-2,
.section table + p { margin-top: 2rem; }
.section-head { align-items: end; margin-bottom: 2rem; }
.section-head h2 { margin-bottom: 0; }
.align-right { margin: 0; }
@media (min-width: 860px) { .align-right { text-align: right; } }

.lede { font-size: 1.12rem; color: var(--text-dim); max-width: 68ch; }

/* --- Navigation --- */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(23, 13, 18, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-nav .wrap {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; min-height: 64px;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.55rem;
  color: var(--text); text-decoration: none;
  font-weight: 800; font-size: 1.45rem; letter-spacing: 0.02em; text-transform: lowercase;
}
.brand:hover { color: var(--text); }
.brand .mark {
  width: 22px; height: 22px; border-radius: 6px;
  background: linear-gradient(135deg, var(--rose), var(--amber));
  box-shadow: 0 0 18px rgba(201, 24, 74, 0.45);
}
.age-badge {
  display: inline-block; padding: 0.08rem 0.4rem;
  font-size: 0.65rem; font-weight: 800; letter-spacing: 0.02em;
  border-radius: 4px; background: var(--amber); color: #1a0d05;
}

.nav-check { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle {
  display: none; cursor: pointer; font-size: 1.5rem; line-height: 1;
  padding: 0.4rem 0.6rem; border: 1px solid var(--border); border-radius: 8px; color: var(--text);
}
.nav-links { list-style: none; display: flex; gap: 1.6rem; margin: 0; padding: 0; }
.nav-links li { margin: 0; }
.nav-links a { color: var(--text-dim); text-decoration: none; font-weight: 550; font-size: 0.95rem; }
.nav-links a:hover, .nav-links a.active { color: var(--rose-soft); }
.nav-links a.active { box-shadow: inset 0 -2px 0 var(--rose); padding-bottom: 4px; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; flex-basis: 100%; flex-direction: column; gap: 0;
    padding: 0.5rem 0 1rem;
  }
  .nav-links a { display: block; padding: 0.7rem 0; border-top: 1px solid var(--border); }
  .nav-links a.active { box-shadow: none; padding-bottom: 0.7rem; }
  .nav-check:checked ~ .nav-links { display: flex; }
  .nav-check:focus-visible + .nav-toggle { outline: 2px solid var(--rose); }
}

/* --- Hero & page headers --- */
.hero, .article-head {
  background: radial-gradient(circle at 80% 20%, var(--bg-raised), var(--bg) 65%);
  border-bottom: 1px solid var(--border);
}
.hero { padding: 4.5rem 0 4rem; }
.hero .grid-2 { align-items: center; }
.article-head { padding: 4rem 0 3.5rem; }
.article-head h1 { max-width: 22ch; }
.kicker {
  display: inline-block; margin-bottom: 1rem;
  color: var(--amber); font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
}

/* Hero graphic (18+ panel) */
@keyframes hg-flicker {
  0%, 8%, 10%, 12%, 44%, 46%, 78%, 80%, 100% { opacity: 1; }
  9%, 11%, 45%, 79% { opacity: 0.25; }
  60% { opacity: 0.7; }
}
@keyframes hg-textpulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }
@keyframes hg-borderpulse {
  0%, 100% { stroke-opacity: 0.55; stroke-width: 2; }
  50% { stroke-opacity: 1; stroke-width: 3.5; }
}
@keyframes hg-badgepulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.22); opacity: 1; }
}
@keyframes hg-enterpulse { 0%, 100% { stroke-opacity: 0.6; } 50% { stroke-opacity: 1; } }
.hero-graphic { width: 100%; max-width: 460px; margin: 0 auto; }
.hg-outerglow { animation: hg-borderpulse 2.4s ease-in-out infinite; }
.hg-textgroup { animation: hg-textpulse 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.hg-glow { animation: hg-flicker 4.2s infinite; }
.hg-badge-ring { animation: hg-badgepulse 2.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.hg-badge-ring.b2 { animation-delay: 0.4s; }
.hg-badge-ring.b3 { animation-delay: 0.8s; }
.hg-badge-ring.b4 { animation-delay: 1.2s; }
.hg-enter { animation: hg-enterpulse 1.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .hg-outerglow, .hg-textgroup, .hg-glow, .hg-badge-ring, .hg-enter, .ticker-track { animation: none !important; }
}

/* --- Buttons --- */
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }
.cta-band .btn-row { margin-top: 0; justify-content: flex-start; align-self: center; }
.btn {
  display: inline-block; padding: 0.8rem 1.4rem; border-radius: 999px;
  font-weight: 700; font-size: 0.97rem; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold {
  background: linear-gradient(135deg, var(--rose), var(--amber));
  color: #1a0d05; border: none;
  box-shadow: 0 6px 20px rgba(201, 24, 74, 0.3);
}
.btn-gold:hover { color: #1a0d05; box-shadow: 0 8px 26px rgba(201, 24, 74, 0.45); }
.btn-ghost { border: 1px solid var(--sage); color: var(--sage); background: transparent; }
.btn-ghost:hover { background: rgba(107, 158, 138, 0.12); color: var(--sage); }

/* --- Ticker --- */
.ticker {
  overflow: hidden; white-space: nowrap;
  background: var(--bg-alt);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 0.9rem 0; font-size: 0.92rem; color: var(--text-dim);
}
.ticker-track { display: inline-flex; gap: 3rem; animation: ticker 60s linear infinite; padding-left: 3rem; }
.ticker b { color: var(--amber); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* --- Cards & panels --- */
.topic-block {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-left: 3px solid var(--rose);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
}
.topic-block h3 { margin-top: 0; }
.topic-block.accent-gold { border-left-color: var(--rose); }
.topic-block.accent-mint { border-left-color: var(--sage); }
.topic-block.accent-coral { border-left-color: var(--amber); }
.topic-block .more { display: inline-block; margin-top: 0.4rem; color: var(--rose-soft); font-weight: 650; text-decoration: none; }
.topic-block .more::after { content: " →"; }
.topic-block .more:hover { color: var(--amber); }
.grid-2 > div > .topic-block + .topic-block { margin-top: 1.5rem; }

.panel, .panel-gold {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
}
.panel-gold { border-left: 3px solid var(--rose); }
.panel h4, .panel-gold h4 { margin-bottom: 1rem; }
.panel-gold p { margin-bottom: 0.55rem; }
.panel-gold a { text-decoration: none; }

.callout {
  background: var(--bg-raised);
  border-left: 3px solid var(--sage);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  margin-top: 1.5rem;
  font-size: 0.97rem;
}
.callout.warn { border-left-color: var(--amber); }

/* --- Stats --- */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.stat { background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem; text-align: center; }
.stat .num { font-size: 1.9rem; font-weight: 800; color: var(--rose-soft); line-height: 1.1; }
.stat .label { font-size: 0.82rem; color: var(--text-dim); margin-top: 0.3rem; }

/* --- Numbered ledger lists --- */
.ledger { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.ledger li {
  display: grid; grid-template-columns: 3.2rem 1fr; gap: 1rem;
  padding: 1.4rem 0; border-top: 1px solid var(--border); margin: 0;
}
.ledger li:last-child { border-bottom: 1px solid var(--border); }
.ledger .num { font-family: var(--font-mono); font-size: 1.3rem; font-weight: 700; color: var(--rose); line-height: 1.4; }
.ledger h4 { margin-bottom: 0.4rem; }

/* --- Article list --- */
.article-list { display: grid; gap: 0; }
.article-row {
  display: grid; grid-template-columns: 3.2rem 1fr; gap: 1rem;
  padding: 1.5rem 0; border-top: 1px solid var(--border);
}
.article-row:last-child { border-bottom: 1px solid var(--border); }
.article-row .index { font-family: var(--font-mono); font-size: 1.3rem; color: var(--amber); font-weight: 700; }
.article-row h3 { margin: 0 0 0.3rem; font-size: 1.15rem; }
.article-row h3 a { color: var(--text); text-decoration: none; }
.article-row h3 a:hover { color: var(--rose-soft); }
.article-row .meta { font-size: 0.82rem; color: var(--amber); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.5rem; }

/* --- Tables --- */
table {
  width: 100%; border-collapse: collapse;
  background: var(--bg-raised);
  border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 0.95rem;
}
thead { background: var(--bg-alt); color: var(--amber); }
th { font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
td, th { padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(255, 255, 255, 0.02); }
@media (max-width: 720px) {
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  td, th { min-width: 140px; }
}

/* --- CTA band --- */
.cta-band { background: var(--bg-raised); border-top: 1px solid var(--border); padding: 4rem 0; }
.cta-band .grid-2 { align-items: center; }

/* --- Footer --- */
footer { background: var(--bg-alt); border-top: 1px solid var(--border); color: var(--text-dim); padding: 3.5rem 0 2rem; font-size: 0.93rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr 1fr; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-grid > div:first-child { grid-column: 1 / -1; }
@media (min-width: 860px) { .footer-grid > div:first-child { grid-column: auto; } }
footer h4 { color: var(--text); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 0.5rem; }
footer a { color: var(--text-dim); text-decoration: none; }
footer a:hover { color: var(--rose-soft); }
footer .brand { font-size: 1.3rem; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border);
  font-size: 0.82rem; color: var(--text-dim);
}

/* --- Small screens --- */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .section { padding: 3.2rem 0; }
  .hero { padding: 3rem 0; }
  .article-head { padding: 3rem 0 2.5rem; }
  .stat-row { grid-template-columns: 1fr 1fr 1fr; gap: 0.6rem; }
  .stat .num { font-size: 1.5rem; }
  .ledger li, .article-row { grid-template-columns: 2.4rem 1fr; }
}
.footer-about { margin-top: 1rem; max-width: 32ch; }
