/* ==========================================================================
   The Blood of Dawnwalker Wiki — Dark Medieval Gothic design system
   --------------------------------------------------------------------------
   Direction: 80% clean editorial player guide / 20% Gothic atmosphere.
   Palette: charcoal surfaces + blood crimson accent + warm off-white type.
   Restrained crimson rules, subtle parchment/grid textures, serif headings.
   Never neon, never particle-driven, never faction-logo loud.
   ========================================================================== */

:root {
  /* ---- Spacing scale (used everywhere via tokens) ---- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* ---- Surfaces ---- */
  --background: 220 10% 8%;
  --surface: 220 9% 12%;
  --surface-2: 220 8% 17%;
  --surface-deep: 220 12% 5%;
  --surface-elev: 220 9% 14%;

  /* ---- Text ---- */
  --foreground: 36 20% 90%;
  --foreground-soft: 36 18% 84%;
  --muted: 30 8% 65%;
  --faint: 30 6% 52%;
  /* backward-compatible aliases (older templates/inline styles) */
  --muted-foreground: var(--muted);
  --faint-foreground: var(--faint);

  /* ---- Lines ---- */
  --border: 220 7% 22%;
  --border-soft: 220 7% 17%;
  --rule-crimson: 354 72% 46%;

  /* ---- Accent (blood crimson, restrained) ---- */
  --accent: 354 72% 46%;
  --accent-light: 354 76% 58%;
  --accent-soft: 354 40% 22%;
  --accent-faint: 354 50% 14%;

  /* ---- Semantic (for callouts only) ---- */
  --positive: 140 36% 48%;
  --warning: 38 70% 55%;

  /* ---- Type ---- */
  --font-display: ui-serif, 'Iowan Old Style', 'Palatino Linotype', Palatino,
    'Book Antiqua', Georgia, 'Times New Roman', serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
    Arial, 'Noto Sans', sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;

  /* ---- Metrics ---- */
  --container: 1200px;
  --container-narrow: 1040px;
  --reading: 760px;
  --radius: 10px;
  --radius-sm: 6px;
  --radius-pill: 999px;
  --header-h: 60px;

  --shadow-1: 0 1px 2px hsl(0 0% 0% / 0.4);
  --shadow-2: 0 8px 30px -12px hsl(0 0% 0% / 0.7);

  /* ease */
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

/* --------------------------------------------------------------- reset -- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg,
iframe {
  max-width: 100%;
  display: block;
}

a {
  color: hsl(var(--accent-light));
  text-decoration: none;
  transition: color 0.15s var(--ease);
}
a:hover {
  color: hsl(var(--foreground));
  text-decoration: underline;
  text-underline-offset: 3px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: hsl(var(--foreground));
}

p {
  margin: 0 0 var(--space-4);
}

ul,
ol {
  margin: 0 0 var(--space-4);
  padding-left: 1.35em;
}
li {
  margin-bottom: 0.45em;
}

strong {
  color: hsl(var(--foreground));
  font-weight: 650;
}

hr {
  border: 0;
  border-top: 1px solid hsl(var(--border));
  margin: var(--space-7) 0;
}

:focus-visible {
  outline: 2px solid hsl(var(--accent-light));
  outline-offset: 2px;
  border-radius: 3px;
}

::selection {
  background: hsl(var(--accent) / 0.35);
  color: hsl(var(--foreground));
}

/* --------------------------------------------------------------- layout -- */

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

.container--narrow {
  max-width: var(--container-narrow);
}

.container--reading {
  max-width: calc(var(--reading) + 40px);
}

.section {
  padding-block: clamp(48px, 6.5vw, 80px);
}

.section--tight {
  padding-block: clamp(32px, 4vw, 52px);
}

/* Codex: compact category list — tighter than a full section */
.section--codex {
  padding-block: clamp(34px, 4.2vw, 52px);
}
.section--codex .section-head {
  margin-bottom: var(--space-4);
}
.section--codex .section-divider::before {
  margin-bottom: var(--space-4);
}

/* FAQ: tighten the run-in to the final CTA + footer */
.section--faq {
  padding-block: clamp(38px, 4.8vw, 60px);
}
.section--faq .section-head {
  margin-bottom: var(--space-4);
}

.section--alt {
  position: relative;
  background: linear-gradient(
    180deg,
    hsl(var(--surface-deep)) 0%,
    hsl(var(--background)) 100%
  );
  border-top: 1px solid hsl(var(--border-soft));
  border-bottom: 1px solid hsl(var(--border-soft));
}

/* restrained medieval hairline before "alt" sections */
.section-divider::before {
  content: '';
  display: block;
  width: 56px;
  height: 1px;
  background: linear-gradient(
    90deg,
    hsl(var(--accent) / 0.8),
    hsl(var(--accent) / 0)
  );
  margin: 0 auto var(--space-5);
}

.stack-lg > * + * {
  margin-top: var(--space-5);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: hsl(var(--accent));
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
}

/* --------------------------------------------------------------- header -- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: hsl(220 12% 7% / 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid hsl(var(--border-soft));
}

.site-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: hsl(var(--foreground));
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  white-space: nowrap;
  flex: 0 0 auto;
}
.brand:hover {
  text-decoration: none;
  color: hsl(var(--foreground));
}
.brand__mark {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 7px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--surface));
}
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand__text small {
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: hsl(var(--faint));
  font-weight: 600;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  flex-wrap: nowrap;
}

.main-nav a {
  color: hsl(var(--muted));
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 11px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
}
.main-nav a:hover,
.main-nav a[aria-current='page'] {
  color: hsl(var(--foreground));
  background: hsl(var(--surface-2));
  text-decoration: none;
}
.main-nav a[aria-current='page'] {
  box-shadow: inset 0 -2px 0 hsl(var(--accent) / 0.7);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--surface));
  color: hsl(var(--muted));
  cursor: pointer;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease),
    background 0.15s var(--ease);
}
.icon-btn:hover {
  color: hsl(var(--foreground));
  border-color: hsl(var(--accent) / 0.55);
  background: hsl(var(--surface-2));
}

.nav-toggle {
  display: none;
}

/* -------------------------------------------------------------- buttons -- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.16s var(--ease), border-color 0.16s var(--ease),
    transform 0.16s var(--ease), color 0.16s var(--ease),
    box-shadow 0.16s var(--ease);
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}
.btn--primary {
  background: hsl(var(--accent));
  color: #fff;
  border-color: hsl(var(--accent) / 0.9);
  box-shadow: 0 6px 18px -10px hsl(var(--accent) / 0.9);
}
.btn--primary:hover {
  background: hsl(var(--accent-light));
  color: #fff;
  box-shadow: 0 10px 22px -12px hsl(var(--accent) / 0.95);
}
.btn--ghost {
  background: hsl(var(--surface));
  color: hsl(var(--foreground));
  border-color: hsl(var(--border));
}
.btn--ghost:hover {
  border-color: hsl(var(--accent) / 0.6);
  background: hsl(var(--surface-2));
  color: hsl(var(--foreground));
}
/* Secondary external-platform entry (header). Deliberately quiet:
 * charcoal surface, subtle border, light text — no accent fill. */
.btn--steam {
  background: hsl(var(--surface));
  color: hsl(var(--foreground-soft));
  border-color: hsl(var(--border));
}
.btn--steam:hover {
  background: hsl(var(--surface-elev));
  color: hsl(var(--foreground));
  border-color: hsl(var(--foreground) / 0.25);
}
.btn--link {
  background: none;
  border: none;
  padding: 4px 0;
  color: hsl(var(--accent-light));
  box-shadow: none;
}
.btn--link:hover {
  color: hsl(var(--foreground));
  transform: none;
  box-shadow: none;
}
.btn--sm {
  padding: 8px 14px;
  font-size: 0.82rem;
}

/* ---------------------------------------------------------------- labels - */

.eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: hsl(var(--accent-light));
  margin: 0 0 var(--space-3);
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::after {
  content: '';
  height: 1px;
  flex: 1;
  max-width: 80px;
  background: linear-gradient(
    90deg,
    hsl(var(--accent) / 0.55),
    hsl(var(--border) / 0.15)
  );
}
.eyebrow--center::after {
  display: none;
}

.section-head {
  margin-bottom: var(--space-6);
}
.section-head h2 {
  font-size: clamp(1.55rem, 2.8vw, 2.05rem);
  margin: 0 0 10px;
  letter-spacing: -0.015em;
}
.section-head p {
  color: hsl(var(--muted));
  max-width: 62ch;
  margin: 0;
  font-size: 0.96rem;
}

/* ------------------------------------------------------------------ hero - */

/*
 * Hero composition (desktop):
 *  Two-column grid: text | atmosphere panel.
 *  The atmosphere panel is CSS-only — a thin crimson frame, a faint
 *  medieval grid/parchment texture, a vignette and a tiny crescent accent.
 *  No enlarged favicon. No invented character art.
 */
.hero {
  position: relative;
  padding-block: clamp(52px, 6vw, 84px) clamp(48px, 5vw, 72px);
  overflow: hidden;
  border-bottom: 1px solid hsl(var(--border-soft));
  background:
    radial-gradient(
      1100px 460px at 50% -10%,
      hsl(var(--accent) / 0.14),
      transparent 60%
    ),
    radial-gradient(
      700px 360px at 50% 110%,
      hsl(220 20% 16% / 0.9),
      transparent 70%
    ),
    hsl(var(--surface-deep));
}

/* very subtle parchment/grid inlay behind the hero copy */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      0deg,
      hsl(var(--foreground) / 0.018) 0 1px,
      transparent 1px 28px
    ),
    repeating-linear-gradient(
      90deg,
      hsl(var(--foreground) / 0.018) 0 1px,
      transparent 1px 28px
    );
  mask-image: radial-gradient(ellipse at 50% 45%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 45%, #000 30%, transparent 80%);
}

