:root {
  /* Warm stage / varnished wood — rock + roots */
  --bg: #120f0b;
  --bg-mid: #1a1410;
  --fg: #f2e9de;
  --fg-soft: #e8dcc9;
  --muted: #9d8f7e;
  --accent: #c17a2d;
  --accent-bright: #e8a545;
  --accent-dim: #8a5520;
  --card: #1c1612;
  --card-edge: #2a2219;
  --border: #3a3128;
  --font-condensed: "Oswald", "Arial Narrow", system-ui, sans-serif;
  --font-serif: "Crimson Pro", Georgia, "Times New Roman", serif;
  --space: 1.25rem;
  --max: 52rem;
  --r-pill: 999px;
  --r-sharp: 3px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 18px;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 120% 80% at 50% 0%, color-mix(in srgb, var(--accent) 8%, var(--bg)) 0%, transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-mid) 45%, #0f0c09 100%);
  color: var(--fg);
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

code {
  font-size: 0.9em;
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  background: var(--card);
  padding: 0.1em 0.35em;
  border-radius: var(--r-sharp);
  border: 1px solid var(--border);
}

a {
  color: var(--fg-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent-bright);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space) 1.5rem;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--accent) 12%, transparent);
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--bg) 82%, #000);
  backdrop-filter: blur(10px);
  z-index: 10;
  flex-shrink: 0;
}

.site-banner {
  flex-shrink: 0;
  width: 100%;
  line-height: 0;
  background: #0a0806;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.site-banner__frame {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  background: #0a0806;
}

.site-banner__img {
  width: 100%;
  height: auto;
  display: block;
}

.logo {
  font-family: var(--font-condensed);
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg);
}

.logo:hover {
  color: var(--accent-bright);
}

.nav {
  display: flex;
  gap: 1.4rem;
}

.nav a {
  text-decoration: none;
  font-family: var(--font-condensed);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

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

.main {
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: calc(var(--max) + 3rem);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3.5rem;
}

.site-footer {
  flex-shrink: 0;
  padding: var(--space) 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
}

.site-footer-line,
.site-footer-domain {
  margin: 0;
}

.site-footer-domain {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  font-family: var(--font-condensed);
  font-style: normal;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  color: color-mix(in srgb, var(--muted) 85%, var(--fg));
}

.hero {
  text-align: center;
  margin-bottom: 2.5rem;
}

.hero-tagline {
  font-family: var(--font-condensed);
  font-size: 0.95rem;
  font-style: normal;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--accent-bright);
  margin: 0 0 0.35rem;
}

.hero-title {
  font-family: var(--font-condensed);
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.12;
  margin: 0 0 0.5rem;
  text-shadow: 0 0 40px color-mix(in srgb, var(--accent) 20%, transparent);
}

.hero-byline {
  max-width: 32rem;
  margin: 0 auto 0.6rem;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--fg-soft);
  line-height: 1.4;
}

.show-note {
  margin: 0 auto 1rem;
  max-width: 38rem;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--muted);
  text-align: center;
}

.hero-lead {
  color: var(--muted);
  max-width: 40rem;
  margin: 0 auto 1.5rem;
  font-size: 1.08rem;
  text-align: left;
  border-left: 3px solid var(--accent-dim);
  padding-left: 1.1rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-lead a {
  color: var(--fg-soft);
  font-weight: 600;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin: 0;
}

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

.lead {
  margin-top: 0;
  font-size: 1.1rem;
  max-width: 38rem;
  line-height: 1.55;
  color: var(--fg-soft);
}

.page-title,
.section-title {
  font-family: var(--font-condensed);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.75rem;
  color: var(--fg);
}

.btn {
  display: inline-block;
  padding: 0.75em 1.35em 0.65em;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dim) 100%);
  color: #120c08 !important;
  text-decoration: none;
  font-family: var(--font-condensed);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-radius: var(--r-sharp);
  border: 1px solid color-mix(in srgb, var(--accent-bright) 40%, #000);
  box-shadow: 0 2px 0 #0008, inset 0 1px 0 color-mix(in srgb, #fff 18%, transparent);
  transition: filter 0.15s ease, transform 0.12s ease;
}

.btn:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  color: #120c08 !important;
}

.btn-ghost {
  background: transparent;
  background-clip: padding-box;
  color: var(--fg) !important;
  border: 1px solid var(--border);
  font-weight: 500;
  box-shadow: none;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-bright) !important;
}

.section {
  max-width: var(--max);
}

.gallery-hint {
  text-align: center;
  max-width: 28rem;
  margin: 0 auto 2rem;
}

.gallery {
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.gallery-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: 0.75rem;
}

.gallery-item {
  margin: 0;
  border-radius: var(--r-sharp);
  overflow: hidden;
  border: 1px solid var(--card-edge);
  background: var(--card);
  box-shadow: 0 4px 20px #0004;
}

.gallery-item a {
  display: block;
  line-height: 0;
  aspect-ratio: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: saturate(0.95);
}

.gallery-open-hint {
  text-align: center;
  font-size: 0.92rem;
  margin: 0 auto 1rem;
  max-width: 30rem;
}

