/* Culinary Routes – site styles. Tokens live in tokens.css, the map in route.css. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; margin: 0 0 0.5em; letter-spacing: -0.012em; text-wrap: balance; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: color-mix(in srgb, var(--c-saffron) 45%, transparent); }
.ic { display: inline-block; vertical-align: -0.18em; flex: none; }
.ic-down { transform: rotate(90deg); }
.muted { color: var(--ink-3); font-size: 0.9rem; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: 0.5rem 1rem; z-index: 200; border-radius: 0 0 8px 8px; }
.skip:focus { left: 1rem; }

.wrap { width: min(100% - 2 * var(--gutter), 1200px); margin-inline: auto; }
.wrap--wide { width: min(100% - 2 * var(--gutter), 1520px); }
.wrap--narrow { width: min(100% - 2 * var(--gutter), 780px); }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 0.68em 1.15em; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 0.95rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  background: var(--paper-3); color: var(--ink);
  transition: transform 0.15s var(--ease-out), background 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-1px); background: var(--paper-4); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 20px -10px var(--accent); }
.btn--primary:hover { background: color-mix(in srgb, var(--accent) 88%, var(--ink)); }
.btn--ghost { background: transparent; border-color: var(--rule); }
.btn--ghost:hover { background: var(--paper-2); border-color: var(--ink-3); }
.btn--sm { padding: 0.45em 0.85em; font-size: 0.84rem; }
.btn--lg { padding: 0.9em 1.5em; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }
.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--rule); background: var(--paper-2); cursor: pointer; transition: background 0.2s, border-color 0.2s;
}
.icon-btn:hover { background: var(--paper-3); border-color: var(--ink-3); }

/* ------------------------------------------------------------------ chips */
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.36rem 0.72rem; border-radius: 999px;
  border: 1px solid var(--rule); background: var(--paper-2); color: var(--ink); font-weight: 600; font-size: 0.82rem;
  cursor: pointer; transition: background 0.15s, border-color 0.15s, color 0.15s; text-decoration: none; line-height: 1.2;
}
.chip:hover { border-color: var(--ink-3); }
.chip.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip--line { --line: var(--ink); }
.chip--line:hover, .chip--line.is-on { background: color-mix(in srgb, var(--line) 16%, var(--paper-2)); border-color: var(--line); color: var(--ink); }
.chip__swatch { width: 0.66rem; height: 0.66rem; border-radius: 50%; background: var(--line); flex: none; }
.chip__count { color: var(--ink-3); font-weight: 500; }
.pill { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.25rem 0.62rem; border-radius: 999px; background: var(--paper-3); font-weight: 600; font-size: 0.78rem; color: var(--ink-2); line-height: 1.3; }
.pill--cat { background: color-mix(in srgb, var(--accent) 13%, var(--paper-2)); color: var(--accent); }
.pill--link { text-decoration: none; color: var(--ink); background: var(--paper-2); border: 1px solid var(--rule); }
.pill--link:hover { border-color: var(--ink-3); }
.eyebrow { display: inline-flex; align-items: center; gap: 0.4rem; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.72rem; font-weight: 700; color: var(--accent); margin: 0 0 0.6rem; }
.eyebrow--line { color: var(--line); }
.lede { font-size: 1.12rem; color: var(--ink-2); margin: 0 0 1em; }
.price { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.price--soon { font-size: 0.85rem; color: var(--ink-3); font-family: var(--font-sans); font-weight: 600; }
.price--was { color: var(--ink-3); font-size: 0.9rem; margin-left: 0.4rem; }
.dots { display: inline-flex; gap: 3px; align-items: center; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--rule); }
.dots i.on { background: var(--ink-2); }
.line-dots { display: inline-flex; gap: 0.22rem; }
.line-dots i { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--line); }
.swatch { width: 0.8rem; height: 0.8rem; border-radius: 50%; background: var(--line); display: inline-block; }
.tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0; }

