:root {
  /* ---- Surfaces -------------------------------------------------------
     Re-cut warm (hue ~25) instead of the old cold blue-black (hue 285).
     A cold page with a hot red accent reads as "sticker pasted on"; matching
     the neutrals to the accent's hue makes it read as one lit room.
     The steps are also spread further apart — the old --bg / --bg-alt pair
     differed by 1.05:1, i.e. the section striping was invisible. */
  --ink-1000: #0c0909;
  --ink-950:  #1a1313;
  --ink-900:  #241b1b;
  --ink-850:  #2d2322;
  --ink-800:  #382c2b;
  --ink-700:  #4a3b39;

  /* ---- Text tiers -----------------------------------------------------
     Previously one dim grey did five different jobs, which left body prose
     as the faintest thing on the page. Now: prose is bright and readable,
     and only genuine metadata is dim. All clear WCAG AA on all surfaces. */
  --text:       #f2ede9;  /* headings / high emphasis   16.9:1 */
  --text-body:  #c1b9b5;  /* body prose                 10.2:1 */
  --text-mute:  #a89e9a;  /* secondary                   7.5:1 */
  --text-faint: #918682;  /* labels, metadata   4.76:1 on the lightest card */

  /* ---- Accent ---------------------------------------------------------
     --accent is for glow and small marks only. Button fill is darker so
     white label text clears AA (5.14:1 vs 3.51:1 for --accent). */
  --accent: #ff3b4e;
  --accent-warm: #ff7a4d;
  --accent-btn: #cc3143;
  --accent-btn-hover: #da2f4b;
  --accent-glow: rgba(255, 59, 78, 0.22);
  --focus: #ff8d8b;

  /* ---- Type -----------------------------------------------------------
     A system serif for display sizes. Costs zero bytes, needs no CDN, and
     is the single biggest reason this stops looking like a generated
     dark landing page. To revert: set --font-display to var(--font-sans). */
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Charter, Georgia, Cambria, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-meta: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --step--1: 0.84rem;
  --step-0:  1rem;
  --step-1:  1.15rem;
  --step-2:  1.4rem;
  --step-3:  1.75rem;

  --radius: 10px;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink-1000);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Film grain. One inlined SVG, no network request. This is what stops large
   flat gradients from looking like a CSS default. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; text-decoration: none; }

/* Weight ceiling is 700, not 900. Everything at 900 is why it shouted. */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--text);
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 300;
  background: var(--accent-btn);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 18px;
  border-radius: var(--radius);
  transition: top 0.15s ease;
}

.skip-link:focus { top: 12px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 10, 10, 0.82);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--ink-800);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  min-height: 64px;
  gap: 12px;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: var(--text);
}

.brand span { color: var(--accent); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--ink-800);
  border-radius: var(--radius);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle:hover { border-color: var(--ink-700); }

.nav-toggle-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 18px;
}

.nav-toggle-box span {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(2) { opacity: 0; }

.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav { display: flex; gap: 26px; }

.nav a {
  color: var(--text-faint);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color 0.15s ease;
}

.nav a:hover { color: var(--text); }

/* Scroll-spy: the section currently in view. Set by script.js. */
.nav a[aria-current="true"] {
  color: var(--text);
  position: relative;
}

.nav a[aria-current="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }

  .nav {
    order: 3;
    width: 100%;
    flex-direction: column;
    gap: 0;
    padding-bottom: 8px;
  }

  .nav a {
    padding: 14px 2px;
    border-top: 1px solid var(--ink-800);
    font-size: 1rem;
  }

  .js .nav { display: none; }
  .js .nav[data-open="true"] { display: flex; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
  padding: 12px 24px;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease,
    border-color 0.15s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-small { padding: 8px 18px; font-size: 0.85rem; }

.btn-primary {
  background: var(--accent-btn);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.14) inset;
}

.btn-primary:hover {
  background: var(--accent-btn-hover);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 8px 30px -6px var(--accent-glow);
  transform: translateY(-1px);
}

.btn-ghost { border-color: var(--ink-700); color: var(--text); }
.btn-ghost:hover { border-color: var(--text-faint); background: var(--ink-900); }

.btn-large { padding: 16px 34px; font-size: 1.05rem; }

/* Hero — the guild banner as atmosphere, not wallpaper. Held well back
   behind a scrim so it reads as depth and the headline stays legible. */
.hero {
  position: relative;
  isolation: isolate;
  padding: 124px 0 104px;
  background: var(--ink-1000);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("banner.jpg") center 42% / cover no-repeat;
  opacity: 0.3;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, rgba(12, 9, 9, 0.62), rgba(12, 9, 9, 0.82) 70%),
    linear-gradient(180deg, rgba(12, 9, 9, 0.72) 0%, rgba(12, 9, 9, 0.6) 45%, var(--ink-1000) 97%);
}

@media (max-width: 700px) {
  .hero::before { opacity: 0.22; }
}

.hero-inner { text-align: center; }

.eyebrow {
  font-family: var(--font-meta);
  color: var(--accent);
  font-weight: 500;
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
  letter-spacing: -0.025em;
  max-width: 14ch;
  margin: 0 auto;
}

.hero-sub {
  max-width: 58ch;
  margin: 26px auto 0;
  color: var(--text-mute);
  font-size: 1.08rem;
}

.hero-actions {
  margin-top: 38px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Stats */
.stats { padding: 54px 0; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  text-align: center;
}

@media (max-width: 860px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 32px 24px; }
}

@media (max-width: 520px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 20px; }
}

