:root {
  --bg: #0b0b0d;
  --bg-2: #121214;
  --ink: #f4f1ea;
  --muted: #b7b3aa;
  --dim: #8a867e;
  --line: rgba(255,255,255,.1);
  --gold: #c8b48a;
  --gold-2: #e8d7b0;
  --glass: rgba(14,14,16,.7);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { background: var(--bg); color: var(--ink); }
body {
  font-family: Outfit, system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.55;
  min-height: 100%;
  overflow-x: hidden;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.wrap { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(11,11,13,.78);
  border-bottom: 1px solid var(--line);
}
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}
.wordmark {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: .18rem;
}
.wordmark strong {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: 1.02rem;
  letter-spacing: .04em;
}
.wordmark span {
  font-size: .62rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
nav { display: flex; gap: 1.25rem; }
nav a {
  text-decoration: none;
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 500;
}
nav a:hover, nav a[aria-current="page"] { color: var(--ink); }

.hero-about { padding: 3.2rem 0 2.5rem; }
.kicker {
  font-size: .7rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: .9rem;
}
.hero-about h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  max-width: 16ch;
  text-wrap: balance;
}
.lede, .about p {
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-top: 1.15rem;
}
.about p + p { margin-top: .9rem; }

.section { padding: 1.25rem 0 4.5rem; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
  border-top: 1px solid var(--line);
  padding-top: 1.3rem;
}
.section-head h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  font-size: 1.7rem;
}
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 720px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}
.card {
  text-decoration: none;
  display: block;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); border-color: rgba(200,180,138,.35); }
.card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.card-body { padding: 1rem 1.05rem 1.15rem; }
.card-style {
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .35rem;
}
.card h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: 1.45rem;
  letter-spacing: -.01em;
}
.card-meta { margin-top: .3rem; color: var(--dim); font-size: .85rem; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0 calc(1.6rem + var(--safe-bottom));
  color: var(--dim);
  font-size: .8rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Song page */
.song-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem 0 2.5rem;
}
@media (min-width: 860px) {
  .song-hero {
    grid-template-columns: minmax(280px, 420px) 1fr;
    gap: 4rem;
    padding: 2.4rem 0 4rem;
  }
}
.cover-wrap { position: relative; width: min(78vw, 380px); margin: 0 auto; aspect-ratio: 1; }
@media (min-width: 860px) { .cover-wrap { width: 100%; margin: 0; } }
.cover-glow {
  position: absolute; inset: 10%;
  background: radial-gradient(circle, rgba(200,180,138,.35), transparent 70%);
  filter: blur(40px); z-index: 0;
}
.cover {
  position: relative; z-index: 1;
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.08);
}
.song-copy { text-align: center; }
@media (min-width: 860px) { .song-copy { text-align: left; } }
.song-copy h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.meta-row {
  margin-top: .7rem;
  color: var(--dim);
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.player {
  margin-top: 1.6rem;
  padding: 1rem 1.05rem;
  border-radius: 16px;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  gap: .35rem .9rem;
  align-items: center;
  text-align: left;
}
.play {
  grid-row: 1 / span 2;
  width: 56px; height: 56px; border: 0; border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #1a160f; cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(200,180,138,.25);
  transition: transform .15s ease;
}
.play:hover { transform: scale(1.05); }
.play svg { width: 22px; height: 22px; display: block; }
.play .icon-pause { display: none; }
.play.is-on .icon-play { display: none; }
.play.is-on .icon-pause { display: block; }
.times {
  display: flex; justify-content: space-between;
  font-variant-numeric: tabular-nums; font-size: .72rem;
  color: var(--dim); letter-spacing: .06em;
}
.bar {
  position: relative; height: 6px; border-radius: 99px;
  background: rgba(255,255,255,.12); cursor: pointer; touch-action: none;
}
.bar-fill {
  position: absolute; inset: 0 auto 0 0; width: 0%;
  border-radius: inherit; background: linear-gradient(90deg, #9a8a62, var(--gold-2));
}
.bar-knob {
  position: absolute; top: 50%; left: 0%; width: 14px; height: 14px;
  border-radius: 50%; background: #fff; transform: translate(-50%, -50%);
  box-shadow: 0 0 0 3px rgba(200,180,138,.25); pointer-events: none;
}
.actions { margin-top: 1.15rem; display: flex; justify-content: center; }
@media (min-width: 860px) { .actions { justify-content: flex-start; } }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: 0 1.2rem; border-radius: 999px;
  text-decoration: none; font-size: .9rem; font-weight: 500;
  background: var(--ink); color: #140e18;
  transition: background .15s ease, transform .15s ease;
}
.btn svg { width: 16px; height: 16px; }
.btn:hover { background: #fff; transform: translateY(-1px); }

.prose {
  width: min(680px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0 0 3.2rem;
}
.prose h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--gold);
  margin: 0 0 1rem;
}
.prose p { color: #ddd9d0; font-size: 1.05rem; line-height: 1.7; }
.lyrics { color: #e8e4dc; font-size: 1.05rem; line-height: 1.7; }
.lyric-block { margin: 0 0 1.7rem; }
.lyric-block:last-child { margin-bottom: 0; }
.lyric-label {
  display: block; font-size: .68rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--gold); margin-bottom: .45rem; font-weight: 500;
}
.lyrics p { margin: 0; white-space: pre-wrap; }

.dock {
  position: fixed; left: 50%; bottom: calc(.85rem + var(--safe-bottom));
  transform: translateX(-50%) translateY(140%);
  width: min(640px, calc(100% - 1.25rem));
  display: grid; grid-template-columns: 44px 1fr auto; gap: .75rem; align-items: center;
  padding: .55rem .7rem; border-radius: 16px;
  background: rgba(16,16,18,.9); border: 1px solid var(--line);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 16px 50px rgba(0,0,0,.45); z-index: 20;
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.dock.show { transform: translateX(-50%) translateY(0); }
.dock img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
.dock-title { font-family: "Fraunces", Georgia, serif; font-size: 1rem; line-height: 1.15; }
.dock-sub { font-size: .7rem; color: var(--dim); }
.dock-play {
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: var(--ink); color: #140e18; cursor: pointer; display: grid; place-items: center;
}
.dock-play svg { width: 16px; height: 16px; }
.dock-play .icon-pause { display: none; }
.dock-play.is-on .icon-play { display: none; }
.dock-play.is-on .icon-pause { display: block; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dock, .card { transition: none; }
}

.essays { padding: 0 0 1rem; }
.essay {
  width: min(680px, 100%);
  padding: 0 0 2.4rem;
}
.essay h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: 1.45rem;
  color: var(--gold);
  margin-bottom: .7rem;
}
.essay p { color: var(--muted); font-size: 1.05rem; line-height: 1.7; }
