:root {
  --frosted-milk: #F7FBF8;
  --pale-blue-frost: #DDECEF;
  --linen-cream: #F2E8D2;
  --sage-leaf: #8DAA86;
  --rosehip-jam: #B86B74;
  --walnut-ink: #3F342A;
  --honey-glow: #E7C873;
  --display-font: "Cormorant Garamond", Cormorant, Garamond, Georgia, serif;
  --body-font: "EB Garamond", Garamond, Georgia, serif;
  --label-font: "Nunito Sans", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--walnut-ink);
  background:
    radial-gradient(circle at 14% 8%, rgba(231, 200, 115, 0.19), transparent 26rem),
    radial-gradient(circle at 86% 22%, rgba(184, 107, 116, 0.13), transparent 22rem),
    linear-gradient(115deg, var(--frosted-milk), var(--pale-blue-frost) 56%, var(--frosted-milk));
  font-family: var(--body-font);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .34;
  background-image:
    radial-gradient(rgba(63, 52, 42, 0.09) 0.7px, transparent 0.9px),
    linear-gradient(90deg, rgba(247, 251, 248, 0.2), rgba(221, 236, 239, 0.18));
  background-size: 13px 13px, 100% 100%;
  mix-blend-mode: multiply;
}

.greenhouse-grid,
.mist-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.greenhouse-grid {
  opacity: .32;
  background-image:
    linear-gradient(rgba(141, 170, 134, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(141, 170, 134, 0.15) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.mist-layer {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(247, 251, 248, 0.72), transparent 48%),
    linear-gradient(to bottom, rgba(247, 251, 248, 0.22), transparent 36%, rgba(247, 251, 248, 0.2));
  backdrop-filter: blur(1px);
}

.timeline-page {
  position: relative;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 0 22px 10vh;
}

.timeline-stem {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 50%;
  width: 120px;
  height: 100%;
  min-height: 3300px;
  transform: translateX(-50%);
  overflow: visible;
  pointer-events: none;
}

.stem-shadow,
.stem-line {
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 8 16;
}

.stem-shadow { stroke: rgba(63, 52, 42, 0.12); stroke-width: 9; filter: blur(6px); }
.stem-line { stroke: var(--sage-leaf); stroke-width: 4; }

.chapter {
  position: relative;
  z-index: 2;
  min-height: 82vh;
  display: flex;
  align-items: center;
  padding: 9vh 0;
}

.hero { min-height: 100vh; justify-content: center; text-align: center; }
.offset-left { justify-content: flex-start; }
.offset-right { justify-content: flex-end; }
.center-pane { justify-content: center; }
.finale { flex-direction: column; justify-content: center; min-height: 92vh; text-align: center; }

.frost-card,
.artifact-panel,
.tiny-note,
.botanical-card,
.clothespin-note,
.postage-stack,
.moth-tag {
  border: 1px solid rgba(141, 170, 134, 0.34);
  box-shadow: 0 26px 60px rgba(63, 52, 42, 0.12), inset 0 0 40px rgba(231, 200, 115, 0.12);
  backdrop-filter: blur(18px);
}

.hero-card {
  width: min(760px, 92vw);
  padding: clamp(42px, 8vw, 86px);
  border-radius: 48px 42px 54px 38px;
  background: rgba(247, 251, 248, 0.62);
  transform: rotate(-1deg);
}

.eyebrow,
.tag,
.linen-stamp,
.keepsake-row,
.recipe-list,
.tiny-note,
.clothespin-note,
.moth-tag {
  font-family: var(--label-font);
}

.eyebrow,
.tag {
  margin: 0 0 12px;
  color: var(--rosehip-jam);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

h1, h2 {
  margin: 0;
  font-family: var(--display-font);
  font-weight: 700;
  letter-spacing: .015em;
  line-height: .92;
}

h1 { font-size: clamp(4.5rem, 13vw, 12rem); }
h2 { font-size: clamp(2.8rem, 6.4vw, 6.6rem); max-width: 8ch; }

.hero-line {
  margin: 18px 0 20px;
  color: var(--sage-leaf);
  font-family: var(--display-font);
  font-size: clamp(1.6rem, 3vw, 2.55rem);
  font-weight: 600;
}

.intro,
.artifact-panel p:not(.tag),
.closing-line {
  font-size: clamp(1.18rem, 1.55vw, 1.45rem);
  line-height: 1.58;
}

.intro { max-width: 560px; margin: 0 auto; }

.artifact-panel {
  position: relative;
  width: min(510px, calc(50vw - 72px));
  padding: clamp(28px, 4vw, 46px);
  background:
    linear-gradient(135deg, rgba(247, 251, 248, 0.70), rgba(242, 232, 210, 0.62)),
    radial-gradient(circle at 18% 12%, rgba(231, 200, 115, 0.20), transparent 42%);
  border-radius: 28px 34px 26px 40px;
}

.offset-left .artifact-panel { margin-left: 5%; transform: rotate(-1.7deg); }
.offset-right .artifact-panel { margin-right: 5%; transform: rotate(1.5deg); }
.center-pane .artifact-panel { width: min(610px, 82vw); transform: rotate(-.5deg); }

.artifact-panel::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(141, 170, 134, 0.32);
  border-radius: inherit;
  pointer-events: none;
}

.dew-marker {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  width: 28px;
  height: 28px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(247, 251, 248, 0.76);
  border: 1px solid rgba(141, 170, 134, 0.54);
  box-shadow: 0 0 0 9px rgba(221, 236, 239, 0.56), 0 8px 22px rgba(63, 52, 42, 0.12);
  transition: background .7s ease, border-color .7s ease, box-shadow .7s ease, transform .7s ease;
}

.dew-marker span {
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: var(--sage-leaf);
  transition: background .7s ease, transform .7s ease;
}

.dew-marker.active {
  background: rgba(231, 200, 115, 0.42);
  border-color: rgba(184, 107, 116, 0.6);
  box-shadow: 0 0 0 12px rgba(231, 200, 115, 0.20), 0 0 34px rgba(231, 200, 115, 0.62);
}

.dew-marker.active span { background: var(--honey-glow); transform: scale(1.16); }

.floating-scraps { position: fixed; inset: 0; pointer-events: none; z-index: 3; }
.scrap { position: absolute; display: block; opacity: .75; filter: drop-shadow(0 12px 18px rgba(63, 52, 42, .10)); will-change: transform; }
.scrap-vellum { left: 8%; top: 17%; padding: 18px 24px; background: rgba(242, 232, 210, .64); border: 1px solid rgba(63, 52, 42, .12); border-radius: 9px 16px 10px 13px; color: var(--rosehip-jam); font-family: var(--label-font); font-size: .8rem; transform: rotate(-8deg); }
.scrap-wireframe { right: 10%; top: 13%; width: 132px; height: 86px; background: rgba(221, 236, 239, .48); border: 1px solid rgba(141, 170, 134, .35); border-radius: 14px; transform: rotate(7deg); }
.scrap-wireframe i { display: block; height: 9px; margin: 13px 16px; border-radius: 20px; background: rgba(141, 170, 134, .42); }
.scrap-leaf { left: 15%; top: 62%; width: 84px; height: 32px; border-radius: 100% 0 100% 0; background: rgba(141, 170, 134, .46); transform: rotate(-24deg); }
.scrap-label { right: 14%; top: 63%; padding: 12px 22px; background: rgba(247, 251, 248, .72); border: 1px solid rgba(184, 107, 116, .28); color: var(--walnut-ink); font-family: var(--label-font); border-radius: 5px; transform: rotate(11deg); }
.scrap-petal { right: 28%; top: 38%; width: 34px; height: 54px; background: rgba(184, 107, 116, .34); border-radius: 70% 20% 70% 20%; transform: rotate(32deg); }

.tiny-note { position: absolute; right: 9%; bottom: 14%; padding: 18px 22px; background: rgba(242, 232, 210, .68); border-radius: 14px; transform: rotate(4deg); font-size: .86rem; }
.tiny-note small { color: var(--sage-leaf); }

.specimen,
.clothespin-note,
.postage-stack,
.moth-tag { position: absolute; background: rgba(247, 251, 248, .58); }
.botanical-card { right: 9%; width: 156px; height: 214px; border-radius: 80px 80px 24px 24px; display: grid; place-items: center; text-align: center; transform: rotate(6deg); }
.botanical-card span { width: 64px; height: 92px; border-radius: 100% 0 100% 0; background: rgba(141, 170, 134, .5); }
.botanical-card b, .botanical-card em { position: absolute; font-family: var(--label-font); font-size: .78rem; }
.botanical-card b { bottom: 34px; color: var(--rosehip-jam); }
.botanical-card em { bottom: 15px; color: var(--walnut-ink); }
.clothespin-note { left: 8%; top: 22%; padding: 20px; border-radius: 10px 20px 12px 18px; transform: rotate(-5deg); font-size: .9rem; }
.clothespin-note::before { content: ""; position: absolute; top: -18px; left: 42%; width: 38px; height: 16px; border-radius: 6px; background: var(--honey-glow); box-shadow: inset 0 0 0 1px rgba(63,52,42,.14); }
.postage-stack { right: 11%; top: 31%; width: 120px; height: 140px; border: 0; box-shadow: none; background: transparent; }
.postage-stack span { position: absolute; width: 82px; height: 96px; background: rgba(221, 236, 239, .62); border: 1px dashed rgba(63,52,42,.24); border-radius: 6px; }
.postage-stack span:nth-child(1) { transform: rotate(-10deg); }
.postage-stack span:nth-child(2) { left: 24px; top: 17px; background: rgba(242,232,210,.72); transform: rotate(8deg); }
.postage-stack span:nth-child(3) { left: 45px; top: 38px; background: rgba(247,251,248,.72); transform: rotate(-2deg); }
.moth-tag { left: 10%; top: 36%; padding: 16px 22px; border-radius: 50% 12px 50% 12px; color: var(--rosehip-jam); transform: rotate(-8deg); }

.keepsake-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.keepsake-row span { padding: 8px 12px; border-radius: 999px; background: rgba(221,236,239,.54); border: 1px solid rgba(141,170,134,.28); color: var(--walnut-ink); font-size: .78rem; }

.mini-browser,
.prototype-pane {
  margin-top: 24px;
  border: 1px solid rgba(141, 170, 134, .36);
  background: rgba(221, 236, 239, .42);
  border-radius: 18px;
  box-shadow: inset 0 0 30px rgba(247,251,248,.7);
}
.mini-browser { padding: 18px; }
.mini-browser div i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 50%; background: var(--rosehip-jam); opacity: .7; }
.mini-browser section { height: 18px; margin: 16px 0; border-radius: 999px; background: rgba(247,251,248,.72); }
.mini-browser section:nth-of-type(2) { width: 70%; }
.mini-browser footer { width: 44%; height: 42px; border-radius: 18px; background: rgba(141,170,134,.34); }
.prototype-pane { position: relative; display: grid; place-items: center; min-height: 170px; overflow: hidden; }
.prototype-pane::before { content: ""; position: absolute; inset: -40%; background: radial-gradient(circle, rgba(231,200,115,.2), transparent 42%); animation: glowDrift 9s ease-in-out infinite alternate; }
.specimen-button { position: relative; border: 1px solid rgba(184,107,116,.34); border-radius: 999px; padding: 14px 24px; background: rgba(247,251,248,.8); color: var(--walnut-ink); font-family: var(--label-font); font-weight: 700; box-shadow: 0 12px 24px rgba(63,52,42,.10); cursor: pointer; transition: transform .45s ease, background .45s ease; }
.specimen-button:hover { transform: translateY(-3px) rotate(-1deg); background: rgba(231,200,115,.38); }
.thread-knot { position: absolute; right: 28px; bottom: 28px; width: 18px; height: 18px; border-radius: 50%; background: var(--honey-glow); box-shadow: 0 0 22px rgba(231,200,115,.6); }

.recipe-list { margin: 22px 0 0; padding: 0; list-style: none; }
.recipe-list li { margin: 9px 0; padding-left: 25px; position: relative; }
.recipe-list li::before { content: "✦"; position: absolute; left: 0; color: var(--rosehip-jam); }
.growth-vials { display: flex; align-items: flex-end; gap: 18px; margin-top: 28px; height: 90px; }
.growth-vials i { display: block; width: 46px; border: 1px solid rgba(141,170,134,.42); border-radius: 20px 20px 12px 12px; background: linear-gradient(to top, rgba(141,170,134,.42), rgba(247,251,248,.5)); }
.growth-vials i:nth-child(1) { height: 48px; }
.growth-vials i:nth-child(2) { height: 76px; }
.growth-vials i:nth-child(3) { height: 60px; }

.glasshouse-mark { position: relative; width: min(480px, 78vw); height: 320px; border: 2px solid rgba(141,170,134,.52); border-top: 0; background: rgba(247,251,248,.34); backdrop-filter: blur(16px); box-shadow: 0 30px 80px rgba(63,52,42,.12), inset 0 0 44px rgba(221,236,239,.54); }
.roof { position: absolute; left: 50%; top: -101px; width: 226px; height: 226px; border-left: 2px solid rgba(141,170,134,.52); border-top: 2px solid rgba(141,170,134,.52); transform: translateX(-50%) rotate(45deg); background: rgba(247,251,248,.26); }
.house-lines { position: absolute; inset: 0; display: flex; justify-content: space-around; }
.house-lines i { width: 1px; background: rgba(141,170,134,.34); }
.linen-stamp { position: relative; margin: -34px 0 18px; padding: 14px 30px; background: var(--linen-cream); border: 1px solid rgba(63,52,42,.16); border-radius: 5px; color: var(--rosehip-jam); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; transform: rotate(-1deg); }
.closing-line { max-width: 620px; margin: 0; }

.reveal {
  opacity: 0;
  filter: blur(18px);
  transform: translateY(24px);
  transition: opacity 1.1s ease, filter 1.1s ease, transform 1.1s ease;
}
.reveal.visible { opacity: 1; filter: blur(0); transform: translateY(0); }

@keyframes glowDrift {
  from { transform: translate(-12%, -8%) rotate(0deg); }
  to { transform: translate(10%, 6%) rotate(18deg); }
}

@media (max-width: 820px) {
  .timeline-page { padding-inline: 18px; }
  .chapter { min-height: 76vh; justify-content: center; padding-block: 8vh; }
  .artifact-panel { width: min(94vw, 560px); margin: 0 !important; }
  .timeline-stem { left: 28px; transform: none; opacity: .72; }
  .dew-marker { left: 28px; }
  .hero .dew-marker { left: 50%; }
  .botanical-card, .clothespin-note, .postage-stack, .moth-tag, .tiny-note { display: none; }
  .floating-scraps { opacity: .55; }
  h1 { font-size: clamp(4rem, 18vw, 7rem); }
}