/*
 * Single-column hero: the content block is centered inside the full
 * container so the composition reads as intentional at desktop width —
 * no leftover half-empty column from the old two-column layout.
 */
.hero__grid {
  position: relative;
  display: flex;
  justify-content: center;
}

/* The hero copy block centers and caps its measure so the single
 * column reads naturally at wide viewport sizes. */
.hero__grid > div {
  max-width: 780px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.8vw, 3.8rem);
  line-height: 1;
  margin: 0 0 var(--space-3);
  letter-spacing: -0.022em;
}
.hero h1 .line {
  display: block;
}
.hero h1 .accent {
  color: hsl(var(--accent-light));
  font-style: italic;
  font-weight: 500;
}

.hero__tagline {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-style: italic;
  color: hsl(var(--foreground) / 0.92);
  margin: 0 0 var(--space-4);
}

.hero__desc {
  color: hsl(var(--muted));
  max-width: 720px;
  margin-inline: auto;
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: var(--space-5);
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 var(--space-5);
  padding: 0;
  list-style: none;
}
.hero__stats li {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: hsl(var(--foreground) / 0.9);
  background: hsl(var(--surface) / 0.85);
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-pill);
  padding: 6px 13px;
  letter-spacing: 0.02em;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  align-items: center;
}


/* -------------------------------------------------- stats strip (facts) - */
/*
 * Quick Facts as a compact data strip — not a card grid.
 * Desktop: 4 columns with subtle vertical separators.
 * Mobile: 2 × 2.
 */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid hsl(var(--border));
  border-bottom: 1px solid hsl(var(--border));
  background: hsl(var(--surface) / 0.4);
  border-radius: var(--radius);
  overflow: hidden;
}
.stats-strip__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--space-5) var(--space-5);
  border-left: 1px solid hsl(var(--border-soft));
  position: relative;
}
.stats-strip__item:first-child {
  border-left: 0;
}
.stats-strip__value {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  line-height: 1.1;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin: 0;
  letter-spacing: -0.01em;
}
.stats-strip__label {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: hsl(var(--faint));
  font-weight: 600;
}

