/* ── Design tokens ────────────────────────────────────────── */
:root {
  --gold:    #C9A04C;
  --burgundy: #3C0B24;
  --cream:   #F5F0E6;
  --dark:    #2C2C2C;
  --teal:    #1A3C45;
}

/* ── Body + fixed background ──────────────────────────────── */
body {
  font-family: 'EB Garamond', serif;
  background-color: var(--dark);
  color: var(--cream);
  background-image:
    linear-gradient(rgba(60,11,36,0.88), rgba(60,11,36,0.88)),
    url('https://picsum.photos/id/1015/2000/1200');
  background-size: cover;
  background-attachment: fixed;
  min-height: 100vh;
  position: relative;
}

/* ── Film grain overlay ───────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent, transparent 10px,
    rgba(255,255,255,0.03) 10px, rgba(255,255,255,0.03) 20px
  );
  animation: filmgrain 0.8s steps(5) infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes filmgrain {
  0%   { background-position: 0 0; }
  100% { background-position: 120px 120px; }
}

/* ── Typography helpers ───────────────────────────────────── */
.header-font {
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.12em;
}

/* ── Skip-to-content link ─────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--gold);
  color: var(--burgundy);
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-family: 'Playfair Display', serif;
  z-index: 9999;
  transition: top 0.2s;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

/* ── Standard nav ─────────────────────────────────────────── */
.site-nav {
  background: var(--burgundy);
  border-bottom: 4px solid var(--gold);
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-nav__inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-nav__logo {
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.12em;
  font-size: 1.875rem;
  color: var(--gold);
  text-decoration: none;
}
.site-nav__links {
  display: flex;
  gap: 2rem;
  font-size: 1.125rem;
}
.site-nav__links a {
  color: var(--cream);
  text-decoration: none;
  transition: color 0.2s;
}
.site-nav__links a:hover { color: var(--gold); }
.site-nav__links a[aria-current="page"] {
  color: var(--gold);
  border-bottom: 1px solid rgba(201,160,76,0.5);
  padding-bottom: 1px;
}

/* ── Breadcrumb ───────────────────────────────────────────── */
.breadcrumb {
  font-family: 'Playfair Display', serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: rgba(201,160,76,0.5);
  padding: 0.75rem 2rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  max-width: 72rem;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}
.breadcrumb a {
  color: rgba(201,160,76,0.5);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb__sep { color: rgba(201,160,76,0.25); }

/* ── Shared entry / essay classes ─────────────────────────── */
.pull-quote {
  border-left: 3px solid var(--gold);
  padding-left: 1.5rem;
  margin: 2.5rem 0;
  font-size: 1.25rem;
  line-height: 1.6;
  color: rgba(245,240,230,0.75);
  font-style: italic;
}

.word-ref {
  color: var(--gold);
  font-style: normal;
  letter-spacing: 0.05em;
}

.marginalia {
  font-style: italic;
  color: var(--gold);
  border-left: 4px solid var(--teal);
  padding-left: 1.75rem;
  margin: 2rem 0;
}

.pull-word {
  font-size: clamp(3rem, 10vw, 6rem);
  color: rgba(201,160,76,0.15);
  letter-spacing: 0.1em;
  line-height: 1;
  display: block;
  text-align: center;
  pointer-events: none;
  user-select: none;
  font-style: normal;
}

/* ── Shared animation utilities ───────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 0.35s ease forwards; }

@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
.cursor { animation: blink 1.1s step-end infinite; }

@keyframes lynchJitter {
  0%   { transform: translate(0, 0) rotate(-0.4deg); }
  100% { transform: translate(5px, -2px) rotate(0.4deg); }
}

/* ── Game card ────────────────────────────────────────────── */
.game-card {
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.game-card:hover {
  transform: rotate(1deg) scale(1.03);
  box-shadow: 0 0 30px rgba(201,160,76,0.35);
}

/* ── Responsive nav ───────────────────────────────────────── */
@media (max-width: 640px) {
  .site-nav__logo { font-size: 1.1rem; }
  .site-nav__links { gap: 1rem; font-size: 0.875rem; }
  .breadcrumb { padding: 0.75rem 1rem; }
}
