@font-face { font-family: Baskervville; src: url(/option-1/assets/fonts/baskervville-latin-roman.woff2) format("woff2"); font-display: swap }
@font-face { font-family: Baskervville; src: url(/option-1/assets/fonts/baskervville-latin-italic.woff2) format("woff2"); font-style: italic; font-display: swap }
@font-face { font-family: Instrument; src: url(/option-1/assets/fonts/instrument-sans-latin-roman.woff2) format("woff2"); font-display: swap }

:root {
  --edge: clamp(20px, 5.8vw, 104px);
  --mount: clamp(12px, 2.4vw, 44px);
  --display: Baskervville, Georgia, serif;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 1.0625rem/1.6 Instrument, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p { margin: 0 }
p { text-wrap: pretty }
h1, h2, h3, .read-aloud { font-family: var(--display); font-weight: 400 }
h1, h2 { letter-spacing: -.03em; text-wrap: balance }
h2 { font-size: clamp(2.6rem, 5.2vw, 5.4rem); line-height: 1.04 }
h3 { font-size: clamp(1.55rem, 2.4vw, 2.35rem); line-height: 1.16; letter-spacing: -.02em }
a {
  color: inherit;
  text-underline-offset: .24em;
  text-decoration-thickness: 1px;
  transition: text-decoration-thickness .15s ease, opacity .15s ease;
}
a:hover { text-decoration-thickness: 2px }
a:focus-visible, summary:focus-visible { outline: 2px solid currentColor; outline-offset: 4px }
[tabindex="-1"]:focus { outline: none }
[tabindex="-1"]:focus-visible :is(h1, h2), nav:focus-visible p {
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .14em;
}
.skip {
  position: fixed; top: .8rem; left: .8rem; z-index: 9;
  padding: .8rem 1.1rem; background: var(--paper); color: var(--ink);
  transform: translateY(-170%);
}
.skip:focus { transform: none }

.words > p:not(:first-child) { margin-top: 1.1rem }
.words > p:not(.read-aloud, .boundary) { font-size: clamp(1.04rem, 1.24vw, 1.24rem); max-width: 40ch }
.quiet-link, .lead-link, .story-links a, footer a { display: inline-flex; align-items: center; min-height: 44px }
.quiet-link { font-size: .98rem }
.lead-link { font: 400 clamp(1.3rem, 1.75vw, 1.75rem)/1.35 var(--display) }
.story-links { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem 1.8rem; margin-top: 1.35rem }

/* Cover: painting holds title and scroll cue; choices enter on first scroll */
.jacket { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100svh; min-height: 25rem }
.masthead {
  display: flex; align-items: end; justify-content: space-between; gap: 1.25rem;
  padding: clamp(20px, 3.6svh, 54px) var(--mount) clamp(16px, 2.8svh, 38px);
}
.masthead h1 { font-size: clamp(3rem, 6.8vw, 6rem); line-height: .97; letter-spacing: -.035em }
.masthead h1 span { white-space: nowrap }
.masthead p { font-size: clamp(.95rem, 1.2vw, 1.22rem); line-height: 1.4; margin-bottom: .16em; color: var(--ink-soft) }
.jacket .print { clip-path: inset(0 var(--mount)) }
.scroll-cue {
  margin: 0 auto; display: inline-flex; min-height: max(48px, 6svh);
  align-items: center; justify-content: center; gap: .55rem;
  font-size: .94rem; text-decoration: none; color: var(--ink);
}
.scroll-cue span { font: 1.15em Georgia, serif }
.scroll-cue:hover { text-decoration: underline }

/* Seamless path choice revealed on first scroll */
#paths {
  padding: clamp(3rem, 11svh, 8.5rem) var(--edge);
  scroll-margin-top: 20svh;
  text-align: center;
}
#paths p {
  font: 400 clamp(1.55rem, 3vw, 3.05rem)/1.92 var(--display);
  letter-spacing: -.022em;
  max-width: 36ch;
  margin-inline: auto;
  text-wrap: balance;
}
#paths .friend-lead {
  display: block;
  margin-bottom: .5rem;
  color: var(--ink-soft);
  font-style: italic;
}
#paths a {
  display: inline;
  padding-block: .26em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* Act I: Roots & Earth paired diptych */
