/* RandaMadeIt: a luxury bakery box. Cream, berry type, blush and rose surfaces, thin gold hairlines. */
:root {
  --cream: #FBF3EC;
  --blush: #F9D9D6;
  --rose: #E8A2A3;
  --rose-deep: #E8848D;
  --berry: #99323E;
  --wine: #4A1C26;
  --gold: #C9A46A;
  --hair: rgba(201, 164, 106, .55);
  --serif: 'Playfair Display', 'Didot', 'Bodoni 72', Georgia, serif;
  --sans: 'Jost', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --gutter: clamp(16px, 4.5vw, 48px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--cream); color: var(--wine);
  font-family: var(--sans); font-weight: 400; font-size: 17px; line-height: 1.65;
  overflow-x: clip; -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-inline-size: 100%; }
img { block-size: auto; }
h1, h2, h3 { text-wrap: balance; font-family: var(--serif); font-weight: 400; line-height: 1.08; margin: 0; color: var(--berry); letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
em { font-style: italic; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 1.5px solid var(--berry); outline-offset: 4px; border-radius: 4px; }
.sr { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; inset-block-start: -60px; z-index: 100; background: var(--berry); color: var(--cream); padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.skip:focus { inset-block-start: 12px; }
.wrap { max-inline-size: 1200px; margin-inline: auto; padding-inline: var(--gutter); }

.kicker {
  display: flex; align-items: center; gap: 12px; margin-block-end: 14px;
  font-family: var(--sans); font-weight: 500; font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--berry);
}
.kicker::before { content: ''; inline-size: 28px; block-size: 1px; background: var(--gold); }
.kicker a { text-decoration: none; }
.kicker a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Buttons: thin berry pills, one filled main action */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-block-size: 48px; padding-inline: 26px; border-radius: 999px; border: 1px solid var(--berry);
  background: transparent; color: var(--berry); text-decoration: none; cursor: pointer; white-space: nowrap;
  font-family: var(--sans); font-weight: 500; font-size: .76rem; letter-spacing: .18em; text-transform: uppercase;
  transition: background-color .35s ease, color .35s ease, border-color .35s ease;
}
.btn:hover { background: var(--berry); color: var(--cream); }
.btn-fill { background: var(--berry); color: var(--cream); }
.btn-fill:hover { background: var(--wine); border-color: var(--wine); }
.btn-sm { min-block-size: 40px; padding-inline: 18px; }
.btn-xs { min-block-size: 36px; padding-inline: 14px; font-size: .68rem; letter-spacing: .12em; }
.ico { inline-size: 18px; block-size: 18px; flex: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; color: var(--berry); text-decoration: none; font-weight: 500; font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; border-block-end: 1px solid var(--hair); padding-block: 6px; }
.link-arrow .ico { transition: transform .4s var(--ease); }
.link-arrow:hover .ico { transform: translateX(4px); }

/* Header: centred lockup, quiet links either side, a gold hairline under */
.top { position: sticky; inset-block-start: 0; z-index: 20; border-block-end: 1px solid var(--hair); background: var(--cream); }
/* Home: the nav wordmark waits until the hero (logo + huge word) has scrolled away */
.top-brand { transition: opacity .7s ease; }
.js .page-home .top-brand { opacity: 0; pointer-events: none; }
.js .page-home.past-hero .top-brand { opacity: 1; pointer-events: auto; }
.top-in { max-inline-size: 1280px; margin-inline: auto; padding: 12px var(--gutter); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.top-links { display: flex; align-items: center; gap: clamp(16px, 3vw, 36px); }
.top-end { justify-content: flex-end; }
.top-links a { text-decoration: none; font-weight: 500; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--berry); padding-block: 8px; }
.top-links a:not(.soc):hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--gold); }
.top-brand { display: block; color: var(--berry); text-decoration: none; }
.lockup { display: grid; justify-items: center; gap: 3px; color: var(--berry); }
.lk-randa { inline-size: 92px; block-size: auto; }
.lk-madeit { inline-size: 54px; block-size: auto; }
.soc { display: inline-grid; place-items: center; inline-size: 40px; block-size: 40px; border-radius: 999px; border: 1px solid var(--hair); color: var(--berry); transition: border-color .3s, background-color .3s; }
.soc:hover { border-color: var(--berry); }
.soc .ico { inline-size: 18px; block-size: 18px; }
@media (max-width: 699px) { .hide-sm { display: none; } .lk-randa { inline-size: 82px; } .lk-madeit { inline-size: 48px; } }

