/* ═══════════════════════════════════════════════════════════════
   mcserver-theme — main.css
   Dark, atmospheric theme inspired by Veiled Haven
   ═══════════════════════════════════════════════════════════════ */

/* ── Google Fonts ──────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── CSS Custom Properties ─────────────────────────────────────── */
:root {
  /* Dark theme (default) */
  --bg-primary:      #0d0f0e;
  --bg-secondary:    #111413;
  --bg-surface:      #171a18;
  --bg-elevated:     #1e2220;
  --bg-overlay:      rgba(13, 15, 14, 0.85);

  --text-primary:    #e8e4dc;
  --text-secondary:  #9b9690;
  --text-muted:      #5a5854;
  --text-accent:     #c8a96e;   /* warm gold — forest lantern */
  --text-inverse:    #0d0f0e;

  --accent-gold:     #c8a96e;
  --accent-gold-dim: #8a7048;
  --accent-green:    #4a7c59;
  --accent-green-bright: #6aab7e;
  --accent-red:      #8b3a3a;

  --border-subtle:   rgba(200, 169, 110, 0.12);
  --border-medium:   rgba(200, 169, 110, 0.25);
  --border-strong:   rgba(200, 169, 110, 0.5);

  --shadow-sm:   0 1px 3px rgba(0,0,0,0.5);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.6);
  --shadow-lg:   0 8px 40px rgba(0,0,0,0.8);
  --shadow-glow: 0 0 20px rgba(200, 169, 110, 0.15);

  --nav-height:  64px;
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;

  --font-display: 'Cinzel', 'Georgia', serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --transition-fast:   150ms ease;
  --transition-normal: 300ms ease;
  --transition-slow:   600ms ease;

  --hero-secondary: #ffffff;

  /* Noise texture overlay (SVG data URI) */
  --noise-url: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
}

/* Light theme overrides */
[data-theme="light"] {
  --bg-primary:    #f4f1ec;
  --bg-secondary:  #ede9e2;
  --bg-surface:    #e8e3da;
  --bg-elevated:   #ddd8ce;
  --bg-overlay:    rgba(244, 241, 236, 0.92);

  --text-primary:   #1a1916;
  --text-secondary: #4a4740;
  --text-muted:     #8a8680;
  --text-accent:    #7a5c20;
  --text-inverse:   #f4f1ec;
  
  --accent-gold:     #7a5c20;
  --accent-gold-dim: #a07830;
  --accent-green:    #2d5e3e;
  --accent-green-bright: #3d7a52;

  --border-subtle: rgba(100, 80, 30, 0.12);
  --border-medium: rgba(100, 80, 30, 0.25);
  --border-strong: rgba(100, 80, 30, 0.5);

  --shadow-sm:   0 1px 3px rgba(0,0,0,0.1);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.15);
  --shadow-lg:   0 8px 40px rgba(0,0,0,0.2);
  --shadow-glow: 0 0 20px rgba(122, 92, 32, 0.1);
  
  --hero-secondary: #ffffff;
}

/* ── Reset & Base ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  transition: background-color var(--transition-slow), color var(--transition-slow);
}

body.no-transition,
body.no-transition * {
  transition: none !important;
}

/* Noise texture overlay on body */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: var(--noise-url);
  background-size: 256px 256px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--text-accent); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--accent-gold-dim); }
a:focus-visible { outline: 2px solid var(--accent-gold); outline-offset: 3px; border-radius: 2px; }