.memory {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  grid-template-areas: "roots intro" "earth note";
  align-items: center;
  gap: clamp(2.2rem, 5vw, 5.8rem);
  padding: 0 var(--edge) clamp(4rem, 10svh, 8.5rem);
}
.memory-art, .memory-text, .element-pictures { display: contents }
.memory .print { aspect-ratio: 1.5 }
.memory [data-shot="roots"] { grid-area: roots }
.memory [data-shot="earth"] { grid-area: earth }
.memory-first { grid-area: intro }
.memory-note { grid-area: note }
.memory .words { max-width: 34rem }
.read-aloud { font-size: clamp(1.85rem, 3.05vw, 3.15rem); line-height: 1.32; letter-spacing: -.02em; text-wrap: balance }
.memory-note a, .stage-beat .quiet-link { margin-top: 1.1rem }

/* Act II: Water -> Fire -> Sacred Space continuous painterly passage */
.watershed {
  position: relative;
  isolation: isolate;
  overflow: clip;
  display: grid;
  grid-template-areas: "water" "fire" "clearing";
  background: #171e1a;
  --scrim-water: linear-gradient(62deg, rgb(18 24 20 / .90) 0%, rgb(18 24 20 / .62) 34%, transparent 72%);
  --scrim-fire:  linear-gradient(62deg, rgb(16 19 22 / .90) 0%, rgb(16 19 22 / .60) 36%, transparent 74%);
  --scrim-dawn:  linear-gradient(125deg, rgb(238 236 230 / .56) 0%, rgb(238 236 230 / .24) 42%, transparent 72%);
}
.element-pictures .print { position: relative; min-height: 100svh }
.element-pictures [data-shot="water"],    #letting-go { grid-area: water }
.element-pictures [data-shot="fire"],     #hearth     { grid-area: fire }
.element-pictures [data-shot="clearing"], #question   { grid-area: clearing }

.element-pictures [data-shot="water"]::after,
.element-pictures [data-shot="fire"]::after,
.element-pictures [data-shot="clearing"]::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
}
.element-pictures [data-shot="water"]::after    { background: var(--scrim-water) }
.element-pictures [data-shot="fire"]::after     { background: var(--scrim-fire) }
.element-pictures [data-shot="clearing"]::after { background: var(--scrim-dawn) }

.stage-beat {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: end;
  min-height: 100svh;
  padding: clamp(2.5rem, 6svh, 5.5rem) var(--edge);
  color: #fff8ea;
}
.stage-beat .words { max-width: 39rem }
.stage-beat h2 { font-size: clamp(2.45rem, 4.7vw, 4.9rem); line-height: 1.05 }
.stage-beat p { color: #f6eedc }

/* Luminous dawn pause: deep pine-ink resting in open morning sky beside the white owl */
#question {
  display: block;
  align-content: normal;
  padding: 0;
  color: var(--ink);
  background: transparent;
}
.question-hold {
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding: clamp(2.5rem, 6svh, 5rem) var(--edge) clamp(10rem, 28svh, 18rem);
}
#question-title {
  font-size: clamp(3.3rem, 6vw, 5.8rem);
  line-height: 1.02;
  letter-spacing: -.03em;
  color: #1b261f;
}
#question-title > * { display: block; white-space: nowrap }

/* Act III: Crossing into reality — Matthew's own Taos photographs */
.photograph, .session-guide, .conversation {
  position: relative;
  background: var(--paper);
  padding: clamp(3.5rem, 9svh, 7.5rem) var(--edge);
}
.photograph {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2.4rem, 5.5vw, 6.5rem);
  min-height: 100svh;
}
.photograph .print { aspect-ratio: 1.38 }
.credit {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: .15rem .8rem;
  margin-top: .65rem; font-size: .86rem; line-height: 1.4; color: var(--ink-soft);
}
.credit i { font: italic 1.08rem var(--display); color: var(--ink) }

