:root {
  --bg: #12100d;
  --soot: #241c17;
  --accent: #ff6b3d;
  --accent2: #2ee6d6;
  --text: #faf0db;
  --muted: #b8ada0;
  --steel: #8c9eb8;
  --max: 1080px;
  --rail: 88px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

.shell {
  display: grid;
  grid-template-columns: var(--rail) 1fr;
  min-height: 100vh;
}

.rail {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--soot);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0.5rem;
  gap: 1.5rem;
}

.rail-brand {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}

.rail-tabs {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
}

.rail-tabs button {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.75rem 0.25rem;
  cursor: pointer;
  border-radius: 8px;
}

.rail-tabs button.is-active {
  color: var(--text);
  background: rgba(255, 107, 61, 0.15);
}

.main {
  padding: 2rem clamp(1.25rem, 4vw, 3rem) 3rem;
  max-width: calc(var(--max) + var(--rail));
}

.panel {
  display: none;
  margin-bottom: 3rem;
}

.panel.is-active {
  display: block;
}

.hero-textured {
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(255, 107, 61, 0.18), transparent),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(46, 230, 214, 0.12), transparent),
    linear-gradient(145deg, #1a1410, var(--bg));
  border-radius: 20px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.hero-inset {
  background: rgba(18, 16, 13, 0.72);
  border: 1px solid rgba(250, 240, 219, 0.08);
  border-radius: 16px;
  padding: clamp(1.25rem, 3vw, 2rem);
  max-width: 52rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: var(--accent2);
  margin: 0 0 0.5rem;
}

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 0.75rem;
  line-height: 1.1;
}

h1 span {
  color: var(--accent);
}

.tagline {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 38ch;
  margin: 0 0 1.25rem;
}

.hero-art img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

.intro-band {
  margin: 2.5rem 0 1.5rem;
  max-width: 36rem;
}

.intro-left {
  margin-right: auto;
  text-align: left;
}

.intro-right {
  margin-left: auto;
  text-align: right;
}

.intro-band h2 {
  font-family: Georgia, serif;
  margin: 0 0 0.5rem;
  color: var(--accent);
}

.zigzag {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.zigzag-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.zigzag-row.reverse {
  direction: rtl;
}

.zigzag-row.reverse > * {
  direction: ltr;
}

.zigzag-visual img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 140px;
  gap: 0.75rem;
}

.mosaic-large {
  grid-column: span 2;
  grid-row: span 2;
  margin: 0;
}

.mosaic-small {
  margin: 0;
}

.mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.accordion-item {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.accordion-item button {
  width: 100%;
  text-align: left;
  padding: 1rem 1.25rem;
  background: var(--soot);
  color: var(--text);
  border: none;
  font-weight: 600;
  cursor: pointer;
}

.accordion-body {
  display: none;
  padding: 0 1.25rem 1rem;
  color: var(--muted);
}

.accordion-item.is-open .accordion-body {
  display: block;
}

.support-prose {
  max-width: 42rem;
  color: var(--muted);
}

.support-prose a,
.accordion-body a {
  color: var(--accent2);
}

.site-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: var(--muted);
}

@media (max-width: 860px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .rail {
    position: relative;
    height: auto;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
  }

  .rail-tabs {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .rail-tabs button {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 0.65rem;
  }

  .zigzag-row,
  .zigzag-row.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .mosaic {
    grid-template-columns: 1fr 1fr;
  }

  .mosaic-large {
    grid-column: span 2;
  }
}