/* ── Typography ─────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
h6 { font-size: 0.875rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-accent); }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 600; color: var(--text-primary); }
code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--bg-elevated);
  padding: 0.15em 0.4em;
  border-radius: var(--radius-sm);
  color: var(--accent-gold);
  border: 1px solid var(--border-subtle);
}
pre {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}
pre code { background: none; border: none; padding: 0; }

ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.3rem; }
blockquote {
  border-left: 3px solid var(--accent-gold);
  padding-left: 1rem;
  color: var(--text-secondary);
  font-style: italic;
  margin: 1.5rem 0;
}

/* ── Layout Utilities ───────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}
.container--narrow { max-width: 760px; }
.container--wide   { max-width: 1400px; }

.section {
  position: relative;
  z-index: 1;
  padding-block: clamp(4rem, 8vw, 7rem);
}
.section--flush { padding-block: 0; }

.section__header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-accent);
  margin-bottom: 0.75rem;
  display: block;
}
.section__title { margin-bottom: 1rem; }
.section__subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 560px;
  margin-inline: auto;
}

/* Decorative divider */
.divider {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
  margin: 1.25rem auto;
}

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--accent-gold); outline-offset: 3px; }

.btn--primary {
  background: var(--accent-gold);
  color: var(--text-inverse);
  border-color: var(--accent-gold);
}
.btn--primary:hover {
  background: var(--accent-gold-dim);
  border-color: var(--accent-gold-dim);
  color: var(--text-inverse);
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

.btn--secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-medium);
}
.btn--secondary:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
  background: var(--bg-elevated);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--text-accent);
  border-color: var(--accent-gold);
}
.btn--ghost:hover {
  background: rgba(200,169,110,0.1);
  color: var(--accent-gold);
}

.btn--discord {
  background: #5865F2;
  color: #fff;
  border-color: #5865F2;
}
.btn--discord:hover {
  background: #4752c4;
  border-color: #4752c4;
  color: #fff;
  transform: translateY(-1px);
}

.btn--sm { padding: 0.45rem 1rem; font-size: 0.82rem; }
.btn--lg { padding: 0.9rem 2.2rem; font-size: 1rem; letter-spacing: 0.06em; }

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* ── Navigation ─────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 100;
  transition: background var(--transition-normal), box-shadow var(--transition-normal);
}
.nav--scrolled {
  background: var(--bg-overlay);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border-subtle), var(--shadow-md);
}
.nav__inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 1.5rem;
}
.nav__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.nav__logo img {
  height: 32px;
  width: auto;
}
.nav__logo-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}
.nav__logo:hover .nav__logo-text { color: var(--text-accent); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 30px 0 30px auto;
}
.nav__links li { margin: 0; }
.nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0.45rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
  text-decoration: none;
}
.nav__link:hover,
.nav__link--active { color: var(--text-primary); background: var(--bg-elevated); }
.nav__link--highlight {
  color: var(--accent-gold);
  border: 1px solid var(--border-medium);
  padding: 0.4rem 1rem;
}
.nav__link--highlight:hover {
  background: rgba(200,169,110,0.1);
  border-color: var(--border-strong);
  color: var(--accent-gold);
}

.nav__theme-toggle {
  background: none;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  line-height: 1;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  margin-left: 0.5rem;
}
.nav__theme-toggle:hover { border-color: var(--border-medium); color: var(--text-primary); }

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  margin-left: auto;
}
.nav__hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-secondary);
  transition: all var(--transition-fast);
  transform-origin: center;
}
.nav__hamburger[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__hamburger[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav */
.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1rem;
  z-index: 99;
}
.nav__mobile.is-open { display: block; }
.nav__mobile-links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.nav__mobile-links .nav__link { display: block; width: 100%; padding: 0.75rem 1rem; }

/* ── Hero Section ───────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.65) saturate(0.85);
  transform: scale(1.02);
  transition: transform 8s ease;
  z-index: 0;
}
.hero:hover .hero__bg { transform: scale(1.0); }

/* Subtle gradient vignette over hero bg */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 95% 95% at 50% 45%, transparent 60%, var(--bg-primary) 100%),
    linear-gradient(to bottom, transparent 60%, var(--bg-primary) 100%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 1rem;
  max-width: 760px;
  width: 100%;
}

.hero__logo { width: clamp(560px, 35vw, 500px); margin-inline: auto; }