/* ----------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 84%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
}
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); position: relative; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; }
.brand__word em { font-style: italic; font-weight: 500; color: var(--accent); margin-left: 0.14em; }
.site-nav { display: flex; gap: 1.4rem; margin-left: auto; }
.site-nav a { text-decoration: none; font-weight: 600; font-size: 0.95rem; color: var(--ink-2); padding: 0.35rem 0; border-bottom: 2px solid transparent; transition: color 0.15s, border-color 0.15s; }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current] { color: var(--ink); border-color: var(--accent); }
.site-header__tools { display: flex; align-items: center; gap: 0.5rem; }
.site-nav + .site-header__tools { margin-left: 0; }
.box-link__count { min-width: 1.45em; height: 1.45em; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 0.74rem; display: inline-grid; place-items: center; padding: 0 0.35em; transition: transform 0.25s var(--ease-out); }
.box-link__count.is-bump { transform: scale(1.35); }
.nav-toggle { display: none; }
.ic-moon { display: none; }
:root[data-theme="dark"] .ic-sun { display: none; }
:root[data-theme="dark"] .ic-moon { display: inline-block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ic-sun { display: none; }
  :root:not([data-theme="light"]) .ic-moon { display: inline-block; }
}
@media (max-width: 900px) {
  .site-nav { display: none; position: absolute; top: var(--header-h); left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter)); flex-direction: column; gap: 0.1rem; background: var(--paper-2); padding: 0.75rem var(--gutter) 1rem; border-bottom: 1px solid var(--rule); box-shadow: var(--shadow-lg); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 0.6rem 0; border-bottom: 1px solid var(--rule); }
  .site-nav a[aria-current] { border-color: var(--rule); color: var(--accent); }
  .site-header__tools { margin-left: auto; }
  .nav-toggle { display: inline-grid; }
  .box-link > span:first-of-type { display: none; }
}

/* --------------------------------------------------------------- sections */
.section { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.section--tight { padding-top: 0; }
.section--alt { background: var(--paper-3); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink .eyebrow { color: var(--c-saffron); }
.section--ink h2, .section--ink h3 { color: var(--paper); }
.section--ink .lede, .section--ink p { color: color-mix(in srgb, var(--paper) 78%, transparent); }
.section-head { max-width: var(--measure); margin-bottom: 2rem; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 500; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-more { margin: 2.5rem 0 0; text-align: center; }
.page-head { padding-bottom: 1.5rem; }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 500; }
.page-head .section-head { margin-bottom: 0; }
.grid { display: grid; gap: 1.5rem; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 860px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------- hero */
.hero { padding: clamp(2rem, 5vw, 4.5rem) 0 2rem; background: radial-gradient(1100px 520px at 50% -20%, color-mix(in srgb, var(--c-saffron) 20%, transparent), transparent 70%); }
.hero__copy { max-width: 860px; text-align: center; margin-bottom: clamp(1.5rem, 4vw, 3rem); }
.hero__copy .eyebrow { justify-content: center; }
.hero__title { font-size: clamp(2.8rem, 7vw, 5.4rem); font-weight: 500; margin: 0.2em 0 0.35em; letter-spacing: -0.022em; }
.hero__title em { font-style: italic; color: var(--accent); }
.hero__lede { font-size: 1.18rem; color: var(--ink-2); max-width: 60ch; margin-inline: auto; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0; align-items: center; }
.hero__copy .hero__actions { justify-content: center; }
.hero__facts { list-style: none; padding: 0; margin: 1.75rem 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem 2.5rem; color: var(--ink-2); font-size: 0.88rem; }
.hero__facts strong { display: block; font-family: var(--font-display); font-size: 1.7rem; color: var(--ink); font-weight: 600; line-height: 1.1; }
.hero__map { min-width: 0; }
.hero__caption { font-size: 0.92rem; color: var(--ink-2); margin: 0.9rem 0.5rem 0; text-align: center; }
.recipe-hero__grid > *, .recipe-body__grid > *, .backbone__grid > *, .method__grid > *, .card-showcase__grid > *, .card-cta__grid > *, .box-page__grid > *, .studio__grid > *, .col-hero__grid > *, .card-spec__grid > * { min-width: 0; }

.panel { background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.panel__bar { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem 1rem; padding: 0.7rem 1rem; border-bottom: 1px solid var(--rule); flex-wrap: wrap; }
.panel__tools { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; flex-wrap: wrap; }
.panel .route-map { padding: 0.5rem; }
.panel__help { border-top: 1px solid var(--rule); padding: 0.6rem 1rem; font-size: 0.9rem; }
.panel__help summary { cursor: pointer; font-weight: 600; display: flex; gap: 0.4rem; align-items: center; list-style: none; }
.panel__help summary::-webkit-details-marker { display: none; }
.panel__help[open] summary { margin-bottom: 0.5rem; }

/* ----------------------------------------------------------------- legend */
.legend { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.legend li { display: flex; gap: 1rem; align-items: flex-start; background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.1rem; }
.legend__glyph { flex: 0 0 64px; width: 64px; height: 64px; }
.legend__glyph svg { width: 100%; height: 100%; display: block; }
.legend h4 { margin: 0.15rem 0 0.35rem; font-family: var(--font-sans); font-size: 1rem; font-weight: 700; }
.legend p { margin: 0; color: var(--ink-2); font-size: 0.92rem; }
.legend--compact { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.4rem; }
.legend--compact li { padding: 0.35rem 0.5rem; background: transparent; border: 0; align-items: center; }
.legend--compact .legend__glyph { flex-basis: 42px; width: 42px; height: 42px; }
.legend--compact h4 { font-size: 0.85rem; margin: 0; }

/* ------------------------------------------------------------ recipe card */
.rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.rcard { background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform 0.25s var(--ease-out), box-shadow 0.25s; }
.rcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.rcard__map { display: block; position: relative; aspect-ratio: 2.1 / 1; background: color-mix(in srgb, var(--paper-3) 55%, var(--paper-2)); padding: 0.85rem; overflow: hidden; border-bottom: 1px solid var(--rule); }
.rcard__map .route { width: 100%; height: 100%; max-height: 100%; min-width: 0; }
.rcard__hero { position: absolute; right: 0.75rem; top: 0.75rem; width: 40px; height: 40px; border-radius: 50%; background: var(--paper-2); border: 1.5px solid var(--ink); display: grid; place-items: center; color: var(--ink); box-shadow: var(--shadow); }
.rcard__body { padding: 1rem 1.15rem 1.15rem; display: flex; flex-direction: column; gap: 0.45rem; flex: 1; }
.rcard__eyebrow { display: flex; align-items: center; gap: 0.65rem; font-size: 0.8rem; color: var(--ink-2); }
.rcard__meta { display: inline-flex; align-items: center; gap: 0.3rem; font-weight: 600; }
.rcard__title { font-size: 1.4rem; margin: 0; font-weight: 600; }
.rcard__title a { text-decoration: none; }
.rcard__title a:hover { color: var(--accent); }
.rcard__tagline { margin: 0; color: var(--ink-2); font-size: 0.93rem; flex: 1; }
.rcard__lines { display: flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; color: var(--ink-3); }
.rcard__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 0.4rem; padding-top: 0.8rem; border-top: 1px dashed var(--rule); }
.rcard[hidden] { display: none; }

/* -------------------------------------------------------- collection card */
.cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.5rem; }
.cgrid--wide { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.ccard { background: var(--paper-2); border: 1px solid var(--rule); border-top: 6px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.ccard__maps { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--paper-3); text-decoration: none; }
.ccard__map { display: block; aspect-ratio: 1.8 / 1; background: var(--paper-2); border-radius: 8px; padding: 0.4rem; overflow: hidden; }
.ccard__map .route { width: 100%; height: 100%; min-width: 0; }
.ccard__body { padding: 1rem 1.15rem 1.15rem; display: flex; flex-direction: column; flex: 1; }
.ccard__body h3 { font-size: 1.4rem; margin: 0 0 0.3rem; }
.ccard__body h3 a { text-decoration: none; }
.ccard__body h3 a:hover { color: var(--line); }
.ccard__body p { color: var(--ink-2); font-size: 0.93rem; margin: 0; flex: 1; }
.ccard__foot { display: flex; align-items: center; gap: 0.25rem; margin-top: 1rem; }
.ccard__foot .btn { margin-left: auto; }

/* --------------------------------------------------------------- why / ink */
.why__grid { gap: 1.5rem; }
.why__item { padding: 1.6rem; border: 1px solid color-mix(in srgb, var(--paper) 14%, transparent); border-radius: var(--radius-lg); background: color-mix(in srgb, var(--paper) 6%, transparent); }
.why__icon { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--c-saffron); color: #1f1b16; margin-bottom: 1rem; }
.why__item h3 { font-size: 1.35rem; font-weight: 600; }
.why__item p { margin: 0; }

/* ---------------------------------------------------------- physical card */
.card-showcase__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 960px) { .card-showcase__grid { grid-template-columns: 1fr; } }
.specs { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 0.8rem; }
.specs li { display: flex; gap: 0.75rem; align-items: flex-start; color: var(--ink-2); }
.specs li strong { color: var(--ink); }
.specs .ic { flex: none; margin-top: 0.2rem; color: var(--accent); }
.card-showcase__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.card-showcase__visual { position: relative; perspective: 1500px; padding: 2rem 0; }
.pcard { position: relative; width: 100%; aspect-ratio: 7 / 5; max-width: 520px; margin: 0 auto; transform-style: preserve-3d; transition: transform 1s var(--ease-out); transform: rotateY(-16deg) rotateX(6deg); }
.card-showcase__visual:hover .pcard { transform: rotateY(12deg) rotateX(-4deg); }
/* Printed things stay paper-coloured whatever the theme. */
.pcard__face, .face {
  color-scheme: light;
  --paper: #f6f0e4; --paper-2: #fdfaf3; --paper-3: #ede4d2; --paper-4: #e3d8c3; --ink: #1f1b16; --ink-2: #5e574c; --ink-3: #8a8275; --rule: #e3d9c7;
  --c-tomato: #e2573a; --c-saffron: #e39a2e; --c-basil: #3e9a5e; --c-blueberry: #3d6fd6; --c-plum: #8e4fa8; --c-cocoa: #8a5a3c; --c-teal: #1f9e99; --c-rose: #d9668a; --c-olive: #7d8f2e; --c-slate: #5b6b7f;
  --flow: rgba(255, 255, 255, 0.78); --band-alpha: 0.07; --accent: #e2573a;
}
.pcard__face { position: absolute; inset: 0; border-radius: 14px; background: var(--paper-2); color: var(--ink); border: 1px solid var(--rule); box-shadow: var(--shadow-lg); padding: 0.9rem 1.1rem; display: flex; flex-direction: column; overflow: hidden; }
.pcard__back { transform: translate3d(36px, 36px, -70px) rotate(3deg); }
main { overflow-x: clip; }
@media (max-width: 600px) {
  .pcard { max-width: calc(100% - 24px); margin-left: 0; }
  .pcard__back { transform: translate3d(16px, 16px, -70px) rotate(2deg); }
}
.pcard__front { transform: translateZ(0); }
.pcard__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-family: var(--font-display); font-weight: 700; font-size: 1rem; border-bottom: 1.5px solid var(--ink); padding-bottom: 0.35rem; }
.pcard__head span:last-child { font-family: var(--font-sans); font-weight: 500; color: var(--ink-2); font-size: 0.72rem; }
.pcard__map { flex: 1; min-height: 0; padding: 0.4rem 0; display: flex; align-items: center; }
.pcard__map .route { width: 100%; height: 100%; min-width: 0; }
.pcard__foot .chip { font-size: 0.6rem; padding: 0.15rem 0.45rem; cursor: default; }
.pcard__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; font-size: 0.66rem; color: var(--ink-2); padding-top: 0.4rem; }
.pcard__cols h5 { margin: 0 0 0.35rem; font-family: var(--font-sans); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink); }
.pcard__cols ul, .pcard__cols ol { margin: 0; padding-left: 1rem; }
.pcard__cols em { color: var(--accent); }
.lam { position: absolute; inset: -40%; pointer-events: none; background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.34) 47%, rgba(255, 255, 255, 0.06) 53%, transparent 62%); mix-blend-mode: screen; animation: sheen 7s ease-in-out infinite; }
@keyframes sheen { 0%, 100% { transform: translateX(-28%); } 50% { transform: translateX(28%); } }
.box-mini { margin: 1.75rem auto 0; max-width: 520px; display: flex; align-items: center; gap: 1rem; background: var(--paper-2); border: 1px dashed var(--rule); border-radius: var(--radius); padding: 0.75rem 1rem; font-weight: 600; }
.box-mini__price { font-family: var(--font-display); margin-left: auto; }
.pcard--small { max-width: 380px; transform: rotateY(12deg) rotateX(4deg); }
.card-cta__grid { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 3rem; align-items: center; perspective: 1200px; }
.card-cta__grid h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 500; }
@media (max-width: 900px) { .card-cta__grid { grid-template-columns: 1fr; } }

