/* =====================================================
   Chapter pages — shared styles
   Pissed Off Mom
   ===================================================== */

:root {
  /* Site-wide dark theme — same legibility framework as the home page.
     The legacy --paper / --ink / --line names are kept and re-pointed at
     dark equivalents so every existing rule in this stylesheet (and the
     pages that link it) re-skins without structural changes. */
  --paper:      #1E171D;   /* charcoal — base background */
  --paper-2:    #25202a;   /* slightly lifted dark for cards/strips */
  --paper-warm: #2a2018;   /* warm dark accent */
  --charcoal:   #1E171D;
  --charcoal-2: #25202a;
  --ink:        #faf7f2;   /* bone — body text on dark */
  --ink-soft:   rgba(250,247,242,.78);
  --ink-dim:    rgba(250,247,242,.55);
  --bone:       #faf7f2;
  --bone-soft:  rgba(250,247,242,.72);
  --bone-dim:   rgba(250,247,242,.48);
  --bone-line:  rgba(250,247,242,.16);
  --cream:      #f1e5cf;
  --cream-soft: rgba(241,229,207,.82);
  --ember:      #f2b843;
  --lava:       #ff5a1f;
  --lava-deep:  #d63a08;
  --red:        #ff5a1f;
  --red-deep:   #d63a08;
  --line:       rgba(250,247,242,.16);
  --line-soft:  rgba(250,247,242,.08);
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--charcoal);
  color: var(--bone);
  font-family: "Courier New", Courier, monospace;
  -webkit-font-smoothing: antialiased;
}
html, body { overflow-x: hidden; max-width: 100%; }
img, figure, image-slot { max-width: 100%; }
.slab { font-family: "Montagu Slab", "Times New Roman", serif; }

/* subtle starlight texture on the charcoal */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image:
    radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 3px 3px, 7px 7px;
  background-position: 0 0, 1px 2px;
  pointer-events: none;
  opacity: .5;
  z-index: 0;
}
body > * { position: relative; z-index: 1; }