/* ── Logo Drip (Aquatic/Pirate Theme) ──────────────────────────── */
.logo-drip-container {
  position: relative;
  display: inline-block;
  margin-inline: auto;
}

.logo-drip-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero__tagline {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--hero-secondary);
  max-width: 520px;
  font-weight: 300;
  letter-spacing: 0.02em;
}

/* Server IP copy widget */
.hero__ip {
  display: flex;
  align-items: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  overflow: hidden;
  gap: 0;
  box-shadow: var(--shadow-md);
}
.hero__ip-label {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  padding: 0.65rem 1.1rem;
  color: var(--text-primary);
  letter-spacing: 0.05em;
  background: var(--bg-surface);
  border-right: 1px solid var(--border-subtle);
  user-select: all;
}
.hero__ip-copy {
  background: none;
  border: none;
  color: var(--text-accent);
  cursor: pointer;
  padding: 0.65rem 1rem;
  font-size: 0.82rem;
  font-weight: 500;
  font-family: var(--font-body);
  letter-spacing: 0.05em;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.hero__ip-copy:hover { background: rgba(200,169,110,0.1); color: var(--accent-gold); }
.hero__ip-copy.copied { color: var(--accent-green-bright); }

/* Server status badge */
.hero__status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--hero-muted);
  font-family: var(--font-mono);
}
.hero__status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}
.hero__status-dot--online  { background: var(--accent-green-bright); box-shadow: 0 0 6px var(--accent-green-bright); animation: pulse 2s infinite; }
.hero__status-dot--offline { background: var(--accent-red); }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero__scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bounce 2.5s ease infinite;
}
.hero__scroll-hint svg { width: 16px; height: 16px; }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.6; }
  50% { transform: translateX(-50%) translateY(6px); opacity: 1; }
}

/* ── Features Grid ──────────────────────────────────────────────── */
.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
}
.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  transition: border-color var(--transition-normal), transform var(--transition-normal), box-shadow var(--transition-normal);
}
.feature-card:hover {
  border-color: var(--border-medium);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.feature-card__icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
  line-height: 1;
}
.feature-card__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
  letter-spacing: 0.03em;
}
.feature-card__body { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }

/* ── FAQ Section ────────────────────────────────────────────────── */
.faq__list { max-width: 760px; margin-inline: auto; display: flex; flex-direction: column; gap: 0; }
.faq__item {
  border-bottom: 1px solid var(--border-subtle);
}
.faq__item:first-child { border-top: 1px solid var(--border-subtle); }

.faq__question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.975rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}
.faq__question:hover { color: var(--text-accent); }
.faq__question-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--text-accent);
  transition: transform var(--transition-normal);
}
.faq__item.is-open .faq__question-icon { transform: rotate(45deg); }

.faq__answer {
  display: none;
  padding-bottom: 1.25rem;
  color: var(--text-secondary);
  font-size: 0.925rem;
  line-height: 1.7;
  padding-right: 2rem;
}
.faq__item.is-open .faq__answer { display: block; }

/* ── Rules Section ──────────────────────────────────────────────── */
.rules__list {
  max-width: 760px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.rule-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  transition: border-color var(--transition-fast);
}
.rule-item:hover { border-color: var(--border-medium); }
.rule-item__number {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-accent);
  background: rgba(200,169,110,0.08);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.2rem 0.5rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
  min-width: 2.2rem;
  text-align: center;
}
.rule-item__content {}
.rule-item__title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}
.rule-item__body { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }

/* ── News / Blog ────────────────────────────────────────────────── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.news-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition-normal), transform var(--transition-normal), box-shadow var(--transition-normal);
  text-decoration: none;
}
.news-card:hover {
  border-color: var(--border-medium);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  color: inherit;
}
.news-card__image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-elevated);
  position: relative;
}
.news-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.news-card:hover .news-card__image img { transform: scale(1.04); }
.news-card__image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--text-muted);
}
.news-card__body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.news-card__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.news-card__tag {
  background: rgba(200,169,110,0.1);
  color: var(--text-accent);
  border: 1px solid var(--border-subtle);
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-family: var(--font-body);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.news-card__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}
.news-card__summary { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6; flex: 1; }
.news-card__read-more {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-accent);
  font-weight: 500;
  margin-top: 0.5rem;
  letter-spacing: 0.04em;
}
.news-card__read-more svg { width: 14px; height: 14px; transition: transform var(--transition-fast); }
.news-card:hover .news-card__read-more svg { transform: translateX(3px); }

/* ── News Single Post ───────────────────────────────────────────── */
.post { padding-top: calc(var(--nav-height) + 3rem); padding-bottom: 5rem; }
.post__header { margin-bottom: 3rem; }
.post__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 1rem;
}
.post__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
}
.post__summary {
  font-size: 1.1rem;
  color: var(--text-secondary);
  border-left: 3px solid var(--accent-gold);
  padding-left: 1.25rem;
}
.post__hero {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin: 2rem 0;
  border: 1px solid var(--border-subtle);
}
.post__content { line-height: 1.8; }
.post__content h2, .post__content h3, .post__content h4 { margin-top: 2rem; margin-bottom: 0.75rem; }
.post__content img { border-radius: var(--radius-sm); margin: 1.5rem 0; }
.post__content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.post__content th, .post__content td {
  border: 1px solid var(--border-subtle);
  padding: 0.6rem 0.9rem;
  font-size: 0.9rem;
  text-align: left;
}
.post__content th { background: var(--bg-elevated); font-weight: 600; }

.post__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2.5rem; }
.post__tag {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  text-decoration: none;
}
.post__tag:hover { border-color: var(--border-medium); color: var(--text-primary); }

.post__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}
.post__nav-link {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1rem 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-normal);
}
.post__nav-link:hover { border-color: var(--border-medium); transform: translateY(-2px); }
.post__nav-link--next { text-align: right; }
.post__nav-label { font-size: 0.75rem; color: var(--text-muted); font-family: var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; }
.post__nav-title { font-size: 0.92rem; font-weight: 500; color: var(--text-primary); }

/* News list page */
.news-list { padding-top: calc(var(--nav-height) + 3rem); padding-bottom: 5rem; }
.news-list__header { margin-bottom: 3rem; }
.news-list__title { font-size: clamp(1.75rem, 4vw, 2.5rem); }
.news-list__pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
}
.news-list__pagination a, .news-list__pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
}
.news-list__pagination a:hover { border-color: var(--border-medium); color: var(--text-primary); background: var(--bg-elevated); }
.news-list__pagination .current { background: var(--accent-gold); color: var(--text-inverse); border-color: var(--accent-gold); }

