@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Inter:wght@300;400&family=Share+Tech+Mono&display=swap');

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

:root {
  --bg:         #0a0a0a;
  --text:       #f0ece0;
  --muted:      rgba(240,236,224,0.38);
  --muted-dim:  rgba(240,236,224,0.18);
  --accent:     #c8a45a;
  --accent-dim: rgba(200,164,90,0.35);
  --rule:       rgba(200,164,90,0.15);
  --serif:      'Cormorant Garamond', Georgia, serif;
  --sans:       'Inter', sans-serif;
  --mono:       'Share Tech Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  opacity: 0;
  animation: page-in 0.9s ease forwards;
}

@keyframes page-in { to { opacity: 1; } }

body.page-out { animation: page-fade 0.45s ease forwards; }
@keyframes page-fade { to { opacity: 0; } }

/* Persistent mark */
.finnegan-mark {
  position: fixed;
  top: 1.4rem; left: 50%;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--muted-dim);
  font-weight: 300;
  pointer-events: none;
  z-index: 100;
}
.finnegan-mark a {
  color: inherit; text-decoration: none;
  pointer-events: auto;
  transition: color 0.3s;
}
.finnegan-mark a:hover { color: var(--accent); }
.finnegan-mark .period { color: rgba(200,164,90,0.3); }

/* Nav actions */
.nav-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.8rem;
}
.nav-btn {
  font-size: 0.54rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.25s;
  font-weight: 300;
  font-family: var(--sans);
  background: none; border: none; padding: 0;
  text-decoration: none;
  display: inline-block;
}
.nav-btn:hover { color: var(--accent); }
.nav-btn.breath {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
}
.nav-divider {
  width: 1px; height: 10px;
  background: rgba(240,236,224,0.13);
}

/* Site footer */
.site-footer {
  position: fixed;
  bottom: 1.4rem; left: 50%;
  transform: translateX(-50%);
  font-size: 0.52rem;
  letter-spacing: 0.3em;
  color: rgba(240,236,224,0.12);
  text-transform: uppercase;
  font-weight: 300;
  pointer-events: none;
}

/* Content pages */
.content-page {
  width: 100%;
  max-width: 640px;
  padding: 4rem 1.5rem 5rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.breadcrumb {
  font-size: 0.5rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.6;
  margin-bottom: 1.1rem;
  font-weight: 300;
}
.breadcrumb a { color: inherit; text-decoration: none; transition: opacity 0.2s; }
.breadcrumb a:hover { opacity: 1; }
.breadcrumb-sep { margin: 0 0.6em; opacity: 0.4; }
.page-eyebrow {
  font-size: 0.5rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.6;
  margin-bottom: 1.1rem;
}
.page-title {
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--text);
  text-align: center;
  line-height: 1.1;
  margin-bottom: 0.6rem;
}
.page-context {
  font-family: var(--serif);
  font-size: 1rem;
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-align: center;
  margin-bottom: 2.2rem;
}
.title-rule {
  width: 28px; height: 0.5px;
  background: var(--accent-dim);
  margin-bottom: 2.2rem;
}
.video-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  margin-bottom: 2.4rem;
  position: relative;
  overflow: hidden;
}
.video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}
.page-description {
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(240,236,224,0.72);
  text-align: center;
  max-width: 480px;
  margin-bottom: 2.6rem;
  letter-spacing: 0.02em;
}
.meta-strip {
  display: flex;
  justify-content: space-around;
  width: 100%;
  max-width: 480px;
  border-top: 0.5px solid var(--rule);
  border-bottom: 0.5px solid var(--rule);
  padding: 1.1rem 0;
  margin-bottom: 3.5rem;
}
.meta-item { text-align: center; padding: 0 1rem; }
.meta-item + .meta-item { border-left: 0.5px solid rgba(240,236,224,0.07); }
.meta-label {
  font-size: 0.46rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(200,164,90,0.45);
  font-weight: 300;
  margin-bottom: 0.4rem;
}
.meta-value {
  font-family: var(--serif);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-style: italic;
  line-height: 1.5;
}

