/* Omi's Recipes: the home page, the three sections, recipe cards, the family pages and the finder.
   FEEL    A grandmother's recipe box on a warm kitchen table: cream paper, her cards slightly askew,
           family snapshots in white borders with a strip of tape, her name in handwriting.
   COLOUR  Cream paper and cocoa bands from book.css; each section has its own tint (sweets pink,
           mains cinnamon, sides sage). Pink stays the colour of actions.
   TYPE    Fraunces for titles, Atkinson Hyperlegible to read at arm's length, Caveat for the
           handwritten touches (kickers, captions, Omi's name). */

:root {
  --paper: #fffaf4; --paper-2: #f8eee3; --line: #ecdccd; --cream: #fbf1e4;
  --hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;
  --tape: rgba(240, 222, 180, .78);
  --t-sweets: #ffe6ee; --t-sweets-ink: #8c1c4a; --t-mains: #f8e4d4; --t-mains-ink: #7a3b17; --t-sides: #e6efdc; --t-sides-ink: #3c5a24;
  --card: #ffffff; --card-line: rgba(70, 110, 200, .09); --card-red: rgba(214, 72, 72, .38);
  --shadow-1: 0 1px 0 rgba(42, 23, 17, .08), 0 10px 22px -14px rgba(42, 23, 17, .45);
  --shadow-2: 0 2px 0 rgba(42, 23, 17, .06), 0 22px 36px -22px rgba(42, 23, 17, .6);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1b110d; --paper-2: #24170f; --line: #3b2a22; --cream: #26180f;
    --tape: rgba(200, 180, 140, .35);
    --t-sweets: #3a1724; --t-sweets-ink: #ffb3cb; --t-mains: #3a2416; --t-mains-ink: #ffcfa6; --t-sides: #24301b; --t-sides-ink: #c8e2a8;
    --card: #2a1b14; --card-line: rgba(169, 185, 255, .06); --card-red: rgba(255, 120, 120, .3);
    --shadow-1: 0 1px 0 rgba(0, 0, 0, .3), 0 10px 22px -14px rgba(0, 0, 0, .8);
    --shadow-2: 0 2px 0 rgba(0, 0, 0, .3), 0 22px 36px -22px rgba(0, 0, 0, .9);
  }
}
:root[data-theme="dark"] {
  --paper: #1b110d; --paper-2: #24170f; --line: #3b2a22; --cream: #26180f;
  --tape: rgba(200, 180, 140, .35);
  --t-sweets: #3a1724; --t-sweets-ink: #ffb3cb; --t-mains: #3a2416; --t-mains-ink: #ffcfa6; --t-sides: #24301b; --t-sides-ink: #c8e2a8;
  --card: #2a1b14; --card-line: rgba(169, 185, 255, .06); --card-red: rgba(255, 120, 120, .3);
  --shadow-1: 0 1px 0 rgba(0, 0, 0, .3), 0 10px 22px -14px rgba(0, 0, 0, .8);
  --shadow-2: 0 2px 0 rgba(0, 0, 0, .3), 0 22px 36px -22px rgba(0, 0, 0, .9);
}

/* paper with a whisper of grain */
body { background-color: var(--paper); background-image: radial-gradient(rgba(150, 100, 60, .045) 1px, transparent 1.3px); background-size: 5px 5px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 60; background: var(--pink); color: #2a1711; padding: 10px 16px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 10px; }
#main:focus { outline: none; }
.kicker { font-family: var(--hand); font-size: 1.5rem; line-height: 1.1; font-weight: 700; color: var(--pink-ink); margin-bottom: 6px; letter-spacing: .01em; }
.say { margin-top: 14px; font-size: 1.12rem; }
.say i { font-family: var(--hand); font-style: normal; font-size: 1.55rem; font-weight: 700; color: var(--pink-ink); letter-spacing: .02em; }
.say b { font-weight: 700; }

/* ---------- header ---------- */
.brand { display: grid; line-height: 1.05; }
.brand .b-omi { font-size: 1.22rem; }
.brand .b-sub { font-family: var(--f-body); font-size: .74rem; font-weight: 400; letter-spacing: .02em; color: var(--band-muted); }
.chap a.star::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--pink); margin-right: 7px; vertical-align: 2px; }
.find-btn { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px 6px 12px; border-radius: 999px; border: 1px solid var(--band-line); background: rgba(255, 255, 255, .08); color: var(--band-ink); font-size: .92rem; }
.find-btn:hover { background: rgba(255, 255, 255, .16); }
.find-btn svg { width: 18px; height: 18px; }

