/* =====================================================================
   RaidAr — Ghost theme for DJ RaidAr
   Plain CSS, no build step. All theming via custom properties.
   "Spinning worlds you've never found in the light."
   ===================================================================== */

:root {
  /* Palette (from the "Until Then" cover art) */
  --color-bg:           #080c14;
  --color-bg-secondary: #0d1520;
  --color-surface:      #111827;
  --color-border:       #1e2d42;
  --color-accent:       #c0192c;
  --color-accent-dim:   #8b2535;
  --color-gold:         #c9a84c;
  --color-text:         #e8eaf0;
  --color-text-muted:   #7a8fa6;
  --color-glow:         #4a90b8;

  /* Typography */
  --font-display: 'Bebas Neue', Impact, sans-serif;
  --font-body:    'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Motion */
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  /* Vinyl record reveal (percent of the record's own height) */
  --record-peek:  22%;   /* visible at rest */
  --record-hover: 60%;   /* visible on hover */

  /* Layout */
  --maxw:        1240px;
  --maxw-narrow: 760px;
  --nav-h:       70px;
  --radius:      8px;
  --overlay:     rgba(8, 12, 20, 0.45);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a { color: var(--color-text); text-decoration: none; transition: color .2s var(--transition-smooth); }
a:hover { color: var(--color-accent); }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.1; font-weight: 600; }

p { margin: 0 0 1.2em; }

::selection { background: var(--color-accent); color: #fff; }

/* --------------------------------------------------- Background video */
.bg-stage {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: var(--color-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  /* crossfade duration — keep in sync with FADE in main.js (1.0s) */
  transition: opacity 1s ease-in-out;
}
/* Player A is visible by default (and is the no-JS fallback). */
.bg-video-a { opacity: 1; }
.bg-overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay);
  /* gentle vignette + a cold blue-to-black depth */
  background-image:
    radial-gradient(120% 90% at 50% 0%, rgba(74,144,184,0.10), transparent 55%),
    linear-gradient(180deg, rgba(8,12,20,0.25) 0%, rgba(8,12,20,0.40) 55%, rgba(8,12,20,0.62) 100%);
}

/* --------------------------------------------------------- Structure */
.site-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.site-main { flex: 1 0 auto; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  width: 100%;
  max-width: var(--maxw-narrow);
  margin: 0 auto;
  padding: 0 24px;
}

/* ------------------------------------------------------------ Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .04em;
  color: var(--color-text);
  background: var(--color-accent);
  border: 1px solid var(--color-accent);
  border-radius: 999px;
  padding: .7em 1.5em;
  cursor: pointer;
  transition: transform .25s var(--transition-smooth),
              box-shadow .25s var(--transition-smooth),
              background .25s var(--transition-smooth);
}
.btn:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(192, 25, 44, 0.45);
}
.btn-sm { padding: .5em 1.1em; font-size: .82rem; }
.btn-hero {
  font-size: 1rem;
  padding: .85em 2em;
  background: transparent;
  border: 1.5px solid var(--color-accent);
}
.btn-hero:hover { background: var(--color-accent); }

/* ------------------------------------------------------- Tag pills */
.tag-pill {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-accent);
  border: 1px solid var(--color-accent-dim);
  border-radius: 999px;
  padding: .28em .85em;
  margin: 0 .35em .4em 0;
  background: rgba(192, 25, 44, 0.08);
  transition: background .2s var(--transition-smooth), color .2s var(--transition-smooth);
}
.tag-pill:hover { background: var(--color-accent); color: #fff; }

/* ====================================================== NAVIGATION */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 12, 20, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; }
.nav-logo img { max-height: 38px; width: auto; }
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: .06em;
  color: var(--color-text);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list li a {
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .03em;
  color: var(--color-text);
  padding: .4em 0;
  border-bottom: 2px solid transparent;
  transition: color .2s var(--transition-smooth), border-color .2s var(--transition-smooth);
}
.nav-list li a:hover { color: var(--color-accent); }
.nav-list li.nav-current a {
  color: var(--color-text);
  border-bottom-color: var(--color-accent);
}

.nav-portal { display: flex; align-items: center; gap: 1rem; }
.nav-signin { font-size: .9rem; font-weight: 500; color: var(--color-text-muted); }
.nav-signin:hover { color: var(--color-accent); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  z-index: 110;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform .3s var(--transition-smooth), opacity .3s var(--transition-smooth);
}