/* ----------------------------------------------------------------- cards - */
/*
 * The .card primitive is reserved for primary navigation surfaces
 * (Start Here). It is NOT used for every list section anymore — that
 * was the source of the "card wall" repetition.
 */
.grid {
  display: grid;
  gap: 16px;
}
.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: hsl(var(--surface));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease),
    transform 0.18s var(--ease);
  position: relative;
  color: inherit;
}
a.card:hover {
  text-decoration: none;
  border-color: hsl(var(--accent) / 0.55);
  background: hsl(var(--surface-2));
  transform: translateY(-2px);
}
.card__index {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: hsl(var(--accent-light));
  letter-spacing: 0.08em;
}
.card__title {
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin: 0;
  line-height: 1.3;
}
.card__desc {
  margin: 0;
  font-size: 0.9rem;
  color: hsl(var(--muted));
  line-height: 1.6;
}
.card__meta {
  margin: auto 0 0;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: hsl(var(--faint));
  font-weight: 600;
  padding-top: 6px;
}

.card__icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--surface-2));
  color: hsl(var(--accent-light));
  margin-bottom: 4px;
}
.card__icon svg {
  width: 20px;
  height: 20px;
}

/* ---------------------------------------------------------------- codex - */
/*
 * Codex = compact wiki category ROWS (not cards).
 * Each row: small icon + title + short description + chevron.
 * Visually a navigation list, clearly different from Start Here cards.
 */
