/* Oppa Approved - warm editorial design with a Korean seal (dojang) identity.
   Mobile first; tablet >= 720px; desktop >= 1060px. Self-hosted fonts only (fonts.css; no Google Fonts: GDPR in Germany).
   Light + dark themes follow the reader's system setting. */

:root {
  --paper: #fbf7f1;
  --paper-2: #f4eee4;
  --card: #ffffff;
  --ink: #1c1814;
  --ink-2: #4a423a;
  --muted: #8a7f73;
  --line: #e9e1d5;
  --line-2: #ddd2c3;
  --red: #c8321e;            /* gochujang / seal red */
  --red-2: #a82514;
  --red-soft: #fbe9e4;
  --sesame: #e9dcc6;
  --green: #2f6b3f;
  --shadow-sm: 0 1px 2px rgba(40, 25, 10, .06), 0 2px 8px rgba(40, 25, 10, .05);
  --shadow: 0 2px 6px rgba(40, 25, 10, .06), 0 18px 40px -12px rgba(40, 25, 10, .18);
  --shadow-lg: 0 30px 70px -20px rgba(40, 25, 10, .35);
  --r: 22px;
  --r-sm: 14px;
  --wrap: 1240px;
  --narrow: 780px;
  --gutter: 20px;
  --header-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --serif: "Fraunces", ui-serif, "New York", "Iowan Old Style", Charter, "Bitstream Charter", "Sitka Heading", "Sitka Text",
           Cambria, Georgia, serif;
  --sans: "Pretendard Variable", Pretendard, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Apple SD Gothic Neo", Pretendard, "Malgun Gothic", "Noto Sans KR", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #151311;
    --paper-2: #1d1a17;
    --card: #211d1a;
    --ink: #f4ede4;
    --ink-2: #cfc4b7;
    --muted: #9a8f83;
    --line: #2f2a25;
    --line-2: #3b352f;
    --red: #e5533c;
    --red-2: #f06a52;
    --red-soft: #3a1d17;
    --sesame: #3a3128;
    --green: #7cc18c;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow: 0 2px 6px rgba(0, 0, 0, .25), 0 18px 40px -12px rgba(0, 0, 0, .5);
    --shadow-lg: 0 30px 70px -20px rgba(0, 0, 0, .7);
  }
  img { filter: brightness(.94); }
}
@media (min-width: 720px) { :root { --gutter: 36px; --header-h: 72px; } }

/* ---------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
@media (min-width: 720px) { body { font-size: 18px; } }
html[lang="ko"] body { word-break: keep-all; line-height: 1.75; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
h1, h2, h3 { margin: 0; color: var(--ink); text-wrap: balance; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.02em; line-height: 1.08; }
html[lang="ko"] h1, html[lang="ko"] h2 { font-family: var(--sans); font-weight: 800; letter-spacing: -.035em; line-height: 1.2; }
p { margin: 0; text-wrap: pretty; }
figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
svg { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2.5px solid var(--red); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--red); color: #fff; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: calc(var(--narrow) + 2 * var(--gutter)); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 10px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font: 700 12.5px/1.2 var(--sans); letter-spacing: .14em;
  text-transform: uppercase; color: var(--red); }
html[lang="ko"] .kicker { letter-spacing: .04em; font-size: 13.5px; }
.kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 18%, transparent); }
.photo-ph { aspect-ratio: 4/3; background: linear-gradient(135deg, var(--paper-2), var(--sesame)); }

/* ---------- seal (the brand mark) */
.seal { width: 34px; height: 34px; stroke: none; }
.seal .seal-bg { fill: var(--red); }
.seal .seal-ring { fill: none; stroke: #fff; stroke-opacity: .7; stroke-width: 1.1; }
.seal .seal-txt { fill: #fff; font: 800 12.4px/1 "Pretendard Variable", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Noto Sans CJK KR", sans-serif; text-anchor: middle; }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1.5px solid transparent; font: 650 15.5px/1 var(--sans); text-decoration: none;
  transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .2s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--ink); color: var(--paper); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--red); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.btn-icon { width: 48px; padding: 0; background: transparent; border-color: var(--line-2); }
