:root {
  --paper: #fbf5ec;
  --paper-2: #f3e9da;
  --card: #fffdf9;
  --ink: #221c26;
  --ink-soft: #5d5462;
  --line: #e4d6c3;
  --pink: #e23d7c;
  --pink-deep: #b8215c;
  --pink-wash: #fde3ee;
  --teal: #177d7a;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(34 28 38 / .06), 0 8px 24px -12px rgb(34 28 38 / .18);
  --script: "Yellowtail", "Brush Script MT", cursive;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --measure: 42rem;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.65 var(--serif);
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
}

a { color: var(--pink-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--pink); text-decoration-thickness: 2px; }
a.dead { color: var(--ink-soft); text-decoration: line-through; text-decoration-color: rgb(34 28 38 / .35); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }

img { max-width: 100%; height: auto; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--ink); color: #fff; padding: .5rem 1rem; }

/* ---------- header / nav ---------- */

.site-header {
  grid-row: 1 / 4;
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  overflow-y: auto;
  background: var(--ink);
  color: #f7eef2;
  padding: 1.75rem 1.5rem 2rem;
}

.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.wordmark {
  font: 2.35rem/1 var(--script);
  color: #ff7eb0;
  text-decoration: none;
  text-shadow: 0 0 18px rgb(255 90 150 / .45);
  transform: rotate(-4deg);
  display: inline-block;
  white-space: nowrap;
}
.wordmark:hover { color: #ffa3c7; text-decoration: none; }

.nav-toggle { display: none; }

.site-nav { margin-top: 2rem; font-family: var(--sans); }
.nav-group + .nav-group { margin-top: 1.5rem; }
.nav-label {
  margin: 0 0 .4rem;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #9f93a3;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block;
  padding: .3rem .65rem;
  margin-left: -.65rem;
  border-radius: 8px;
  color: #efe6ea;
  font-size: .925rem;
  text-decoration: none;
}
.site-nav a:hover { background: rgb(255 255 255 / .08); color: #fff; }
.site-nav a[aria-current="page"] { background: var(--pink); color: #fff; font-weight: 600; }

/* ---------- main ---------- */

main {
  grid-column: 2;
  width: 100%;
  max-width: calc(var(--measure) + 6rem);
  padding: 3.5rem 3rem 2rem;
  margin: 0 auto;
}

.page-head { margin-bottom: 2rem; }
.crumb {
  margin: 0 0 .25rem;
  font: 600 .75rem/1.2 var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.crumb a { color: var(--teal); text-decoration: none; }
.crumb a::before { content: "← "; }
.crumb a:hover { text-decoration: underline; }

.seq {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.75rem;
  padding: .6rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font: 600 .75rem/1.3 var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.seq a { color: var(--teal); text-decoration: none; }
.seq a:hover { color: var(--pink-deep); }
.seq-prev { justify-self: start; }
.seq-up { justify-self: center; text-align: center; }
.seq-next { justify-self: end; text-align: right; }
.seq-page { justify-self: center; color: var(--ink-soft); }
.seq-bottom { margin: 2.5rem 0 0; }

h1, .page-head h1 {
  font: 3.4rem/1.05 var(--script);
  color: var(--pink);
  margin: 0;
  letter-spacing: .005em;
  transform: rotate(-1.5deg);
  transform-origin: left;
}
h1 i, h1 em { font-style: normal; }

h2 {
  font: 700 .8rem/1.3 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 2.5rem 0 .9rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
h2::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.prose > * { max-width: var(--measure); }
.prose p { margin: 0 0 1.1em; }

.lede {
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--ink);
  font-style: italic;
}
.meta {
  font: .9rem/1.6 var(--sans);
  color: var(--ink-soft);
  margin: -1rem 0 1.75rem;
}
.meta i { font-style: normal; }

.subtitle {
  font: 700 1.05rem/1.4 var(--sans);
  color: var(--ink);
  margin-top: 2.25rem !important;
}
.subtitle b { font-weight: 700; }

.fineprint {
  font: .8rem/1.5 var(--sans);
  color: var(--ink-soft);
}

.hero-img { margin: 0 0 1.75rem; }
.location-bar img { display: block; width: 100%; border-radius: 4px !important; }
.hero-img img, .prose > p > img, .prose img:not(.note) {
  border-radius: 10px;
  box-shadow: var(--shadow);
  background: #fff;
}

hr { border: 0; height: 1px; background: var(--line); margin: 2rem 0; }

img.note { width: 1.1em; height: auto; vertical-align: -.1em; margin: 0 .15em; box-shadow: none !important; background: none !important; }

audio {
  display: block;
  width: 100%;
  max-width: 26rem;
  height: 2.25rem;
  margin: .5rem 0 .75rem;
}

.clips { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.clips li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .8rem 1rem .5rem;
}
.clip-label { font: .95rem/1.4 var(--sans); }
.clips audio { max-width: none; margin: .45rem 0 .25rem; }

/* images & sound clips index */
.scene-grid {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: none !important;
}
.scene-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--ink);
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.scene-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--pink); color: var(--ink); }
.scene-thumb {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  background: var(--ink);
  overflow: hidden;
}
.scene-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; box-shadow: none !important; }
.scene-audio {
  font-size: 2.6rem;
  color: #ff7eb0;
  text-shadow: 0 0 18px rgb(255 90 150 / .5);
}
.scene-title { font: 600 .95rem/1.3 var(--sans); padding: .7rem .85rem .15rem; }
.scene-card:hover .scene-title { color: var(--pink-deep); }
.scene-meta { font: .78rem/1.3 var(--sans); color: var(--ink-soft); padding: 0 .85rem .8rem; margin-top: auto; }

/* music index: album sleeve + track listing */
.music-index > * { max-width: none; }
.album {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1.75rem;
  align-items: center;
  margin-bottom: 2.5rem;
}
.album-cover { display: block; line-height: 0; transform: rotate(-2deg); transition: transform .2s ease; }
.album-cover:hover { transform: rotate(0) scale(1.02); }
.album-cover img { width: 100%; border-radius: 4px !important; box-shadow: 0 2px 4px rgb(34 28 38 / .12), 0 18px 32px -14px rgb(34 28 38 / .45) !important; }
.album-info p { margin: 0 0 .5rem; }
.album-info .eyebrow { margin-bottom: .6rem; }
.album-credit { font: 1.6rem/1.2 var(--script); color: var(--ink); }
.album-sleeve, .album-legend { font: .88rem/1.5 var(--sans); color: var(--ink-soft); }
.album-legend { display: flex; align-items: center; gap: .5rem; margin-top: .9rem !important; }

.sides { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; align-items: start; }
.side {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .9rem .6rem .5rem;
}
.side h2 { margin: 0 .5rem .5rem; }
.side-label {
  display: inline-grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: .7rem;
  letter-spacing: 0;
  box-shadow: inset 0 0 0 3px var(--ink), inset 0 0 0 4px rgb(255 255 255 / .35);
}
.bonus { margin-top: 1.25rem; }

.tracks { list-style: none; margin: 0; padding: 0; }
.tracks a {
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  align-items: center;
  gap: .6rem;
  padding: .6rem .5rem;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
}
.tracks li + li a { box-shadow: 0 -1px 0 var(--line); }
.tracks a:hover { background: var(--pink-wash); color: var(--ink); box-shadow: none; }
.tracks li:hover + li a { box-shadow: none; }
.track-no { font: 600 .72rem var(--sans); color: var(--ink-soft); letter-spacing: .06em; }
.tracks a:hover .track-no { color: var(--pink-deep); }
.track-body { display: grid; gap: .1rem; min-width: 0; }
.track-title { font: 600 .98rem/1.3 var(--sans); }
.tracks a:hover .track-title { color: var(--pink-deep); }
.track-credit { font: .82rem/1.35 var(--sans); color: var(--ink-soft); }

.video-embed { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--ink); box-shadow: var(--shadow); }
.video-embed iframe { display: block; width: 100%; height: 100%; border: 0; }