/* ---------- Chapters (hero = 00, then 01-03): object above a huge word, small label */
.chapter {
  position: relative; overflow: hidden; isolation: isolate;
  min-block-size: 100vh; min-block-size: 100svh; padding-block: 48px 64px;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 18px;
  background: var(--cream);
}
.tone-blush { background: var(--blush); }
.ch-stage { position: relative; display: grid; justify-items: center; inline-size: 100%; }
.ch-object { position: relative; z-index: 2; }
.ch-object > svg, .hero-obj { will-change: transform; }
.obj { inline-size: min(74vw, 380px); block-size: auto; overflow: visible; }
.ch-word {
  position: relative; z-index: 3; margin: -.3em 0 0; text-align: center; white-space: nowrap;
  font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--berry);
  font-size: var(--fs, min(34vw, 17rem)); line-height: .9; letter-spacing: -.025em;
}
.ch-word span { display: inline-block; will-change: transform; }
.ch-word i { font-style: italic; color: var(--rose-deep); }
.ch-label { position: relative; z-index: 3; padding-inline: var(--gutter); max-inline-size: 440px; text-align: center; display: grid; justify-items: center; }
.num { display: inline-grid; place-items: center; min-inline-size: 44px; block-size: 26px; padding-inline: 10px; border-radius: 999px; border: 1px solid var(--gold); color: var(--berry); font-weight: 500; font-size: .7rem; letter-spacing: .14em; margin-block-end: 14px; }
.ch-label h1, .ch-label h2 { font-size: clamp(1.55rem, 2.4vw, 2.1rem); margin-block-end: 10px; }
.ch-label h1 em { color: var(--berry); }
.ch-label > p, .more p { font-size: 1rem; max-inline-size: 34ch; }
.more { margin-block-start: 10px; }
.more-btn { margin-block-start: 20px; }
/* a thin gold arch behind each object: the bakery window. It ends at the word, above the copy. */
.chapter:not(.hero) .ch-stage::before {
  content: ''; position: absolute; z-index: 1; inset-inline-start: 50%; inset-block: -22px 0;
  inline-size: min(84vw, 480px); translate: -50% 0;
  border: 1px solid var(--hair); border-block-end: 0; border-radius: 999px 999px 0 0; pointer-events: none;
}
.mv-whisk { transform-box: view-box; transform-origin: 200px 208px; transform: rotate(12deg); }
.mv-swirl { transform-box: fill-box; transform-origin: center; }
.mv-phone { transform-box: view-box; transform-origin: 200px 350px; }
.mv-play { transform-box: view-box; transform-origin: 200px 182px; }
.mv-prog { transform-box: view-box; transform-origin: 152px 307px; transform: scaleX(.3); }
.mv-heart { transform-box: view-box; transform-origin: 304px 96px; }

/* Hero object: the round logo, floating, words circling, gold ring breathing, sugar sparkles */
.hero { min-block-size: calc(100svh - 77px); padding-block: 28px 48px; gap: 22px; }
.hero-obj { position: relative; inline-size: min(70vw, 380px); aspect-ratio: 1; }
.hero-float { position: absolute; inset: 0; animation: float 8s ease-in-out infinite; }
.hero-logo { position: absolute; inset: 10%; inline-size: 80%; block-size: 80%; border-radius: 50%; }
.ring-text { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; overflow: visible; animation: spin 70s linear infinite; }
.ring-text text { font-family: var(--sans); font-weight: 500; font-size: 15px; letter-spacing: .32em; text-transform: uppercase; fill: var(--berry); }
.ring-gold { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; animation: breathe 6s ease-in-out infinite; }
.spark-wrap { position: absolute; inset-inline-start: var(--x); inset-block-start: var(--y); inline-size: var(--s); block-size: var(--s); opacity: 0; animation: drift 9s ease-in-out var(--d) infinite; }
.spark-wrap svg { inline-size: 100%; block-size: 100%; }
.s-gold { color: var(--gold); }
.s-rose { color: var(--rose-deep); }
.hero-word { --fs: 1rem; margin-block-start: calc(-1 * min(5vw, 34px)); line-height: 1; }
.wm-randa { inline-size: min(84vw, 640px); block-size: auto; color: var(--berry); }
.hero-copy { max-inline-size: 460px; }
.hero-copy h1 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-block-start: 24px; }
.paused .hero-float, .paused .ring-text, .paused .ring-gold, .paused .spark-wrap { animation-play-state: paused; }
@keyframes float { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-10px) scale(1.012); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 0%, 100% { transform: scale(.985); opacity: .55; } 50% { transform: scale(1.02); opacity: 1; } }
@keyframes drift { 0% { opacity: 0; transform: translateY(8px) rotate(0) scale(.6); } 30% { opacity: .9; } 60% { opacity: .7; } 100% { opacity: 0; transform: translateY(-26px) rotate(90deg) scale(1); } }

