@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/plus-jakarta-sans.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --canvas: #F7F4EF;
  --surface: #EAE4DC;
  --elevated: #FDFBF7;
  --ink: #1F1E1B;
  --ink-2: #6E6A63;
  --ink-3: #A39E93;
  --hairline: #DCD6CD;
  --accent: #D9381E;
  --botanical: #5B8253;
  --sun: #E5A93B;
  --pine: #3F6048;
  --bark: #4C392C;
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Plus Jakarta Sans", -apple-system, "Helvetica Neue", sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(44px, 6.2vw, 84px); line-height: 1.04; }
h2 { font-size: clamp(34px, 4.2vw, 56px); line-height: 1.1; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 18px;
}
.lead { font-size: 18px; color: var(--ink-2); max-width: 30em; margin-top: 22px; }

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--ink);
  color: var(--canvas);
  padding: 8px 14px;
  z-index: 10;
}
.skip:focus { top: 12px; }

.top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 26px var(--gutter);
}
.wordmark { font: 500 26px/1 var(--serif); letter-spacing: -0.01em; text-decoration: none; }
.top nav, .foot nav { display: flex; gap: 26px; flex-wrap: wrap; }
.top nav a, .foot a { font-size: 14px; color: var(--ink-2); text-decoration: none; }
.top nav a:hover, .foot a:hover { color: var(--ink); }

/* Lesson */
.lesson {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "copy stage" "steps stage";
  grid-template-rows: auto 1fr;
  column-gap: clamp(32px, 6vw, 96px);
  padding: clamp(20px, 4vw, 56px) var(--gutter) clamp(64px, 8vw, 110px);
  max-width: 1440px;
  margin: 0 auto;
}
.lesson-copy { grid-area: copy; align-self: end; }
.lesson-stage { grid-area: stage; align-self: center; }
.lesson-steps { grid-area: steps; margin-top: 36px; }
#lesson { width: 100%; max-height: 80vh; margin: 0 auto; }

.steps { list-style: none; margin: 0; padding: 0; max-width: 32em; }
.steps li { padding: 14px 0; border-top: 1px solid var(--hairline); font-size: 15px; color: var(--ink-2); transition: color .3s; }
.steps .role { display: block; font: 500 21px/1.3 var(--serif); color: var(--ink); }
.js .steps li { color: var(--ink-3); }
.js .steps li .role { color: var(--ink-3); transition: color .3s; }
.js .steps li.current { color: var(--ink-2); }
.js .steps li.current .role, .js .steps li.placed .role { color: var(--ink); }
.steps li.placed .role::after { content: " ✓"; font-family: var(--sans); font-size: 13px; color: var(--botanical); }