/* Act IV: What happens together & 10-practice field guide */
.session-guide {
  background: var(--paper-deep);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: start;
  gap: clamp(2.5rem, 6vw, 7rem);
  min-height: 100svh;
  padding: clamp(3.2rem, 7.5svh, 6.5rem) var(--edge);
}
.session-overview .words { max-width: 36rem }
.flyer-guide > p {
  margin-top: .85rem; max-width: 48ch;
  font-size: clamp(1rem, 1.15vw, 1.12rem); color: var(--ink-soft);
}
.definitions {
  margin-top: 1.75rem;
}
.definitions details {
  border-top: 1px solid var(--rule);
  padding-block: .2rem;
}
.definitions details:last-child {
  border-bottom: 1px solid var(--rule);
}
.definitions summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .68rem 0;
  min-height: 44px;
  font: 400 clamp(1.16rem, 1.55vw, 1.44rem)/1.34 var(--display);
  color: var(--ink);
}
.definitions summary::-webkit-details-marker { display: none }
.definitions summary::after {
  content: "+";
  font: 400 1.25rem/1 Instrument, sans-serif;
  color: var(--ochre);
  flex: 0 0 auto;
}
.definitions details[open] summary::after { content: "−" }
.definitions details p {
  margin: 0 0 1.2rem;
  max-width: 52ch;
  font-size: .98rem;
  line-height: 1.58;
  color: var(--ink-soft);
}

/* Act V: Talk with Matthew (April pink moon) */
.conversation { padding-top: clamp(2.5rem, 6svh, 5rem) }
.conversation .print { height: clamp(13rem, 42svh, 32rem) }
.contact-text {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: clamp(1.8rem, 4vw, 3.5rem);
  padding-top: clamp(2.2rem, 5svh, 4.2rem);
}
.contact-text .words > :first-child { margin-top: 0 }
.words .opener {
  font-style: italic;
  color: var(--ink-soft);
}
.words .boundary {
  margin-top: 1.6rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule);
  font-size: .88rem;
  line-height: 1.55;
  max-width: 52ch;
  color: var(--ink-soft);
}
.words .boundary a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  justify-content: center;
  padding-inline: .35rem;
  margin: -.45rem -.2rem;
}