.gallery-lightbox {
  margin: 0;
  padding: 0;
  border: none;
  max-width: none;
  max-height: none;
  width: 100%;
  height: 100%;
  background: transparent;
  box-sizing: border-box;
}

.gallery-lightbox::backdrop {
  background: color-mix(in srgb, var(--bg) 55%, #000 45%);
  backdrop-filter: blur(4px);
}

.gallery-lightbox__panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: min(100dvh, 100vh);
  padding: 0.75rem;
  box-sizing: border-box;
}

.gallery-lightbox__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: min(96vw, 56rem);
  flex-shrink: 0;
}

.gallery-lightbox__counter {
  margin: 0;
  font-family: var(--font-condensed);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.gallery-lightbox__close {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-sharp);
  background: var(--card);
  color: var(--fg-soft);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.gallery-lightbox__close:hover {
  border-color: var(--accent);
  color: var(--accent-bright);
}

.gallery-lightbox__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  max-width: min(96vw, 56rem);
  flex: 1;
  min-height: 0;
}

.gallery-lightbox__img {
  display: block;
  max-width: 100%;
  max-height: min(78dvh, 78vh);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--r-sharp);
  border: 1px solid var(--card-edge);
  box-shadow: 0 12px 48px #0008;
}

.gallery-lightbox__nav {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 3.5rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-sharp);
  background: color-mix(in srgb, var(--card) 88%, #000);
  color: var(--fg-soft);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.gallery-lightbox__nav:hover {
  border-color: var(--accent);
  color: var(--accent-bright);
}

@media (max-width: 32rem) {
  .gallery-lightbox__stage {
    flex-direction: column;
  }

  .gallery-lightbox__nav--prev {
    order: 2;
  }

  .gallery-lightbox__img {
    order: 1;
    max-height: min(62dvh, 62vh);
  }

  .gallery-lightbox__nav--next {
    order: 3;
  }
}

.gallery-item a:hover img {
  transform: scale(1.05);
  filter: saturate(1.1);
}

.track-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.track-group-title {
  font-family: var(--font-condensed);
  font-size: 1.15rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-bright);
  margin: 2rem 0 0.35rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
  max-width: 40rem;
}

.track-group-title:first-of-type {
  margin-top: 0.5rem;
}

.track {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.1rem 1rem 1.15rem;
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: var(--r-sharp);
  border-left: 3px solid var(--accent);
  box-shadow: 0 2px 12px #0003;
}

.track-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.btn-play {
  cursor: pointer;
  border: none;
  font-family: var(--font-condensed);
}

.track-play--active {
  border-color: var(--accent-bright) !important;
  color: var(--accent-bright) !important;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent-bright) 40%, transparent);
}

.music-player-card {
  margin: 1.5rem 0 1.75rem;
  padding: 1.1rem 1.15rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: var(--r-sharp);
  border-left: 3px solid var(--accent);
  max-width: 40rem;
}

.music-player-heading {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
}

.audio-player {
  display: block;
  width: 100%;
  min-height: 2.75rem;
}

.audio-now-playing {
  margin: 0.6rem 0 0;
  font-size: 0.95rem;
  font-style: italic;
}

.track-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  font-family: var(--font-serif);
}

.track-title {
  font-weight: 600;
  font-size: 1.12rem;
  color: var(--fg-soft);
}

.bio-page .lead {
  max-width: 40rem;
}

.bio-body {
  margin-top: 0.5rem;
}

.bio-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-top: 1.25rem;
}

.bio-seg {
  padding: 1.1rem 1.15rem 1.15rem;
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: var(--r-sharp);
  border-left: 3px solid var(--accent);
  box-shadow: 0 2px 12px #0003;
}

.bio-seg-title {
  font-family: var(--font-condensed);
  font-size: 1.15rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.35rem;
  color: var(--fg);
}

.bio-seg-date {
  margin: 0 0 0.65rem;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--muted);
}

.bio-prose p {
  margin: 0 0 0.75rem;
}

.bio-prose p:last-child {
  margin-bottom: 0;
}

.bio-prose a {
  color: var(--accent-bright);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
}

.bio-prose a:hover {
  color: var(--fg);
}

.bio-prose {
  max-width: 40rem;
  font-size: 1.05rem;
  line-height: 1.6;
}

.bio-seg-link {
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
  font-style: italic;
}

.bio-fetch-warn {
  color: #e8a060;
  font-size: 0.98rem;
  max-width: 40rem;
  padding: 0.65rem 0.8rem;
  background: color-mix(in srgb, #e8a060 8%, var(--card));
  border: 1px solid color-mix(in srgb, #e8a060 30%, var(--border));
  border-radius: var(--r-sharp);
  margin: 0.5rem 0 1rem;
}

.bio-fallback-hint {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

.bio-sep {
  height: 1px;
  margin: 2rem 0;
  background: var(--border);
  max-width: 40rem;
}

@media (min-width: 40rem) {
  .nav a {
    font-size: 0.82rem;
  }
}