.codex-list {
  display: grid;
  gap: 10px;
  border-top: 1px solid hsl(var(--border-soft));
}
.codex-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-4);
  padding: 16px 4px;
  border-bottom: 1px solid hsl(var(--border-soft));
  color: inherit;
  transition: padding 0.18s var(--ease), background 0.18s var(--ease);
}
.codex-row:hover {
  text-decoration: none;
  background: hsl(var(--surface) / 0.6);
  padding-inline: var(--space-3);
  color: hsl(var(--foreground));
}
.codex-row__icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--surface));
  color: hsl(var(--accent-light));
}
.codex-row__icon svg {
  width: 18px;
  height: 18px;
}
.codex-row__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.codex-row__title {
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}
.codex-row__desc {
  font-size: 0.88rem;
  color: hsl(var(--muted));
  line-height: 1.5;
}
.codex-row__arrow {
  color: hsl(var(--faint));
  transition: transform 0.18s var(--ease), color 0.18s var(--ease);
}
.codex-row:hover .codex-row__arrow {
  color: hsl(var(--accent-light));
  transform: translateX(2px);
}

/* --------------------------------------------------------- essential list - */
/*
 * Essential Guides = editorial featured block + list.
 * The first guide is a wider featured panel; the rest are editorial rows
 * in a 2-column grid. Reads like an editor's reading list, not a card grid.
 */
.guide-featured {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: center;
  padding: var(--space-6);
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background:
    radial-gradient(
      600px 280px at 100% 0%,
      hsl(var(--accent) / 0.10),
      transparent 65%
    ),
    hsl(var(--surface));
  position: relative;
  overflow: hidden;
  margin-bottom: var(--space-5);
  color: inherit;
}
.guide-featured:hover {
  text-decoration: none;
  border-color: hsl(var(--accent) / 0.55);
  background:
    radial-gradient(
      600px 280px at 100% 0%,
      hsl(var(--accent) / 0.14),
      transparent 65%
    ),
    hsl(var(--surface-2));
  color: hsl(var(--foreground));
}
.guide-featured__meta {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: hsl(var(--accent-light));
  font-weight: 700;
  margin: 0 0 var(--space-3);
}
.guide-featured__title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 600;
  line-height: 1.25;
  color: hsl(var(--foreground));
  margin: 0 0 var(--space-3);
}
.guide-featured__desc {
  color: hsl(var(--muted));
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0;
  max-width: 60ch;
}
.guide-featured__rule {
  width: 48px;
  height: 1px;
  background: hsl(var(--accent) / 0.6);
  margin-bottom: var(--space-4);
}

.guide-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid hsl(var(--border-soft));
}
.guide-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 6px;
  border-bottom: 1px solid hsl(var(--border-soft));
  border-right: 1px solid hsl(var(--border-soft));
  color: inherit;
  transition: background 0.18s var(--ease), padding 0.18s var(--ease);
  position: relative;
}
.guide-row:nth-child(2n) {
  border-right: 0;
  padding-left: var(--space-5);
}
.guide-row:nth-child(2n + 1) {
  padding-right: var(--space-5);
}
.guide-row:hover {
  background: hsl(var(--surface) / 0.5);
  text-decoration: none;
  color: hsl(var(--foreground));
}
.guide-row__meta {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: hsl(var(--faint));
  font-weight: 700;
  margin: 0 0 4px;
}
.guide-row__title {
  font-family: var(--font-display);
  font-size: 1.04rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin: 0 0 4px;
  line-height: 1.3;
}
.guide-row__desc {
  font-size: 0.88rem;
  color: hsl(var(--muted));
  margin: 0;
  line-height: 1.55;
}

/* --------------------------------------------------------------- feed - */
/*
 * Latest Guides = compact recent-article feed.
 * Compact rows with a left crimson accent stripe + meta on the right.
 * Reads as a "recently published" feed, clearly different from Essential.
 */
.feed-list {
  display: grid;
  gap: 10px;
}
.feed-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: var(--space-4);
  align-items: baseline;
  padding: 14px var(--space-4);
  border: 1px solid hsl(var(--border-soft));
  border-left: 2px solid hsl(var(--accent) / 0.55);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: hsl(var(--surface) / 0.5);
  color: inherit;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease),
    transform 0.18s var(--ease);
}
.feed-row:hover {
  background: hsl(var(--surface-2));
  border-left-color: hsl(var(--accent));
  text-decoration: none;
  color: hsl(var(--foreground));
  transform: translateX(2px);
}
.feed-row__meta {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: hsl(var(--accent-light));
  font-weight: 700;
  white-space: nowrap;
}
.feed-row__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin: 0;
  line-height: 1.35;
}
.feed-row__desc {
  display: none;
}
.feed-row__time {
  font-size: 0.78rem;
  color: hsl(var(--faint));
  white-space: nowrap;
}