.spotify-embed { margin: 0 0 2rem; line-height: 0; }
.spotify-embed iframe { display: block; width: 100%; border: 0; border-radius: 12px; }
.spotify-album { margin: 1rem 0 0; max-width: 26rem; }

/* lyrics: set verses like a lyric sheet */
body.lyrics .prose p { font-size: 1.1rem; line-height: 1.7; }
.clips-block { margin-bottom: 2rem; }

.byline { font: 600 .75rem var(--sans); letter-spacing: .12em; color: var(--pink-deep); margin-right: .35em; }

.photo-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: 1rem; }
.photo-strip figure { margin: 0; }
.photo-strip img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; box-shadow: var(--shadow); }
.photo-strip figcaption { font: .78rem/1.35 var(--sans); color: var(--ink-soft); margin-top: .4rem; }

.credits-grid { columns: 2 17rem; column-gap: 2.5rem; }
.credits-block { break-inside: avoid; }
.credits-grid > .credits-block:first-child h2 { margin-top: 0; }
.credits-block h2 { margin-top: 1.5rem; }
table.credits { width: 100%; margin: 0; font: .92rem/1.4 var(--sans); }
table.credits th { text-align: left; font-weight: 400; color: var(--ink-soft); padding: .4rem 1rem .4rem 0; vertical-align: top; }
table.credits td { text-align: right; font-weight: 500; padding: .4rem 0; }
table.credits tr + tr > * { border-top: 1px dashed var(--line); }
table.credits td.band { text-align: left; font-style: italic; }