/* -------------------------------------------------------- process strip */
.process-strip { display: flex; flex-wrap: wrap; gap: 1.25rem 1rem; justify-content: center; }
.proc { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; width: 96px; }
.proc__icon { width: 80px; height: 80px; border-radius: 24px; background: var(--paper-2); border: 2px solid var(--ink); display: grid; place-items: center; color: var(--ink); box-shadow: var(--shadow); }
.proc__icon--gif { background: #f6f0e4; padding: 8px; overflow: hidden; }
.proc__icon--gif img { width: 100%; height: 100%; object-fit: contain; }
.proc__name { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }

/* -------------------------------------------------------------- backbone */
.backbone__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
@media (max-width: 960px) { .backbone__grid { grid-template-columns: 1fr; } }
.code { margin: 0; border-radius: var(--radius); padding: 1.25rem 1.4rem; font-family: var(--font-mono); font-size: 0.8rem; line-height: 1.55; overflow: auto; background: var(--paper-2); border: 1px solid var(--rule); color: var(--ink); tab-size: 2; }
.section--ink .code { background: color-mix(in srgb, var(--paper) 7%, transparent); border-color: color-mix(in srgb, var(--paper) 16%, transparent); color: var(--paper); }
.code--tall { max-height: 720px; }

/* ----------------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--rule); padding: 3rem 0 2rem; margin-top: 3rem; background: var(--paper-2); }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 820px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
.site-footer p { color: var(--ink-2); font-size: 0.92rem; max-width: 40ch; margin: 0.75rem 0 0; }
.site-footer__note { font-size: 0.78rem; color: var(--ink-3); }
.site-footer h4 { font-family: var(--font-sans); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.14em; margin: 0 0 0.75rem; color: var(--ink-3); }
.site-footer nav a { display: block; text-decoration: none; color: var(--ink-2); padding: 0.22rem 0; font-size: 0.95rem; }
.site-footer nav a:hover { color: var(--accent); }
.site-footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); font-size: 0.8rem; color: var(--ink-3); flex-wrap: wrap; }
.footer-route { display: inline-flex; gap: 0.4rem; align-items: center; }
.footer-route i { width: 2.4rem; height: 4px; border-radius: 2px; background: var(--c-tomato); }
.footer-route i:nth-child(2) { background: var(--c-saffron); }
.footer-route i:nth-child(3) { background: var(--c-basil); }

/* ------------------------------------------------------------------ toast */
.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 10px); background: var(--ink); color: var(--paper); padding: 0.7rem 1.1rem; border-radius: 999px; font-weight: 600; font-size: 0.9rem; box-shadow: var(--shadow-lg); z-index: 100; opacity: 0; transition: opacity 0.25s, transform 0.25s; pointer-events: none; max-width: calc(100% - 2rem); display: flex; gap: 0.75rem; align-items: center; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: var(--c-saffron); text-decoration: none; font-weight: 700; }
body.is-cooking .toast { bottom: 190px; }