/* ============================================================= HERO */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 24px;
}
.hero-inner { max-width: 760px; }
.hero-logo {
  max-width: 420px;
  width: 70%;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 0 30px rgba(74, 144, 184, 0.25));
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 12vw, 8rem);
  letter-spacing: .04em;
  margin-bottom: 1rem;
  text-shadow: 0 0 40px rgba(74,144,184,0.3);
}
.hero-tagline {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-style: italic;
  color: var(--color-text-muted);
  margin-bottom: 2.2rem;
  letter-spacing: .02em;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid var(--color-text-muted);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 7px;
  opacity: .7;
  transition: opacity .2s var(--transition-smooth);
}
.scroll-indicator:hover { opacity: 1; border-color: var(--color-accent); }
.scroll-arrow {
  width: 4px;
  height: 9px;
  border-radius: 2px;
  background: var(--color-text);
  animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%   { transform: translateY(0);   opacity: 1; }
  70%  { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0);   opacity: 0; }
}

/* ========================================================= SECTIONS */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: .05em;
  text-align: center;
  margin-bottom: 2.5rem;
  color: var(--color-text);
}
.episodes { padding: 4rem 0 5rem; }
.empty { text-align: center; color: var(--color-text-muted); padding: 3rem 0; }

/* ============================================ VINYL SLEEVE CARD GRID */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 2rem;
}

.post-card { position: relative; }
.card-link { display: block; }

/* The vinyl wrapper — square, holds the sleeve (front) + record (behind) */
.vinyl {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  /* leave room below for the record to slide out on hover */
  margin-bottom: 0;
}

/* --- The record (behind the sleeve) --- */
.vinyl-record {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 90%;
  aspect-ratio: 1 / 1;
  z-index: 1;
  transform: translateX(-50%) translateY(var(--record-peek));
  transition: transform .55s var(--transition-smooth);
  will-change: transform;
}
.vinyl-disc {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background:
    /* outer iridescent shimmer, very low opacity */
    conic-gradient(from 0deg,
      rgba(74,144,184,0.10), rgba(192,25,44,0.08),
      rgba(201,168,76,0.08), rgba(74,144,184,0.10)),
    /* concentric groove rings */
    repeating-radial-gradient(circle at center,
      #0a0a0a 0 1.5px, #161616 1.5px 3px),
    #0a0a0a;
  box-shadow:
    inset 0 0 0 2px #050505,
    0 14px 30px rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: spin 2s linear infinite;
  animation-play-state: paused;
}
@keyframes spin { to { transform: rotate(360deg); } }

.vinyl-label {
  width: 33%;
  height: 33%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #232347, #1a1a2e);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}
.vinyl-dot {
  width: 14%;
  height: 14%;
  min-width: 5px;
  min-height: 5px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 8px 1px rgba(192,25,44,0.8);
}

/* --- The sleeve (front, square LP jacket) --- */
.vinyl-sleeve {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  /* cardboard depth */
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.03),
    0 10px 30px rgba(0,0,0,0.5);
  transition: transform .5s var(--transition-smooth),
              box-shadow .5s var(--transition-smooth);
}
.sleeve-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sleeve-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  background:
    linear-gradient(135deg, var(--color-bg-secondary), var(--color-surface));
}
.sleeve-fallback span {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: .04em;
  color: var(--color-text-muted);
}

/* --- Hover: record slides out + spins, sleeve lifts with red glow --- */
.card-link:hover .vinyl-record,
.card-link:focus-visible .vinyl-record {
  transform: translateX(-50%) translateY(var(--record-hover));
}
.card-link:hover .vinyl-disc,
.card-link:focus-visible .vinyl-disc {
  animation-play-state: running;
}
.card-link:hover .vinyl-sleeve,
.card-link:focus-visible .vinyl-sleeve {
  transform: scale(1.03);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.04),
    0 0 24px rgba(192, 25, 44, 0.35),
    0 16px 40px rgba(0,0,0,0.55);
}