.stat { display: flex; flex-direction: column; gap: 8px; }

.stat-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.stat-label {
  color: var(--text-faint);
  font-family: var(--font-meta);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

/* Sections. Seams are faded hairlines, not hard edge-to-edge 1px rules. */
.section { padding: 88px 0; position: relative; }

.section-alt { background: var(--ink-950); }

.section-alt::before,
.section-alt::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ink-800) 22%, var(--ink-800) 78%, transparent);
}

.section-alt::before { top: 0; }
.section-alt::after { bottom: 0; }

.section h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }

.section-sub {
  color: var(--text-mute);
  margin-top: 12px;
  max-width: 62ch;
  font-size: 1.02rem;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: start;
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}

.about-grid p {
  color: var(--text-body);
  margin-top: 18px;
  font-size: 1.04rem;
  max-width: 64ch;
}

.about-callout {
  margin-top: 30px;
  padding: 22px 26px;
  border-left: 2px solid var(--accent);
  background: linear-gradient(90deg, rgba(255, 59, 78, 0.07), transparent 70%);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text) !important;
  font-size: 1.06rem !important;
}

.about-callout strong {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--font-display);
  color: var(--accent);
  font-weight: 700;
  font-size: 1.15rem;
}

.about-side { display: flex; flex-direction: column; gap: 20px; }

.about-card {
  background: linear-gradient(180deg, var(--ink-900), var(--ink-950));
  border: 1px solid var(--ink-800);
  border-radius: var(--radius);
  padding: 28px;
}

.about-card h3 {
  font-size: 1.15rem;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.about-card ul { list-style: none; display: flex; flex-direction: column; gap: 13px; }

.about-card li {
  color: var(--text-mute);
  font-size: 0.95rem;
  padding-left: 22px;
  position: relative;
}

.about-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-700);
}

/* Officer chips. Declared after .about-card li so it wins the cascade
   (equal specificity, later rule). */
.about-card ul.officer-list {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
}

.about-card .officer-list li {
  padding: 7px 14px;
  border: 1px solid var(--ink-700);
  border-radius: 999px;
  background: var(--ink-850);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
}

.about-card .officer-list li::before { content: none; }

.about-card-note {
  margin-top: 18px;
  color: var(--text-faint);
  font-size: 0.88rem;
}

/* Quote wall — styled after a Discord message, because that's where they
   were actually said. */
.quote-wall {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.quote {
  background: linear-gradient(180deg, var(--ink-900), var(--ink-950));
  border: 1px solid var(--ink-800);
  border-left: 2px solid var(--who, var(--ink-700));
  border-radius: 6px;
  padding: 18px 22px;
}

.quote-wide { grid-column: 1 / -1; }

@media (min-width: 760px) {
  .quote-wide { grid-column: span 2; }
}

.quote figcaption {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.quote-author {
  color: var(--who, var(--text));
  font-weight: 700;
  font-size: 0.95rem;
}

.quote figcaption time,
.quote-meta {
  color: var(--text-faint);
  font-family: var(--font-meta);
  font-size: 0.7rem;
}

.quote blockquote {
  color: var(--text-body);
  font-size: 1rem;
  line-height: 1.55;
}

.quote blockquote strong { color: var(--text); font-weight: 700; }

.mention {
  color: #c9b6ff;
  background: rgba(114, 102, 188, 0.22);
  border-radius: 3px;
  padding: 0 3px;
  font-weight: 600;
}

/* Pills */
.pill-grid {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  background: var(--ink-900);
  border: 1px solid var(--ink-800);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-mute);
  transition: border-color 0.15s ease, transform 0.15s ease, color 0.15s ease,
    background 0.15s ease;
}

.pill:hover {
  border-color: var(--ink-700);
  background: var(--ink-850);
  color: var(--text);
  transform: translateY(-2px);
}

/* Currently-playing reads hotter than the archive — that contrast is the
   whole point of having two grids. */
.pill-grid:not(.pill-grid-muted) .pill {
  border-color: rgba(204, 49, 67, 0.55);
  background: linear-gradient(180deg, rgba(255, 59, 78, 0.11), rgba(255, 59, 78, 0.02));
  color: var(--text);
}

.pill-grid:not(.pill-grid-muted) .pill:hover {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(255, 59, 78, 0.18), rgba(255, 59, 78, 0.04));
}

