/* Archer MacLean Fan Site - style.css */
/* Identity: #eaf2f8 bg, Exo 2 headings, #1a6fb5 primary, #e8730a secondary, blueprint/arena */

@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@400;700&display=swap');

/* ============================================================
   CSS Custom Properties
   ============================================================ */
:root {
  --bg:           #eaf2f8;
  --bg-card:      #f4f8fb;
  --bg-elevated:  #ffffff;
  --bg-dark:      #0d1a2a;
  --accent:       #1a6fb5;
  --accent-dim:   #155990;
  --secondary:    #e8730a;
  --secondary-dim:#c0600a;
  --text:         #1a2533;
  --text-muted:   #5a6a7a;
  --text-light:   #8a9aaa;
  --border:       #c4d8e8;
  --border-accent:#1a6fb540;
  --heading-font: 'Exo 2', sans-serif;
  --body-font:    'Exo 2', sans-serif;
  --gold:         #d4a017;
  --green:        #1a8040;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body-font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

ul, ol { list-style: none; }

h1, h2, h3, h4, h5 {
  font-family: var(--heading-font);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

/* ============================================================
   Skip Link
   ============================================================ */
.skip-link {
  position: absolute;
  top: -4rem;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  z-index: 9999;
  border-radius: 0 0 4px 4px;
  font-family: var(--heading-font);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}
.skip-link:focus { top: 0; }

/* ============================================================
   Header & Navigation
   ============================================================ */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(234, 242, 248, 0.97);
  border-bottom: 2px solid var(--accent);
  backdrop-filter: blur(8px);
}

.site-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 3.5rem;
}

.site-logo {
  font-family: var(--heading-font);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.site-logo:hover { text-decoration: none; color: var(--accent-dim); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 1.2rem;
  padding: 0.25rem 0.6rem;
  cursor: pointer;
  border-radius: 3px;
  margin-left: auto;
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

#site-nav { margin-left: auto; }
#site-nav .nav-links {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  flex-wrap: wrap;
}
#site-nav .nav-links li a {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  padding: 0.3rem 0.6rem;
  border-radius: 3px;
  transition: background 0.15s, color 0.15s;
}
#site-nav .nav-links li a:hover { background: var(--border-accent); color: var(--accent); text-decoration: none; }
#site-nav .nav-links li a[aria-current="page"] {
  background: var(--accent);
  color: #fff;
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  #site-nav {
    display: none;
    position: absolute;
    top: 3.5rem;
    left: 0; right: 0;
    background: var(--bg-elevated);
    border-bottom: 2px solid var(--accent);
    z-index: 99;
  }
  #site-nav.open { display: block; }
  #site-nav .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem;
  }
  #site-nav .nav-links li { width: 100%; }
  #site-nav .nav-links li a { display: block; padding: 0.6rem 1rem; }
}

/* ============================================================
   Layout Utilities
   ============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.section-label {
  font-family: var(--heading-font);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary);
  display: block;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 680px;
}

.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 760px;
  margin-bottom: 2rem;
}

.prose p + p { margin-top: 1.2rem; }
.prose h2 { margin-top: 2.5rem; margin-bottom: 1rem; font-size: 1.6rem; color: var(--accent); }
.prose h3 { margin-top: 2rem; margin-bottom: 0.75rem; font-size: 1.25rem; color: var(--text); }
.prose img { margin: 1.5rem 0; border-radius: 4px; border: 1px solid var(--border); }

/* ============================================================
   Hero — IK+ Arena Floor (perspective + rotateX)
   ============================================================ */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  background: var(--bg-dark);
  overflow: hidden;
  padding: 4rem 0;
}

/* The receding arena floor - unique advanced CSS for this site */
.hero-arena-floor {
  position: absolute;
  inset: 0;
  perspective: 600px;
  perspective-origin: 50% 0%;
  pointer-events: none;
}

.hero-arena-floor-grid {
  position: absolute;
  bottom: 0;
  left: -20%;
  width: 140%;
  height: 55%;
  background-image:
    linear-gradient(rgba(26, 111, 181, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 111, 181, 0.35) 1px, transparent 1px);
  background-size: 80px 80px;
  transform: rotateX(55deg);
  transform-origin: 50% 100%;
  will-change: transform;
}

.hero-arena-floor-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--bg-dark) 0%, transparent 40%, transparent 70%, var(--bg-dark) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  color: #fff;
}

.hero-eyebrow {
  font-family: var(--heading-font);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 0.75rem;
}