/* Desktop: a composed spread. Stage and copy share the width; sides alternate per chapter. Phone stays stacked. */
@media (min-width: 1200px) {
  .chapter { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 56px; align-items: center; padding: 64px max(var(--gutter), calc((100vw - 1200px) / 2)); }
  .chapter.side-b { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .ch-stage { grid-column: 1; grid-row: 1; }
  .ch-label { grid-column: 2; grid-row: 1; align-self: center; justify-self: start; text-align: start; justify-items: start; padding-inline: 0; max-inline-size: 360px; }
  .side-b .ch-stage { grid-column: 2; }
  .side-b .ch-label { grid-column: 1; justify-self: end; }
  .ch-label h1, .ch-label h2 { font-size: clamp(1.9rem, 2.4vw, 2.4rem); }
  .ch-label > p, .more p { font-size: 1.06rem; }
  .obj { inline-size: min(28vw, 400px); }
  .ch-word { --fs: min(14vw, 13rem); }
  .hero-obj { inline-size: min(28vw, 400px); }
  .wm-randa { inline-size: min(40vw, 600px); }
  .cta { justify-content: flex-start; }
}

/* ---------- Quiet sections */
.quiet { padding-block: clamp(64px, 9vw, 120px); }
.quiet h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 32px; margin-block-end: clamp(32px, 4vw, 56px); }
.rise { overflow: hidden; padding-block-end: .12em; }
.rise > span { display: inline-block; }
.js .rise > span { transform: translateY(110%); transition: transform 1.1s var(--ease); }
.js .rise.in > span { transform: none; }
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s ease, transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 110ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* Recipe cards: arch-topped photos with a gold hairline, slow zoom */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 14px; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 32px; } }
.card a { display: grid; gap: 6px; text-decoration: none; color: var(--wine); }
.card-photo { display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 999px 999px 6px 6px; outline: 1px solid var(--hair); outline-offset: 5px; margin: 6px 6px 12px; background: var(--blush); }
.card-photo img { inline-size: 100%; block-size: 100%; object-fit: cover; transform: scale(1.001); transition: transform 2.6s var(--ease); }
.card a:hover img, .card a:focus-visible img, .card a:active img { transform: scale(1.09); }
.card-meta { font-size: .66rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--berry); }
.card-title { font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.2; color: var(--wine); }
.card-time { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; }
.card-time .ico { inline-size: 15px; block-size: 15px; color: var(--berry); }

/* Videos: a strip of 9:16 tiles */
.videos .wrap { margin-block-end: 36px; }
.reel { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px var(--gutter) 18px; scrollbar-width: thin; scrollbar-color: var(--rose) transparent; max-inline-size: 1200px; margin-inline: auto; }
.reel li { flex: 0 0 min(44vw, 210px); scroll-snap-align: start; }
@media (min-width: 1100px) { .reel { overflow: visible; } .reel li { flex: 1 1 0; } }
.tile { display: grid; gap: 12px; position: relative; text-decoration: none; color: var(--wine); }
.tile-media { display: block; aspect-ratio: 9 / 16; border-radius: 20px; overflow: hidden; outline: 1px solid var(--hair); outline-offset: 4px; background: var(--blush); }
.tile-media img { inline-size: 100%; block-size: 100%; object-fit: cover; transition: transform 2.6s var(--ease); }
.tile:hover .tile-media img, .tile:focus-visible .tile-media img, .tile:active .tile-media img { transform: scale(1.07); }
.tile-play { position: absolute; inset-inline-start: 50%; inset-block-start: 42%; translate: -50% -50%; inline-size: 56px; block-size: 56px; border-radius: 50%; color: var(--cream); background: rgba(74, 28, 38, .32); display: grid; place-items: center; transition: transform .5s var(--ease); }
.tile-play .ico { inline-size: 56px; block-size: 56px; }
.tile:hover .tile-play { transform: scale(1.08); }
.tile-title { font-family: var(--serif); font-size: 1.05rem; text-align: center; }
.tile-ig { display: inline-flex; align-items: center; justify-content: center; gap: 6px; margin-block-start: -6px; font-weight: 500; font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--berry); }
.tile-ig .ico { inline-size: 14px; block-size: 14px; }
.follow { text-align: center; margin-block-start: 28px; }
.follow a { display: inline-flex; align-items: center; gap: 10px; color: var(--berry); text-decoration: none; font-weight: 500; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; border-block-end: 1px solid var(--hair); padding-block: 6px; }
.follow a:hover { border-color: var(--berry); }