/* ---------------------------------------------------------------- catalog */
.filters { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1rem; }
.search { display: flex; align-items: center; gap: 0.5rem; background: var(--paper-2); border: 1px solid var(--rule); border-radius: 999px; padding: 0.55rem 1rem; max-width: 540px; color: var(--ink-3); }
.search input { border: 0; background: transparent; font: inherit; flex: 1; color: var(--ink); outline: none; min-width: 0; }
.search:focus-within { border-color: var(--ink-3); }
.filter-group { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.filters__count { color: var(--ink-3); font-size: 0.85rem; margin: 0 0 1.25rem; }
.empty { text-align: center; color: var(--ink-2); padding: 3rem 1rem; }

/* ----------------------------------------------------------------- recipe */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.45rem; padding: 0; margin: 0 0 1.25rem; font-size: 0.85rem; color: var(--ink-3); }
.crumbs li + li::before { content: "/"; margin-right: 0.45rem; color: var(--rule); }
.crumbs a { text-decoration: none; color: var(--ink-2); }
.crumbs a:hover { color: var(--accent); }
.recipe-hero { padding: 1.5rem 0 1.5rem; background: radial-gradient(900px 420px at 18% -30%, color-mix(in srgb, var(--c-saffron) 16%, transparent), transparent 70%); }
.recipe-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 2.5rem; align-items: start; }
@media (max-width: 900px) { .recipe-hero__grid { grid-template-columns: 1fr; } }
.recipe-hero h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); font-weight: 500; margin: 0.15em 0 0.3em; }
.recipe-hero__desc { color: var(--ink-2); max-width: var(--measure); }
.stats { list-style: none; padding: 0; margin: 1.5rem 0 1rem; display: flex; flex-wrap: wrap; gap: 1.25rem 2.25rem; }
.stats li { display: flex; gap: 0.6rem; align-items: center; }
.stats .ic { color: var(--accent); }
.stats strong { display: block; font-weight: 700; line-height: 1.15; }
.stats small { color: var(--ink-3); font-size: 0.78rem; display: block; }
.buy { background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 1.25rem; box-shadow: var(--shadow); position: sticky; top: calc(var(--header-h) + 1rem); }
.buy__eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.7rem; font-weight: 700; color: var(--ink-3); margin: 0; }
.buy__price { font-size: 2.1rem; font-family: var(--font-display); font-weight: 700; margin: 0.15rem 0 0.4rem; display: flex; align-items: baseline; gap: 0.5rem; }
.buy__price .price { font-size: inherit; }
.buy__price small { font-size: 0.85rem; font-family: var(--font-sans); font-weight: 500; color: var(--ink-3); }
.buy__blurb { color: var(--ink-2); font-size: 0.92rem; }
.buy .btn { margin-top: 0.5rem; }
.buy__fine { font-size: 0.78rem; color: var(--ink-3); margin: 0.85rem 0 0; }
.route-section { padding: 0.5rem 0 2.5rem; }
.route-map:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