.hero-content h1 {
  color: #fff;
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-family: var(--heading-font);
  margin-bottom: 1rem;
}

.hero-name-accent { color: var(--secondary); }

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  max-width: 600px;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-value {
  font-family: var(--heading-font);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--secondary);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.7rem 1.6rem;
  border-radius: 3px;
  display: inline-block;
  transition: background 0.15s, color 0.15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dim); color: #fff; }
.btn-secondary { background: transparent; border: 2px solid rgba(255,255,255,0.4); color: #fff; }
.btn-secondary:hover { border-color: #fff; background: rgba(255,255,255,0.1); color: #fff; }

/* ============================================================
   Screenshot Strip
   ============================================================ */
.screenshot-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.5rem;
  margin: 2rem 0;
}

.screenshot-strip figure {
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg-dark);
}

.screenshot-strip img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.screenshot-strip figcaption {
  font-size: 0.72rem;
  color: var(--text-light);
  padding: 0.3rem 0.5rem;
}

/* ============================================================
   Site Stats Bar
   ============================================================ */
.site-stats {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  padding: 1.5rem 2rem;
  border-radius: 4px;
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.site-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.site-stat-value {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--accent);
}

.site-stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

/* ============================================================
   Cards & Grids
   ============================================================ */
.page-hero {
  background: var(--bg-dark);
  color: #fff;
  padding: 3rem 0;
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 0.75rem;
}

.page-hero .section-label { color: var(--secondary); }
.page-hero .section-subtitle { color: rgba(255,255,255,0.65); }

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

article.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s;
}

article.game-card:hover { border-color: var(--accent); }

.game-card-image {
  background: var(--bg-dark);
  aspect-ratio: 3/4;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}