/* Node index pages */
.node-index { width: 100%; max-width: 480px; text-align: center; }
.node-eyebrow {
  font-size: 0.5rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.6;
  margin-bottom: 1rem;
}
.node-title {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.node-rule {
  width: 28px; height: 0.5px;
  background: var(--accent-dim);
  margin: 1.4rem auto 2.4rem;
}
.item-list { list-style: none; padding: 0; margin-bottom: 3rem; }
.item-list li {
  border-bottom: 0.5px solid rgba(240,236,224,0.07);
}
.item-list li:first-child { border-top: 0.5px solid rgba(240,236,224,0.07); }
.item-list li a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0.9rem 0;
  text-decoration: none;
  transition: padding-left 0.25s ease;
}
.item-list li a:hover { padding-left: 0.4rem; }
.item-name {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--muted);
  transition: color 0.25s;
  text-align: left;
}
.item-list li a:hover .item-name { color: var(--text); }
.item-tag {
  font-size: 0.5rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(200,164,90,0.3);
  font-weight: 300;
  text-align: right;
  white-space: nowrap;
  margin-left: 1rem;
}
.placeholder-note {
  font-family: var(--serif);
  font-size: 0.85rem;
  font-style: italic;
  color: rgba(240,236,224,0.25);
  margin-bottom: 2rem;
}

/* Bandcamp embed */
.bandcamp-wrap {
  width: 100%;
  max-width: 480px;
  margin-bottom: 2rem;
}
.bandcamp-wrap iframe { border: 0 !important; }

/* Artist bio pages */
.artist-bio {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.9;
  color: rgba(240,236,224,0.72);
  text-align: left;
  max-width: 480px;
  margin-bottom: 2.4rem;
  letter-spacing: 0.02em;
}
.artist-bio p + p { margin-top: 1.2rem; }

/* ── Fixed viewport layout ─────────────────────────────────────────────── */
/* The page chrome (mark, footer) stays fixed.
   Only .scroll-content scrolls inside its container. */

.page-shell {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.scroll-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4rem 1.5rem 3rem;
  /* Custom scrollbar */
  scrollbar-width: thin;
  scrollbar-color: rgba(200,164,90,0.2) transparent;
}
.scroll-content::-webkit-scrollbar { width: 3px; }
.scroll-content::-webkit-scrollbar-track { background: transparent; }
.scroll-content::-webkit-scrollbar-thumb { background: rgba(200,164,90,0.2); border-radius: 2px; }

/* Fixed top mark for shell pages */
.shell-mark {
  position: absolute;
  top: 1.4rem; left: 50%;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--muted-dim);
  font-weight: 300;
  z-index: 10;
  pointer-events: none;
}
.shell-mark a {
  color: inherit; text-decoration: none;
  pointer-events: auto;
  transition: color 0.3s;
}
.shell-mark a:hover { color: var(--accent); }
.shell-mark .period { color: rgba(200,164,90,0.3); }

/* Fixed bottom nav for shell pages */
.shell-footer {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1rem 0 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(transparent, rgba(10,10,10,0.95) 30%);
  z-index: 10;
}
.shell-url {
  font-size: 0.48rem;
  letter-spacing: 0.3em;
  color: rgba(240,236,224,0.1);
  text-transform: uppercase;
  font-weight: 300;
}

/* Essay / long-form text */
.essay {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.95;
  color: rgba(240,236,224,0.78);
  max-width: 520px;
  width: 100%;
  letter-spacing: 0.02em;
}
.essay p + p { margin-top: 1.4rem; }
.essay em { font-style: italic; color: rgba(240,236,224,0.9); }
.essay blockquote {
  margin: 1.8rem 0;
  padding-left: 1.2rem;
  border-left: 1px solid rgba(200,164,90,0.3);
  font-style: italic;
  color: rgba(240,236,224,0.6);
  font-size: 1rem;
  line-height: 1.8;
}
