:root {
  --sage: #DCE4D5;
  --sage-deep: #C6D3BD;
  --paper: #FBFCF9;
  --forest: #1F3A2E;
  --forest-soft: #3C5648;
  --blush: #F0C4BA;
  --display: "Young Serif", Georgia, serif;
  --body: "Albert Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--sage); color: var(--forest); font: 400 1rem/1.45 var(--body); -webkit-font-smoothing: antialiased; }
::selection { background: var(--blush); color: var(--forest); }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--forest); outline-offset: 4px; border-radius: 6px; }
svg { display: block; }

.page { max-width: 460px; margin: 0 auto; padding: 20px 20px 30px; }

h1 {
  font: 400 clamp(2rem, 9.4vw, 2.6rem)/1.02 var(--display);
  letter-spacing: -0.02em; text-wrap: balance;
}
h1 em { font-style: normal; display: inline-block; position: relative; z-index: 0; }
h1 em::after {
  content: ""; position: absolute; left: -4px; right: -6px; bottom: .06em; height: .42em; z-index: -1;
  background: var(--blush); border-radius: 4px 10px 6px 12px; transform: rotate(-1.2deg);
}

.hello { display: grid; grid-template-columns: 52px 1fr 44px; gap: 12px; align-items: center; margin: 12px 0 16px; }
.me { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: 50% 22%; border: 2px solid var(--forest); background: var(--sage-deep); }
.hello p { font-size: .9rem; line-height: 1.35; color: var(--forest-soft); }
.hello b { color: var(--forest); font-weight: 700; }
.ig-mini {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--forest); transition: background .18s, color .18s;
}
.ig-mini svg, .ig svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.ig-mini .dot { fill: currentColor; stroke: none; }
.ig-mini:active { background: var(--forest); color: var(--sage); }
@media (hover: hover) { .ig-mini:hover { background: var(--forest); color: var(--sage); } }

/* A path through her first week: the order carries meaning */
.path { list-style: none; padding: 0 0 0 26px; position: relative; display: grid; gap: 18px; }
.path::before {
  content: ""; position: absolute; left: 6px; top: 8px; bottom: 18px; width: 2px;
  background: var(--forest); transform-origin: top;
}
.step { position: relative; min-width: 0; }
.step::before {
  content: ""; position: absolute; left: -26px; top: 4px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--sage); border: 2px solid var(--forest);
}
.step:first-child::before { background: var(--forest); }
.when { display: block; font-weight: 700; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--forest-soft); margin-bottom: 5px; }