/* Album */
.album-inner { text-align: center; }

.album-embed {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 34px auto 26px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--ink-800);
  background: var(--ink-900);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.9),
    0 0 60px -20px rgba(255, 59, 78, 0.18);
}

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

/* Click-to-play card that stands in for the YouTube iframe until asked for */
.album-facade {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 22px;
  width: 100%;
  padding: 26px 30px;
  text-align: left;
  cursor: pointer;
  border: 0;
  color: var(--text);
  font: inherit;
  background:
    linear-gradient(100deg, rgba(12, 9, 9, 0.94) 34%, rgba(12, 9, 9, 0.72) 72%, rgba(12, 9, 9, 0.55)),
    url("banner.jpg") center 45% / cover no-repeat;
  transition: transform 0.2s ease;
}

.album-facade:hover { transform: scale(1.012); }

.album-sleeve {
  flex: 0 0 auto;
  width: 122px;
  height: 122px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: url("album-sleeve.jpg") center / cover no-repeat;
  box-shadow: 0 16px 34px -14px rgba(0, 0, 0, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 10px;
  gap: 1px;
  overflow: hidden;
}

.album-sleeve-word,
.album-sleeve-sub { display: none; }

.album-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
}

.album-kicker {
  font-family: var(--font-meta);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.album-track {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
}

.album-hint {
  color: var(--text-mute);
  font-size: 0.85rem;
}

.album-play {
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--accent-btn);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 34px -8px rgba(255, 59, 78, 0.6);
  transition: background 0.15s ease, transform 0.15s ease;
}

.album-play::before {
  content: "";
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent #fff;
  margin-left: 5px;
}

.album-facade:hover .album-play {
  background: var(--accent-btn-hover);
  transform: scale(1.06);
}

@media (max-width: 620px) {
  .album-facade { gap: 16px; padding: 20px; }
  .album-sleeve { width: 84px; height: 84px; }
  .album-play { width: 46px; height: 46px; }
  .album-play::before { border-width: 9px 0 9px 15px; }
  .album-hint { display: none; }
}

/* Join */
.join {
  text-align: center;
  background:
    radial-gradient(ellipse 55% 85% at 50% 108%, rgba(255, 59, 78, 0.20), transparent 68%),
    var(--ink-1000);
}

.join p {
  color: var(--text-mute);
  margin: 16px auto 0;
  font-size: 1.06rem;
  max-width: 48ch;
}

.join-how { color: var(--text-body) !important; margin-top: 26px !important; }

.join-reassure {
  color: var(--text-faint) !important;
  font-size: 0.96rem !important;
  margin-bottom: 34px !important;
}

/* Discord channel mention */
.channel {
  color: #c9d4ff;
  background: rgba(88, 101, 242, 0.24);
  border-radius: 4px;
  padding: 1px 6px;
  font-weight: 600;
  white-space: nowrap;
}

/* Footer */
.site-footer { border-top: 1px solid var(--ink-800); padding: 30px 0; }

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--text-faint);
  font-size: 0.86rem;
}

.footer-inner a:hover { color: var(--text); }

/* Build stats */
.build-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--ink-800);
  text-align: center;
}

.build-stat { display: flex; flex-direction: column; gap: 3px; }

.build-stat-num {
  font-family: var(--font-meta);
  font-weight: 600;
  color: var(--text-mute);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.build-stat-label {
  color: var(--text-faint);
  font-family: var(--font-meta);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.build-stats-note {
  width: 100%;
  color: var(--text-faint);
  font-size: 0.72rem;
  margin-top: 4px;
}

/* Scroll-reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view { opacity: 1; transform: translateY(0); }

/* Respect the OS "reduce motion" setting. script.js also skips adding
   .reveal entirely when this is set, so nothing depends on a transition
   firing in order to become visible. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal { opacity: 1 !important; transform: none !important; }
  .btn-primary:hover,
  .pill:hover { transform: none !important; }
}