.recipe-body__grid { display: grid; grid-template-columns: 350px minmax(0, 1fr); gap: 3rem; align-items: start; }
@media (max-width: 960px) { .recipe-body__grid { grid-template-columns: 1fr; } }
.side-block { background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 1.25rem; margin-bottom: 1.25rem; }
.side-block h2 { font-size: 1.45rem; margin: 0; font-weight: 600; }
.side-block__head { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.scaler { display: inline-flex; gap: 0.25rem; }
.scaler .chip { padding: 0.25rem 0.55rem; font-size: 0.75rem; }
.line-head { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-sans); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--line); margin: 1rem 0 0.35rem; }
.line-head i { width: 1.4rem; height: 5px; border-radius: 3px; background: var(--line); }
.ing-list { list-style: none; padding: 0; margin: 0; }
.ing { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 0.65rem; align-items: center; padding: 0.5rem 0; border-bottom: 1px solid var(--rule); }
.ing:last-child { border-bottom: 0; }
.ing__icon { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--cat, var(--paper-3)) 24%, var(--paper-2)); border: 1.5px solid color-mix(in srgb, var(--cat, var(--rule)) 55%, var(--rule)); color: var(--ink); }
.ing__name { font-weight: 600; line-height: 1.25; }
.ing__prep { display: block; font-weight: 400; color: var(--ink-3); font-size: 0.8rem; }
.ing__qty { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; white-space: nowrap; text-align: right; }
.side-note { font-size: 0.78rem; color: var(--ink-3); margin: 0.85rem 0 0; }
.before, .equipment { list-style: none; padding: 0; margin: 0.6rem 0 0; display: grid; gap: 0.5rem; color: var(--ink-2); font-size: 0.95rem; }
.before li { display: flex; gap: 0.5rem; }
.before .ic { color: var(--c-basil); flex: none; margin-top: 0.25rem; }
.equipment li { padding-left: 1rem; position: relative; }
.equipment li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--accent); }
.steps-head h2 { font-size: clamp(1.6rem, 3vw, 2rem); font-weight: 500; margin: 0 0 0.25rem; }
.steps-head p { color: var(--ink-2); margin: 0 0 1.5rem; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.step { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 1rem; background: var(--paper-2); border: 1px solid var(--rule); border-left: 5px solid var(--line); border-radius: var(--radius); padding: 1rem 1.15rem; cursor: pointer; transition: box-shadow 0.2s, opacity 0.3s; scroll-margin-top: calc(var(--header-h) + 1rem); }
.step:hover { box-shadow: var(--shadow); }
.step.is-selected { box-shadow: 0 0 0 2px var(--line), var(--shadow-lg); }
.step.is-done { opacity: 0.55; }
.step__num { width: 38px; height: 38px; border-radius: 50%; background: var(--line); color: #fff; display: grid; place-items: center; font-weight: 700; font-family: var(--font-display); font-size: 1.05rem; }
.step__head { margin: 0 0 0.35rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.45rem; }
.step__verb { font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; }
.step__arrow { color: var(--ink-3); }
.step__out { font-family: var(--font-display); font-style: italic; font-size: 1.15rem; color: var(--line); }
.step__line { margin-left: auto; font-size: 0.7rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; }
.step__text { margin: 0 0 0.55rem; font-size: 1.02rem; line-height: 1.55; }
.step__meta { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 0.55rem; }
.meta { display: inline-flex; gap: 0.3rem; align-items: center; font-size: 0.8rem; font-weight: 600; color: var(--ink-2); background: var(--paper-3); border-radius: 999px; padding: 0.2rem 0.62rem; }
.meta--cue { background: color-mix(in srgb, var(--c-basil) 16%, var(--paper-2)); color: color-mix(in srgb, var(--c-basil) 65%, var(--ink)); }
.step__inputs { display: flex; flex-wrap: wrap; gap: 0.3rem; margin: 0; }
.tag { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.75rem; font-weight: 600; padding: 0.15rem 0.5rem; border-radius: 6px; border: 1px solid var(--rule); color: var(--ink-2); }
.tag--out { border-color: var(--line); color: var(--line); }
.tag--out i { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--line); }
.guarantees { margin-top: 2rem; background: color-mix(in srgb, var(--c-basil) 10%, var(--paper-2)); border: 1px solid color-mix(in srgb, var(--c-basil) 35%, var(--rule)); border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; }
.guarantees h3 { display: flex; gap: 0.5rem; align-items: center; font-family: var(--font-sans); font-size: 1rem; margin: 0 0 0.5rem; }
.guarantees ul { margin: 0; padding-left: 1.2rem; color: var(--ink-2); font-size: 0.95rem; display: grid; gap: 0.25rem; }
.guarantees strong { color: var(--ink); }

/* --------------------------------------------------------------- cook bar */
.cook-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--paper-2); border-top: 1px solid var(--rule); box-shadow: 0 -12px 40px -12px rgba(0, 0, 0, 0.3); }
.cook-bar__progress { height: 4px; background: var(--paper-3); }
.cook-bar__progress i { display: block; height: 100%; width: var(--p, 0%); background: var(--line, var(--accent)); transition: width 0.35s var(--ease-out); }
.cook-bar__inner { display: flex; align-items: center; gap: 1.5rem; padding: 0.9rem 0; }
.cook-bar__step { display: flex; gap: 1rem; align-items: flex-start; flex: 1; min-width: 0; }
.cook-bar__num { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--line, var(--accent)); color: #fff; display: grid; place-items: center; font-weight: 700; font-family: var(--font-display); font-size: 1.15rem; }
.cook-bar__verb { margin: 0; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.76rem; }
.cook-bar__out { font-family: var(--font-display); font-style: italic; text-transform: none; letter-spacing: 0; font-size: 1.05rem; font-weight: 500; color: var(--line, var(--accent)); margin-left: 0.3rem; }
.cook-bar__text { margin: 0.2rem 0; font-size: 1.12rem; line-height: 1.4; }
.cook-bar__meta { margin: 0; color: var(--ink-2); font-size: 0.85rem; font-weight: 600; }
.cook-bar__state { font-weight: 700; text-transform: none; letter-spacing: 0; margin-left: 0.4rem; font-size: 0.8rem; color: var(--ink-2); }
.cook-bar__state.is-done { color: var(--c-basil); }
.cook-bar__requires { margin: 0.25rem 0 0; font-size: 0.85rem; color: var(--ink-2); }
.cook-bar__session { margin: 0.3rem 0 0; font-size: 0.85rem; font-weight: 600; color: var(--ink-2); }
.cook-bar__link { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; cursor: pointer; }
.cook-bar__link:hover { color: var(--ink); }
.cook-bar__controls { display: flex; gap: 0.5rem; align-items: center; flex: none; }
body.is-cooking { padding-bottom: 220px; }
@media (max-width: 720px) {
  .cook-bar__inner { flex-direction: column; align-items: stretch; gap: 0.75rem; }
  .cook-bar__controls { justify-content: flex-end; flex-wrap: wrap; }
  body.is-cooking { padding-bottom: 320px; }
}