.game-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.game-card-body {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.game-card-title {
  font-family: var(--heading-font);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.game-card-year {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.platform-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: auto;
}

.badge {
  font-family: var(--heading-font);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  background: var(--border-accent);
  color: var(--accent);
  border: 1px solid var(--border-accent);
}

/* ============================================================
   Filter Controls
   ============================================================ */
.filter-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem 0;
}

.filter-btn {
  font-family: var(--heading-font);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 3px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ============================================================
   Gallery
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.gallery-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.gallery-item figure { display: flex; flex-direction: column; height: 100%; }
.gallery-item img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.gallery-item figcaption {
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ============================================================
   Inline Embeds
   ============================================================ */
.inline-embed {
  margin: 2rem 0;
}

.inline-embed h4 {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  font-weight: 400;
}

.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================================
   Flagship - Article Layout
   ============================================================ */
.flagship-article {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.flagship-article h2 {
  font-size: 1.7rem;
  color: var(--accent);
  margin-top: 3rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.5rem;
}

.flagship-article h3 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.flagship-article p { margin-bottom: 1.2rem; }

.flagship-article img {
  border-radius: 4px;
  border: 1px solid var(--border);
  margin: 1.5rem auto;
  max-width: 100%;
}

.flagship-game-divider {
  border: none;
  border-top: 3px solid var(--accent);
  margin: 4rem 0;
}

/* ============================================================
   Trivia & Dev Quotes
   ============================================================ */
aside.trivia {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(26,111,181,0.06) 100%);
  border-left: 4px solid var(--secondary);
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 4px 4px 0;
  font-size: 0.95rem;
  color: var(--text);
}

aside.trivia p { margin: 0; }

blockquote.dev-quote {
  border-left: 4px solid var(--accent);
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
  background: rgba(26, 111, 181, 0.06);
  border-radius: 0 4px 4px 0;
  font-style: italic;
  font-size: 1.05rem;
}

blockquote.dev-quote cite {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.82rem;
  font-style: normal;
  color: var(--text-muted);
  font-weight: 700;
}

/* ============================================================
   Reviews
   ============================================================ */
.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.review-score {
  font-family: var(--heading-font);
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary);
}

.review-source {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.review-text {
  margin-top: 0.75rem;
  font-style: italic;
  color: var(--text);
}

.review-cite {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: normal;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.gold-medal {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gold);
  color: #fff;
  font-family: var(--heading-font);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 2px;
  margin-bottom: 0.5rem;
}

/* ============================================================
   SID Player
   ============================================================ */
.sid-player-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 4px;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.spb-btn {
  background: none;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 0.25rem 0.6rem;
  cursor: pointer;
  border-radius: 2px;
  font-size: 0.85rem;
  transition: background 0.15s, color 0.15s;
}

.spb-btn:hover { background: var(--accent); color: #fff; }
.spb-btn.play { background: var(--accent); color: #fff; font-weight: 700; }
.spb-btn.play:hover { background: var(--accent-dim); }

.spb-nowplaying { flex: 1; min-width: 0; }
#np-title { font-size: 0.88rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#np-composer { font-size: 0.75rem; color: var(--text-muted); }

.spb-eq { display: flex; gap: 2px; align-items: flex-end; height: 1rem; }
.spb-eq span { width: 3px; background: var(--accent); border-radius: 1px; }

.sid-player {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.sid-player:hover { border-color: var(--accent); background: rgba(26,111,181,0.04); }
.sid-player.playing { border-color: var(--accent); background: rgba(26,111,181,0.08); }

.sid-player h4 { font-size: 1rem; margin-bottom: 0.25rem; color: var(--accent); }
.sid-meta { font-size: 0.78rem; color: var(--text-muted); }
.sid-note { font-size: 0.75rem; color: var(--text-light); margin-top: 0.25rem; }

.sid-group-title {
  font-family: var(--heading-font);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 2rem 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}

.subtune-controls {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.subtune-btn {
  font-size: 0.72rem;
  font-family: var(--heading-font);
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.15s, color 0.15s;
}

.subtune-btn:hover { border-color: var(--accent); color: var(--accent); }
.subtune-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ============================================================
   Videos Grid
   ============================================================ */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.video-card .video-embed {
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--border);
}

.video-card-body { padding: 0.75rem 1rem; }
.video-card-title { font-family: var(--heading-font); font-size: 0.9rem; font-weight: 700; color: var(--text); }
.video-card-meta { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.25rem; }

/* ============================================================
   Resources
   ============================================================ */
.resources-section { margin-bottom: 2.5rem; }
.resources-section h2 { font-size: 1.4rem; margin-bottom: 1rem; color: var(--accent); padding-bottom: 0.5rem; border-bottom: 1px solid var(--border); }

.resource-list { display: flex; flex-direction: column; gap: 0.5rem; }

.resource-item {
  display: grid;
  grid-template-columns: minmax(200px, auto) 1fr;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  align-items: start;
}

.resource-name { font-weight: 700; color: var(--text); }
.resource-desc { font-size: 0.9rem; color: var(--text-muted); }

@media (max-width: 560px) {
  .resource-item { grid-template-columns: 1fr; }
}

/* ============================================================
   Footnotes / Citations
   ============================================================ */
.footnotes {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footnotes h4 { font-size: 0.85rem; margin-bottom: 0.5rem; }
.footnotes ol { list-style: decimal; padding-left: 1.5rem; }
.footnotes li { margin-bottom: 0.25rem; }

/* ============================================================
   Dropzone Easter Egg - Defender Ship
   ============================================================ */
.dropzone-ship {
  position: fixed;
  top: 30%;
  right: -200px;
  z-index: 9998;
  font-size: 2.5rem;
  opacity: 0;
  pointer-events: none;
  animation: none;
  filter: drop-shadow(0 0 8px var(--secondary));
}

.dropzone-ship.animating {
  opacity: 1;
  animation: ship-cross 2.5s ease-in-out forwards;
}

@keyframes ship-cross {
  0%   { right: -200px; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { right: calc(100vw + 200px); opacity: 0; }
}

/* ============================================================
   Dropzone Easter Egg Modal overlay styles
   ============================================================ */
.dropzone-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dropzone-modal-overlay.hidden { display: none; }

.dropzone-modal {
  background: var(--bg-elevated);
  border: 2px solid var(--secondary);
  border-radius: 6px;
  padding: 2rem;
  max-width: 520px;
  width: 90%;
  position: relative;
}

.dropzone-modal h2 { color: var(--secondary); margin-bottom: 1rem; font-size: 1.5rem; }
.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
}
.modal-close:hover { color: var(--text); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.4);
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.82rem;
  margin-top: 4rem;
}

.site-footer a { color: rgba(255,255,255,0.6); }
.site-footer a:hover { color: #fff; }
.site-footer p + p { margin-top: 0.4rem; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 640px) {
  .hero { min-height: 380px; }
  .hero-stats { gap: 1.5rem; }
  .stat-value { font-size: 1.6rem; }
  .flagship-article { padding: 1.5rem 1rem; }
  .resource-item { grid-template-columns: 1fr; }
  .videos-grid { grid-template-columns: 1fr; }
}