/* The free guide, set like an ingredient / nutrition facts label */
.label {
  display: block; background: var(--paper); color: var(--forest); padding: 10px 12px 12px;
  border: 2px solid var(--forest); border-radius: 0;
  box-shadow: 0 14px 30px -18px rgba(31, 58, 46, .55);
  transition: transform .2s cubic-bezier(.2, .8, .2, 1), box-shadow .2s;
}
.label:active { transform: scale(.985); }
@media (hover: hover) { .label:hover { transform: translateY(-2px); box-shadow: 0 20px 36px -18px rgba(31, 58, 46, .6); } }
.label-top { display: block; border-bottom: 8px solid var(--forest); padding-bottom: 5px; }
.label-free {
  display: inline-block; font-weight: 800; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  background: var(--forest); color: var(--paper); padding: 4px 7px; border-radius: 2px;
}
.label-title { display: block; font-weight: 800; font-size: clamp(1.45rem, 6.6vw, 1.7rem); line-height: 1; letter-spacing: -0.03em; margin: 7px 0 5px; }
.label-serving { display: block; font-size: .8rem; border-top: 1px solid var(--forest); padding-top: 4px; }
.rows { display: block; }
.r { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 3px 0; border-bottom: 1px solid var(--forest); font-size: .86rem; line-height: 1.3; }
.r:last-child { border-bottom: 4px solid var(--forest); }
.r b { font-weight: 800; white-space: nowrap; }
.check { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.label-cta {
  margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  background: var(--forest); color: var(--sage); border-radius: 99px; font-weight: 700; font-size: 1rem;
}
.label-cta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
@media (hover: hover) { .label:hover .label-cta svg { transform: translateX(4px); } }

/* Quieter text links for the next steps */
.go { display: block; padding: 2px 0 10px; border-bottom: 1.5px solid var(--forest); min-height: 44px; }
.go-title {
  display: block; font: 400 1.35rem/1.15 var(--display); letter-spacing: -0.01em;
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px;
  text-decoration-color: rgba(31, 58, 46, .35); transition: text-decoration-color .18s;
}
.go:active .go-title { text-decoration-color: var(--forest); }
@media (hover: hover) { .go:hover .go-title { text-decoration-color: var(--forest); } }
.go-line { display: block; font-size: .88rem; line-height: 1.38; color: var(--forest-soft); margin-top: 4px; }
.price {
  display: inline-block; font: 700 .85rem/1 var(--body); background: var(--blush); padding: 5px 8px; border-radius: 99px;
  vertical-align: middle; position: relative; top: -2px; margin-left: 4px;
}

.foot { margin-top: 28px; font-size: .78rem; color: var(--forest-soft); text-align: center; line-height: 1.5; }
.heart { display: inline-block; width: 13px; height: 13px; vertical-align: -1px; fill: var(--blush); stroke: var(--forest); stroke-width: 1.2; }

/* One authored moment: the path draws down through her week while the label prints in */
.js .path::before { animation: draw 1.2s cubic-bezier(.16, 1, .3, 1) .2s backwards; }
.js .step::before { animation: pop .5s cubic-bezier(.16, 1, .3, 1) backwards; }
.js .step:nth-child(1)::before { animation-delay: .2s; }
.js .step:nth-child(2)::before { animation-delay: .55s; }
.js .step:nth-child(3)::before { animation-delay: .9s; }
.js .label .r { animation: print .55s cubic-bezier(.16, 1, .3, 1) backwards; }
.js .label .r:nth-child(1) { animation-delay: .3s; }
.js .label .r:nth-child(2) { animation-delay: .38s; }
.js .label .r:nth-child(3) { animation-delay: .46s; }
.js .label .r:nth-child(4) { animation-delay: .54s; }
.js h1 em::after { animation: swipe .7s cubic-bezier(.16, 1, .3, 1) .1s backwards; transform-origin: left; }
@keyframes draw { from { transform: scaleY(0); } }
@keyframes pop { from { transform: scale(0); } }
@keyframes print { from { clip-path: inset(0 100% 0 0); } }
@keyframes swipe { from { transform: rotate(-1.2deg) scaleX(0); } }

@media (min-width: 720px) {
  .page { padding-top: 72px; }
  h1 { font-size: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  .js .path::before, .js .step::before, .js .label .r, .js h1 em::after { animation: none; }
  .label, .label-cta svg, .go-title, .ig-mini { transition: none; }
  .label:hover { transform: none; }
}

/* typeset: numbers line up like a real label, sentences break kindly */
.r b, .price { font-variant-numeric: tabular-nums lining-nums; }
.label-title { text-wrap: balance; }
.go-line, .hello p, .label-serving, .foot { text-wrap: pretty; }
.when { font-feature-settings: "kern"; }

/* quieter: calmer depth, the label carries the emphasis */
.label { box-shadow: 0 1px 0 rgba(31, 58, 46, .08), 0 12px 26px -20px rgba(31, 58, 46, .5); }
@media (hover: hover) { .label:hover { box-shadow: 0 1px 0 rgba(31, 58, 46, .08), 0 18px 32px -20px rgba(31, 58, 46, .55); } }

/* adapt: small phones get a touch smaller headline, laptops a roomier column */
@media (max-width: 340px) {
  .page { padding-left: 14px; padding-right: 14px; }
  .label-title { font-size: 1.3rem; }
  .r { font-size: .8rem; }
}
@media (min-width: 720px) {
  body { min-height: 100svh; display: grid; align-items: center; }
  .page { padding-bottom: 72px; }
  .hello { grid-template-columns: 60px 1fr 44px; }
  .me { width: 60px; height: 60px; }
}

/* harden: long words wrap, the photo spot holds its shape if the photo can't load */
.go-title, .label-title, .hello p, .go-line { overflow-wrap: break-word; }
.me { color: transparent; font-size: 0; }

/* polish: the browser parts carry the palette too */
html { scrollbar-color: var(--forest-soft) var(--sage); }
.ig-mini:focus-visible { border-radius: 50%; }
.label:focus-visible { border-radius: 0; }