/* ---------- tables ---------- */

table { border-collapse: collapse; margin: 1.5rem 0; max-width: 100%; }
table caption { font: .9rem/1.4 var(--sans); color: var(--ink-soft); caption-side: bottom; padding-top: .6rem; text-align: left; }

table.data {
  width: 100%;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  font: .95rem/1.45 var(--sans);
}
table.data th, table.data td { padding: .6rem .9rem; text-align: left; vertical-align: top; }
table.data tr:first-child th, table.data tr:first-child td:has(b) {
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
table.data tr + tr td { border-top: 1px solid var(--line); }

table.layout { font-family: var(--sans); font-size: .95rem; }
table.layout td { padding: .35rem .75rem .35rem 0; vertical-align: top; }

.table-scroll { overflow-x: auto; }

/* ---------- lists ---------- */

.link-list { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: .75rem; }
.link-list li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .9rem 1.1rem;
}

/* ---------- gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
  gap: 1rem;
  max-width: none !important;
}
.gallery figure { margin: 0; }
.gallery a {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.gallery a:hover { transform: translateY(-2px) rotate(-.6deg); box-shadow: var(--shadow); }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; box-shadow: none !important; }
.gallery-portrait { grid-template-columns: repeat(auto-fill, minmax(8rem, 10rem)); margin-bottom: 1.75rem; }
.gallery-portrait a { aspect-ratio: 382 / 557; }
.gallery figcaption { font: .8rem/1.35 var(--sans); color: var(--ink-soft); margin-top: .45rem; }

/* ---------- lightbox ---------- */