/* ---------- photos: polaroids with tape, Omi's portrait in an arch ---------- */
.polaroid { margin: 0; position: relative; background: #fffdf8; padding: 10px 10px 0; box-shadow: var(--shadow-2); transform: rotate(var(--tilt, 0deg)); transition: transform .35s cubic-bezier(.3, 1.4, .5, 1); width: 100%; max-width: 320px; color: #3a2a20; }
.polaroid::before { content: ""; position: absolute; top: -11px; left: 50%; width: 38%; height: 24px; transform: translateX(-50%) rotate(calc(var(--tilt, 0deg) * -1.6)); background: var(--tape); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); z-index: 1; }
.polaroid button { display: block; width: 100%; padding: 0; border: 0; background: #e9e1d6; cursor: zoom-in; }
.polaroid img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.polaroid figcaption { font-family: var(--hand); font-size: 1.3rem; line-height: 1.15; padding: 8px 4px 12px; text-align: center; color: #4a3528; }
.polaroid:hover { transform: rotate(calc(var(--tilt, 0deg) * .3)) translateY(-4px); }
.portrait { margin: 0; position: relative; }
.portrait button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 999px 999px 26px 26px; overflow: hidden; box-shadow: 0 0 0 10px #fffdf8, 0 0 0 11px rgba(120, 80, 50, .18), var(--shadow-2); }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.portrait figcaption { font-family: var(--hand); font-size: 1.35rem; text-align: center; margin-top: 18px; color: var(--muted); }

/* ---------- home: Omi first ---------- */
.hero { background: radial-gradient(70% 90% at 75% 40%, rgba(255, 196, 150, .28), transparent 70%), var(--cream); overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 5vw, 72px); align-items: center; padding-block: clamp(32px, 5vw, 76px); }
.hero h1 { font-size: clamp(3.3rem, 8vw, 6.6rem); font-weight: 720; line-height: .92; letter-spacing: -0.035em; }
.hero .lede { margin-top: 18px; max-width: 36rem; }
.hero-find { margin-top: 22px; display: flex; align-items: center; gap: 10px; width: min(100%, 26rem); min-height: 50px; padding: 8px 10px 8px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--paper); color: var(--muted); font-size: 1rem; text-align: left; box-shadow: var(--shadow-1); }
.hero-find span { flex: 1; }
.hero-find svg { width: 20px; height: 20px; flex: none; }
.hero-find kbd { font: inherit; font-size: .8rem; border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; color: var(--muted); }
.hero-find:hover { border-color: var(--pink); color: var(--ink); }
.hero-photos { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; padding: 20px 0 30px; }
.hero-photos .portrait { width: min(78%, 400px); }
/* the wedding photo hangs below the portrait's lower-left corner (her sweater), never over her face */
.hero-photos .wedding, .oh-photos .wedding { justify-self: start; margin-top: calc(min(78%, 400px) * -0.16 - 46px); width: min(40%, 220px); --tilt: -5deg; z-index: 1; }
.hero-photos .wedding img { filter: sepia(.18) contrast(1.02); }
.hero-photos:not(:has(.portrait)) .wedding, .oh-photos:not(:has(.portrait)) .wedding { justify-self: center; margin-top: 0; width: min(70%, 340px); }