.btn-icon:hover { border-color: var(--ink); }
.btn svg { width: 18px; height: 18px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; font-size: 15.5px; text-decoration: none; }
.link-arrow svg { transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- header */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: var(--red); transform-origin: 0 50%; transform: scaleX(0); }
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in srgb, var(--paper) 82%, transparent); backdrop-filter: saturate(1.6) blur(16px);
  -webkit-backdrop-filter: saturate(1.6) blur(16px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.is-scrolled .site-header { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.logo .seal { width: 32px; height: 32px; transition: transform .4s var(--ease); }
.logo:hover .seal { transform: rotate(-8deg) scale(1.05); }
.logo-word { font: 500 19px/1 var(--serif); letter-spacing: -.01em; white-space: nowrap; }
.logo-word b { font-weight: 700; }
.header-nav { display: flex; align-items: center; gap: 6px; }
.nav-link { padding: 10px 14px; border-radius: 999px; font-size: 15px; font-weight: 550; text-decoration: none; color: var(--ink-2); transition: background .2s, color .2s; }
.nav-link:hover { background: var(--paper-2); color: var(--ink); }
@media (max-width: 560px) { .hide-sm { display: none; } .logo-word { font-size: 17px; } }
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px;
  border: 1.5px solid var(--line-2); border-radius: 999px; font-size: 13.5px; font-weight: 700; letter-spacing: .04em; cursor: pointer; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary svg { width: 16px; height: 16px; }
.lang-menu .chev { width: 14px; height: 14px; transition: transform .2s; }
.lang-menu[open] .chev { transform: rotate(180deg); }
.lang-menu ul { position: absolute; right: 0; top: calc(100% + 10px); min-width: 200px; padding: 8px; background: var(--card);
  border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); animation: pop .18s var(--ease); }
.lang-menu a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 12px; border-radius: 10px;
  text-decoration: none; font-size: 15px; }
.lang-menu a small { color: var(--muted); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; }
.lang-menu a:hover { background: var(--paper-2); }
.lang-menu a[aria-current] { color: var(--red); font-weight: 650; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }

/* ---------- home: hero */
.hero { padding: 36px 0 56px; overflow: hidden; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero { padding: 64px 0 88px; } .hero-grid { grid-template-columns: 1fr 1.08fr; gap: 64px; } }
.hero h1 { font-size: clamp(42px, 7.4vw, 86px); margin-top: 18px; }
.hero h1 em { display: block; font-style: italic; color: var(--red); }
html[lang="ko"] .hero h1 em { font-style: normal; }
.hero-lead { margin-top: 22px; max-width: 30em; font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.feature { position: relative; display: block; text-decoration: none; border-radius: calc(var(--r) + 6px); }
.feature figure { overflow: hidden; border-radius: calc(var(--r) + 6px); box-shadow: var(--shadow-lg); aspect-ratio: 5/4; }
.feature img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.feature:hover img { transform: scale(1.04); }
.feature-card { position: relative; margin: -72px 16px 0; padding: 22px 24px; background: var(--card); border-radius: var(--r);
  box-shadow: var(--shadow); border: 1px solid var(--line); }
@media (min-width: 720px) { .feature-card { position: absolute; left: -40px; bottom: -36px; margin: 0; max-width: 380px; } }
@media (min-width: 720px) and (max-width: 959px) { .feature-card { left: 24px; } .hero { padding-bottom: 96px; } }
.feature-tag { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 650; color: var(--muted); }
.feature-tag span { padding: 4px 10px; border-radius: 999px; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.feature-card h2 { margin-top: 10px; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.15; }
.feature-meta { margin-top: 8px; font-size: 14.5px; color: var(--muted); }
.feature-go { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-weight: 700; font-size: 15px; color: var(--red); }
.feature-go svg { transition: transform .25s var(--ease); }
.feature:hover .feature-go svg { transform: translateX(5px); }

/* the approval stamp, pressed onto the photo */
.stamp { position: absolute; top: 18px; right: 18px; display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px 8px 8px;
  border-radius: 999px; background: var(--card); box-shadow: var(--shadow); font-size: 13.5px; font-weight: 750; color: var(--red);
  transform: rotate(-4deg); animation: stamp .7s .2s var(--ease) both; }
.stamp .seal { width: 30px; height: 30px; }
.stamp-lg { top: 26px; right: calc(var(--gutter) + 22px); font-size: 15px; padding: 10px 20px 10px 10px; }
.stamp-lg .seal { width: 38px; height: 38px; }
@keyframes stamp { 0% { opacity: 0; transform: rotate(-14deg) scale(1.6); } 60% { opacity: 1; transform: rotate(-3deg) scale(.96); } 100% { transform: rotate(-4deg) scale(1); } }

/* ---------- home: pillars */
.pillars { border-block: 1px solid var(--line); background: var(--paper-2); }
.pillar-grid { display: grid; gap: 0; }
@media (min-width: 820px) { .pillar-grid { grid-template-columns: repeat(3, 1fr); } }
.pillar { padding: 30px 4px; }
.pillar + .pillar { border-top: 1px solid var(--line); }
@media (min-width: 820px) { .pillar { padding: 40px 32px; } .pillar:first-child { padding-left: 0; }
  .pillar + .pillar { border-top: 0; border-left: 1px solid var(--line); } }
.pillar-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--card);
  border: 1px solid var(--line); color: var(--red); }