/* ----------------------------------------------------------- card preview */
.print-tools { display: flex; justify-content: space-between; gap: 2rem; align-items: flex-end; flex-wrap: wrap; }
.print-tools__actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.cardsheet { display: grid; gap: 2.5rem; justify-items: center; padding: 0 var(--gutter) 4rem; }
.face {
  position: relative; width: min(100%, 7in); aspect-ratio: 7 / 5; border-radius: 12px; box-shadow: var(--shadow-lg);
  padding: 0.28in 0.34in; display: flex; flex-direction: column; overflow: hidden;
  background: var(--paper-2); color: var(--ink);
}
.face__head { display: flex; align-items: baseline; gap: 0.75rem; border-bottom: 1.5px solid var(--ink); padding-bottom: 0.07in; margin-bottom: 0.08in; }
.face__brand { display: flex; align-items: center; gap: 0.3rem; font-weight: 700; font-size: 0.56rem; letter-spacing: 0.12em; text-transform: uppercase; margin-left: auto; order: 3; color: var(--ink-2); }
.face__head h2 { font-size: 1.3rem; margin: 0; font-weight: 600; }
.face__sub { margin: 0; font-size: 0.62rem; color: var(--ink-2); }
.face__map { flex: 1 1 auto; min-height: 0; overflow: hidden; display: flex; align-items: flex-start; justify-content: center; }
.face__map .route { width: 100%; height: auto; min-width: 0; max-height: 100%; }
.face__notes { flex: none; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 0.3in; align-items: end; font-size: 0.6rem; color: var(--ink-2); margin-top: 0.08in; }
.face__notes .chips { justify-content: flex-end; }
.face__notes h4 { font-family: var(--font-sans); font-weight: 700; font-size: 0.54rem; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 0.15rem; color: var(--ink-2); }
.face__notes ul { margin: 0; padding-left: 0.9rem; }
.face__notes li { margin-bottom: 0.08rem; }
.face__foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-top: 1px solid var(--rule); padding-top: 0.07in; font-size: 0.58rem; color: var(--ink-2); margin-top: 0.06in; }
.face__foot p { margin: 0; }
.chips--static .chip { font-size: 0.55rem; padding: 0.1rem 0.45rem; cursor: default; }
.face--back { font-size: 0.58rem; line-height: 1.32; }
.face__cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr); gap: 0.25in; flex: 1; min-height: 0; overflow: hidden; }
.face h3 { font-family: var(--font-sans); font-weight: 700; font-size: 0.58rem; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 0.3rem; color: var(--ink-2); }
.face__ings ul { list-style: none; padding: 0; margin: 0 0 0.5rem; }
.face__ings li { display: flex; gap: 0.3rem; align-items: flex-start; padding: 0.06rem 0; border-bottom: 1px dotted var(--rule); }
.face__ings .ic { flex: none; margin-top: 0.1rem; }
.face__ings small { color: var(--ink-3); }
.face__before { padding-left: 1rem; margin: 0 0 0.4rem; }
.face__equip { margin: 0; color: var(--ink-2); }
.face__steps ol { list-style: none; padding: 0; margin: 0; }
.face__steps li { display: flex; gap: 0.3rem; margin-bottom: 0.16rem; break-inside: avoid; }
.face__num { flex: none; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--line); color: #fff; font-weight: 800; font-size: 0.56rem; display: grid; place-items: center; margin-top: 0.05rem; }
.face__steps strong { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.56rem; }
.face__steps em { color: var(--line); font-family: var(--font-display); }
.face__bits { color: var(--ink-3); }
.face__steps p { margin: 0.04rem 0 0; line-height: 1.35; }
.face__foot--back { margin-top: auto; }