/* About */
.about-in { display: grid; gap: 40px; align-items: center; }
.about-art { justify-self: center; inline-size: min(64vw, 300px); border-radius: 50%; outline: 1px solid var(--hair); outline-offset: 10px; }
.about-art img { border-radius: 50%; }
.about-text { font-size: 1.12rem; max-inline-size: 40ch; margin-block-start: 18px; }
.about-sign { margin-block-start: 22px; color: var(--berry); }
.sign { inline-size: 120px; block-size: auto; }
@media (min-width: 800px) { .about-in { grid-template-columns: 340px 1fr; gap: 80px; } }

/* Signup */
.signup-in { max-inline-size: 640px; text-align: center; display: grid; justify-items: center; }
.signup-in .kicker::after { content: ''; inline-size: 28px; block-size: 1px; background: var(--gold); }
.signup-in > p { margin-block-start: 14px; }
.signup-form { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-block-start: 28px; inline-size: 100%; }
.signup-form input { flex: 1 1 260px; max-inline-size: 360px; min-block-size: 48px; padding-inline: 22px; border-radius: 999px; border: 1px solid var(--berry); background: transparent; color: var(--wine); font: inherit; font-size: 1rem; }
.signup-form input::placeholder { color: rgba(74, 28, 38, .62); }
.signup-msg { min-block-size: 1.6em; margin-block-start: 16px; font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--berry); }

/* Ribbon line between quiet sections */
.ribbon { position: relative; block-size: 40px; max-inline-size: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.ribbon-line { inline-size: 100%; block-size: 40px; }
.ribbon-line path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .ribbon-line path { stroke-dashoffset: 1; transition: stroke-dashoffset 2.8s cubic-bezier(.6, 0, .2, 1); }
.js .ribbon.in .ribbon-line path { stroke-dashoffset: 0; }
.ribbon-bow { position: absolute; inset-inline-start: 50%; inset-block-start: 50%; inline-size: 46px; block-size: auto; translate: -50% -50%; color: var(--rose-deep); background: var(--cream); padding-inline: 8px; box-sizing: content-box; }
.js .ribbon-bow { opacity: 0; scale: .6; transition: opacity .8s ease 1.3s, scale 1s var(--ease) 1.3s; }
.js .ribbon.in .ribbon-bow { opacity: 1; scale: 1; }

/* Footer */
.foot { padding-block: 56px 40px; text-align: center; }
.foot-in { display: grid; justify-items: center; gap: 16px; }
.foot-brand { text-decoration: none; }
.foot-brand .lk-randa { inline-size: 150px; }
.foot-brand .lk-madeit { inline-size: 86px; }
.foot-line { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--berry); }
.foot-soc { display: flex; gap: 10px; }
.foot-nav { display: flex; gap: 28px; }
.foot-nav a { text-decoration: none; font-weight: 500; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--berry); }
.foot-small { font-size: .76rem; max-inline-size: 70ch; line-height: 1.7; }
.foot-small a { text-underline-offset: 2px; }

/* ---------- Recipe index */
.index-head { padding-block: clamp(40px, 7vw, 88px) 28px; }
.index-title { font-style: italic; font-size: clamp(3.4rem, 11vw, 7.5rem); line-height: .95; letter-spacing: -.03em; }
.filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; margin-block-start: 32px; padding-block: 20px; border-block: 1px solid var(--hair); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-block-size: 40px; padding-inline: 18px; border-radius: 999px; border: 1px solid var(--berry); background: transparent; color: var(--berry); cursor: pointer; font-weight: 500; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; transition: background-color .3s, color .3s; }
.chip[aria-pressed="true"] { background: var(--berry); color: var(--cream); }
.search { position: relative; display: flex; align-items: center; flex: 1 1 260px; max-inline-size: 380px; }
.search .ico { position: absolute; inset-inline-start: 18px; color: var(--berry); pointer-events: none; }
.search input { inline-size: 100%; min-block-size: 46px; padding-inline: 48px 18px; border-radius: 999px; border: 1px solid var(--hair); background: transparent; font: inherit; font-size: 1rem; color: var(--wine); }
.search input:focus { border-color: var(--berry); outline: none; }
.search input::placeholder { color: rgba(74, 28, 38, .62); }
.index-grid { padding-block: 40px clamp(64px, 9vw, 120px); }
.empty { text-align: center; font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--berry); padding-block: 48px; }
.card.is-hidden { display: none; }