/* ----------------------------------------------------------------- media - */

.media {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
}
.media__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--surface-deep)) center / cover no-repeat;
}
.media__frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.media__poster {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  /* gradient fallback behind the thumbnail, in case the image is slow/blocked */
  background:
    radial-gradient(600px 300px at 50% 40%, hsl(var(--accent) / 0.22), transparent 70%),
    linear-gradient(160deg, hsl(220 12% 11%), hsl(220 14% 6%));
  border: 0;
  width: 100%;
  color: hsl(var(--foreground));
  cursor: pointer;
  font: inherit;
  text-align: center;
  text-decoration: none;
  padding: 0;
  overflow: hidden;
}
/* official trailer thumbnail (loads lazily, covers the 16:9 frame) */
.media__thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
}
/* legibility shade over the thumbnail (play button + caption) */
.media__shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(420px 220px at 50% 46%, hsl(0 0% 0% / 0.22), transparent 70%),
    linear-gradient(180deg, hsl(220 14% 5% / 0.1) 40%, hsl(220 14% 5% / 0.72) 100%);
  pointer-events: none;
}
.media__play {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: hsl(var(--accent));
  color: #fff;
  box-shadow: 0 12px 34px -10px hsl(0 0% 0% / 0.95);
  margin-bottom: 0;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease);
}
.media__poster:hover .media__play,
.media__poster:focus-visible .media__play {
  transform: scale(1.07);
  background: hsl(var(--accent-light));
}
.media__play svg {
  width: 24px;
  height: 24px;
  margin-left: 3px;
}
/* caption pinned to the bottom-left of the frame */
.media__caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 14px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
  pointer-events: none;
}
.media__caption-title {
  font-family: var(--font-display);
  font-size: 0.98rem;
  color: hsl(var(--foreground) / 0.96);
  text-shadow: 0 1px 10px hsl(0 0% 0% / 0.8);
}
.media__caption-sub {
  font-size: 0.76rem;
  color: hsl(var(--foreground) / 0.72);
  text-shadow: 0 1px 8px hsl(0 0% 0% / 0.8);
}
.media__body p {
  color: hsl(var(--muted));
  font-size: 0.95rem;
}

/* ----------------------------------------------------------------- about - */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.about__body h2 {
  font-size: clamp(1.55rem, 2.8vw, 2.05rem);
  margin: 0 0 var(--space-4);
}
.about__body p {
  color: hsl(var(--muted));
  font-size: 0.97rem;
  line-height: 1.7;
  margin: 0 0 var(--space-4);
}

.about-facts {
  margin: 0;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
  background: hsl(var(--surface));
}
.about-facts__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-4);
  padding: 13px var(--space-4);
  border-bottom: 1px solid hsl(var(--border-soft));
}
.about-facts__row:last-child {
  border-bottom: 0;
}
.about-facts__row dt {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: hsl(var(--faint));
  font-weight: 700;
}
.about-facts__row dd {
  margin: 0;
  font-size: 0.92rem;
  text-align: right;
  color: hsl(var(--foreground));
  font-family: var(--font-display);
  font-weight: 500;
}

/* --------------------------------------------------------------- article - */

.breadcrumb {
  font-size: 0.8rem;
  color: hsl(var(--faint));
  margin-bottom: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.breadcrumb a {
  color: hsl(var(--muted));
}
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
}
.breadcrumb li + li::before {
  content: '/';
  margin-right: 6px;
  color: hsl(var(--border));
}

.article-head {
  margin-bottom: var(--space-6);
}
.article-head h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin: 8px 0 12px;
  letter-spacing: -0.015em;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 0.8rem;
  color: hsl(var(--faint));
}
.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.article-meta .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: hsl(var(--border));
}