.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(92vw, 60rem);
  max-height: 92vh;
  overflow: visible;
}
.lightbox::backdrop { background: rgb(20 14 22 / .88); backdrop-filter: blur(3px); }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { max-height: 80vh; width: auto; border-radius: 8px; background: #fff; box-shadow: 0 20px 60px rgb(0 0 0 / .5); }
.lightbox figcaption { color: #fbe9f1; font: .95rem/1.4 var(--sans); margin-top: .75rem; }
.lightbox button {
  position: fixed;
  top: 50%;
  translate: 0 -50%;
  border: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgb(255 255 255 / .12);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}
.lightbox button:hover { background: var(--pink); }
.lightbox .lb-prev { left: 1rem; }
.lightbox .lb-next { right: 1rem; }
.lightbox .lb-close { top: 1.5rem; right: 1rem; translate: none; }

/* ---------- guest book ---------- */

.gb-entries { display: grid; gap: 1rem; }
.gb-entry {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
}
.gb-entry header { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.gb-entry h2 { all: unset; font: 600 1rem/1.3 var(--sans); }
.gb-entry time { font: .8rem var(--sans); color: var(--ink-soft); white-space: nowrap; }
.gb-entry dl { display: grid; grid-template-columns: auto 1fr; gap: .15rem .9rem; margin: .7rem 0 0; font: .875rem/1.45 var(--sans); }
.gb-entry dt { color: var(--ink-soft); }
.gb-entry dd { margin: 0; }
.gb-entry blockquote { margin: .8rem 0 0; padding-left: .9rem; border-left: 3px solid var(--pink); font-style: italic; overflow-wrap: anywhere; }


.archive section h2 { margin-top: 1.75rem; }
.months { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(4.5rem, 1fr)); gap: .5rem; }
.months a {
  display: block;
  text-align: center;
  padding: .45rem 0;
  border-radius: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  font: 500 .875rem var(--sans);
  text-decoration: none;
}
.months a:hover { background: var(--pink); border-color: var(--pink); color: #fff; }

/* ---------- home ---------- */

body.home main { max-width: 68rem; padding-top: 4rem; }

.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 3rem; align-items: center; }
.eyebrow { font: 600 .75rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin: 0 0 1rem; }
.hero-title { transform: none; margin: 0 0 1.25rem; }
.hero-title img { display: block; width: 15rem; mix-blend-mode: multiply; }
.hero .lede { margin: 0 0 1.75rem; max-width: 34rem; }

.button {
  display: inline-block;
  font: 600 .95rem var(--sans);
  padding: .75rem 1.3rem;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  text-decoration: none;
  margin: 0 .4rem .5rem 0;
  box-shadow: 0 6px 16px -6px rgb(226 61 124 / .6);
}
.button:hover { background: var(--pink-deep); color: #fff; text-decoration: none; }
.button.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.button.ghost:hover { background: var(--ink); color: #fff; }

.hero-art { position: relative; height: 26rem; }
.polaroid {
  position: absolute;
  background: #fff;
  padding: .6rem .6rem .4rem;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ink);
  transition: transform .2s ease;
}
.polaroid img { display: block; }
.polaroid span { display: block; font: 1.35rem/1.4 var(--script); text-align: center; color: var(--ink); }
.polaroid:hover { z-index: 2; color: var(--pink); }
.tilt-l { left: 0; top: 0; transform: rotate(-6deg); }
.tilt-r { right: 0; top: 2rem; transform: rotate(5deg); }
.tilt-s { left: 22%; top: 13rem; transform: rotate(-3deg); }
.tilt-l:hover { transform: rotate(-3deg) scale(1.04); }
.tilt-r:hover { transform: rotate(2deg) scale(1.04); }
.tilt-s:hover { transform: rotate(0) scale(1.04); }

.cards { list-style: none; padding: 0; margin: 4rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem; }
.card {
  display: block;
  height: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
  text-decoration: none;
  color: var(--ink);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.card:hover { border-color: var(--pink); transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.card-title { display: block; font: 600 1.05rem/1.3 var(--sans); margin-bottom: .3rem; }
.card:hover .card-title { color: var(--pink-deep); }
.card-text { display: block; font-size: .95rem; color: var(--ink-soft); line-height: 1.45; }

/* ---------- footer ---------- */

.site-footer {
  grid-column: 2;
  width: 100%;
  max-width: calc(var(--measure) + 6rem);
  margin: 3rem auto 0;
  padding: 0 3rem 3rem;
  font: .8rem/1.55 var(--sans);
  color: var(--ink-soft);
}
.site-footer::before {
  content: "";
  display: block;
  border-top: 1px solid var(--line);
  margin-bottom: 2rem;
}
body.home .site-footer { max-width: 68rem; }
.site-footer p { margin: 0 0 .35rem; }
.site-footer a { color: inherit; }

/* ---------- small screens ---------- */

@media (max-width: 860px) {
  body { display: block; }

  .site-header { position: sticky; height: auto; overflow: visible; padding: .7rem 1rem; z-index: 5; }
  .wordmark { font-size: 1.9rem; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    font: 600 .85rem var(--sans);
    color: #fff;
    background: rgb(255 255 255 / .1);
    border: 0;
    border-radius: 999px;
    padding: .5rem 1rem;
    cursor: pointer;
  }
  .site-nav { display: none; margin-top: 1rem; padding-bottom: .75rem; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .site-nav.open { display: grid; }
  .nav-group + .nav-group { margin-top: 0; }

  main { padding: 2rem 1rem 1rem; }
  .site-footer { padding: 0 1rem 2.5rem; margin-top: 2rem; }
  .site-footer::before { margin-bottom: 1.5rem; }

  h1, .page-head h1 { font-size: 2.6rem; }

  .seq { gap: .5rem; }
  .seq a { font-size: 0; letter-spacing: 0; }
  .seq a span { font-size: 1.1rem; padding: .25rem .6rem; }
  .seq-up { font-size: .75rem !important; letter-spacing: .08em !important; }

  .hero { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-art { height: 24rem; max-width: 22rem; margin: 0 auto; width: 100%; }
  .polaroid img { width: 7.5rem; }
  .tilt-s img { width: 5.5rem; }
  .tilt-s { left: 30%; top: 9.5rem; }
  .cards { margin-top: 2.5rem; }

  .album { grid-template-columns: 7rem 1fr; gap: 1.1rem; }
  .album-credit { font-size: 1.3rem; }
  .sides { grid-template-columns: 1fr; }
  .scene-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }

  table.data { display: block; overflow-x: auto; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