/* ------------------------------------------------------------ collections */
.col-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 2.5rem; align-items: start; }
@media (max-width: 900px) { .col-hero__grid { grid-template-columns: 1fr; } }
.col-hero h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); font-weight: 500; }

/* ----------------------------------------------------------- how it works */
.method__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
@media (max-width: 960px) { .method__grid { grid-template-columns: 1fr; } }
.rules { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 1rem; }
.rules li { display: flex; gap: 0.75rem; }
.rules .ic { color: var(--c-basil); flex: none; margin-top: 0.15rem; }
.rules h4 { margin: 0 0 0.2rem; font-family: var(--font-sans); font-size: 1rem; }
.rules p { margin: 0; color: var(--ink-2); font-size: 0.95rem; }
.example-map { margin-top: 2rem; background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 1rem 1rem 0.5rem; }
.example-map .muted { margin: 0.5rem 0.25rem; }
.taxo__h { font-size: 1.5rem; margin: 2.75rem 0 1rem; }
.taxo__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 0.6rem; }
.taxo__item { display: flex; flex-direction: column; align-items: center; gap: 0.45rem; background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--radius); padding: 0.75rem 0.5rem; font-size: 0.74rem; font-weight: 600; text-align: center; color: var(--ink-2); }
.taxo__item small { color: var(--ink-3); font-weight: 500; }
.taxo__icon { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-3); color: var(--ink); }
.taxo__icon.nd--process { border-radius: 15px; background: var(--paper-2); border: 2px solid var(--ink); }
.taxo__icon--dish { border: 2px solid var(--accent); background: var(--paper-2); }
.taxo__grid--cats { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); margin-bottom: 1rem; }
.taxo__cat { display: flex; gap: 0.65rem; align-items: center; background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--radius); padding: 0.6rem 0.75rem; font-size: 0.85rem; }
.taxo__cat .swatch { background: var(--cat); width: 1.1rem; height: 1.1rem; flex: none; }
.taxo__cat small { display: block; color: var(--ink-3); font-weight: 400; }
.kind { margin-bottom: 1.5rem; }
.kind__head { display: flex; gap: 1rem; align-items: baseline; margin-bottom: 0.6rem; flex-wrap: wrap; }
.kind__head h4 { margin: 0; font-family: var(--font-sans); font-size: 1rem; }
.kind__head p { margin: 0; color: var(--ink-3); font-size: 0.85rem; }
.swatches { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.swatch-chip { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.35rem 0.75rem; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--rule); font-size: 0.8rem; font-weight: 600; }
.swatch-chip i { width: 0.9rem; height: 0.9rem; border-radius: 50%; background: var(--line); }
.card-spec__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 900px) { .card-spec__grid { grid-template-columns: 1fr; } }
.box-svg { width: 100%; height: auto; }
.faq details { border-bottom: 1px solid var(--rule); padding: 1rem 0; }
.faq summary { font-weight: 700; cursor: pointer; font-size: 1.05rem; }
.faq p { color: var(--ink-2); margin: 0.75rem 0 0; }
.notfound { padding-top: clamp(3rem, 10vw, 7rem); min-height: 50vh; }