/* --- Card text --- */
.card-info {
  /* push down to clear the record that peeks ~20% below the sleeve at rest
     (record width 90% × --record-peek 22% ≈ 20% of the card width) */
  margin-top: 20%;
  padding-top: .4rem;
}
.card-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.25;
  margin: .2em 0 .35em;
}
.card-title a { color: var(--color-text); }
.card-title a:hover { color: var(--color-accent); }
.card-date {
  display: block;
  font-weight: 300;
  font-size: .82rem;
  letter-spacing: .04em;
  color: var(--color-text-muted);
  margin-bottom: .5rem;
}
.card-excerpt {
  font-size: .92rem;
  color: var(--color-text-muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================ POST */
.post, .page-generic, .page-about, .page-contact { padding: 3rem 0 4rem; }

.post-header { text-align: center; padding-top: 1rem; }
.post-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  letter-spacing: .03em;
  margin: .3em 0;
}
.post-meta {
  font-weight: 300;
  font-size: .9rem;
  letter-spacing: .04em;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  margin-bottom: 1rem;
}
.post-meta .dot { color: var(--color-accent); }

/* Feature image as a large vinyl at the top of a post */
.post-feature {
  max-width: 560px;
  margin: 2.5rem auto 3.5rem;
  padding: 0 24px;
}
.vinyl-feature .vinyl-record {
  /* show a touch more of the record on the feature, animate gently */
  transform: translateX(-50%) translateY(18%);
}
.vinyl-feature:hover .vinyl-record { transform: translateX(-50%) translateY(38%); }
.vinyl-feature:hover .vinyl-disc { animation-play-state: running; }
.vinyl-feature:hover .vinyl-sleeve {
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.04),
    0 0 32px rgba(192, 25, 44, 0.35),
    0 18px 44px rgba(0,0,0,0.6);
}

/* Post body content */
.post-content { font-size: 1.08rem; }
.post-content > * { margin-bottom: 1.5rem; }
.post-content h1, .post-content h2, .post-content h3, .post-content h4 {
  font-family: var(--font-body);
  font-weight: 600;
  margin-top: 2rem;
  color: var(--color-text);
}
.post-content h2 { font-size: 1.8rem; }
.post-content h3 { font-size: 1.4rem; }
.post-content a { color: var(--color-accent); border-bottom: 1px solid rgba(192,25,44,0.4); }
.post-content a:hover { border-bottom-color: var(--color-accent); }
.post-content img { border-radius: var(--radius); margin: 2rem auto; }
.post-content blockquote {
  margin: 2rem 0;
  padding: .5rem 1.5rem;
  border-left: 3px solid var(--color-accent);
  color: var(--color-text-muted);
  font-style: italic;
}
.post-content figcaption {
  text-align: center;
  font-size: .85rem;
  color: var(--color-text-muted);
}
.post-content hr { border: none; border-top: 1px solid var(--color-border); }
.post-content pre {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  overflow-x: auto;
  font-size: .9rem;
}
.post-content code { font-size: .9em; }
.post-content :not(pre) > code {
  background: var(--color-bg-secondary);
  padding: .15em .4em;
  border-radius: 4px;
}
/* Wide / full Koenig card widths */
.post-content .kg-width-wide { max-width: 1040px; margin-left: 50%; transform: translateX(-50%); }
.post-content .kg-width-full { max-width: 100vw; margin-left: 50%; transform: translateX(-50%); }

/* Post footer / share */
.post-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.share { display: flex; align-items: center; gap: .8rem; }
.share-label {
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  color: var(--color-text-muted);
  transition: color .2s var(--transition-smooth), border-color .2s var(--transition-smooth), background .2s var(--transition-smooth);
}
.share-btn:hover { color: #fff; border-color: var(--color-accent); background: var(--color-accent); }
.post-tags { display: flex; flex-wrap: wrap; }

/* Membership CTA */
.post-cta {
  margin: 3.5rem auto 0;
  text-align: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
}
.post-cta h3 { font-family: var(--font-display); font-size: 2rem; letter-spacing: .04em; }
.post-cta p { color: var(--color-text-muted); margin-bottom: 1.5rem; }

/* ============================================================ PAGES */
.page-feature { margin: 2rem auto 3rem; }
.page-feature img { border-radius: var(--radius); width: 100%; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3rem;
  align-items: start;
  margin: 2rem 0 3rem;
}
.about-portrait img,
.portrait-fallback {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: 0 14px 40px rgba(0,0,0,0.5);
}
.portrait-fallback {
  aspect-ratio: 3 / 4;
  background: linear-gradient(160deg, var(--color-bg-secondary), var(--color-surface));
}
.about-body .post-title { text-align: left; font-size: clamp(2.2rem, 5vw, 3.6rem); }
.two-col { columns: 2; column-gap: 2.5rem; }
.two-col p { break-inside: avoid; }

.callout {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-gold);
  border-radius: var(--radius);
  padding: 1.8rem 2rem;
  margin: 2.5rem 0;
}
.callout-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: .05em;
  color: var(--color-gold);
}
.callout p { margin: 0; color: var(--color-text-muted); }

.about-cta { text-align: center; margin-top: 2rem; }