/* the chocolate cake, turning, with its sprinkles */
.cake-feature { background: var(--cocoa); color: var(--band-ink); position: relative; overflow: hidden; }
.cake-feature::before { content: ""; position: absolute; inset: 0; background: radial-gradient(55% 75% at 28% 55%, rgba(255, 61, 127, .16), transparent 70%); pointer-events: none; }
.cf-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(20px, 4vw, 56px); align-items: center; }
.cf-stage { position: relative; aspect-ratio: 5 / 4; }
.cf-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: grab; }
.cf-stage .fallback { position: absolute; inset: 0; display: grid; place-items: center; }
.cf-stage .fallback svg { width: 100%; height: 100%; }
.cake-feature .kicker { color: #ff9ec0; }
.cake-feature h2 { font-size: clamp(2.4rem, 4.6vw, 3.8rem); }
.cf-lede { margin-top: 14px; color: var(--band-ink); max-width: 32rem; }
.cake-feature .facts { grid-template-columns: repeat(2, auto); gap: 14px 0; }
.cake-feature .facts div:nth-child(3) { padding-left: 0; border-left: 0; }
.cake-feature .btn.ghost { color: var(--band-ink); }

/* Omi's recipe box: three doors */
.doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.door { position: relative; display: grid; align-content: start; gap: 4px; padding: 26px 24px 24px; border-radius: 22px; text-decoration: none; color: var(--ink); background: var(--t-sweets); box-shadow: var(--shadow-1); transition: transform .3s cubic-bezier(.3, 1.4, .5, 1), box-shadow .3s; min-height: 330px; }
.door-mains { background: var(--t-mains); }
.door-sides { background: var(--t-sides); }
.door:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: var(--shadow-2); }
.fan { position: relative; height: 150px; margin-bottom: 16px; }
.fan img { position: absolute; left: 50%; top: 4px; width: 46%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border-radius: 4px; box-shadow: var(--shadow-1); transform: translateX(calc(-50% + var(--k) * 58%)) rotate(calc(var(--k) * 7deg)); transform-origin: 50% 120%; background: #fff; transition: transform .35s cubic-bezier(.3, 1.4, .5, 1); }
.door:hover .fan img { transform: translateX(calc(-50% + var(--k) * 66%)) rotate(calc(var(--k) * 10deg)); }
.door-kicker { font-family: var(--hand); font-size: 1.35rem; font-weight: 700; color: var(--t-sweets-ink); }
.door-mains .door-kicker { color: var(--t-mains-ink); }
.door-sides .door-kicker { color: var(--t-sides-ink); }
.door-title { font-family: var(--f-display); font-variation-settings: "SOFT" 100; font-weight: 680; font-size: clamp(2rem, 3vw, 2.6rem); line-height: 1; letter-spacing: -0.02em; }
.door-count { font-weight: 700; margin-top: 4px; }
.door-names { color: var(--muted); font-size: .92rem; line-height: 1.45; }

/* three generations */
.bakers-band { background: var(--paper-2); }
.bk-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.bk-text p:not(.kicker) { margin-top: 12px; color: var(--muted); max-width: 30rem; }
.bk-text .btn { margin-top: 22px; }
.bk-line { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; position: relative; }
.bk-line::before { content: ""; position: absolute; left: 16%; right: 16%; top: 58px; border-top: 3px dashed color-mix(in srgb, var(--pink) 45%, transparent); }
.bk-line li { position: relative; display: grid; justify-items: center; text-align: center; gap: 4px; }
.bk-medal { width: 116px; height: 116px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: var(--pink-soft); color: var(--pink-ink); font-family: var(--f-display); font-variation-settings: "SOFT" 100; font-weight: 700; font-size: 3rem; box-shadow: 0 0 0 6px var(--paper), var(--shadow-1); margin-bottom: 8px; }
.bk-medal img { width: 100%; height: 100%; object-fit: cover; }
.bk-line b { font-family: var(--hand); font-size: 1.75rem; line-height: 1; }
.bk-line small { color: var(--muted); font-size: .86rem; line-height: 1.3; max-width: 11rem; }

/* the family tree */
.tree { display: grid; justify-items: center; gap: 0; }
.t-node { display: inline-grid; justify-items: center; gap: 0; padding: 12px 20px 10px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow-1); text-align: center; position: relative; }
.t-node b { font-family: var(--f-display); font-variation-settings: "SOFT" 100; font-weight: 640; font-size: 1.2rem; line-height: 1.15; }
.t-node small { font-family: var(--hand); font-size: 1.15rem; color: var(--pink-ink); line-height: 1.1; }
.t-node.big b { font-size: 1.6rem; }
.t-node.small { padding: 9px 14px 8px; }
.t-node.small b { font-size: 1.02rem; }
.t-couple { display: flex; align-items: center; gap: 12px; position: relative; padding-bottom: 34px; }
.t-couple::after { content: ""; position: absolute; left: 50%; bottom: 0; height: 34px; border-left: 2px solid var(--line); }
.t-amp { font-family: var(--hand); font-size: 2.2rem; color: var(--pink-ink); }
.t-kids { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 5vw, 80px); position: relative; padding-top: 30px; width: min(100%, 720px); }
.t-kids::before { content: ""; position: absolute; top: 0; left: 25%; right: 25%; border-top: 2px solid var(--line); }
.t-branch { display: grid; justify-items: center; gap: 0; position: relative; }
.t-branch::before { content: ""; position: absolute; top: -30px; left: 50%; height: 30px; border-left: 2px solid var(--line); }
.t-branch > .t-node { margin-bottom: 26px; }
.t-branch > .t-node::after { content: ""; position: absolute; left: 50%; bottom: -26px; height: 26px; border-left: 2px solid var(--line); }
.t-grand { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* Omi and Lisa */
.lisa-band { background: var(--t-sweets); }
.ll-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.ll-text p:not(.kicker) { margin-top: 12px; max-width: 30rem; }
.ll-text .btn { margin-top: 8px; }
.ll-photos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 22px 18px; }
.ll-photos .polaroid { width: min(46%, 250px); }
.clown { margin: 0; width: min(40%, 210px); background: #fffdf8; padding: 10px; box-shadow: var(--shadow-2); transform: rotate(3deg); }
.oh-clown { display: block; margin-top: 26px; width: min(52%, 230px); color: inherit; text-decoration: none; }
.oh-clown:hover { transform: rotate(1deg) translateY(-3px); }
.oh-clown img { height: auto; display: block; }
.clown img { width: 100%; }
.clown figcaption { font-family: var(--hand); font-size: 1.2rem; text-align: center; color: #4a3528; padding-top: 6px; }

/* photo strip */
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 22px; padding-top: 12px; }
.strip .polaroid { max-width: none; }

/* ---------- a section: one divider of the recipe box ---------- */
[data-view="section"] { --tint: var(--t-sweets); --tint-ink: var(--t-sweets-ink); }
.view[data-sec="mains"] { --tint: var(--t-mains); --tint-ink: var(--t-mains-ink); }
.view[data-sec="sides"] { --tint: var(--t-sides); --tint-ink: var(--t-sides-ink); }
[data-view="card"] { --tint: var(--t-sweets); --tint-ink: var(--t-sweets-ink); }
.sec-opener { background: var(--tint); }
.so-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: center; padding-block: clamp(28px, 4vw, 56px); }
.so-text h1 { font-size: clamp(3rem, 7vw, 5.4rem); font-weight: 720; line-height: .95; letter-spacing: -0.03em; margin-top: 4px; }
.so-text .lede { margin-top: 14px; }
.so-count { margin-top: 10px; font-weight: 700; color: var(--tint-ink); }
.so-photo { width: 230px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .92rem; color: var(--muted); }
.crumbs a { color: var(--tint-ink, var(--pink-ink)); font-weight: 700; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs.light { color: var(--band-muted); margin-bottom: 8px; }
.crumbs.light a { color: #ff9ec0; }
.filters { position: sticky; top: calc(56px + env(safe-area-inset-top, 0px)); z-index: 15; background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.filters-in { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding-block: 12px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; flex: 1 1 520px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font-size: .92rem; }
.chip svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.chip:hover { border-color: var(--pink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip[aria-pressed="true"] svg { fill: var(--pink); stroke: var(--pink); }
.filter-q { display: flex; align-items: center; gap: 8px; flex: 0 1 300px; min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); color: var(--muted); }
.filter-q svg { width: 18px; height: 18px; flex: none; }
.filter-q input { flex: 1; border: 0; background: none; font: inherit; color: var(--ink); min-height: 40px; outline: none; }
.filter-q:focus-within { border-color: var(--pink); }
.rbox { padding-top: clamp(24px, 3vw, 40px); }
.grp + .grp { margin-top: clamp(36px, 5vw, 64px); }
.grp-h { font-size: clamp(1.7rem, 2.8vw, 2.2rem); display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.grp-n { font-family: var(--hand); font-size: 1.4rem; color: var(--tint-ink); font-weight: 700; }
.rcards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.rc { position: relative; }
.rcard { display: grid; grid-template-rows: auto 1fr; height: 100%; text-decoration: none; color: var(--ink); background: var(--card); border-radius: 6px; box-shadow: var(--shadow-1); overflow: hidden; transition: transform .3s cubic-bezier(.3, 1.4, .5, 1), box-shadow .3s; }
.rcard:hover { transform: translateY(-4px) rotate(-.5deg); box-shadow: var(--shadow-2); }
.rc:nth-child(3n + 2) .rcard:hover { transform: translateY(-4px) rotate(.5deg); }
.rc-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #efe6da; border-bottom: 2px solid var(--card-red); }
.rc-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s ease; }
.rcard:hover .rc-img img { transform: scale(1.04); }
.rc-body { display: grid; align-content: start; gap: 4px; padding: 14px 16px 16px; background-image: repeating-linear-gradient(transparent 0 25px, var(--card-line) 25px 26px); background-position: 0 6px; }
.rc-src { font-family: var(--hand); font-size: 1.2rem; font-weight: 700; color: var(--tint-ink); line-height: 1.05; }
.rcard.hand .rc-src::before { content: "✎ "; }
.rc-title { font-family: var(--f-display); font-variation-settings: "SOFT" 100; font-weight: 650; font-size: 1.32rem; line-height: 1.12; letter-spacing: -0.01em; }
.rc-aka { font-size: .9rem; color: var(--muted); font-style: italic; }
.rc-blurb { font-size: .93rem; line-height: 1.45; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; }
.rc-meta { font-size: .84rem; font-weight: 700; color: var(--ink); opacity: .75; margin-top: 4px; }
.rc-badge { position: absolute; left: 10px; top: 10px; background: var(--pink); color: #2a1711; font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; box-shadow: var(--shadow-1); }
.save-btn { display: inline-flex; align-items: center; gap: 6px; }
.save-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.save-btn[aria-pressed="true"] svg { fill: var(--pink); stroke: var(--pink); transform: scale(1.12); }
.rc-save { position: absolute; right: 10px; top: 10px; width: 42px; height: 42px; justify-content: center; border-radius: 50%; border: 0; background: rgba(255, 253, 248, .92); color: #3a2a20; box-shadow: var(--shadow-1); }
.rc-save span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.grp-photo { display: flex; justify-content: center; margin-top: 34px; }
.grp-photo .polaroid { width: 230px; }
.no-match { padding: 40px 0; text-align: center; color: var(--muted); }

/* ---------- one transcribed recipe ---------- */
.card-opener { background: var(--tint); }
.co-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 60px); align-items: center; padding-block: clamp(26px, 4vw, 56px); }
.co-text h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 720; line-height: .95; letter-spacing: -0.03em; margin-top: 6px; }
.aka { font-family: var(--hand); font-size: 1.6rem; color: var(--tint-ink); margin-top: 4px; }
.co-src { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.src-badge, .tag-badge { display: inline-flex; align-items: center; min-height: 30px; padding: 3px 12px; border-radius: 999px; background: var(--card); font-size: .88rem; font-weight: 700; box-shadow: var(--shadow-1); }
.src-badge.k-hand { background: #fff4d6; color: #5c3d00; }
.tag-badge { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; color: var(--tint-ink); }
.co-text .lede { margin-top: 14px; }
.card-opener .facts, .recipe-band .facts { margin-top: 20px; grid-template-columns: repeat(auto-fit, minmax(110px, max-content)); gap: 10px 0; }
.card-opener .facts div { border-left-color: color-mix(in srgb, var(--ink) 14%, transparent); }
.card-opener .facts dt { color: var(--muted); }
.card-opener .facts dd { font-size: 1.32rem; white-space: normal; }
.card-opener .btn.ghost { color: var(--ink); }
.co-art { position: relative; display: grid; justify-items: center; padding: 10px 0 40px; }
.co-art .scan { margin: 0; width: min(82%, 380px); transform: rotate(-2.5deg); }
.co-art .scan button { display: block; width: 100%; padding: 0; border: 0; background: #fff; cursor: zoom-in; box-shadow: var(--shadow-2); }
.co-art .scan img { width: 100%; max-height: 460px; object-fit: cover; object-position: top; }
.co-art .co-photo { position: absolute; right: 0; bottom: 0; width: min(40%, 190px); }
.recipe-band { background: var(--paper); }
.recipe-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.r-ings { position: sticky; top: 76px; background: var(--card); padding: 24px 24px 18px; border-radius: 8px; box-shadow: var(--shadow-1); background-image: repeating-linear-gradient(transparent 0 33px, var(--card-line) 33px 34px); background-position: 0 70px; }
.r-ings h2, .r-method h2 { font-size: clamp(1.7rem, 2.6vw, 2.1rem); }
.r-hint { color: var(--muted); font-size: .92rem; margin: 6px 0 14px; }
.r-grp { font-size: 1.05rem; font-family: var(--f-body); font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--tint-ink); margin: 16px 0 6px; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; }
.checklist label { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: start; padding: 5px 0; cursor: pointer; line-height: 1.45; }
.checklist input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 1px 0 0; border: 2px solid color-mix(in srgb, var(--ink) 40%, transparent); border-radius: 6px; background: var(--paper); display: grid; place-items: center; cursor: pointer; transition: background .2s, border-color .2s; }
.checklist input::after { content: ""; width: 10px; height: 6px; border: solid #2a1711; border-width: 0 0 3px 3px; transform: rotate(-45deg) scale(0); margin-top: -3px; transition: transform .2s cubic-bezier(.3, 1.6, .5, 1); }
.checklist input:checked { background: var(--pink); border-color: var(--pink); }
.checklist input:checked::after { transform: rotate(-45deg) scale(1); }
.checklist input:checked + span { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--pink) 70%, transparent); text-decoration-thickness: 2px; }
.r-clear { margin-top: 6px; }
.r-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.r-steps li { display: grid; gap: 6px; justify-items: start; }
.r-step { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; width: 100%; text-align: left; padding: 14px 16px 14px 12px; border-radius: 12px; border: 1.5px solid transparent; background: var(--card); box-shadow: var(--shadow-1); font-size: 1.08rem; line-height: 1.55; transition: background .2s, opacity .2s; }
.r-step:hover { border-color: color-mix(in srgb, var(--pink) 50%, transparent); }
.r-n { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--tint-ink); font-family: var(--f-display); font-weight: 700; font-size: 1.2rem; transition: background .2s; }
.r-step[aria-pressed="true"] { background: transparent; box-shadow: none; border-color: var(--line); }
.r-step[aria-pressed="true"] .r-t { color: var(--muted); }
.r-step[aria-pressed="true"] .r-n { background: var(--pink); color: #2a1711; }
.r-step[aria-pressed="true"] .r-n::after { content: "✓"; position: absolute; }
.r-step[aria-pressed="true"] .r-n { color: transparent; position: relative; }
.r-step[aria-pressed="true"] .r-n::after { color: #2a1711; }
.r-timer { display: inline-flex; align-items: center; gap: 6px; margin-left: 58px; min-height: 36px; padding: 4px 12px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); font-size: .88rem; }
.r-timer svg { width: 18px; height: 18px; }
.r-timer:hover { border-color: var(--pink); }
mark.q { background: #fff1b8; color: #5c3d00; border-radius: 4px; padding: 0 4px; font-size: .85em; font-weight: 700; cursor: help; }
.r-note { margin-top: 18px; padding: 16px 18px; border-radius: 12px; background: var(--paper-2); }
.r-note h3 { font-size: 1.1rem; margin-bottom: 6px; }
.r-note ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 4px; }
.r-note.on-page { background: #fff4d6; color: #3d2a00; }
.r-note.on-page h3::before { content: "✎ "; }
.r-note.ours { background: var(--pink-soft); }
.r-note.unclear { background: var(--warn-soft); }
.orig-band { background: var(--paper-2); }
.orig-grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.orig-text p { margin-top: 10px; color: var(--muted); }
.orig-text .credit { color: var(--ink); font-weight: 700; }
.orig-pages { display: grid; gap: 22px; }
.paper-scan { margin: 0; }
.paper-scan button { display: block; width: 100%; padding: 0; border: 0; background: #fff; cursor: zoom-in; box-shadow: var(--shadow-2); }
.paper-scan:nth-child(odd) button { transform: rotate(-.6deg); }
.paper-scan:nth-child(even) button { transform: rotate(.6deg); }
.soon { display: flex; align-items: center; gap: 22px; padding: 22px 24px; border: 2px dashed var(--line); border-radius: 18px; }
.soon h2 { font-size: 1.45rem; }
.soon p { color: var(--muted); margin-top: 6px; max-width: 46rem; }
.soon-dots { display: flex; gap: 6px; flex: none; }
.soon-dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--pink); animation: omiDots 1.4s ease-in-out infinite; }
.soon-dots i:nth-child(2) { background: var(--sp2); animation-delay: .18s; }
.soon-dots i:nth-child(3) { background: var(--sp3); animation-delay: .36s; }
@keyframes omiDots { 0%, 80%, 100% { transform: translateY(0); opacity: .6; } 40% { transform: translateY(-8px); opacity: 1; } }

/* ---------- Omi and her family ---------- */
.omi-hero { background: radial-gradient(70% 90% at 70% 40%, rgba(255, 196, 150, .26), transparent 70%), var(--cream); border-bottom: 1px solid var(--line); overflow: hidden; }
.oh-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; padding-block: clamp(30px, 5vw, 72px); }
.oh-text h1 { font-family: var(--hand); font-size: clamp(5rem, 12vw, 9rem); font-weight: 700; line-height: .85; letter-spacing: 0; color: var(--pink-ink); }
.oh-text .lede { margin-top: 18px; }
.oh-photos { position: relative; display: grid; justify-items: center; padding-bottom: 30px; }
.oh-photos .portrait { width: min(74%, 360px); }
.oh-photos .wedding { margin-top: calc(min(74%, 360px) * -0.16 - 46px); --tilt: -4deg; }
.album { columns: 4 230px; column-gap: 26px; }
.album .polaroid { break-inside: avoid; margin: 0 auto 30px; max-width: none; }
.album .polaroid img { aspect-ratio: auto; }
.mails-band { background: var(--paper-2); }

/* ---------- finder ---------- */
.finder { width: min(94vw, 680px); max-height: min(86vh, 760px); padding: 0; border: 0; border-radius: 20px; background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .55); margin: 8vh auto auto; }
.finder[open] { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; }
.finder::backdrop { background: rgba(26, 13, 8, .55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.fd-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 18px; border-bottom: 1px solid var(--line); }
.fd-head > svg { width: 22px; height: 22px; flex: none; color: var(--muted); }
.fd-head input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 1.2rem; color: var(--ink); min-height: 48px; outline: none; }
.fd-head .icon-btn { background: var(--paper-2); }
.fd-chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px 18px; scrollbar-width: none; }
.fd-chips .chip { flex: none; min-height: 36px; }
.fd-list { list-style: none; margin: 0; padding: 4px 10px 10px; overflow-y: auto; }
.fd-list a { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 8px 10px; border-radius: 12px; text-decoration: none; color: var(--ink); }
.fd-list img, .fd-ph { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; object-position: top; background: var(--paper-2); }
.fd-t { display: grid; gap: 2px; }
.fd-t b { font-family: var(--f-display); font-variation-settings: "SOFT" 100; font-weight: 640; font-size: 1.12rem; }
.fd-t small { color: var(--muted); font-size: .85rem; }
.fd-heart svg { width: 18px; height: 18px; fill: var(--pink); }
.fd-list li[aria-selected="true"] a, .fd-list a:hover { background: var(--pink-soft); }
.fd-foot { padding: 10px 18px 14px; font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); }