/* ---------- Recipe page */
.rp-head { display: grid; gap: 32px; padding-block: clamp(24px, 5vw, 64px) 40px; align-items: center; }
.rp-media { margin: 0; }
.rp-media img { inline-size: 100%; block-size: auto; aspect-ratio: 1; object-fit: cover; border-radius: 999px 999px 8px 8px; outline: 1px solid var(--hair); outline-offset: 8px; }
.rp-media.is-video .rp-video { inline-size: min(100%, 380px); margin-inline: auto; aspect-ratio: 9 / 16; border-radius: 24px; overflow: hidden; outline: 1px solid var(--hair); outline-offset: 6px; background: var(--wine); }
.rp-video video { inline-size: 100%; block-size: 100%; object-fit: cover; }
.rp-media figcaption { margin-block-start: 18px; font-size: .74rem; text-align: center; }
.rp-media figcaption a { text-underline-offset: 2px; }
.rp-title { font-size: clamp(2.8rem, 7vw, 5rem); line-height: 1; letter-spacing: -.025em; }
.rp-lead { font-size: 1.12rem; margin-block-start: 18px; max-inline-size: 42ch; }
.rp-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; margin: 28px 0 0; }
.rp-facts div { padding-inline: 0 22px; margin-inline-end: 22px; border-inline-end: 1px solid var(--hair); }
.rp-facts div:last-child { border: 0; margin: 0; padding: 0; }
.rp-facts dt { font-size: .66rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--berry); }
.rp-facts dd { margin: 4px 0 0; font-family: var(--serif); font-size: 1.2rem; }
.rp-ahead { margin-block-start: 18px; padding-inline-start: 14px; border-inline-start: 1px solid var(--gold); font-style: italic; font-size: .95rem; }
.rp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 28px; }
.share { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 16px; }
@media (min-width: 900px) {
  .rp-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(48px, 6vw, 96px); }
  .rp-media img { aspect-ratio: 4 / 5; }
}
.rp-body { display: grid; gap: 56px; padding-block: 24px clamp(64px, 9vw, 112px); }
@media (min-width: 900px) { .rp-body { grid-template-columns: 380px minmax(0, 1fr); gap: 88px; align-items: start; } .rp-ings { position: sticky; inset-block-start: 24px; } }
.rp-body h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); }
.rp-ings-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-block-end: 14px; }
.scaler { display: inline-flex; border: 1px solid var(--berry); border-radius: 999px; padding: 3px; }
.scaler button { min-inline-size: 44px; min-block-size: 36px; border: 0; border-radius: 999px; background: transparent; color: var(--berry); cursor: pointer; font-weight: 500; font-size: .9rem; transition: background-color .3s, color .3s; }
.scaler button[aria-pressed="true"] { background: var(--berry); color: var(--cream); }
.ings li { border-block-end: 1px solid var(--hair); }
.ings .ing-group { border: 0; padding-block: 22px 4px; font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--berry); }
.ing { display: flex; align-items: flex-start; gap: 14px; padding-block: 12px; cursor: pointer; }
.ing input { position: absolute; opacity: 0; inline-size: 1px; block-size: 1px; }
.tick { flex: none; inline-size: 20px; block-size: 20px; margin-block-start: 3px; border-radius: 50%; border: 1px solid var(--berry); position: relative; transition: background-color .3s; }
.tick::after { content: ''; position: absolute; inset-inline-start: 6px; inset-block-start: 2.5px; inline-size: 5px; block-size: 10px; border: solid var(--cream); border-width: 0 1.6px 1.6px 0; rotate: 45deg; opacity: 0; }
.ing input:checked + .tick { background: var(--berry); }
.ing input:checked + .tick::after { opacity: 1; }
.ing input:focus-visible + .tick { outline: 1.5px solid var(--berry); outline-offset: 3px; }
.ing-text { transition: color .3s; }
.ing-text .q { font-weight: 500; color: var(--berry); }
.ing input:checked ~ .ing-text { text-decoration: line-through; text-decoration-color: var(--berry); color: rgba(74, 28, 38, .62); }
.ing input:checked ~ .ing-text .q { color: inherit; }
.q.bump { animation: bump .6s var(--ease); }
@keyframes bump { 0% { opacity: .2; } 100% { opacity: 1; } }
.steps { counter-reset: s; display: grid; gap: 30px; margin-block-start: 22px; }
.steps li { display: grid; grid-template-columns: 52px 1fr; gap: 6px; padding-block-end: 30px; border-block-end: 1px solid var(--hair); }
.steps li:last-child { border: 0; }
.step-n { font-family: var(--serif); font-style: italic; font-size: 1.6rem; line-height: 1.1; color: var(--berry); }
.steps p { font-size: 1.06rem; line-height: 1.75; }
.more-recipes { background: var(--blush); }