/* ── Application / CTA Section ──────────────────────────────────── */
.cta {
  text-align: center;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.cta__title { margin-bottom: 1rem; }
.cta__body { color: var(--text-secondary); margin-bottom: 2rem; max-width: 560px; margin-inline: auto; margin-bottom: 2rem; }

/* ── Footer ─────────────────────────────────────────────────────── */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding-block: 3rem;
  position: relative;
  z-index: 1;
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}
.footer__brand {}
.footer__logo { height: 28px; margin-bottom: 0.75rem; }
.footer__description { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.7; max-width: 320px; }
.footer__social { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.footer__social-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 1rem;
  text-decoration: none;
  transition: all var(--transition-fast);
}
.footer__social-link:hover { border-color: var(--border-medium); color: var(--text-primary); background: var(--bg-elevated); }
.footer__col-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-accent);
  margin-bottom: 1rem;
}
.footer__links { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.footer__links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.footer__links a:hover { color: var(--text-primary); }
.footer__bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer__copyright { font-size: 0.8rem; color: var(--text-muted); }
.footer__built { font-size: 0.78rem; color: var(--text-muted); font-family: var(--font-mono); }

/* ── Section-specific backgrounds ──────────────────────────────── */
.section--alt { background: var(--bg-secondary); }
.section--surface { background: var(--bg-surface); }

/* Decorative top border accent */
.section--accent-top { border-top: 1px solid var(--border-subtle); }

/* ── Animations & Entrance ──────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.5s ease both; }
.fade-up--delay-1 { animation-delay: 0.1s; }
.fade-up--delay-2 { animation-delay: 0.2s; }
.fade-up--delay-3 { animation-delay: 0.3s; }
.fade-up--delay-4 { animation-delay: 0.4s; }

/* Intersection Observer JS triggers this */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Disable scroll-reveal on non-home pages — elements show immediately */
[data-page="inner"] .reveal {
  opacity: 1;
  transform: none;
}

/* ── Breadcrumb ─────────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text-secondary); }
.breadcrumb__sep { color: var(--text-muted); opacity: 0.4; }

/* ── Notices / Badges ───────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid;
}
.badge--gold { background: rgba(78, 59, 25, 0.96); color: var(--hero-secondary); border-color: var(--border-medium); }
.badge--green { background: rgba(74,124,89,0.15); color: var(--accent-green-bright); border-color: rgba(74,124,89,0.3); }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .nav__links    { display: none; }
  .nav__hamburger { display: flex; }
  .nav__theme-toggle { margin-left: 0.25rem; }

  .footer__inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer__brand { grid-column: auto; }
  .footer__bottom { flex-direction: column; text-align: center; }

  .post__nav { grid-template-columns: 1fr; }
  .hero__ip { flex-direction: column; align-items: stretch; }
  .hero__ip-label { border-right: none; border-bottom: 1px solid var(--border-subtle); text-align: center; }

  .worlds-grid { grid-template-columns: 1fr; }
  .world-detail__card { grid-template-columns: 1fr; }
  .world-detail__image { min-height: 200px; }
  .world-detail__nav { grid-template-columns: 1fr; }
}

/* ── World Downloads ────────────────────────────────────────────── */
.worlds-list {
  padding-top: calc(var(--nav-height) + 3rem);
  padding-bottom: 5rem;
}
.worlds-list__header {
  margin-bottom: 2.5rem;
}
.worlds-list__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}
.worlds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

/* World card */
.world-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition-normal), transform var(--transition-normal), box-shadow var(--transition-normal);
}
.world-card:hover {
  border-color: var(--border-medium);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.world-card__link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.world-card__image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-elevated);
  position: relative;
}
.world-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.world-card:hover .world-card__image img {
  transform: scale(1.04);
}
.world-card__image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}
.world-card__badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  background: rgba(13, 15, 14, 0.8);
  backdrop-filter: blur(4px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-accent);
  letter-spacing: 0.04em;
  font-weight: 500;
}
.world-card__body {
  padding: 1.25rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.world-card__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.world-card__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}
.world-card__summary {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.world-card__file-size {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-top: auto;
  padding-top: 0.5rem;
}
.world-card__footer {
  padding: 0.75rem 1.5rem 1.25rem;
  display: flex;
  justify-content: flex-end;
}
.world-card__download {
  font-size: 0.82rem;
  padding: 0.5rem 1.25rem;
}

/* ── World Detail (single page) ─────────────────────────────────── */
.world-detail {
  padding-top: calc(var(--nav-height) + 3rem);
  padding-bottom: 5rem;
}
.world-detail__header {
  margin-bottom: 2.5rem;
}
.world-detail__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 0.75rem;
}
.world-detail__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 1rem;
}
.world-detail__summary {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Detail card */
.world-detail__card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 3rem;
}
.world-detail__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
}
.world-detail__info {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.world-detail__meta-table {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.world-detail__meta-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.4rem;
}
.world-detail__meta-row dt {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.world-detail__meta-row dd {
  font-size: 0.92rem;
  color: var(--text-primary);
  text-align: right;
}
.world-detail__download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.9rem;
  margin-top: auto;
}
.world-detail__download--disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.9rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: not-allowed;
  margin-top: auto;
}