/* ---------- the cook-along with a transcribed recipe ---------- */
.cook.is-card .ck-auto, .cook.is-card #ckAccent { display: none !important; }
.ck-scan { margin: 0; height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto; background: #f3ebe0; }
.ck-scan img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.ck-scan figcaption, .ck-done-photo figcaption { font-family: var(--hand); font-size: 1.3rem; text-align: center; color: #4a3528; padding: 6px 0 10px; }
.ck-done-photo { margin: 0; height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto; background: #fffdf8; padding: 14px 14px 0; }
.ck-done-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- phones: a tab bar, like an app ---------- */
.tabbar { display: none; }
@media (max-width: 760px) {
  .chap { display: none; }
  .find-btn { margin-left: auto; }
  .find-btn span { display: none; }
  .find-btn { width: 44px; height: 44px; padding: 0; justify-content: center; }
  .tabbar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--cocoa); color: var(--band-muted); padding: 6px max(6px, env(safe-area-inset-left, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(6px, env(safe-area-inset-right, 0px)); border-top: 1px solid var(--band-line); }
  .tabbar a, .tabbar button { display: grid; justify-items: center; gap: 2px; padding: 6px 0 4px; border: 0; background: none; color: inherit; text-decoration: none; font-size: .74rem; border-radius: 12px; min-height: 50px; }
  .tabbar svg { width: 24px; height: 24px; }
  .tabbar [aria-current="page"] { color: var(--band-ink); background: rgba(255, 255, 255, .1); }
  .tabbar [aria-current="page"] svg { color: var(--pink); }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
  .timer-pill { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- smaller screens ---------- */
@media (max-width: 1000px) {
  .doors { grid-template-columns: minmax(0, 1fr); }
  .door { min-height: 0; grid-template-columns: 200px minmax(0, 1fr); grid-template-rows: auto auto auto 1fr; column-gap: 22px; align-items: start; }
  .door .fan { grid-row: 1 / span 4; height: 160px; margin: 0; }
  .strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hero-grid, .oh-grid, .cf-grid, .bk-grid, .ll-grid, .co-grid, .recipe-grid, .orig-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-photos { padding-bottom: 40px; }
  .so-grid { grid-template-columns: minmax(0, 1fr); }
  .so-photo { display: none; }
  .r-ings { position: static; }
  .co-art { order: -1; padding-bottom: 30px; }
  .co-art .scan { width: min(70%, 300px); }
  .co-art .co-photo { width: min(38%, 160px); }
  .cf-stage { aspect-ratio: 4 / 3; }
}
@media (max-width: 600px) {
  .door { grid-template-columns: minmax(0, 1fr); }
  .door .fan { grid-row: auto; height: 130px; }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .bk-line { gap: 6px; }
  .bk-medal { width: 84px; height: 84px; font-size: 2.2rem; }
  .bk-line::before { top: 42px; }
  .t-kids { grid-template-columns: minmax(0, 1fr); padding-top: 0; }
  .t-kids::before { display: none; }
  .t-branch::before { top: 0; height: 0; }
  .t-branch + .t-branch { margin-top: 26px; }
  .t-node.big b { font-size: 1.3rem; }
  .rcards { grid-template-columns: minmax(0, 1fr); }
  .rcard { grid-template-rows: none; grid-template-columns: 112px minmax(0, 1fr); }
  .rc-img { aspect-ratio: auto; height: 100%; min-height: 128px; border-bottom: 0; border-right: 2px solid var(--card-red); }
  .rc-save { top: auto; bottom: 10px; right: 10px; width: 38px; height: 38px; }
  .rc-badge { font-size: .7rem; padding: 3px 8px; }
  .filters-in { padding-block: 10px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; flex-basis: 100%; }
  .chip { flex: none; }
  .filter-q { flex-basis: 100%; }
  .r-step { font-size: 1.02rem; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; }
  .r-n { width: 34px; height: 34px; font-size: 1rem; }
  .r-timer { margin-left: 46px; }
  .album { columns: 2 140px; column-gap: 16px; }
  .polaroid figcaption { font-size: 1.12rem; }
  .ll-photos .polaroid { width: min(46%, 200px); }
  .clown { width: min(44%, 180px); }
  .soon { flex-direction: column; align-items: flex-start; }
  .hero-photos .wedding, .oh-photos .wedding { width: 42%; }
}

@media (prefers-reduced-motion: reduce) {
  .polaroid, .door, .rcard, .fan img, .rc-img img { transition: none !important; }
  .polaroid:hover, .door:hover, .rcard:hover, .rc:nth-child(3n + 2) .rcard:hover { transform: rotate(var(--tilt, 0deg)); }
  .door:hover, .rcard:hover { transform: none; }
  .soon-dots i { animation: none; opacity: 1; }
}

/* ---------- print: a clean recipe card ---------- */
@media print {
  .bar, .tabbar, .foot, .filters, .pager, .soon-band, .co-art, .cta, .r-hint, .r-clear, .r-timer, .timer-pill, .skip, .orig-band .orig-pages, .save-btn { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; padding: 0; }
  .card-opener, .recipe-band, .orig-band { background: #fff !important; padding: 0 !important; }
  .co-grid, .recipe-grid { grid-template-columns: 1fr 1.4fr; padding: 0; }
  .r-ings { position: static; box-shadow: none; background: none; padding: 0; }
  .r-step { box-shadow: none; padding: 4px 0; font-size: 11pt; border: 0; }
  .r-n { background: none; border: 1px solid #000; color: #000; }
  .checklist input { border-color: #000; }
}

/* ---------- moving between recipes ---------- */
.crumbs-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.stepper { display: inline-flex; align-items: center; gap: 4px; font-size: .86rem; color: var(--muted); }
.st-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--card); color: var(--ink); text-decoration: none; font-size: 1.4rem; line-height: 1; box-shadow: var(--shadow-1); }
.st-btn:hover { background: var(--pink); color: #2a1711; }
.st-btn.off { opacity: .35; box-shadow: none; }
.stp-n { min-width: 4.6rem; text-align: center; }
.crumbs-row.light .stepper { color: var(--band-muted); }
.crumbs-row.light .st-btn { background: rgba(255, 255, 255, .12); color: var(--band-ink); box-shadow: none; }
.crumbs-row.light .st-btn:hover { background: var(--pink); color: #2a1711; }
.op-text .crumbs-row { margin-bottom: 10px; max-width: 34rem; }
.rc-img.drawn { background: var(--sc-bg, #fbe9df); }
.rc-img.drawn svg { width: 100%; height: 100%; display: block; }
/* Omi's original card or clipping, tucked into the corner of the drawing */
.rc-img.drawn { position: relative; }
.rc-img .rc-orig { position: absolute; left: 10px; top: 10px; width: 19%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border: 3px solid #fffdf8; box-shadow: 0 2px 6px rgba(60, 30, 10, .25); transform: rotate(-4deg); }
.rcard:hover .rc-img .rc-orig { transform: rotate(-2deg) scale(1.06); }
@media (max-width: 600px) { .rc-img .rc-orig { width: 30%; left: 6px; top: 6px; border-width: 2px; } }
/* the drawings only move while they're on screen */
.rc-img.still svg * { animation-play-state: paused !important; }
@media (max-width: 600px) { .rc-body { padding-right: 52px; } }
@media (max-width: 600px) {
  .co-art { padding: 4px 0 22px; }
  .co-art .scan { width: 60%; }
  .co-art .scan img { max-height: 230px; }
  .co-art .co-photo { width: 34%; }
  .card-opener .facts dd { font-size: 1.12rem; }
}

/* the handwritten cards, laid out like a hand of cards on the table */
.hand-band { background: var(--paper-2); }
.hand-row { list-style: none; margin: 0; padding: 10px 2px 18px; display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.hand-row li { flex: none; scroll-snap-align: start; }
.hand-card { display: grid; width: 200px; text-decoration: none; color: var(--ink); background: #fffdf8; padding: 10px 10px 12px; box-shadow: var(--shadow-1); transform: rotate(var(--tilt, 0deg)); transition: transform .3s cubic-bezier(.3, 1.4, .5, 1), box-shadow .3s; }
.hand-card:hover { transform: rotate(0deg) translateY(-6px); box-shadow: var(--shadow-2); }
.hand-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; background: #f3ebe0; }
.hc-t { font-family: var(--f-display); font-variation-settings: "SOFT" 100; font-weight: 650; font-size: 1.12rem; margin-top: 8px; color: #2a1711; }
.hc-s { font-family: var(--hand); font-size: 1.15rem; color: #8c1c4a; line-height: 1.1; }

/* the holidays */
.hol-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.hol { display: grid; gap: 4px; text-align: left; padding: 20px 20px 18px; border-radius: 18px; border: 0; background: var(--card); box-shadow: var(--shadow-1); transition: transform .3s cubic-bezier(.3, 1.4, .5, 1); }
.hol:hover { transform: translateY(-4px); }
.hol-t { font-family: var(--hand); font-size: 1.9rem; font-weight: 700; color: var(--pink-ink); line-height: 1; }
.hol-d { color: var(--muted); font-size: .95rem; line-height: 1.4; }
.hol-n { font-weight: 700; font-size: .9rem; margin-top: 4px; }

/* amounts, copying and larger text */
.r-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.r-scale button { padding: 6px 11px; min-height: 34px; font-size: .84rem; }
.amt { color: var(--pink-ink); }
.r-scale-note { margin-top: 10px; font-size: .88rem; color: var(--muted); background: var(--pink-soft); border-radius: 10px; padding: 8px 12px; }
.r-tools { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 6px; }
html.big-text body { font-size: 19.5px; }
html.big-text .r-step { font-size: 1.22rem; }
html.big-text .checklist label { font-size: 1.08rem; }
html.big-text .ck-body { font-size: clamp(1.5rem, 2.6vw, 2rem); }
[data-bigtext][aria-pressed="true"] { background: var(--ink); color: var(--paper) !important; border-color: var(--ink); }
.recent { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 14px; font-size: .92rem; }
.recent-h { color: var(--muted); margin-right: 2px; }
.recent a { color: var(--ink); text-decoration: none; padding: 4px 12px; border-radius: 999px; background: var(--paper); box-shadow: var(--shadow-1); }
.recent a:hover { background: var(--pink-soft); }
/* the portrait's caption sits clear of the wedding photo */
.hero-photos .portrait figcaption, .oh-photos .portrait figcaption { padding-left: 38%; text-align: left; }
@media (max-width: 600px) { .hero-photos .portrait figcaption, .oh-photos .portrait figcaption { padding-left: 46%; font-size: 1.15rem; } }
.sec-head .kicker { color: var(--pink-ink); }
.say i { white-space: nowrap; }
@media (max-width: 860px) {
  .hero-photos, .oh-photos { order: -1; padding: 6px 0 34px; }
  .hero-photos .portrait, .oh-photos .portrait { width: min(64%, 300px); }
  .hero-photos .wedding, .oh-photos .wedding { width: min(38%, 190px); margin-top: calc(min(64%, 300px) * -0.16 - 46px); }
  .hero-grid, .oh-grid { padding-top: 22px; gap: 10px; }
}

/* moving between pages feels like turning one, not a jump cut */
@media (prefers-reduced-motion: no-preference) {
  main > .view:not([hidden]) { animation: omiPageIn .38s cubic-bezier(.2, .8, .3, 1) both; }
  @keyframes omiPageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}

/* each step of a transcribed recipe with its own moving drawing */
.r-steps li.has-art { grid-template-columns: 150px minmax(0, 1fr); column-gap: 14px; align-items: start; }
.r-steps li.has-art .r-art { grid-row: span 2; display: block; border-radius: 12px; overflow: hidden; background: var(--sc-bg, #fbe9df); box-shadow: var(--shadow-1); }
.r-steps li.has-art .r-art svg { display: block; width: 100%; height: auto; }
.r-steps li.has-art .r-step { grid-column: 2; }
.r-steps li.has-art .r-timer { grid-column: 2; margin-left: 58px; }
@media (max-width: 600px) {
  .r-steps li.has-art { grid-template-columns: 96px minmax(0, 1fr); column-gap: 10px; }
  .r-steps li.has-art .r-timer { margin-left: 46px; }
}
@media print { .r-art { display: none !important; } .r-steps li.has-art { display: block; } }

/* the dish in 3D at the top of a transcribed recipe, Omi's original tucked beside it */
.co-art.has-3d { display: block; position: relative; padding: 0; }
.co-3d { position: relative; width: 100%; aspect-ratio: 5 / 4; border-radius: 22px; overflow: hidden; background: radial-gradient(80% 70% at 50% 40%, color-mix(in srgb, var(--cocoa) 82%, #6a4433), var(--cocoa)); box-shadow: var(--shadow-2); }
.co-3d canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: grab; }
.d3-stages { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); background: rgba(20, 10, 6, .55); border-color: transparent; backdrop-filter: blur(6px); }
.d3-stages button { color: #e8d6c8; padding: 6px 12px; min-height: 34px; font-size: .84rem; }
.d3-stages button[aria-pressed="true"] { background: var(--pink); color: #2a1711; }
.co-art.has-3d .scan { position: absolute; left: -18px; top: -14px; width: 30%; max-width: 150px; transform: rotate(-6deg); z-index: 2; }
.co-art.has-3d .scan img { max-height: 190px; }
@media (max-width: 860px) { .co-art.has-3d .scan { left: 4px; top: -10px; width: 26%; } }
@media (max-width: 600px) { .d3-stages button { padding: 5px 8px; font-size: .76rem; } }
