:root {
  --bg: #f3eee6;
  --surface: #fffaf3;
  --surface-2: #f7f1e8;
  --text: #171513;
  --muted: #665e56;
  --line: rgba(23, 21, 19, 0.12);
  --accent: #8a4254;
  --accent-soft: #e8d6dd;
  --shadow: 0 22px 48px rgba(20, 16, 13, 0.08);
  --serif: Georgia, 'Times New Roman', Times, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, Helvetica, sans-serif;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

body.theme-news {
  --bg: #ece9e2;
  --surface: #faf7f0;
  --surface-2: #f2eee6;
  --text: #181816;
  --muted: #5d605b;
  --line: rgba(24, 24, 22, 0.12);
  --accent: #355b63;
  --accent-soft: #d9e7ea;
}

body.theme-discography {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-2: #f1f5fb;
  --text: #182031;
  --muted: #5c687f;
  --line: rgba(24, 32, 49, 0.12);
  --accent: #355c9c;
  --accent-soft: #dce6f8;
}

body.theme-halcyon {
  --bg: #0f1117;
  --surface: #161924;
  --surface-2: #1c2130;
  --text: #edf1fa;
  --muted: #a8b0c3;
  --line: rgba(255, 255, 255, 0.10);
  --accent: #a489ff;
  --accent-soft: rgba(164, 137, 255, 0.18);
  --shadow: 0 22px 48px rgba(0, 0, 0, 0.35);
}

body.theme-notes {
  --bg: #efe6d8;
  --surface: #fbf6ee;
  --surface-2: #f6efe4;
  --text: #1d1815;
  --muted: #6c6258;
  --line: rgba(29, 24, 21, 0.12);
  --accent: #815436;
  --accent-soft: #e9d7c3;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.22), transparent 24%),
    radial-gradient(circle at 80% 0%, rgba(255,255,255,0.14), transparent 22%),
    linear-gradient(rgba(255,255,255,0.03), rgba(255,255,255,0.03));
  opacity: 0.7;
}
body.theme-halcyon::before {
  background-image:
    radial-gradient(circle at 15% 15%, rgba(164,137,255,0.16), transparent 22%),
    radial-gradient(circle at 85% 0%, rgba(255,255,255,0.06), transparent 18%),
    linear-gradient(rgba(255,255,255,0.02), rgba(255,255,255,0.02));
  opacity: 1;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.1rem; }

.container {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(243, 238, 230, 0.88);
  backdrop-filter: blur(12px);
}
body.theme-news .site-header { background: rgba(236, 233, 226, 0.9); }
body.theme-discography .site-header { background: rgba(247, 248, 251, 0.9); }
body.theme-halcyon .site-header { background: rgba(15, 17, 23, 0.86); }
body.theme-notes .site-header { background: rgba(239, 230, 216, 0.9); }

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand-mark {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px var(--accent-soft);
  flex: 0 0 auto;
}
.brand-text {
  font-family: var(--serif);
  font-size: 1.42rem;
  letter-spacing: 0.02em;
}
.brand-text small {
  display: block;
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.08rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-link {
  padding: 9px 13px;
  border-radius: 999px;
  font-size: 0.96rem;
  color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: var(--surface);
}
.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 14px;
  font: inherit;
}

.hero {
  padding: 78px 0 42px;
}
.hero-grid,
.hero-home-grid,
.page-hero-grid,
.duo-grid,
.notes-grid {
  display: grid;
  gap: 28px;
}
.hero-home-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: start;
}
.page-hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  align-items: start;
}
.duo-grid,
.notes-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
}
.display-title,
.page-title,
.section-title,
.card-title,
.album-title {
  font-family: var(--serif);
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin: 0;
}
.display-title {
  font-size: clamp(3.2rem, 8vw, 6.2rem);
  margin-bottom: 14px;
}
.page-title {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  margin-bottom: 12px;
}
.lead {
  max-width: 62ch;
  font-size: 1.12rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
}
.section {
  padding: 22px 0 46px;
}
.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  margin-bottom: 0.2rem;
}
.section-note {
  color: var(--muted);
  max-width: 50ch;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 0;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--text);
  color: var(--bg);
  padding: 12px 18px;
  font-weight: 600;
}
.button.secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
body.theme-halcyon .button {
  background: var(--accent);
  color: #0f1117;
}
body.theme-halcyon .button.secondary {
  color: var(--text);
  border-color: var(--line);
  background: transparent;
}

.paper,
.panel,
.dispatch-card,
.record-card,
.timeline-entry,
.track-card,
.album-sheet,
.info-card,
.quote-card,
.side-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.panel,
.timeline-entry,
.track-card,
.album-sheet,
.info-card,
.quote-card,
.side-card {
  padding: 22px;
}
body.theme-halcyon .paper,
body.theme-halcyon .panel,
body.theme-halcyon .dispatch-card,
body.theme-halcyon .record-card,
body.theme-halcyon .timeline-entry,
body.theme-halcyon .track-card,
body.theme-halcyon .album-sheet,
body.theme-halcyon .info-card,
body.theme-halcyon .quote-card,
body.theme-halcyon .side-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)), var(--surface);
}

.hero-copy p:last-child,
.panel p:last-child,
.info-card p:last-child,
.track-card p:last-child,
.timeline-entry p:last-child,
.dispatch-card p:last-child,
.record-card p:last-child,
.album-sheet p:last-child,
.quote-card p:last-child,
.side-card p:last-child {
  margin-bottom: 0;
}