/* Changelog */
.world-detail__section {
  margin-bottom: 2.5rem;
}
.world-detail__section h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.world-detail__changelog {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}
.world-detail__changelog-entry {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.4rem 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}
.world-detail__changelog-entry:first-child {
  padding-top: 0;
}
.world-detail__changelog-entry:last-child {
  padding-bottom: 0;
}
.world-detail__changelog-bullet {
  color: var(--accent-gold);
  font-size: 1.1rem;
  line-height: 1.6;
  flex-shrink: 0;
}
.world-detail__content {
  line-height: 1.8;
  color: var(--text-secondary);
}
.world-detail__content h2,
.world-detail__content h3,
.world-detail__content h4 {
  color: var(--text-primary);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.world-detail__content h2:first-child,
.world-detail__content h3:first-child,
.world-detail__content h4:first-child {
  margin-top: 0;
}
.world-detail__content ul,
.world-detail__content ol {
  color: var(--text-secondary);
}
.world-detail__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

/* Navigation */
.world-detail__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}
.world-detail__nav-link {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1rem 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-normal);
}
.world-detail__nav-link:hover {
  border-color: var(--border-medium);
  transform: translateY(-2px);
}
.world-detail__nav-link--next {
  text-align: right;
}
.world-detail__nav-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.world-detail__nav-title {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* ── Gallery ────────────────────────────────────────────────────── */
.gallery-page {
  padding-top: calc(var(--nav-height) + 3rem);
  padding-bottom: 5rem;
}
.gallery-page__header {
  margin-bottom: 2.5rem;
}
.gallery-page__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}
.gallery-page__description {
  font-size: 1rem;
  line-height: 1.7;
}

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

/* Gallery card (listing) */
.gallery-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: border-color var(--transition-normal), transform var(--transition-normal), box-shadow var(--transition-normal);
}
.gallery-card:hover {
  border-color: var(--border-medium);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  color: inherit;
}
.gallery-card__thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-elevated);
}
.gallery-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.gallery-card:hover .gallery-card__thumb img {
  transform: scale(1.04);
}
.gallery-card__thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}
.gallery-card__body {
  padding: 1.25rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.gallery-card__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}
.gallery-card__description {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.gallery-card__count {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-top: auto;
  padding-top: 0.5rem;
}
.gallery-card__count svg {
  width: 14px;
  height: 14px;
}

/* Gallery masonry grid (individual gallery view) */
.gallery-masonry {
  columns: 3;
  column-gap: 1rem;
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.gallery-item__link {
  display: block;
  position: relative;
  cursor: zoom-in;
}
.gallery-item__link img {
  width: 100%;
  display: block;
  border-radius: var(--radius-md);
  transition: filter var(--transition-normal);
}
.gallery-item__link:hover img {
  filter: brightness(0.8);
}
.gallery-item__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 15, 14, 0);
  transition: background var(--transition-normal);
  pointer-events: none;
  color: #fff;
}
.gallery-item__link:hover .gallery-item__overlay {
  background: rgba(13, 15, 14, 0.35);
}
.gallery-item__overlay svg {
  width: 32px;
  height: 32px;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity var(--transition-normal), transform var(--transition-normal);
}
.gallery-item__link:hover .gallery-item__overlay svg {
  opacity: 1;
  transform: scale(1);
}

/* Lightbox */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}
.gallery-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.gallery-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  cursor: zoom-out;
}
.gallery-lightbox__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 90vh;
  padding: 2rem;
}
.gallery-lightbox__img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  user-select: none;
  -webkit-user-drag: none;
}
.gallery-lightbox__close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  color: #fff;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  transition: background var(--transition-fast);
}
.gallery-lightbox__close:hover {
  background: rgba(0, 0, 0, 0.8);
}
.gallery-lightbox__nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: #fff;
  cursor: pointer;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  transition: background var(--transition-fast);
}
.gallery-lightbox__nav:hover {
  background: rgba(0, 0, 0, 0.7);
}
.gallery-lightbox__nav--prev { left: 1rem; }
.gallery-lightbox__nav--next { right: 1rem; }
.gallery-lightbox__counter {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
}