.pillar-icon svg { width: 24px; height: 24px; }
.pillar-icon.is-red { background: none; border: 0; }
.pillar-icon.is-red .seal { width: 48px; height: 48px; }
.pillar h2 { margin-top: 18px; font: 700 19px/1.3 var(--sans); letter-spacing: -.01em; }
.pillar p { margin-top: 8px; font-size: 15.5px; color: var(--ink-2); line-height: 1.6; }

/* ---------- section heads */
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 32px; margin-bottom: 32px; }
.sec-title { font-size: clamp(30px, 4vw, 46px); margin-top: 8px; }
.sec-lead { margin-top: 12px; max-width: 38em; color: var(--ink-2); }
.recipes-sec { padding: 72px var(--gutter) 88px; }

/* ---------- chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 40px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line-2); background: transparent; font-size: 14.5px; font-weight: 600;
  transition: all .2s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ---------- recipe cards */
.cards { display: grid; gap: 36px 28px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card[hidden] { display: none; }
.card a { display: block; text-decoration: none; height: 100%; }
.card figure { position: relative; overflow: hidden; border-radius: var(--r); aspect-ratio: 4/3; background: var(--paper-2); box-shadow: var(--shadow-sm);
  transition: box-shadow .4s var(--ease), transform .4s var(--ease); }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.card a:hover figure { box-shadow: var(--shadow); transform: translateY(-4px); }
.card a:hover img { transform: scale(1.06); }
.card-time, .card-badge { position: absolute; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.card-time { left: 12px; bottom: 12px; background: rgba(255, 255, 255, .88); color: #1c1814; }
.card-time svg { width: 14px; height: 14px; }
.card-badge { left: 12px; top: 12px; padding: 4px 12px 4px 4px; background: rgba(255, 255, 255, .94); color: #c8321e; }
.card-badge .seal { width: 22px; height: 22px; }
.card-body { padding: 18px 4px 0; }
.card-cat { font-size: 12.5px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.card h3 { margin-top: 6px; font: 600 23px/1.2 var(--serif); letter-spacing: -.015em; }
html[lang="ko"] .card h3 { font: 750 21px/1.35 var(--sans); letter-spacing: -.03em; }
.card a:hover h3 { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.card-sub { margin-top: 6px; font-size: 15px; color: var(--ink-2); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; gap: 14px; margin-top: 12px; font-size: 13.5px; color: var(--muted); font-weight: 550; }
.card-meta span + span::before { content: "·"; margin-right: 14px; }

/* ---------- story */
.story { background: var(--ink); color: var(--paper); padding: 88px 0; }
.story-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 820px) { .story-grid { grid-template-columns: 200px 1fr; gap: 64px; } }
.story-mark .seal { width: 120px; height: 120px; transform: rotate(-8deg); }
@media (min-width: 820px) { .story-mark .seal { width: 180px; height: 180px; } }
.story h2 { color: var(--paper); font-size: clamp(32px, 4.6vw, 56px); margin-top: 12px; }
.story p:last-child { margin-top: 20px; max-width: 36em; font-size: clamp(17px, 1.6vw, 20px); color: color-mix(in srgb, var(--paper) 78%, transparent); }
.story .kicker { color: #f08a75; }
@media (prefers-color-scheme: dark) { .story { background: var(--paper-2); color: var(--ink); } .story h2 { color: var(--ink); }
  .story p:last-child { color: var(--ink-2); } }

/* ---------- recipe: head */
.r-head { padding-top: 28px; }
@media (min-width: 720px) { .r-head { padding-top: 48px; } }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs span:last-child { color: var(--red); font-weight: 650; }
.r-head h1 { margin-top: 18px; max-width: 16em; font-size: clamp(38px, 6.2vw, 76px); }
.dek { margin-top: 18px; max-width: 34em; font-size: clamp(18px, 1.9vw, 22px); color: var(--ink-2); line-height: 1.5; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 30px; border: 1px solid var(--line); border-radius: var(--r-sm);
  overflow: hidden; background: var(--line); max-width: 760px; }
@media (min-width: 640px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.facts li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--card); }
.facts svg { width: 22px; height: 22px; color: var(--red); }
.facts span { display: flex; flex-direction: column; line-height: 1.25; }
.facts small { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.facts b { font-size: 16.5px; font-weight: 700; }
.facts em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
@media (max-width: 560px) { .actions .btn-primary { flex: 1 1 100%; } .actions .js-cook { flex: 1; } }
.r-photo { position: relative; margin-top: 36px; }
.r-photo img, .r-photo .photo-ph { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: calc(var(--r) + 6px); box-shadow: var(--shadow-lg); }
@media (min-width: 1060px) { .r-photo img { aspect-ratio: 2/1; } }
.lede { margin: 48px 0 0; font: 400 clamp(20px, 2.2vw, 25px)/1.55 var(--serif); color: var(--ink); }
html[lang="ko"] .lede { font-family: var(--sans); font-weight: 450; font-size: clamp(18px, 2vw, 21px); line-height: 1.8; }
.lede::first-letter { font-size: 3.1em; float: left; line-height: .9; margin: .06em .1em 0 0; color: var(--red); font-weight: 600; }
html[lang="ko"] .lede::first-letter { font-size: inherit; float: none; margin: 0; color: inherit; }

/* ---------- oppa says */
.oppa { margin-top: 40px; }
.oppa-card { display: flex; gap: 20px; align-items: flex-start; padding: 26px 28px; border-radius: var(--r); background: var(--red-soft);
  border: 1px solid color-mix(in srgb, var(--red) 22%, transparent); }
.oppa-seal .seal { width: 56px; height: 56px; transform: rotate(-6deg); }
.oppa blockquote { margin: 8px 0 0; font: 500 clamp(20px, 2.2vw, 25px)/1.45 var(--serif); font-style: italic; }
html[lang="ko"] .oppa blockquote { font: 650 20px/1.6 var(--sans); }
.oppa-by { margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.oppa-by b { color: var(--red); }

/* ---------- recipe: ingredients + method */
.cook { display: grid; gap: 48px; margin-top: 64px; align-items: start; }
@media (min-width: 1060px) { .cook { grid-template-columns: 400px 1fr; gap: 72px; } .ingredients { position: sticky; top: calc(var(--header-h) + 20px); } }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow-sm); }
@media (min-width: 1060px) { .panel { max-height: calc(100vh - var(--header-h) - 40px); overflow: auto; scrollbar-width: thin; } }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.panel-head h2, .method > h2 { font-size: clamp(28px, 3vw, 36px); }
.stepper { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--line); }
.stepper button { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--card); box-shadow: var(--shadow-sm); transition: transform .15s; }
.stepper button:hover { color: var(--red); }
.stepper button:active { transform: scale(.9); }
.stepper svg { width: 16px; height: 16px; stroke-width: 2.4; }
.stepper output { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 64px; font-size: 14.5px; font-weight: 600; }
.stepper output svg { width: 17px; height: 17px; color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.stepper .serv { font-size: 17px; }
.ing-progress { height: 4px; margin: 20px 0 6px; border-radius: 4px; background: var(--paper-2); overflow: hidden; }
.ing-progress span { display: block; height: 100%; width: 0; background: var(--green); border-radius: 4px; transition: width .35s var(--ease); }
.ing li { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 13px 0; border-bottom: 1px dashed var(--line-2); }
.ing li:last-child { border-bottom: 0; }
.ing label { display: flex; gap: 14px; cursor: pointer; flex: 1; min-width: 0; }
.ing input { position: absolute; opacity: 0; pointer-events: none; }
.tick { display: grid; place-items: center; width: 24px; height: 24px; margin-top: 1px; border-radius: 8px; border: 1.8px solid var(--line-2); background: var(--card); transition: all .2s var(--ease); }
.tick svg { width: 15px; height: 15px; stroke: #fff; stroke-width: 3; opacity: 0; transform: scale(.5); transition: all .2s var(--ease); }
.ing input:checked + .tick { background: var(--green); border-color: var(--green); }
.ing input:checked + .tick svg { opacity: 1; transform: none; }
.ing input:focus-visible + .tick { outline: 2.5px solid var(--red); outline-offset: 2px; }
.ing-text { display: flex; flex-direction: column; line-height: 1.4; min-width: 0; }
.ing .amt { font-weight: 750; font-size: 15px; color: var(--red); font-variant-numeric: tabular-nums; }
.ing-name { font-size: 16.5px; font-weight: 550; }
.ing-name em { font-style: normal; color: var(--muted); font-weight: 400; font-size: 14px; }
.ing-gloss { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.ing-swap { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13.5px; color: var(--ink-2); }
.ing-swap svg { width: 14px; height: 14px; color: var(--red); }
.ing input:checked ~ .ing-text { opacity: .45; }
.ing input:checked ~ .ing-text .ing-name { text-decoration: line-through; }
.buy { display: inline-flex; align-items: center; gap: 4px; flex: none; margin-top: 2px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-2);
  font-size: 12.5px; font-weight: 700; text-decoration: none; color: var(--ink-2); transition: all .2s; }
.buy:hover { border-color: #ff9900; color: var(--ink); background: color-mix(in srgb, #ff9900 12%, transparent); }
.buy svg { width: 13px; height: 13px; }
.tools { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.tools h3 { font-size: 12.5px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tools ul { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tools li { padding: 5px 12px; border-radius: 999px; background: var(--paper-2); font-size: 14px; }
.aff-note { margin-top: 16px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }

.steps { counter-reset: s; margin-top: 28px; }
.step { padding: 32px 0; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 16px); }
.step:first-child { border-top: 0; padding-top: 8px; }
.step-body { display: grid; grid-template-columns: 52px 1fr; gap: 18px; }
.step-no { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1.8px solid var(--ink);
  background: transparent; font: 700 20px/1 var(--serif); transition: all .25s var(--ease); }
.step-no svg { position: absolute; width: 22px; height: 22px; stroke: #fff; stroke-width: 3; opacity: 0; transform: scale(.4); transition: all .25s var(--ease); }
.step-no:hover { border-color: var(--red); color: var(--red); }
.step-no[aria-pressed="true"] { background: var(--green); border-color: var(--green); }
.step-no[aria-pressed="true"] span { opacity: 0; }
.step-no[aria-pressed="true"] svg { opacity: 1; transform: none; }
.step.is-done h3, .step.is-done p { opacity: .5; }
.step h3 { font: 700 21px/1.3 var(--sans); letter-spacing: -.015em; margin-top: 9px; }
.step p { margin-top: 10px; font-size: 17.5px; color: var(--ink-2); line-height: 1.75; }
.step-photo { margin: 22px 0 0 70px; overflow: hidden; border-radius: var(--r-sm); }
.step-photo img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform .8s var(--ease); }
.step-photo:hover img { transform: scale(1.03); }
@media (max-width: 640px) { .step-body { grid-template-columns: 44px 1fr; gap: 14px; } .step-no { width: 42px; height: 42px; font-size: 18px; } .step-photo { margin-left: 0; } }

/* cook mode: bigger text, screen stays awake */
.cooking .step p { font-size: 21px; color: var(--ink); }
.cooking .step h3 { font-size: 24px; }
.cooking .ing-name { font-size: 18.5px; }
.cooking .r-photo, .cooking .lede, .cooking .oppa { display: none; }

/* ---------- swaps */
.swaps { margin-top: 88px; padding: 80px 0; background: var(--paper-2); border-block: 1px solid var(--line); }
.swap-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.swap-card { padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); transition: transform .3s var(--ease), box-shadow .3s; }
.swap-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.swap-from { font-size: 14.5px; color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--red) 60%, transparent); }
.swap-to { display: flex; align-items: center; gap: 10px; margin-top: 8px; font: 700 20px/1.3 var(--sans); letter-spacing: -.01em; }
.swap-to svg { color: var(--red); width: 22px; height: 22px; }
.swap-where { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 5px 12px; border-radius: 999px; background: var(--paper-2);
  font-size: 13.5px; font-weight: 600; }
.swap-where svg { width: 15px; height: 15px; color: var(--green); }
.swap-note { margin-top: 12px; font-size: 15px; color: var(--ink-2); line-height: 1.6; }

/* ---------- faq */
.faq { margin-top: 88px; }
.faq .sec-title { margin-bottom: 20px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; cursor: pointer;
  font-size: 18px; font-weight: 650; line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--red); }
.plus { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--line-2); transition: transform .3s var(--ease), background .2s; }
.plus::before, .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.8px; background: currentColor; transform: translate(-50%, -50%); }
.plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s var(--ease); }
.faq details[open] .plus { transform: rotate(180deg); background: var(--ink); color: var(--paper); border-color: var(--ink); }
.faq details[open] .plus::after { transform: translate(-50%, -50%) rotate(0); }
.faq details p { padding: 0 48px 24px 0; color: var(--ink-2); animation: fade .3s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(-4px); } }