/* Mobile inline collapsible TOC (rendered once into the article body) */
.toc-mobile {
  display: none;
  margin: 0 0 var(--space-5);
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--surface));
}
.toc-mobile summary {
  cursor: pointer;
  list-style: none;
  padding: 12px var(--space-4);
  font-family: var(--font-body);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: hsl(var(--faint));
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.toc-mobile summary::-webkit-details-marker {
  display: none;
}
.toc-mobile summary::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 2px solid hsl(var(--accent-light));
  border-bottom: 2px solid hsl(var(--accent-light));
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.18s var(--ease);
}
.toc-mobile[open] summary::after {
  transform: rotate(-135deg) translate(-2px, -2px);
}
.toc-mobile ol {
  list-style: none;
  padding: 0 var(--space-4) var(--space-4);
  margin: 0;
  counter-reset: toc;
}
.toc-mobile li {
  counter-increment: toc;
  margin: 0;
  border-top: 1px solid hsl(var(--border-soft));
}
.toc-mobile a {
  display: block;
  padding: 10px 0 10px 26px;
  font-size: 0.92rem;
  color: hsl(var(--muted));
  position: relative;
}
.toc-mobile a::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 0.74rem;
  color: hsl(var(--accent-light));
  font-weight: 600;
  letter-spacing: 0.05em;
}
.toc-mobile a:hover {
  color: hsl(var(--foreground));
  text-decoration: none;
}

.quick-answer {
  position: relative;
  border: 1px solid hsl(var(--accent) / 0.4);
  background: linear-gradient(
    180deg,
    hsl(var(--accent) / 0.10),
    hsl(var(--accent) / 0.03)
  );
  border-left: 3px solid hsl(var(--accent));
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 0 0 var(--space-5);
}
.quick-answer__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: hsl(var(--accent-light));
  margin: 0 0 6px;
}
.quick-answer p {
  margin: 0;
  color: hsl(var(--foreground) / 0.92);
}
.quick-answer p + p {
  margin-top: 0.7em;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.article-body {
  max-width: var(--reading);
  min-width: 0;
}
.article-body h2 {
  font-size: clamp(1.3rem, 2.2vw, 1.55rem);
  margin-top: 2em;
  padding-top: 0.2em;
  letter-spacing: -0.01em;
  scroll-margin-top: calc(var(--header-h) + 18px);
}
.article-body h3 {
  font-size: 1.06rem;
  margin-top: 1.6em;
  color: hsl(var(--foreground) / 0.94);
  scroll-margin-top: calc(var(--header-h) + 18px);
}
.article-body > h2:first-child {
  margin-top: 0;
}
.article-body p {
  color: hsl(var(--foreground-soft));
}
.article-body li {
  color: hsl(var(--foreground-soft));
}
.article-body a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: hsl(var(--accent) / 0.5);
}
.article-body a:hover {
  text-decoration-color: hsl(var(--accent-light));
}