/* ── Events Section ─────────────────────────────────────────────── */
.events-list {
  padding-top: calc(var(--nav-height) + 3rem);
  padding-bottom: 5rem;
}
.events-list__header {
  margin-bottom: 2.5rem;
}
.events-list__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}
.events-list__description {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 560px;
  margin-top: 0.75rem;
}

/* Filter buttons */
.events-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}
.events-filter-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.45rem 1.1rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  letter-spacing: 0.02em;
}
.events-filter-btn:hover {
  border-color: var(--border-medium);
  color: var(--text-primary);
  background: var(--bg-elevated);
}
.events-filter-btn--active {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: var(--text-inverse);
}
.events-filter-btn--active:hover {
  background: var(--accent-gold-dim);
  border-color: var(--accent-gold-dim);
  color: var(--text-inverse);
}

/* Events grid */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

/* Event card */
.event-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition-normal), transform var(--transition-normal), box-shadow var(--transition-normal);
  text-decoration: none;
  color: inherit;
  position: relative;
}
.event-card:hover {
  border-color: var(--border-medium);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.event-card__image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-elevated);
  position: relative;
}
.event-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.event-card:hover .event-card__image img {
  transform: scale(1.04);
}
.event-card__image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--text-muted);
}
.event-card__badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.7rem;
  background: rgba(13, 15, 14, 0.8);
  backdrop-filter: blur(4px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-accent);
  letter-spacing: 0.04em;
  font-weight: 500;
  text-transform: uppercase;
  z-index: 1;
}
.event-card__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-gold);
  flex-shrink: 0;
}
.event-card__badge-dot--live {
  background: var(--accent-green-bright);
  box-shadow: 0 0 6px var(--accent-green-bright);
  animation: pulse 2s infinite;
}
.event-card__body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.event-card__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.event-card__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}
.event-card__summary {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}
.event-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.event-card__tag {
  background: rgba(200,169,110,0.1);
  color: var(--text-accent);
  border: 1px solid var(--border-subtle);
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-family: var(--font-body);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.event-card__read-more {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-accent);
  font-weight: 500;
  margin-top: 0.5rem;
  letter-spacing: 0.04em;
}
.event-card__read-more svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-fast);
}
.event-card:hover .event-card__read-more svg {
  transform: translateX(3px);
}

/* ── Event Detail (single page) ─────────────────────────────────── */
.event-detail {
  padding-top: calc(var(--nav-height) + 3rem);
  padding-bottom: 5rem;
}
.event-detail__header {
  margin-bottom: 2.5rem;
}
.event-detail__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.event-detail__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
}
.event-detail__status {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.event-detail__summary {
  font-size: 1.1rem;
  color: var(--text-secondary);
  border-left: 3px solid var(--accent-gold);
  padding-left: 1.25rem;
}
.event-detail__info-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem 2rem;
  margin-bottom: 2.5rem;
}
.event-detail__meta-table {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 2rem;
}
.event-detail__meta-row dt {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-top: 0.15rem;
}
.event-detail__meta-row dd {
  font-size: 0.95rem;
  color: var(--text-primary);
}
.event-detail__hero {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 2.5rem;
  border: 1px solid var(--border-subtle);
}
.event-detail__content {
  line-height: 1.8;
}
.event-detail__content h2,
.event-detail__content h3,
.event-detail__content h4 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

/* ── Print ──────────────────────────────────────────────────────── */
@media print {
  .nav, .footer { display: none; }
  body { background: #fff; color: #000; }
}