/* Cook mode: one step at a time, big type */
.cook { position: fixed; inset: 0; z-index: 90; background: var(--cream); display: grid; grid-template-rows: auto 1fr auto; padding: max(16px, env(safe-area-inset-top)) var(--gutter) max(20px, env(safe-area-inset-bottom)); }
.cook[hidden] { display: none; }
.cook-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-block-end: 1px solid var(--hair); padding-block-end: 12px; }
.cook-title { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--berry); }
.cook-x { inline-size: 46px; block-size: 46px; border-radius: 50%; border: 1px solid var(--berry); background: transparent; color: var(--berry); display: grid; place-items: center; cursor: pointer; }
.cook-stage { display: grid; align-content: center; justify-items: center; gap: 22px; text-align: center; padding-block: 24px; touch-action: pan-y; overflow-y: auto; }
.cook-count { font-weight: 500; font-size: .74rem; letter-spacing: .24em; text-transform: uppercase; color: var(--berry); }
.cook-step { font-family: var(--serif); font-size: clamp(1.55rem, 5.2vw, 2.9rem); line-height: 1.35; max-inline-size: 28ch; color: var(--wine); transition: opacity .35s ease, transform .45s var(--ease); }
.cook-step.out { opacity: 0; transform: translateX(calc(var(--dir, 1) * -24px)); }
.cook-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cook-nav .btn { min-inline-size: 120px; }
.cook-nav .btn:disabled { opacity: .35; pointer-events: none; }
.cook-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; }
.cook-dots i { inline-size: 7px; block-size: 7px; border-radius: 50%; border: 1px solid var(--berry); transition: background-color .3s; }
.cook-dots i.on { background: var(--berry); }
body.cooking { overflow: hidden; }
@media (max-width: 420px) { .cook-nav .btn { min-inline-size: 0; padding-inline: 18px; } .cook-dots { display: none; } }

/* ---------- Reduced motion: everything still */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .rise > span { opacity: 1; transform: none; }
  .js .ribbon-line path { stroke-dashoffset: 0; }
  .js .ribbon-bow { opacity: 1; scale: 1; }
  .spark-wrap { opacity: .7; }
}

/* ---------- Print: just the recipe */
@media print {
  @page { margin: 16mm; }
  body { background: #fff; color: #000; font-size: 11pt; }
  #loader, .skip, .top, .foot, .ribbon, .rp-actions, .share, .scaler, .more-recipes, .cook, .rp-media figcaption { display: none !important; }
  .rp-head { display: block; padding: 0; }
  .rp-media img { inline-size: 70mm; aspect-ratio: 4 / 3; border-radius: 4px; outline: 0; float: right; margin: 0 0 6mm 6mm; }
  .rp-title { font-size: 28pt; color: #000; }
  h2, .kicker, .rp-facts dt, .step-n, .ing-text .q, .ings .ing-group { color: #000 !important; }
  .rp-body { display: block; padding: 0; clear: both; }
  .rp-ings { position: static; margin-block: 8mm; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal, .js .rise > span { opacity: 1 !important; transform: none !important; }
  .tick { border-color: #000; border-radius: 2px; }
  .steps li, .ings li { break-inside: avoid; }
  .ing { padding-block: 3px; }
  h2 { break-after: avoid; }
  .steps { gap: 4mm; }
  .steps li { padding-block-end: 4mm; }
  a { text-decoration: none; }
}