/* ----------------------------------- */
/* TOP BAR                              */
/* ----------------------------------- */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 36px;
  border-bottom: 1px solid var(--bone-line);
  background: var(--charcoal);
  position: relative;
  z-index: 5;
}
.corner-mark {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.corner-mark .pom-mark {
  height: 48px;
  width: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}
.nav {
  display: flex; gap: 26px;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.nav a {
  color: var(--bone-soft);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav a:hover, .nav a.current { color: var(--ember); border-color: var(--ember); }

/* ----------------------------------- */
/* CHAPTER INTRO                        */
/* ----------------------------------- */
.intro {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 120px) clamp(28px, 6vw, 96px) 64px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.intro.intro--wide {
  grid-template-columns: 1fr;
  gap: 56px;
}

.intro-text { max-width: 56ch; }
.intro-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .3em;
  color: var(--red);
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 22px;
}
.intro-eyebrow .num {
  font-family: "Montagu Slab", serif;
  font-weight: 700;
  font-size: 42px;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.intro-eyebrow .label {
  flex: 1;
  border-top: 1px solid var(--line);
  padding-top: 6px;
}

.intro h1 {
  font-family: "Montagu Slab", serif;
  font-weight: 500;
  font-size: clamp(36px, 5.4vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  text-wrap: balance;
}
.intro h1 em {
  font-style: italic;
  color: var(--red);
  font-weight: 500;
}

.intro-lede {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(250,247,242,.82);
  margin: 0 0 18px;
  max-width: 50ch;
}
.intro-lede + .intro-lede { margin-top: -6px; }

.intro-meta {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  font-family: "Courier New", monospace;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.intro-meta b {
  display: block;
  font-family: "Montagu Slab", serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.005em;
  text-transform: none;
  color: var(--ink);
  margin-bottom: 4px;
}

.lead-image {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #0d0c0a;
  box-shadow:
    0 1px 0 rgba(0,0,0,.08),
    0 28px 60px -22px rgba(0,0,0,.42);
}
.lead-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.intro.intro--wide .lead-image { aspect-ratio: 16/9; }

/* Chapter 01 poster — gallery frame matching the shop floor photo */
.lead-image--poster {
  aspect-ratio: 2550 / 4200;
  background: #2a2a2a;
  overflow: visible;
  margin-bottom: 36px;
  box-shadow:
    0 1px 0 rgba(0,0,0,.1),
    0 24px 60px -20px rgba(0,0,0,.35),
    0 0 0 8px var(--paper),
    0 0 0 9px var(--line);
}
.lead-image--poster img { object-fit: contain; }
.lead-image--poster .photo-tag,
.lead-image--poster .photo-tag.right {
  position: absolute;
  bottom: -34px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .25em;
  opacity: .55;
  white-space: nowrap;
}
.lead-image--poster .photo-tag { left: 0; }
.lead-image--poster .photo-tag.right { right: 0; }

/* ----------------------------------- */
/* EPIGRAPH / PULL QUOTE                */
/* ----------------------------------- */
.epigraph {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px clamp(28px, 6vw, 96px) 80px;
  font-family: "Montagu Slab", serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.4;
  color: var(--ink-soft);
  letter-spacing: -0.005em;
  text-wrap: balance;
  position: relative;
}
.epigraph::before {
  content: "—";
  display: inline-block;
  color: var(--red);
  margin-right: 14px;
  font-style: normal;
}

/* ----------------------------------- */
/* PROSE BODY                           */
/* ----------------------------------- */
.prose {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px clamp(28px, 6vw, 96px) 72px;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(36px, 5vw, 80px);
}
.prose .side {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .25em;
  color: var(--red);
  padding-top: 4px;
}
.prose .side::before {
  content: "";
  display: block;
  width: 36px; height: 2px;
  background: var(--red);
  margin-bottom: 14px;
}
.prose .body p {
  font-size: 15px;
  line-height: 1.85;
  margin: 0 0 1.3em;
  color: rgba(250,247,242,.86);
  max-width: 64ch;
}
.prose .body > p:first-of-type::first-letter {
  font-family: "Montagu Slab", serif;
  font-size: 3.4em;
  float: left;
  line-height: 0.9;
  padding: 6px 10px 0 0;
  color: var(--red);
}
.prose .body .punch {
  font-family: "Montagu Slab", serif;
  font-style: italic;
  font-size: 1.18em;
  line-height: 1.55;
  color: var(--ink);
  border-left: 2px solid var(--red);
  padding-left: 16px;
  margin: 28px 0;
  max-width: 50ch;
}

/* ----------------------------------- */
/* ARTISTS LIST                         */
/* ----------------------------------- */
.artists {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px clamp(28px, 6vw, 96px) 56px;
}
.artists-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 32px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.artists-head .eyebrow {
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--red);
}
.artists-head .eyebrow::before { content: "—  "; opacity: .7; }
.artists-head .count {
  margin-left: auto;
  font-size: 12px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.artists-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: clamp(28px, 4vw, 56px);
  row-gap: 14px;
}
.artists-list li {
  font-family: "Montagu Slab", serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.artists-list li::before {
  content: counter(artist, decimal-leading-zero);
  counter-increment: artist;
  font-family: "Courier New", monospace;
  font-style: normal;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--ink-dim);
  flex-shrink: 0;
  padding-top: 4px;
}
.artists-list {
  counter-reset: artist;
}
.artists-list li a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.artists-list li a:hover {
  color: var(--lava);
  border-color: var(--lava);
}
/* Special guests — name + short description stacked */
.artists-list--guests li {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  column-gap: 12px;
  row-gap: 6px;
}
.artists-list--guests .role {
  grid-column: 2;
  font-family: "Courier New", monospace;
  font-style: normal;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.45;
  letter-spacing: .01em;
  color: var(--ink-soft, rgba(250,247,242,.78));
  text-transform: none;
}
.artists-sub {
  margin-top: 36px;
}

/* ----------------------------------- */
/* GALLERY                              */
/* ----------------------------------- */
.gallery {
  max-width: 1480px;
  margin: 0 auto;
  padding: 40px clamp(20px, 4vw, 56px) 64px;
}
.gallery-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
  padding: 0 clamp(8px, 2vw, 40px);
}
.gallery-head h3 {
  font-family: "Montagu Slab", serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.005em;
  margin: 0;
}
.gallery-head .meta {
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 120px;
  gap: 14px;
}
.gallery-grid > * {
  background: var(--paper-2);
  overflow: hidden;
  position: relative;
}
.gallery-grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-grid image-slot {
  width: 100%; height: 100%;
  --slot-bg: var(--paper-2);
}

/* span helpers */
.g-c2 { grid-column: span 2; }
.g-c3 { grid-column: span 3; }
.g-c4 { grid-column: span 4; }
.g-c6 { grid-column: span 6; }
.g-r2 { grid-row: span 2; }
.g-r3 { grid-row: span 3; }
.g-r4 { grid-row: span 4; }
.g-contain { background: #15110f; }
.g-contain img { object-fit: contain !important; }
.g-pos-bottom img { object-position: center bottom; }

.g-cap {
  position: absolute;
  bottom: 10px; left: 12px;
  background: rgba(30,23,29,.82);
  border: 1px solid var(--bone-line);
  padding: 4px 10px;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--bone-soft);
  pointer-events: none;
  backdrop-filter: blur(4px);
}

/* ----------------------------------- */
/* CHAPTER FOOTER NAV                   */
/* ----------------------------------- */
.chap-foot {
  max-width: 1280px;
  margin: 40px auto 0;
  padding: 56px clamp(28px, 6vw, 96px) 80px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 28px;
  align-items: center;
}
.chap-foot a.move {
  text-decoration: none;
  color: var(--ink);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .22em;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: color .2s;
}
.chap-foot a.move:hover { color: var(--red); }
.chap-foot a.move.prev { text-align: left; }
.chap-foot a.move.next { text-align: right; align-items: flex-end; }
.chap-foot a.move .step { color: var(--ink-dim); font-size: 12px; }
.chap-foot a.move .name {
  font-family: "Montagu Slab", serif;
  font-style: italic;
  font-size: 18px;
  letter-spacing: -0.005em;
  text-transform: none;
  font-weight: 400;
}
.chap-foot .home-mark {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 12px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-decoration: none;
}
.chap-foot .home-mark .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ember);
}

/* ----------------------------------- */
/* SITE FOOTER                          */
/* ----------------------------------- */
.site-foot {
  padding: 18px clamp(22px, 4vw, 36px);
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* ----------------------------------- */
/* RESPONSIVE                            */
/* ----------------------------------- */
@media (max-width: 900px) {
  .topbar { padding: 16px 22px; }
  .nav { display: none; }
  .intro {
    grid-template-columns: 1fr;
    padding: 40px 24px 40px;
    gap: 28px;
  }
  .lead-image { aspect-ratio: 4/5; }
  .prose { grid-template-columns: 1fr; padding: 12px 24px 56px; gap: 22px; }
  .prose .side { font-size: 12px; }
  .artists { padding: 12px 24px 40px; }
  .artists-list { grid-template-columns: repeat(2, 1fr); column-gap: 24px; }
  .gallery { padding: 24px 16px 48px; }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 100px; }
  .g-c3, .g-c4, .g-c6 { grid-column: span 4; }
  .g-c2 { grid-column: span 2; }
  .chap-foot {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 40px 24px 56px;
    text-align: center;
  }
  .chap-foot a.move.next, .chap-foot a.move.prev {
    text-align: center; align-items: center;
  }
}
