/* ============================================================
   Cascadia.me — Living Watershed Phase 7
   Book-like supporting surfaces: illustrated contents and
   authorial approach. Loaded after living-watershed-surfaces.css.
   ============================================================ */

/* Guides: an illustrated frontispiece followed by a real table of contents. */

.guidebook-hero {
  padding-bottom: 0;
}

.guidebook-hero .guide-hub-hero-heading {
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.guidebook-hero .guide-hub-hero-lede {
  max-width: 30rem;
  color: var(--lw-text);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.8vw, 1.65rem);
  line-height: 1.48;
}

.guidebook-hero .guide-hub-hero-art img {
  aspect-ratio: 2 / 1;
  height: auto;
  object-fit: contain;
}

.guidebook-frontispiece-note {
  max-width: 58rem;
  margin-block: 0;
  padding-block: 1.25rem;
  color: var(--lw-muted);
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  line-height: 1.55;
}

.guidebook-contents {
  padding-top: clamp(4rem, 7vw, 6.5rem);
  padding-bottom: 0;
}

.guidebook-opening,
.guidebook-coda-layout {
  display: grid;
  grid-template-columns: minmax(16rem, 0.43fr) minmax(0, 0.57fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: start;
}

.guidebook-opening {
  margin-bottom: clamp(3rem, 6vw, 5.5rem);
}

.guidebook-opening h2,
.guidebook-coda h2 {
  max-width: 36rem;
  margin: 0;
  font-size: clamp(3rem, 5.5vw, 5.4rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.guidebook-opening-copy,
.guidebook-coda-copy {
  max-width: 42rem;
  color: var(--lw-muted);
  font-family: var(--font-display);
  font-size: clamp(1.12rem, 1.55vw, 1.3rem);
  line-height: 1.75;
}

.guidebook-opening-copy p,
.guidebook-coda-copy p {
  margin-top: 0;
}

.guidebook-toc {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--lw-line);
  list-style: none;
}

.guidebook-entry {
  --chapter-color: var(--lw-ocean-700);
  display: grid;
  grid-template-columns: minmax(16rem, 0.43fr) minmax(0, 0.57fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  padding-block: clamp(3rem, 6vw, 5.25rem);
  border-bottom: 1px solid var(--lw-line);
}

.guidebook-entry-earthquake { --chapter-color: var(--lw-camas-600); }
.guidebook-entry-wildfire { --chapter-color: var(--lw-coral-600); }
.guidebook-entry-flooding { --chapter-color: var(--lw-ocean-700); }
.guidebook-entry-winter { --chapter-color: var(--lw-glacial-text); }
.guidebook-entry-volcano { --chapter-color: #985139; }

.guidebook-entry-heading {
  position: relative;
  align-self: start;
}

.guidebook-number {
  display: block;
  margin-bottom: 1.5rem;
  color: var(--chapter-color);
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.guidebook-entry-heading > p {
  margin: 0 0 0.6rem;
  color: var(--chapter-color);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.11em;
  line-height: 1.4;
  text-transform: uppercase;
}

.guidebook-entry h3 {
  margin: 0;
  font-size: clamp(3.25rem, 6vw, 6rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.88;
}

.guidebook-entry h3 a {
  color: var(--lw-ocean-900);
  text-decoration-color: transparent;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.12em;
  transition: color 150ms ease, text-decoration-color 150ms ease;
}

.guidebook-entry h3 a:hover {
  color: var(--chapter-color);
  text-decoration-color: currentColor;
}

.guidebook-entry-copy {
  max-width: 44rem;
  align-self: center;
}

.guidebook-entry-copy p {
  margin: 0 0 1.35rem;
  color: var(--lw-text);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.55vw, 1.34rem);
  line-height: 1.72;
}

.guidebook-entry-copy a,
.guidebook-coda-copy a {
  color: var(--chapter-color, var(--lw-ocean-700));
  font-size: 0.86rem;
  font-weight: 750;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
}

.guidebook-entry-copy a span {
  display: inline-block;
  transition: transform 150ms ease;
}

.guidebook-entry-copy a:hover span {
  transform: translateX(0.25rem);
}

.guidebook-coda {
  color: var(--lw-cream-50);
  background: var(--lw-basalt-900);
}

.guidebook-coda h2 {
  color: var(--lw-cream-50);
}

.guidebook-coda .surface-eyebrow {
  color: var(--lw-glacial-500);
}

.guidebook-coda-copy {
  color: var(--lw-rain-300);
}

.guidebook-coda-copy a {
  color: var(--lw-cream-50);
}

@media (max-width: 760px) {
  .guidebook-hero .guide-hub-hero-art img {
    aspect-ratio: 2 / 1;
    object-fit: contain;
  }

  .guidebook-opening,
  .guidebook-entry,
  .guidebook-coda-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .guidebook-opening h2,
  .guidebook-coda h2 {
    font-size: clamp(2.8rem, 13vw, 4.25rem);
  }

  .guidebook-entry {
    padding-block: 3rem;
  }

  .guidebook-entry h3 {
    font-size: clamp(3.3rem, 16vw, 4.8rem);
  }

  .guidebook-number {
    margin-bottom: 0.9rem;
  }
}

@media print {
  .guidebook-hero .guide-hub-hero-art {
    display: block !important;
  }

  .guidebook-entry,
  .guidebook-opening,
  .guidebook-coda-layout {
    display: grid;
    grid-template-columns: 0.38fr 0.62fr;
  }
}

/* Approach v3: illustration carries the drama; prose carries the page. */

.approach-surface {
  --approach-reading-width: 42rem;
  --approach-art-width: 74rem;
}

.approach-story {
  color: var(--lw-text);
  background: var(--lw-cream-50);
}

.approach-reading {
  width: min(calc(100% - 2.5rem), var(--approach-reading-width));
  margin-inline: auto;
}

.approach-masthead {
  padding: calc(var(--nav-height) + clamp(3.5rem, 6vw, 5rem)) 0 clamp(3.5rem, 6vw, 5rem);
}

.approach-kicker {
  margin: 0 0 1rem;
  color: var(--lw-muted);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.5;
}

.approach-masthead-copy h1 {
  max-width: 16ch;
  margin: 0;
  color: var(--lw-ocean-900);
  font-size: clamp(2.9rem, 5vw, 4.25rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.03;
}

.approach-opening-copy {
  margin-top: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--lw-text);
  font-family: var(--font-display);
  font-size: clamp(1.14rem, 1.35vw, 1.24rem);
  line-height: 1.76;
}

.approach-opening-copy p {
  margin: 0;
}

.approach-opening-copy p + p {
  margin-top: 1.35em;
}

.approach-opening-copy a,
.approach-essay a {
  color: var(--lw-ocean-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.approach-hero-figure {
  width: min(100%, var(--approach-art-width));
  margin: clamp(3rem, 5vw, 4.5rem) auto 0;
}

.approach-hero-figure picture,
.approach-hero-figure img {
  display: block;
  width: 100%;
}

.approach-hero-figure img {
  height: auto;
  border: 0;
}

.approach-hero-figure figcaption {
  width: min(100%, var(--approach-reading-width));
  margin: 0.8rem auto 0;
  color: var(--lw-muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.approach-essay {
  padding-block: clamp(4.5rem, 7vw, 6.5rem);
}

.approach-essay-section + .approach-essay-section {
  margin-top: clamp(4rem, 7vw, 5.5rem);
  padding-top: clamp(3.5rem, 6vw, 4.75rem);
  border-top: 1px solid var(--lw-line);
}

.approach-essay-section h2 {
  margin: 0 0 1.25rem;
  color: var(--lw-ocean-900);
  font-size: clamp(1.8rem, 2.8vw, 2.2rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.18;
  break-after: avoid;
}

.approach-essay-section h2[id],
.approach-source-note h3[id] {
  scroll-margin-top: calc(var(--nav-height) + 4rem);
}

.approach-essay-section > p {
  margin: 0;
  color: var(--lw-text);
  font-family: var(--font-display);
  font-size: clamp(1.12rem, 1.35vw, 1.22rem);
  line-height: 1.76;
  orphans: 3;
  widows: 3;
}

.approach-essay-section > p + p {
  margin-top: 1.35em;
}

.approach-source-note {
  margin-top: clamp(3rem, 5vw, 4rem);
  padding-top: 1.8rem;
  border-top: 1px solid var(--lw-line);
}

.approach-source-note h3 {
  margin: 0;
  color: var(--lw-ocean-900);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.35;
}

.approach-source-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 2rem;
  margin: 1rem 0 0;
  padding-left: 1.15rem;
}

.approach-source-links li {
  color: var(--lw-muted);
  padding-left: 0.15rem;
}

.approach-source-links a {
  color: var(--lw-ocean-700);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.approach-source-note > p {
  margin: 1.35rem 0 0;
  color: var(--lw-muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

.approach-source-note .approach-reviewed {
  margin-top: 0.8rem;
  font-size: 0.78rem;
}

@media (max-width: 760px) {
  .approach-reading {
    width: min(calc(100% - 2rem), var(--approach-reading-width));
  }

  .approach-masthead {
    padding-top: calc(var(--nav-height) + 3rem);
    padding-bottom: 3.75rem;
  }

  .approach-masthead-copy h1 {
    font-size: clamp(2.6rem, 11vw, 3.4rem);
  }

  .approach-hero-figure {
    margin-top: 2.75rem;
  }

  .approach-hero-figure figcaption {
    width: min(calc(100% - 1rem), var(--approach-reading-width));
  }

  .approach-essay {
    padding-block: 4rem 5rem;
  }

  .approach-essay-section h2 {
    font-size: clamp(1.7rem, 7vw, 2rem);
  }

  .approach-source-links {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
}

@media (max-width: 560px) {
  .guides-surface .feedback-widget,
  .approach-surface .feedback-widget {
    display: none;
  }
}

@media print {
  .approach-story {
    color: #111;
    background: #fff;
  }

  .approach-reading {
    width: 100%;
    max-width: 42rem;
  }

  .approach-hero-figure {
    display: none !important;
  }

  .approach-masthead {
    padding: 2rem 0;
  }

  .approach-masthead-copy h1,
  .approach-essay-section h2,
  .approach-source-note h3 {
    color: #111;
  }

  .approach-essay {
    padding-block: 2rem;
  }

  .approach-essay-section + .approach-essay-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-color: #aaa;
  }

  .approach-source-note {
    border-color: #aaa;
  }
}