.status { min-height: 1.65em; margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.done { margin-top: 6px; }
.text-button {
  appearance: none;
  border: 0;
  background: none;
  padding: 10px 0;
  font: 600 14px/1.2 var(--sans);
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.dish-shadow { fill: var(--surface); }
.dish { fill: #24211E; }
.dish-water { fill: #3A3530; }
.bark, .green { fill: none; stroke-linecap: round; }
.bark { stroke: var(--bark); stroke-width: 7; }
.green { stroke: var(--botanical); stroke-width: 7; }
.leaf { fill: var(--botanical); }

.stem { transform: rotate(var(--a)); transform-origin: 280px 528px; }
.stem.snap { transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.tip, .grab, .ghost { display: none; }
.ghost { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 3 8; stroke-linecap: round; transform: rotate(var(--a, 0deg)); transform-origin: 280px 528px; }
.js .stem { visibility: hidden; }
.js .stem.live { visibility: visible; }
.js .stem.active .tip { display: block; fill: var(--accent); stroke: var(--canvas); stroke-width: 3; animation: pulse 1.8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.js .stem.active .grab { display: block; fill: transparent; cursor: grab; touch-action: none; outline: none; }
.js .stem.active .grab.dragging { cursor: grabbing; }
.js .stem.active .grab:focus-visible { stroke: var(--ink); stroke-width: 2; }
.js .ghost.on { display: block; }
@keyframes pulse { 50% { transform: scale(1.35); } }

.seal { display: none; }
.seal rect { fill: var(--accent); }
.seal text { fill: var(--elevated); font-size: 38px; font-family: "Hiragino Mincho ProN", "Yu Mincho", serif; }
.js .seal.on { display: block; animation: stamp .5s cubic-bezier(.2, 1.4, .4, 1) both; transform-box: fill-box; transform-origin: center; }
@keyframes stamp { from { opacity: 0; transform: scale(1.5) rotate(-8deg); } }

/* Scroll blossom. Without JS, or with reduced motion, the four beats are plain text. */
.bloom { border-top: 1px solid var(--hairline); }
.beats { padding: 64px var(--gutter); display: grid; gap: 48px; max-width: 760px; }
.beat h2 { margin-bottom: 16px; }
.beat p:not(.eyebrow) { font-size: 18px; color: var(--ink-2); max-width: 28em; }
.bloom-flower { display: none; }

.js.motion .bloom { height: 460vh; }
.js.motion .bloom-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.js.motion .bloom-flower {
  display: block;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 62%;
}
.js.motion .bloom-flower svg { width: 100%; height: 100%; overflow: visible; }
.js.motion .beats {
  position: absolute;
  left: var(--gutter);
  top: 50%;
  width: min(32%, 520px);
  padding: 0;
  max-width: none;
  display: block;
  transform: translateY(-50%);
  min-height: 320px;
}
.js.motion .beat {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s ease, transform .55s ease;
}
.js.motion .beat.on { opacity: 1; transform: none; }

/* App screens */
.inside { padding: clamp(72px, 10vw, 140px) var(--gutter); border-top: 1px solid var(--hairline); }
.inside-head, .shots { max-width: 1320px; margin: 0 auto; }
.shots {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 28px);
  margin-top: clamp(36px, 5vw, 64px);
}
.shot { margin: 0; }
.shot img {
  width: 100%;
  height: auto;
  border: 5px solid var(--ink);
  border-radius: clamp(24px, 2.8vw, 38px);
  box-shadow: 0 12px 32px -8px rgba(31, 30, 27, .18);
}
.shot figcaption { margin-top: 18px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.shot strong { display: block; font: 500 22px/1.25 var(--serif); color: var(--ink); }

/* Feed wall */
.wall {
  padding: clamp(72px, 10vw, 140px) var(--gutter);
  border-top: 1px solid var(--hairline);
  background: var(--surface);
}
.sprite { position: absolute; }
.wall-head, .wall-grid { max-width: 1320px; margin: 0 auto; }
.wall-head h2 { max-width: 17em; }
.wall-head p:not(.eyebrow) { margin-top: 20px; font-size: 18px; color: var(--ink-2); }
.wall-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1.6vw, 22px);
  margin-top: clamp(36px, 5vw, 64px);
}
.post { margin: 0; background: var(--elevated); border-radius: 6px; overflow: hidden; }
.post img { width: 100%; height: auto; aspect-ratio: 3 / 5; object-fit: cover; object-position: 50% var(--y, 50%); }
.post figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  min-height: 56px;
  padding: 6px 6px 6px 14px;
  font: 500 18px/1.15 var(--serif);
}
.heart {
  display: none;
  flex: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  background: none;
  color: var(--ink-2);
  cursor: pointer;
}
.js .heart { display: inline-flex; }
.heart svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linejoin: round; }
.heart:hover { color: var(--ink); }
.heart[aria-pressed="true"] svg { fill: var(--accent); stroke: var(--accent); animation: pop .35s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes pop { from { transform: scale(.6); } }

/* Price */
.price { padding: clamp(72px, 10vw, 140px) var(--gutter); max-width: 1100px; margin: 0 auto; }
.rows { margin: 48px 0 0; }
.rows > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px 40px; padding: 24px 0; border-top: 1px solid var(--hairline); }
.rows dt { font: 500 24px/1.25 var(--serif); }
.rows dd { margin: 0; color: var(--ink-2); }

/* Closing */
.closing { padding: 40px var(--gutter) clamp(90px, 12vw, 160px); text-align: center; }
.closing p { color: var(--ink-2); margin-top: 14px; font-size: 18px; }
.closing .meta { font-size: 13px; color: var(--ink-2); margin-top: 26px; }
.button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  margin-top: 30px;
  padding: 12px 26px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--canvas);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 28px var(--gutter);
  border-top: 1px solid var(--hairline);
  font-size: 14px;
  color: var(--ink-2);
}

/* Privacy and Support */
.doc { max-width: 720px; margin: 0 auto; padding: 32px var(--gutter) 96px; }
.doc h1 { font-size: clamp(40px, 5vw, 60px); margin-bottom: 12px; }
.doc h2 { font-size: 28px; margin: 44px 0 10px; letter-spacing: -0.01em; }
.doc p, .doc ul { margin: 0 0 14px; color: #47443E; }
.doc ul { padding-left: 20px; }
.doc li { margin-bottom: 6px; }
.doc .updated { color: var(--ink-2); font-size: 14px; }

@media (max-width: 1080px) {
  .wall-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .lesson { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "stage" "steps"; grid-template-rows: none; }
  .lesson-stage { margin-top: 12px; }
  .lesson-steps { margin-top: 12px; }
  #lesson { max-height: none; }
  .js.motion .bloom-flower { width: 100%; }
  .js.motion .beats {
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    width: auto;
    height: 40%;
    min-height: 0;
    transform: none;
    background: linear-gradient(to top, var(--canvas) 74%, rgba(247, 244, 239, 0));
  }
  .js.motion .beat { inset: auto var(--gutter) 28px; }
  .beat p:not(.eyebrow) { font-size: 16px; }
  .shots {
    display: flex;
    max-width: none;
    margin-left: calc(-1 * var(--gutter));
    margin-right: calc(-1 * var(--gutter));
    padding: 0 var(--gutter) 28px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-padding-left: var(--gutter);
    -webkit-overflow-scrolling: touch;
  }
  .shot { flex: 0 0 min(64%, 260px); scroll-snap-align: start; }
  .wall-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post figcaption { padding-left: 10px; font-size: 16px; }
  .rows > div { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