.toc {
  position: sticky;
  top: calc(var(--header-h) + 18px);
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--surface));
  padding: 16px 18px;
}
.toc__title {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: hsl(var(--faint));
  font-weight: 700;
  margin: 0 0 10px;
  font-family: var(--font-body);
}
.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc;
}
.toc li {
  counter-increment: toc;
  margin: 0;
}
.toc a {
  display: block;
  padding: 6px 0 6px 12px;
  font-size: 0.83rem;
  line-height: 1.45;
  color: hsl(var(--muted));
  border-left: 2px solid transparent;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.toc a:hover,
.toc a.is-active {
  color: hsl(var(--foreground));
  text-decoration: none;
  border-left-color: hsl(var(--accent));
}
.toc a.is-active {
  background: hsl(var(--accent) / 0.06);
}

/* ------------------------------------------------------------- callouts - */

.callout {
  border: 1px solid hsl(var(--border));
  border-left: 3px solid hsl(var(--border));
  background: hsl(var(--surface));
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 0 0 1.5em;
}
.callout__title {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 6px;
  font-family: var(--font-body);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.callout p:last-child {
  margin-bottom: 0;
}
.callout--tip {
  border-left-color: hsl(var(--positive));
  background: linear-gradient(
    180deg,
    hsl(var(--positive) / 0.08),
    hsl(var(--positive) / 0.02)
  );
}
.callout--tip .callout__title {
  color: hsl(var(--positive));
}
.callout--warning {
  border-left-color: hsl(var(--warning));
  background: linear-gradient(
    180deg,
    hsl(var(--warning) / 0.08),
    hsl(var(--warning) / 0.02)
  );
}
.callout--warning .callout__title {
  color: hsl(var(--warning));
}
.callout--note {
  border-left-color: hsl(var(--accent));
  background: linear-gradient(
    180deg,
    hsl(var(--accent) / 0.08),
    hsl(var(--accent) / 0.02)
  );
}
.callout--note .callout__title {
  color: hsl(var(--accent-light));
}

/* --------------------------------------------------------------- tables - */

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  margin: 0 0 var(--space-5);
  background: hsl(var(--surface));
}
.table-wrap:focus-visible {
  outline: 2px solid hsl(var(--accent-light));
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 480px;
}
thead th {
  text-align: left;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: hsl(var(--faint));
  background: hsl(var(--surface-2));
  padding: 12px 14px;
  border-bottom: 1px solid hsl(var(--border));
  font-weight: 700;
  position: sticky;
  top: 0;
}
tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid hsl(var(--border-soft));
  color: hsl(var(--foreground-soft));
  vertical-align: top;
  line-height: 1.5;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover td {
  background: hsl(var(--surface-2) / 0.6);
}

/* --------------------------------------------------------------- sources - */

.sources-list {
  list-style: none;
  margin: 0 0 var(--space-5);
  padding: 12px var(--space-4);
  border: 1px solid hsl(var(--border-soft));
  border-radius: var(--radius);
  background: hsl(var(--surface) / 0.55);
}
.sources-list li {
  margin: 0;
  padding: 8px 0;
  border-bottom: 1px solid hsl(var(--border-soft));
  font-size: 0.88rem;
}
.sources-list li:last-child {
  border-bottom: 0;
}
.sources-list a {
  color: hsl(var(--muted));
}
.sources-list a:hover {
  color: hsl(var(--accent-light));
}

/* ------------------------------------------------------------------- faq - */

.faq {
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
  background: hsl(var(--surface));
}
.faq details {
  border-bottom: 1px solid hsl(var(--border-soft));
}
.faq details:last-child {
  border-bottom: 0;
}
.faq summary {
  cursor: pointer;
  padding: 16px 48px 16px 20px;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  position: relative;
  list-style: none;
  transition: background 0.15s var(--ease);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary:hover {
  background: hsl(var(--surface-2));
}
.faq summary::after {
  content: '';
  position: absolute;
  right: 20px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid hsl(var(--accent-light));
  border-bottom: 2px solid hsl(var(--accent-light));
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s var(--ease);
}
.faq details[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}
.faq__answer {
  padding: 0 20px 18px;
  color: hsl(var(--muted));
  font-size: 0.94rem;
}
.faq__answer p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------- sidebar - */

.sidebar-widget {
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--surface));
  padding: 16px 18px;
  margin-bottom: 16px;
}
.sidebar-widget__title {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: hsl(var(--faint));
  font-weight: 700;
  margin: 0 0 10px;
  font-family: var(--font-body);
}
.sidebar-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sidebar-links li {
  margin: 0;
  border-bottom: 1px solid hsl(var(--border-soft));
}
.sidebar-links li:last-child {
  border-bottom: 0;
}
.sidebar-links a {
  display: block;
  padding: 9px 0;
  font-size: 0.87rem;
  color: hsl(var(--muted));
}
.sidebar-links a:hover {
  color: hsl(var(--foreground));
  text-decoration: none;
}

/* ------------------------------------------------------------------- cta - */

.cta-banner {
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background:
    radial-gradient(600px 260px at 80% 0%, hsl(var(--accent) / 0.16), transparent 65%),
    hsl(var(--surface));
  padding: clamp(24px, 3.4vw, 40px);
  text-align: center;
}
.cta-banner .eyebrow::after {
  display: none;
}
.cta-banner .eyebrow {
  justify-content: center;
}
.cta-banner h2 {
  font-size: clamp(1.55rem, 3.2vw, 2.2rem);
  margin: 0 0 var(--space-3);
}
.cta-banner p {
  color: hsl(var(--muted));
  max-width: 52ch;
  margin-inline: auto;
}
.cta-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: var(--space-4);
}

/* ---------------------------------------------------------------- footer - */
/*
 * Footer is intentionally lighter than the main content:
 *  - compact brand + one-line about
 *  - scan-friendly nav columns (Guides / Resources)
 *  - slim legal row (no language switcher until real localized pages exist)
 *  - trademark disclaimer in a single, smaller-type line
 */
.site-footer {
  border-top: 1px solid hsl(var(--border-soft));
  background: hsl(var(--surface-deep));
  padding-block: var(--space-6) var(--space-4);
}
.site-footer__main {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr));
  gap: var(--space-6) var(--space-6);
}
.site-footer__brand h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.site-footer__about {
  margin: 0;
  font-size: 0.86rem;
  color: hsl(var(--muted));
  line-height: 1.65;
  max-width: 36ch;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: hsl(var(--faint));
  margin: 0 0 12px;
  font-weight: 700;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-col li {
  margin: 0 0 8px;
}
.footer-col a {
  color: hsl(var(--muted));
  font-size: 0.87rem;
}
.footer-col a:hover {
  color: hsl(var(--foreground));
  text-decoration: none;
}

.site-footer__util {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid hsl(var(--border-soft));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-3);
}
.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.legal-links a {
  font-size: 0.82rem;
  color: hsl(var(--muted));
}

