:root {
  --sc-canvas: #f8f1f6;
  --sc-surface: #fffaf4;
  --sc-ink: #32182f;
  --sc-ink-soft: #725d70;
  --sc-accent: #a45aa6;
  --sc-accent-ink: #fffaf4;
  --sc-font-display: "DM Serif Display", Georgia, serif;
  --sc-font-text: "DM Sans", system-ui, sans-serif;
  --cream: #fffaf4;
  --blush: #f8dfe8;
  --lilac: #eee5f6;
  --orchid: #a45aa6;
  --plum: #32182f;
  --green: #59705a;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --maxw: 78rem;
  --section: clamp(5rem, 11vw, 10rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--cream); }
body {
  margin: 0;
  background: var(--cream);
  color: var(--plum);
  font-family: var(--sc-font-text);
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: inherit; }
::selection { background: #d8b1dc; color: var(--plum); }

.folio {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: 5.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.4rem .75rem;
  pointer-events: none;
}
.folio__name {
  pointer-events: auto;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  text-decoration: none;
  font-family: var(--sc-font-display);
  font-size: 1.2rem;
  background: rgba(255,250,244,.82);
  backdrop-filter: blur(10px);
}
.folio__nav {
  pointer-events: auto;
  margin: auto 0;
  display: flex;
  gap: 1.15rem;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.folio__nav a {
  text-decoration: none;
  font-size: .64rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  opacity: .45;
  transition: opacity 180ms ease;
}
.folio__nav a:hover,
.folio__nav a:focus-visible,
.folio__nav a.is-active { opacity: 1; }
.bouquet-rail {
  position: relative;
  width: 3rem;
  height: 9rem;
  margin-top: auto;
}
.stem {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 1px;
  height: 100%;
  background: var(--green);
  transform-origin: bottom;
  transform: scaleY(.12);
  transition: transform 520ms ease;
}
.botanical {
  position: absolute;
  left: 50%;
  opacity: 0;
  transform: translate(-50%, 8px) scale(.7);
  transition: opacity 420ms ease, transform 420ms ease;
  color: var(--orchid);
}
.botanical--1 { bottom: 8%; }
.botanical--2 { bottom: 24%; left: 28%; color: #cb7394; }
.botanical--3 { bottom: 39%; left: 70%; color: #7d5aa4; }
.botanical--4 { bottom: 54%; left: 34%; color: #8e6b8c; }
.botanical--5 { bottom: 70%; left: 68%; color: #bf6eaa; }
.botanical--6 { bottom: 86%; color: #8d4d91; }
body[data-bouquet="1"] .stem { transform: scaleY(.24); }
body[data-bouquet="2"] .stem { transform: scaleY(.38); }
body[data-bouquet="3"] .stem { transform: scaleY(.54); }
body[data-bouquet="4"] .stem { transform: scaleY(.7); }
body[data-bouquet="5"] .stem { transform: scaleY(.86); }
body[data-bouquet="6"] .stem,
body[data-bouquet="7"] .stem { transform: scaleY(1); }
body[data-bouquet="1"] .botanical--1,
body[data-bouquet="2"] .botanical--1,
body[data-bouquet="2"] .botanical--2,
body[data-bouquet="3"] .botanical--1,
body[data-bouquet="3"] .botanical--2,
body[data-bouquet="3"] .botanical--3,
body[data-bouquet="4"] .botanical:nth-of-type(-n+5),
body[data-bouquet="5"] .botanical:nth-of-type(-n+6),
body[data-bouquet="6"] .botanical,
body[data-bouquet="7"] .botanical {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

main { padding-left: 5.5rem; }
.chapter { position: relative; min-height: 100svh; }
.chapter--title { background: #f8f1f6; }
.chapter--cream { background: var(--cream); }
.chapter--lilac { background: var(--lilac); }
.chapter--blush { background: var(--blush); }
.chapter--plum { background: var(--plum); color: var(--cream); }
.chapter--becoming { background: #f4ecef; }

.title-page {
  min-height: 100svh;
  padding: clamp(6rem, 13vw, 10rem) var(--gutter) 4rem;
  display: grid;
  align-items: end;
}
.title-page__inner { width: min(100%, 67rem); margin: 0 auto; }
.kicker,
.chapter-kicker {
  margin: 0 0 1.1rem;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.chapter-kicker { color: var(--orchid); }
.chapter-kicker--light { color: #e6c9e9; }
.title-page h1,
.closing h2 {
  margin: 0;
  font-family: var(--sc-font-display);
  font-weight: 400;
  line-height: .84;
  letter-spacing: -.055em;
}
.title-page h1 { font-size: clamp(4.8rem, 14vw, 12rem); }
.title-page h1 em,
.closing h2 em { color: var(--orchid); font-weight: 400; }
.title-page__dek {
  max-width: 42rem;
  margin: 2rem 0 0 auto;
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  line-height: 1.55;
}
.title-page__date { margin: 2.5rem 0 0; color: var(--sc-ink-soft); font-size: .8rem; letter-spacing: .08em; }
.title-page__mark {
  position: absolute;
  right: var(--gutter);
  top: 7%;
  font-size: clamp(4rem, 8vw, 8rem);
  color: #c179b9;
  opacity: .22;
  transform: rotate(16deg);
}

.chapter-label {
  position: absolute;
  top: 2rem;
  left: var(--gutter);
  right: var(--gutter);
  display: flex;
  justify-content: space-between;
  padding-bottom: .7rem;
  border-bottom: 1px solid rgba(50,24,47,.25);
  font-size: .68rem;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.chapter-label--light { border-color: rgba(255,250,244,.3); }

.spread,
.people-grid,
.beauty-layout,
.becoming-grid {
  width: min(calc(100% - 2 * var(--gutter)), var(--maxw));
  min-height: 100svh;
  margin: 0 auto;
  padding: var(--section) 0 clamp(4rem, 8vw, 8rem);
  display: grid;
  align-items: center;
  gap: clamp(2.5rem, 7vw, 8rem);
}
.spread { grid-template-columns: .9fr 1.1fr; }
.spread--image-first { grid-template-columns: 1.1fr .9fr; }
.spread--image-first .photo-stack { order: 1; }
.spread--image-first .spread__copy { order: 2; }
.spread__copy h2,
.style-stage h2,
.people-grid h2,
.beauty-layout h2,
.becoming-grid h2 {
  margin: 0 0 1.6rem;
  font-family: var(--sc-font-display);
  font-weight: 400;
  font-size: clamp(2.8rem, 5vw, 5.4rem);
  line-height: .95;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.spread__copy p,
.people-grid p,
.beauty-layout p,
.becoming-grid p {
  max-width: 61ch;
  font-size: clamp(1rem, 1.15vw, 1.12rem);
  line-height: 1.75;
}
blockquote {
  margin: 2rem 0 0;
  padding-left: 1rem;
  border-left: 2px solid var(--orchid);
  font-family: var(--sc-font-display);
  font-size: 1.35rem;
  line-height: 1.4;
}

.photo-slot { margin: 0; }
.photo-placeholder {
  position: relative;
  aspect-ratio: 4 / 5;
  padding: 1.2rem;
  border: 1px solid rgba(50,24,47,.2);
  background:
    radial-gradient(circle at 75% 25%, rgba(164,90,166,.24), transparent 30%),
    linear-gradient(145deg, #f5dce6, #ebe2f4 60%, #fffaf4);
  color: var(--plum);
}
.photo-note {
  display: inline-block;
  max-width: 100%;
  padding: .3rem .45rem;
  background: rgba(255,250,244,.68);
  font-size: .62rem;
  letter-spacing: .14em;
  line-height: 1.4;
  text-transform: lowercase;
  color: var(--sc-ink-soft);
}
.photo-placeholder--dark {
  color: var(--cream);
  border-color: rgba(255,250,244,.25);
  background:
    radial-gradient(circle at 24% 20%, rgba(202,116,178,.38), transparent 28%),
    linear-gradient(145deg, #5c3159, #2e172c);
}
.photo-placeholder--image { padding: 0; overflow: hidden; }
.photo-placeholder--image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-slot--landscape .photo-placeholder--image img { object-position: center 24%; }
.photo-slot figcaption {
  margin-top: .75rem;
  font-size: .78rem;
  color: var(--sc-ink-soft);
  font-style: italic;
}
.photo-slot--landscape .photo-placeholder { aspect-ratio: 3 / 2; }
.photo-slot--small { width: 62%; margin: -5rem 0 0 auto; position: relative; z-index: 2; }
.photo-stack { align-self: center; }

.style-stage {
  width: min(calc(100% - 2 * var(--gutter)), var(--maxw));
  margin: 0 auto;
  padding: var(--section) 0 clamp(5rem, 10vw, 9rem);
}
.style-stage__headline { width: min(100%, 60rem); }
.style-stage__photos {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 1.5rem;
  align-items: end;
}
.style-stage__note {
  max-width: 48rem;
  margin: 2.5rem 0 0 auto;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.65;
}

.people-grid { grid-template-columns: .95fr 1.05fr; }
.people-grid__statement p { color: #eadfe8; }
.beauty-layout { grid-template-columns: .95fr 1.05fr; }
.becoming-grid { grid-template-columns: 1.05fr .95fr; }
.becoming-grid__line {
  margin-top: 2rem;
  font-family: var(--sc-font-display);
  font-size: clamp(1.5rem, 2.8vw, 2.5rem) !important;
  line-height: 1.3 !important;
  color: #7a4b75;
}

.closing {
  min-height: 100svh;
  padding: clamp(7rem, 14vw, 12rem) var(--gutter);
  display: grid;
  place-items: center;
  text-align: center;
  background: #2d162b;
  color: var(--cream);
  overflow: hidden;
}
.closing__copy { width: min(100%, 58rem); position: relative; z-index: 2; }
.closing h2 { font-size: clamp(4rem, 10vw, 9rem); }
.closing__copy > p:not(.kicker) {
  max-width: 46rem;
  margin: 1.8rem auto 0;
  color: #eadfe8;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.7;
}
.closing__small { font-size: .85rem !important; letter-spacing: .05em; text-transform: uppercase; }
.closing__bouquet {
  position: absolute;
  inset: auto 0 6% 0;
  display: flex;
  justify-content: center;
  align-items: end;
  gap: clamp(.5rem, 2vw, 2rem);
  font-size: clamp(4rem, 9vw, 8rem);
  color: #c47bb8;
  opacity: .22;
  transform: rotate(-2deg);
}
.closing__bouquet span:nth-child(2n) { transform: translateY(-1rem) rotate(8deg); }
.closing__bouquet span:nth-child(3n) { color: #d894ad; transform: translateY(.7rem) rotate(-8deg); }

a:focus-visible { outline: 2px solid var(--orchid); outline-offset: 5px; }

@media (max-width: 860px) {
  .folio {
    inset: 0 0 auto 0;
    width: auto;
    height: 3.75rem;
    flex-direction: row;
    justify-content: space-between;
    padding: .65rem 1rem;
    background: rgba(255,250,244,.82);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(50,24,47,.09);
  }
  .folio__name { width: 2.35rem; height: 2.35rem; }
  .folio__nav { display: none; }
  .bouquet-rail { width: 6rem; height: 2.3rem; margin: 0; }
  .stem { left: 0; bottom: 50%; width: 100%; height: 1px; transform-origin: left; transform: scaleX(.12); }
  body[data-bouquet="1"] .stem { transform: scaleX(.24); }
  body[data-bouquet="2"] .stem { transform: scaleX(.38); }
  body[data-bouquet="3"] .stem { transform: scaleX(.54); }
  body[data-bouquet="4"] .stem { transform: scaleX(.7); }
  body[data-bouquet="5"] .stem { transform: scaleX(.86); }
  body[data-bouquet="6"] .stem,
  body[data-bouquet="7"] .stem { transform: scaleX(1); }
  .botanical { bottom: auto; top: 50%; font-size: .7rem; }
  .botanical--1 { left: 10%; }
  .botanical--2 { left: 26%; }
  .botanical--3 { left: 42%; }
  .botanical--4 { left: 58%; }
  .botanical--5 { left: 74%; }
  .botanical--6 { left: 90%; }
  main { padding-left: 0; }
  .title-page { padding-top: 7rem; align-items: center; }
  .title-page h1 { font-size: clamp(4.5rem, 22vw, 7rem); }
  .title-page__dek { margin: 2rem 0 0; max-width: 28ch; }
  .title-page__mark { top: 14%; right: 1rem; }
  .chapter-label { top: 5rem; }
  .spread,
  .people-grid,
  .beauty-layout,
  .becoming-grid {
    min-height: 0;
    padding-top: 9rem;
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .spread--image-first .photo-stack,
  .spread--image-first .spread__copy { order: initial; }
  .spread__copy h2,
  .style-stage h2,
  .people-grid h2,
  .beauty-layout h2,
  .becoming-grid h2 { font-size: clamp(2.8rem, 12vw, 4.2rem); }
  .photo-slot--landscape .photo-placeholder { aspect-ratio: 4 / 5; }
  .photo-slot--small { width: 72%; margin-top: -3rem; }
  .style-stage { padding-top: 9rem; }
  .style-stage__photos { grid-template-columns: 1fr; }
  .photo-slot--detail { width: 75%; margin: -2rem 0 0 auto; position: relative; }
  .people-grid__statement { order: 1; }
  .photo-slot--people { order: 2; }
  .closing { padding-top: 8rem; }
  .closing h2 { font-size: clamp(4rem, 18vw, 6.5rem); }
  .closing__bouquet { bottom: 4%; font-size: clamp(3rem, 13vw, 5rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .folio__nav a,
  .stem,
  .botanical { transition: none; }
}