/* ----------------------------------------------------------------- studio */
.studio__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1.5rem; align-items: start; }
@media (max-width: 1000px) { .studio__grid { grid-template-columns: 1fr; } }
.studio__editor { display: flex; flex-direction: column; gap: 0.6rem; }
.studio__bar { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; justify-content: space-between; }
.studio__bar-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.studio__select { font-size: 0.85rem; font-weight: 600; color: var(--ink-2); display: inline-flex; align-items: center; gap: 0.4rem; }
.studio__select select { font: inherit; padding: 0.4rem 0.6rem; border-radius: 8px; border: 1px solid var(--rule); background: var(--paper-2); color: var(--ink); max-width: 240px; }
.studio__text { width: 100%; min-height: 62vh; font-family: var(--font-mono); font-size: 0.82rem; line-height: 1.5; padding: 1rem; border-radius: var(--radius); border: 1px solid var(--rule); background: var(--paper-2); color: var(--ink); resize: vertical; tab-size: 2; }
.studio__log { font-size: 0.85rem; display: grid; gap: 0.3rem; }
.studio__log p { margin: 0; padding-left: 1.2rem; text-indent: -1.2rem; }
.log-err { color: var(--c-tomato); }
.log-warn { color: color-mix(in srgb, var(--c-saffron) 70%, var(--ink)); }
.log-ok { color: var(--c-basil); font-weight: 600; }
.studio__placeholder { padding: 4rem 2rem; text-align: center; color: var(--ink-3); margin: 0; }
.studio__steps { margin-top: 1.25rem; display: grid; gap: 0.35rem; font-size: 0.9rem; }
.studio__steps p { margin: 0; display: flex; gap: 0.5rem; align-items: baseline; }
.studio__steps b { color: var(--line); font-family: var(--font-display); font-style: italic; font-weight: 500; }
.studio__help { margin-top: 1.25rem; font-size: 0.9rem; }
.studio__help summary { cursor: pointer; font-weight: 600; }
.studio__cheat { color: var(--ink-2); margin-top: 0.5rem; }
.studio__cheat code { font-family: var(--font-mono); background: var(--paper-3); padding: 0.1em 0.3em; border-radius: 4px; font-size: 0.85em; color: var(--ink); }

/* -------------------------------------------------------------------- box */
.box-page__grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 2.5rem; align-items: start; }
@media (max-width: 900px) { .box-page__grid { grid-template-columns: 1fr; } }
.box-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.box-item { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 1rem; align-items: center; background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--radius); padding: 0.9rem 1rem; }
.box-item__icon { width: 48px; height: 48px; border-radius: 14px; background: var(--paper-3); display: grid; place-items: center; color: var(--ink); }
.box-item__title { font-weight: 700; }
.box-item__title a { text-decoration: none; }
.box-item__title a:hover { color: var(--accent); }
.box-item__sub { font-size: 0.8rem; color: var(--ink-3); }
.box-item__ctl { display: flex; align-items: center; gap: 0.6rem; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--rule); border-radius: 999px; background: var(--paper); }
.qty button { background: none; border: 0; width: 32px; height: 32px; cursor: pointer; display: grid; place-items: center; border-radius: 50%; }
.qty button:hover { background: var(--paper-3); }
.qty span { min-width: 1.6em; text-align: center; font-weight: 700; }
.box-item__price { font-family: var(--font-display); font-weight: 700; min-width: 4.5em; text-align: right; }
.box-upsell { margin-top: 2rem; display: grid; gap: 0.75rem; }
.box-upsell__item { display: flex; justify-content: space-between; gap: 1rem; align-items: center; background: var(--paper-2); border: 1px dashed var(--rule); border-radius: var(--radius); padding: 1rem 1.1rem; }
.box-upsell__item h3 { font-family: var(--font-sans); font-size: 1rem; display: flex; gap: 0.4rem; align-items: center; margin: 0 0 0.25rem; }
.box-upsell__item p { margin: 0; color: var(--ink-2); font-size: 0.9rem; }
.box-upsell__buy { display: flex; flex-direction: column; align-items: flex-end; gap: 0.35rem; flex: none; }
.box-summary { background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 1.25rem; position: sticky; top: calc(var(--header-h) + 1rem); }
.box-summary h2 { font-size: 1.35rem; margin: 0 0 0.75rem; }
.box-summary__lines { margin: 0 0 1.25rem; }
.box-summary__lines div { display: flex; justify-content: space-between; padding: 0.38rem 0; border-bottom: 1px solid var(--rule); }
.box-summary__lines dt { color: var(--ink-2); }
.box-summary__lines dd { margin: 0; font-weight: 600; }
.box-summary__total { border-bottom: 0 !important; font-size: 1.15rem; }
.box-summary__total dd { font-family: var(--font-display); font-weight: 700; }
.form { display: grid; gap: 0.75rem; }
.form label { display: grid; gap: 0.25rem; font-size: 0.85rem; font-weight: 600; color: var(--ink-2); }
.form input, .form textarea { font: inherit; padding: 0.6rem 0.75rem; border-radius: 10px; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); width: 100%; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.form h3 { font-size: 1.05rem; margin: 0.5rem 0 0; font-family: var(--font-sans); }
.form .buy__fine { margin-top: 0; }
.order-done { text-align: center; }
.order-done h3 { display: flex; justify-content: center; gap: 0.4rem; align-items: center; color: var(--c-basil); font-family: var(--font-sans); }

/* ------------------------------------------------------------------ print */
@media print {
  body { background: #fff; }
  .site-header, .site-footer, .print-hide, .toast, .cook-bar, .buy, .panel__bar, .panel__help { display: none !important; }
  .cardsheet { display: block; padding: 0; }
  .face { width: 7in; height: 5in; aspect-ratio: auto; border-radius: 0; box-shadow: none; margin: 0; break-after: page; page-break-after: always; }
  .face:last-child { break-after: auto; page-break-after: auto; }
  .lam { display: none; }
  @page { size: 7in 5in; margin: 0; }
}