.footer-bottom {
  margin-top: var(--space-3);
  padding-top: var(--space-2);
  border-top: 1px solid hsl(var(--border-soft));
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
  font-size: 0.78rem;
  color: hsl(var(--faint));
}
.footer-bottom a {
  color: hsl(var(--muted));
}
.footer-disclaimer {
  font-size: 0.76rem;
  color: hsl(var(--faint));
  margin: var(--space-2) 0 0;
  max-width: 90ch;
  line-height: 1.55;
}

/* ------------------------------------------------------------- mobile nav */

.drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
}
.drawer[data-open='true'] {
  display: block;
}
.drawer__backdrop {
  position: absolute;
  inset: 0;
  background: hsl(0 0% 0% / 0.65);
  border: 0;
  width: 100%;
  cursor: pointer;
}
.drawer__panel {
  position: absolute;
  inset: 0 auto 0 0;
  width: min(320px, 86vw);
  background: hsl(var(--surface));
  border-right: 1px solid hsl(var(--border));
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.drawer__panel a {
  color: hsl(var(--foreground));
  padding: 12px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.96rem;
  border-bottom: 1px solid hsl(var(--border-soft));
}
.drawer__panel a:hover {
  background: hsl(var(--surface-2));
  text-decoration: none;
}
.drawer__close {
  align-self: flex-end;
  margin-bottom: 6px;
}

/* --------------------------------------------------------------- search - */

.search-form {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.search-input {
  flex: 1 1 260px;
  min-width: 0;
  background: hsl(var(--surface));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-sm);
  color: hsl(var(--foreground));
  padding: 12px 14px;
  font: inherit;
  font-size: 0.95rem;
}
.search-input:focus {
  outline: none;
  border-color: hsl(var(--accent) / 0.7);
  box-shadow: 0 0 0 3px hsl(var(--accent) / 0.15);
}
.search-results {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.search-result {
  display: block;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--surface));
  padding: 16px 18px;
  color: inherit;
}
.search-result:hover {
  text-decoration: none;
  border-color: hsl(var(--accent) / 0.5);
  background: hsl(var(--surface-2));
  color: hsl(var(--foreground));
}
.search-result__crumb {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: hsl(var(--faint));
  margin: 0 0 4px;
}
.search-result__title {
  font-family: var(--font-display);
  font-size: 1.06rem;
  color: hsl(var(--foreground));
  margin: 0 0 5px;
}
.search-result__excerpt {
  margin: 0;
  font-size: 0.88rem;
  color: hsl(var(--muted));
}
.search-empty {
  color: hsl(var(--muted));
  padding: 24px;
  border: 1px dashed hsl(var(--border));
  border-radius: var(--radius);
  text-align: center;
}

/* ------------------------------------------------------------ responsive - */

@media (max-width: 1080px) {
  .main-nav {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .article-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .toc {
    display: none;
  }
  .toc-mobile {
    display: block;
  }
}

@media (max-width: 960px) {
  .media {
    grid-template-columns: minmax(0, 1fr);
  }
  .guide-featured {
    grid-template-columns: minmax(0, 1fr);
  }
  .about {
    grid-template-columns: minmax(0, 1fr);
  }
  .site-footer__main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .stats-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stats-strip__item:nth-child(2) {
    border-left: 0;
  }
  .stats-strip__item:nth-child(-n + 2) {
    border-bottom: 1px solid hsl(var(--border-soft));
  }
  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .guide-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .guide-row,
  .guide-row:nth-child(2n),
  .guide-row:nth-child(2n + 1) {
    border-right: 0;
    padding-inline: 4px;
  }
  .feed-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    align-items: start;
  }
  .feed-row__time {
    align-self: start;
  }
  .brand__text small {
    display: none;
  }
  .header-actions .btn--steam {
    display: none;
  }
}

@media (max-width: 560px) {
  .container {
    padding-inline: 16px;
  }
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero__cta .btn {
    flex: 1 1 auto;
  }
  .cta-banner__actions .btn {
    flex: 1 1 auto;
  }
  body {
    font-size: 15.5px;
  }
  .site-header__inner {
    gap: 8px;
  }
  .brand {
    font-size: 0.94rem;
  }
  .brand__text span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 180px;
  }
  .site-footer__main {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-5);
  }
}

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

/* ------------------------------------------------------------------ misc - */

.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;
}

.notice-pending {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: hsl(var(--warning));
  border: 1px dashed hsl(var(--warning) / 0.5);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
}