footer {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: .3rem 1.8rem;
  margin: 0 var(--edge);
  padding: 1.35rem 0 2.6rem;
  border-top: 1px solid var(--rule);
  font-size: .92rem;
  color: var(--ink-soft);
}
footer .provenance {
  flex: 1 0 100%;
  margin-top: .55rem;
  font-size: .82rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* Responsive layouts */
@media (min-aspect-ratio: 2/1) and (max-height: 560px) {
  .jacket { min-height: 19rem }
  .masthead { padding-block: .7rem }
  .masthead h1 { font-size: 3.2rem }
  .stage-beat, .question-hold { padding-block: 1.6rem }
}
@media (max-width: 820px) {
  .masthead { display: block }
  .masthead h1 { font-size: clamp(2.7rem, 10.4vw, 4.6rem) }
  .masthead p { margin: .65rem 0 0; font-size: .98rem }
  .masthead p br { display: none }
  .memory {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "roots" "intro" "earth" "note";
    gap: 1.55rem;
  }
  .memory .words { padding: .4rem 0 1.4rem }
  .watershed {
    --scrim-water: linear-gradient(0deg, rgb(16 22 18 / .93) 0%, rgb(16 22 18 / .80) 58%, rgb(16 22 18 / .70) 100%);
    --scrim-fire:  linear-gradient(180deg, rgb(14 17 20 / .86) 0%, rgb(14 17 20 / .50) 44%, transparent 72%);
    --scrim-dawn:  linear-gradient(180deg, rgb(238 236 230 / .56) 0%, rgb(238 236 230 / .22) 48%, transparent 78%);
  }
  .element-pictures [data-shot="fire"] { --point: 78% 66%; --origin: 78% 66% }
  .stage-beat { padding: 3rem var(--edge) max(2.8rem, 6svh) }
  #hearth { align-content: start; padding-top: clamp(4.2rem, 11svh, 6.5rem) }
  .question-hold { align-items: start; padding: clamp(5.5rem, 16svh, 9.5rem) var(--edge) 3rem }
  #question-title { font-size: clamp(2.8rem, 12.8vw, 4.8rem) }
  .photograph, .session-guide, .contact-text { grid-template-columns: minmax(0, 1fr); gap: 1.45rem }
  .photograph { min-height: auto; padding-top: 1.75rem }
  .photograph .print { aspect-ratio: 1.75 }
  .photograph .words p { font-size: .98rem; line-height: 1.52 }
  .photograph .story-links { margin-top: .85rem; gap: .1rem 1.35rem }
  .conversation .print { height: auto; aspect-ratio: 1.8 }
  footer { justify-content: start; column-gap: 1.5rem }
}
@media (max-width: 420px) {
  .credit { display: block }
  .credit span { display: block }
  .contact-text h2 br { display: none }
}

/* Scroll-driven choreography (enhanced only when JS runs & motion is allowed) */
@media (prefers-reduced-motion: no-preference) {
  .scroll-cue span { animation: beckon 1.35s ease-in-out .6s 2 }
  @keyframes beckon { 50% { transform: translateY(.3em) } }
}
.scrub .scroll-cue { opacity: clamp(0, calc(1 - var(--open, 0) * 4), 1) }
.scrub .jacket .print { clip-path: inset(0 calc(var(--mount) * (1 - var(--open, 0)))) }
.scrub .jacket img {
  transform: scale(calc(1 + .07 * var(--open, 0)));
  transform-origin: 68% 36%;
}

.scrub .memory { grid-template-areas: "art text"; align-items: start }
.scrub .memory-art {
  grid-area: art; display: block; position: sticky;
  height: min(35vw, 72svh);
  top: max(1rem, calc((100svh - min(35vw, 72svh)) / 2));
}
.scrub .memory-art .print { position: absolute; inset: 0; aspect-ratio: auto }
.scrub .memory-art [data-shot="earth"] { opacity: var(--earth, 0) }
@supports (mask-image: linear-gradient(black, transparent)) {
  .scrub .memory-art [data-shot="earth"] {
    opacity: 1;
    mask-image: linear-gradient(106deg, #000 calc(var(--earth, 0) * 114% - 14%), transparent calc(var(--earth, 0) * 114%));
  }
}
.scrub .memory-text { grid-area: text; display: block }
.scrub .memory-text .words {
  min-height: 94svh;
  display: flex; flex-direction: column; align-items: start; justify-content: center;
}

/* Continuous 3-plate painterly stage: Water -> Fire (canopy rise) -> Dawn Clearing (hold) */
.scrub .watershed { display: block }
.scrub .element-pictures {
  display: block; position: sticky; top: 0;
  height: 100svh; margin-bottom: -100svh; overflow: hidden;
}
.scrub .element-pictures .print { position: absolute; inset: 0; min-height: 0; height: 100% }
.scrub .element-pictures [data-shot="water"] img {
  transform: scale(calc(1 + .14 * var(--water, 0)));
  transform-origin: 58% 66%;
}
.scrub .element-pictures [data-shot="fire"] {
  opacity: var(--hearth, 0);
}
.scrub .element-pictures [data-shot="fire"].canopy-reveal {
  opacity: 1;
  mask: url(/woodland/canopy-mask.png) 0 calc(100svh * (1 - var(--hearth, 0)) - 32svh * var(--hearth, 0)) / 100% 136% no-repeat;
}
.scrub .element-pictures [data-shot="fire"] img {
  transform: scale(calc(1.06 - .06 * var(--hearth, 0)));
  transform-origin: 60% 68%;
}
.scrub .element-pictures [data-shot="clearing"] {
  opacity: var(--dawn, 0);
}
.scrub .element-pictures [data-shot="clearing"] img {
  transform: scale(calc(1.04 - .04 * var(--dawn, 0)));
  transform-origin: 72% 40%;
}
.scrub #letting-go .words { opacity: var(--water-voice, 1) }
.scrub #hearth .words     { opacity: var(--hearth-voice, 1) }
.scrub #letting-go .words:focus-within,
.scrub #hearth .words:focus-within { opacity: 1 }
.scrub #question { min-height: 146svh }
.scrub .question-hold { position: sticky; top: 0; isolation: isolate }

@media (max-width: 820px) {
  .scrub .memory { display: block }
  .scrub .memory-art { height: min(62vw, 37svh); top: 0; z-index: 2; background: var(--paper) }
  .scrub .memory-art .print { inset: 10px 0 14px }
  .scrub .memory-art::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 2.25rem;
    pointer-events: none;
    background: linear-gradient(180deg, var(--paper) 0%, rgb(238 236 230 / .86) 38%, transparent 100%);
  }
  .scrub .memory-text .words { min-height: 62svh; padding-block: 2.2rem 2.6rem; scroll-margin-top: calc(min(62vw, 37svh) + 2.4rem) }
}