.source { margin-top: 40px; font-size: 14px; color: var(--muted); }
.more { margin-top: 96px; padding: 80px 0 96px; border-top: 1px solid var(--line); }

/* ---------- footer */
.site-footer { margin-top: 0; padding: 64px 0 28px; background: var(--paper-2); border-top: 1px solid var(--line); }
.page-recipe .site-footer { margin-top: 0; }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 64px; } }
.footer-brand p { margin-top: 16px; max-width: 30em; font-size: 15px; color: var(--ink-2); }
.footer-col h2 { font: 750 12.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.footer-col ul { margin-top: 16px; display: grid; gap: 10px; }
.footer-col a { font-size: 15px; text-decoration: none; color: var(--ink-2); }
.footer-col a:hover { color: var(--red); }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 48px; padding-top: 22px;
  border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* ---------- toast */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 80; padding: 12px 20px; border-radius: 999px; background: var(--ink); color: var(--paper);
  font-size: 14.5px; font-weight: 600; box-shadow: var(--shadow); transform: translate(-50%, 140%); opacity: 0; transition: all .35s var(--ease); pointer-events: none; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- language chooser + 404 */
.page-solo { min-height: 100vh; display: grid; place-items: center; background:
  radial-gradient(900px 500px at 85% -10%, color-mix(in srgb, var(--red) 14%, transparent), transparent 70%), var(--paper); }
.solo { max-width: 640px; padding-top: 48px; padding-bottom: 48px; }
.solo h1 { margin-top: 32px; font-size: clamp(34px, 6vw, 54px); }
.solo-code { margin-top: 40px; font: 700 14px/1 var(--sans); letter-spacing: .2em; color: var(--red); }
.solo-code + h1 { margin-top: 12px; }
.solo-lead { margin-top: 16px; color: var(--ink-2); }
.lang-list { margin-top: 32px; display: grid; gap: 10px; }
.lang-list a { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 16px; padding: 18px 22px; border-radius: var(--r-sm);
  background: var(--card); border: 1px solid var(--line); text-decoration: none; transition: all .25s var(--ease); }
.lang-list a:hover { border-color: var(--red); transform: translateX(4px); box-shadow: var(--shadow-sm); }
.lang-list b { font-size: 18px; }
.lang-list span { grid-column: 1; font-size: 14.5px; color: var(--muted); }
.lang-list svg { grid-column: 2; grid-row: 1 / 3; color: var(--red); }

/* ---------- motion: reveal on scroll (only when JS runs and motion is welcome) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- print: just the recipe */
@media print {
  @page { margin: 16mm; }
  body { background: #fff; color: #000; font-size: 11.5pt; }
  .site-header, .site-footer, .progress, .actions, .r-photo, .swaps, .more, .faq, .buy, .aff-note, .stepper, .toast, .step-photo, .oppa, .crumbs { display: none !important; }
  .r-head h1 { font-size: 28pt; } .lede { margin-top: 12pt; font-size: 12pt; } .lede::first-letter { all: unset; }
  .cook { display: grid; grid-template-columns: 34% 1fr; gap: 24pt; margin-top: 18pt; }
  .panel { box-shadow: none; border: 1px solid #ccc; max-height: none; overflow: visible; }
  .ingredients { position: static; } .tick { width: 12pt; height: 12pt; border-radius: 3pt; }
  .step { padding: 10pt 0; break-inside: avoid; } .step p { font-size: 11pt; }
  .facts li { background: #fff; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