/* Contact / booking form */
.lead { font-size: 1.2rem; color: var(--color-text-muted); margin-bottom: 2rem; }
.booking-form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 2rem 0;
}
.form-note { font-size: .85rem; color: var(--color-text-muted); margin-bottom: 1.5rem; }
.form-row { margin-bottom: 1.2rem; display: flex; flex-direction: column; }
.form-row label {
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: .4rem;
}
.form-row input,
.form-row textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: .7rem .9rem;
  width: 100%;
  resize: vertical;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(192,25,44,0.2);
}

/* Social rows */
.social-row {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.social-row a {
  color: var(--color-text-muted);
  transition: color .2s var(--transition-smooth), transform .2s var(--transition-smooth);
}
.social-row a:hover { color: var(--color-accent); transform: translateY(-2px); }
.about-social, .contact-social { margin: 2rem 0; }

/* ============================================== ARCHIVE (tag/author) */
.archive-header {
  text-align: center;
  padding: 4rem 24px 1rem;
}
.archive-kicker {
  font-size: .8rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: .5rem;
}
.archive-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 5rem);
  letter-spacing: .04em;
}
.archive-desc {
  max-width: 620px;
  margin: 1rem auto 0;
  color: var(--color-text-muted);
}
.author-header .author-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 2px solid var(--color-border);
}

/* ====================================================== PAGINATION */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 3.5rem;
  font-weight: 500;
}
.pagination a {
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: .55em 1.4em;
  transition: border-color .2s var(--transition-smooth), color .2s var(--transition-smooth);
}
.pagination a:hover { border-color: var(--color-accent); color: var(--color-accent); }
.pagination .page-number { color: var(--color-text-muted); font-size: .9rem; }

/* ========================================================== ERROR */
.error-page {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 24px;
}
.error-code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 20vw, 12rem);
  line-height: .9;
  color: var(--color-accent);
  text-shadow: 0 0 50px rgba(192,25,44,0.4);
  margin: 0;
}
.error-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.5rem);
  letter-spacing: .04em;
}
.error-sub { color: var(--color-text-muted); font-size: 1.2rem; margin-bottom: 2rem; }
.error-message { margin-top: 2rem; font-size: .85rem; color: var(--color-text-muted); }

/* ========================================================== FOOTER */
.site-footer {
  flex-shrink: 0;
  border-top: 1px solid var(--color-border);
  background: rgba(8, 12, 20, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding: 3rem 0 2.5rem;
  margin-top: 2rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.4rem;
}
.footer-logo { max-height: 40px; width: auto; }
.footer-title { font-family: var(--font-display); font-size: 1.8rem; letter-spacing: .05em; }
.footer-tag {
  font-style: italic;
  font-weight: 300;
  color: var(--color-text-muted);
  margin: 0;
}
.footer-copy { font-size: .82rem; color: var(--color-text-muted); margin: 0; }
.footer-copy a { color: var(--color-text-muted); border-bottom: 1px solid transparent; }
.footer-copy a:hover { color: var(--color-accent); }

/* ===================================================== RESPONSIVE */
@media (max-width: 1000px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.5rem; }
}

@media (max-width: 820px) {
  body { font-size: 17px; }

  /* Mobile nav: hamburger + full-screen overlay */
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
    background: rgba(8, 12, 20, 0.97);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity .3s var(--transition-smooth), transform .3s var(--transition-smooth), visibility .3s;
  }
  .site-nav.is-open .nav-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .nav-list { flex-direction: column; gap: 1.6rem; text-align: center; }
  .nav-list li a { font-size: 1.6rem; font-family: var(--font-display); letter-spacing: .05em; }
  .nav-portal { flex-direction: column; }

  /* Animate hamburger into an X */
  .site-nav.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-nav.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  body.nav-open { overflow: hidden; }

  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-body .post-title { text-align: center; }
  .two-col { columns: 1; }
}

@media (max-width: 560px) {
  .card-grid { grid-template-columns: 1fr; }
  .post-card { max-width: 400px; margin: 0 auto; }
  .post-footer { flex-direction: column; align-items: flex-start; }
}

/* ===================================== REDUCED MOTION (accessibility) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  /* Hide the background video; the poster/cover image (or --color-bg) shows instead */
  .bg-video { display: none !important; }

  /* Kill all the decorative motion */
  .vinyl-disc { animation: none !important; }
  .scroll-arrow { animation: none !important; }
  .vinyl-record,
  .vinyl-sleeve,
  .btn,
  .nav-menu { transition: none !important; }

  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}