.collage-stack {
  position: relative;
  min-height: 520px;
}
.photo-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.photo-card img {
  width: 100%;
  object-fit: cover;
}
.photo-card figcaption,
.caption {
  padding: 12px 14px;
  font-size: 0.88rem;
  color: var(--muted);
}
.photo-large {
  width: min(100%, 420px);
  margin-left: auto;
}
.photo-small {
  width: min(70%, 260px);
  position: absolute;
  left: 0;
  bottom: 10px;
  transform: rotate(-3deg);
}
.note-card {
  position: absolute;
  right: 10px;
  bottom: 50px;
  width: min(78%, 280px);
  padding: 18px 20px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.note-card h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  font-family: var(--serif);
}
.note-card ul {
  margin-bottom: 0;
  color: var(--muted);
}

.rule {
  height: 1px;
  background: var(--line);
  margin: 24px 0;
}
.small-grid,
.dispatch-grid,
.record-grid,
.track-grid,
.pill-grid,
.gallery-grid,
.catalog-grid,
.note-columns {
  display: grid;
  gap: 18px;
}
.dispatch-grid {
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
  align-items: start;
}
.record-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.track-grid,
.gallery-grid,
.catalog-grid,
.note-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.small-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.pill-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dispatch-card {
  padding: 22px;
}
.dispatch-card.featured {
  transform: rotate(-0.6deg);
}
.dispatch-card.offset {
  transform: translateY(30px);
}
.dispatch-card h3,
.record-card h3,
.track-card h3,
.timeline-entry h3,
.album-sheet h3,
.info-card h3,
.side-card h3 {
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.12;
  margin: 0 0 0.7rem;
}
.stamp,
.kicker,
.year-tag,
.track-meta,
.entry-date,
.album-type,
.micro-label,
.side-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  margin-bottom: 0.9rem;
}
.track-meta {
  justify-content: space-between;
  width: 100%;
}
.entry-date { margin-bottom: 0.75rem; }
.inline-link {
  font-weight: 600;
  color: var(--accent);
}

.record-card {
  padding: 20px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.record-card.prototype { background: linear-gradient(180deg, rgba(213, 187, 166, 0.28), transparent), var(--surface); }
.record-card.halcyon-days { background: linear-gradient(180deg, rgba(206, 216, 238, 0.4), transparent), var(--surface); }
.record-card.halcyon-nights { background: linear-gradient(180deg, rgba(174, 164, 210, 0.32), transparent), var(--surface); }
.record-card.fabricator { background: linear-gradient(180deg, rgba(228, 199, 206, 0.38), transparent), var(--surface); }
.record-card.pandemonium { background: linear-gradient(180deg, rgba(223, 210, 170, 0.34), transparent), var(--surface); }
.record-card.big-science { background: linear-gradient(180deg, rgba(185, 214, 224, 0.36), transparent), var(--surface); }
body.theme-halcyon .record-card.halcyon-nights,
body.theme-halcyon .track-card.featured {
  background: linear-gradient(180deg, rgba(164, 137, 255, 0.18), rgba(255,255,255,0.01)), var(--surface);
}
.key-tracks {
  color: var(--muted);
  font-size: 0.95rem;
}

.timeline {
  display: grid;
  gap: 18px;
}
.timeline-entry {
  position: relative;
  overflow: hidden;
}
.timeline-entry::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: var(--accent-soft);
}
.timeline-entry strong { font-weight: 700; }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.34);
  color: var(--muted);
  font-size: 0.9rem;
}
body.theme-halcyon .pill {
  background: rgba(255,255,255,0.03);
}

.muted {
  color: var(--muted);
}

.album-sheet {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px;
}
.album-year {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 20px;
  background: var(--accent-soft);
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.35rem;
}
.album-sheet ul {
  margin-top: 0.75rem;
}

.list-tight li { margin-bottom: 0.3rem; }
.callout {
  padding: 18px 20px;
  border-left: 3px solid var(--accent);
  background: var(--surface-2);
  border-radius: 0 18px 18px 0;
  color: var(--muted);
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.metric {
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.metric strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.5rem;
  margin-top: 0.2rem;
}

.site-footer {
  padding: 24px 0 48px;
  border-top: 1px solid var(--line);
  margin-top: 16px;
}
.footer-inner {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}
.footer-note {
  color: var(--muted);
  max-width: 54ch;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  min-width: 660px;
  background: var(--surface);
}
.table-wrap th,
.table-wrap td {
  text-align: left;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.table-wrap th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.table-wrap tr:last-child td { border-bottom: 0; }

.hero-aside {
  display: grid;
  gap: 16px;
}
.hero-aside .photo-card {
  width: 100%;
}
blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.3;
}

@media (max-width: 980px) {
  .hero-home-grid,
  .page-hero-grid,
  .duo-grid,
  .notes-grid,
  .dispatch-grid,
  .record-grid,
  .track-grid,
  .gallery-grid,
  .catalog-grid,
  .note-columns,
  .small-grid,
  .pill-grid {
    grid-template-columns: 1fr;
  }
  .dispatch-card.offset { transform: none; }
  .photo-small {
    position: relative;
    left: auto;
    bottom: auto;
    transform: rotate(-2deg);
    margin-top: 18px;
  }
  .note-card {
    position: relative;
    width: 100%;
    right: auto;
    bottom: auto;
    margin-top: 18px;
  }
  .collage-stack {
    min-height: 0;
  }
  .album-sheet {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .header-inner {
    min-height: 72px;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    right: 16px;
    left: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 14px;
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 20px;
    box-shadow: var(--shadow);
  }
  .site-nav.is-open {
    display: flex;
  }
  .nav-link {
    border-radius: 14px;
  }
  .footer-inner,
  .section-header {
    display: block;
  }
  .footer-links {
    margin-top: 16px;
  }
  .metric-row {
    grid-template-columns: 1fr;
  }
}
