/* Oppa Approved - clean editorial recipe design.
   Mobile first; tablet >= 700px; desktop >= 1040px. System fonts only (no Google Fonts: GDPR in Germany). */
:root {
  --bg: #ffffff;
  --surface: #f7f5f2;
  --ink: #18181b;
  --ink-2: #3f3f46;
  --muted: #71717a;
  --line: #e7e5e4;
  --accent: #c2410c;          /* paprika */
  --accent-soft: #fff1ea;
  --green: #166534;
  --green-soft: #ecfdf3;
  --radius: 14px;
  --radius-sm: 10px;
  --wrap: 1180px;
  --gutter: 20px;
  --header-h: 60px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
          "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
}
@media (min-width: 700px) { :root { --gutter: 32px; --header-h: 68px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 56px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
@media (min-width: 700px) { body { font-size: 18px; } }
html[lang="ko"] body { word-break: keep-all; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; color: var(--ink); }
h1, h2 { font-family: var(--serif); font-weight: 700; letter-spacing: -.015em; }
html[lang="ko"] h1, html[lang="ko"] h2 { font-family: var(--sans); font-weight: 800; letter-spacing: -.03em; }
figure { margin: 0; }
svg { flex: none; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.6) blur(12px); -webkit-backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid var(--line); }
.header-row { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 1.05rem; letter-spacing: -.01em; }
.logo b { font-weight: 800; }
.logo-mark { width: 28px; height: 28px; }
.logo-mark circle { fill: var(--green); }
.logo-mark path { fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.header-nav { display: flex; align-items: center; gap: 6px; }
.header-nav > a { text-decoration: none; font-size: .9rem; font-weight: 600; color: var(--ink-2); padding: 8px 12px; border-radius: 999px; }
.header-nav > a:hover { background: var(--surface); }
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 700;
  padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.lang-menu ul { position: absolute; right: 0; top: calc(100% + 8px); min-width: 170px; list-style: none; margin: 0; padding: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.10); }
.lang-menu li a { display: block; padding: 9px 12px; border-radius: 8px; text-decoration: none; font-size: .92rem; }
.lang-menu li a:hover { background: var(--surface); }
.lang-menu li a[aria-current] { font-weight: 700; color: var(--accent); }

/* ---------- recipe header ---------- */
.recipe-head { display: grid; gap: 24px; padding-top: 24px; }
@media (min-width: 1040px) { .recipe-head { grid-template-columns: 5fr 6fr; gap: 56px; align-items: center; padding-top: 48px; } }
.eyebrow { margin: 0 0 12px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.eyebrow a { text-decoration: none; color: var(--accent); }
.eyebrow span { margin: 0 8px; color: var(--line); }
.recipe-head h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); line-height: 1.08; }
.dek { margin: 14px 0 0; font-size: 1.15rem; line-height: 1.5; color: var(--ink-2); max-width: 34ch; }
.guarantee-pill { display: inline-flex; align-items: center; gap: 6px; margin: 18px 0 0; padding: 6px 12px 6px 8px; border-radius: 999px;
  background: var(--green-soft); color: var(--green); font-size: .85rem; font-weight: 700; }
.guarantee-pill svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.meta { list-style: none; margin: 24px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 14px 28px; }
.meta li { display: flex; align-items: center; gap: 10px; }
.meta svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.meta span { display: flex; flex-direction: column; line-height: 1.25; font-weight: 700; font-size: .98rem; }
.meta small { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.meta em { font-style: normal; font-weight: 500; color: var(--muted); font-size: .8rem; }
.recipe-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface); margin: 0 calc(var(--gutter) * -1); border-radius: 0; }
@media (min-width: 700px) { .recipe-photo { margin: 0; border-radius: var(--radius); } }
.recipe-photo img, .step-photo img, .card figure img { width: 100%; height: 100%; object-fit: cover; }
.photo-ph { width: 100%; height: 100%; background:
  radial-gradient(circle at 30% 35%, #f3e3d6 0 18%, transparent 19%),
  radial-gradient(circle at 68% 62%, #efd9c8 0 22%, transparent 23%),
  linear-gradient(135deg, #faf6f1, #f1e9e0); }
.lede { margin: 32px 0 0; max-width: 68ch; font-size: 1.08rem; color: var(--ink-2); }

/* jump links: only below desktop, sticky under the header */
.jump { position: sticky; top: var(--header-h); z-index: 10; margin-top: 28px; background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.jump .wrap { display: flex; gap: 8px; padding-top: 10px; padding-bottom: 10px; }
.jump a { flex: 1; text-align: center; text-decoration: none; font-weight: 700; font-size: .9rem; padding: 9px 0; border-radius: 999px; background: var(--surface); }
@media (min-width: 1040px) { .jump { display: none; } }

/* ---------- ingredients + method ---------- */
.cook { display: grid; gap: 40px; margin-top: 28px; }
@media (min-width: 1040px) { .cook { grid-template-columns: 400px 1fr; gap: 64px; align-items: start; margin-top: 56px; }
  .ingredients { position: sticky; top: calc(var(--header-h) + 24px); } }
.panel { background: var(--surface); border-radius: var(--radius); padding: 22px 20px; }
@media (min-width: 700px) { .panel { padding: 28px; } }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.panel-head h2, .method h2, .swaps h2, .faq h2, .about h2, .section-title { font-size: clamp(1.5rem, 3vw, 1.9rem); line-height: 1.2; }
.stepper { display: inline-flex; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 999px; }
.stepper button { width: 36px; height: 36px; border: 0; background: none; font: 600 1.15rem/1 var(--sans); color: var(--ink); cursor: pointer; border-radius: 50%; }
.stepper button:hover { background: var(--surface); }
.stepper output { min-width: 84px; text-align: center; font-size: .85rem; color: var(--muted); }
.stepper output b { color: var(--ink); font-size: 1rem; }
.ing { list-style: none; margin: 0; padding: 0; }
.ing li { display: flex; align-items: flex-start; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.ing li:last-child { border-bottom: 0; }
.ing label { flex: 1; display: grid; grid-template-columns: 18px 70px 1fr; gap: 0 12px; align-items: baseline; cursor: pointer; }
.ing input { width: 18px; height: 18px; margin: 0; accent-color: var(--green); transform: translateY(3px); }
.amt { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ing-name { color: var(--ink); }
.ing-name em { font-style: normal; color: var(--muted); font-size: .9em; }
.ing-gloss { display: block; font-size: .84rem; color: var(--muted); line-height: 1.4; }
.ing-swap { display: block; margin-top: 2px; font-size: .84rem; color: var(--accent); }
.ing input:checked ~ span { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--muted); }
.buy { flex: none; display: inline-flex; align-items: center; gap: 3px; margin-top: 1px; padding: 4px 9px; border-radius: 999px;
  font-size: .75rem; font-weight: 700; text-decoration: none; color: var(--accent); background: #fff; border: 1px solid #f5d0bd; }
.buy:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.buy svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.tools { margin: 18px 0 0; font-size: .9rem; color: var(--ink-2); }
.aff-note { margin: 10px 0 0; font-size: .75rem; line-height: 1.5; color: var(--muted); }

.method h2 { margin-bottom: 8px; }
.steps { list-style: none; margin: 0; padding: 0; }
.step { display: grid; gap: 16px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: 0; }
@media (min-width: 700px) { .step { grid-template-columns: 260px 1fr; gap: 28px; align-items: start; } }
.step-photo { aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.step-no { margin: 0 0 4px; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); }
.step h3 { font-size: 1.2rem; line-height: 1.3; margin-bottom: 8px; }
.step-body p:last-child { margin: 0; color: var(--ink-2); }

/* ---------- swaps ---------- */
.swaps { margin-top: 64px; padding: 56px 0; background: var(--surface); }
.section-lead { margin: 10px 0 0; max-width: 62ch; color: var(--ink-2); }
.swap-grid { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 700px) { .swap-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .swap-grid { grid-template-columns: repeat(3, 1fr); } }
.swap-card { background: #fff; border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); }
.swap-card p { margin: 0; }
.swap-from { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.swap-to { display: flex; align-items: center; gap: 8px; margin-top: 6px !important; font-size: 1.15rem; font-weight: 800; }
.swap-to svg { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.swap-where { margin-top: 4px !important; font-size: .88rem; color: var(--accent); font-weight: 600; }
.swap-note { margin-top: 12px !important; padding-top: 12px; border-top: 1px solid var(--line); font-size: .92rem; color: var(--ink-2); }

/* ---------- guarantee, faq ---------- */
.guarantee { display: flex; gap: 20px; align-items: center; margin-top: 56px; }
.guarantee > svg { width: 56px; height: 56px; }
.guarantee > svg circle { fill: var(--green); }
.guarantee > svg path { fill: none; stroke: #fff; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.guarantee h2 { font-size: 1.4rem; }
.guarantee p { margin: 4px 0 0; color: var(--ink-2); }
.faq { margin-top: 64px; }
.faq-inner { max-width: 860px; }
.faq h2 { margin-bottom: 16px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.5rem/1 var(--sans); color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--ink-2); max-width: 70ch; }
.source { margin-top: 32px; font-size: .85rem; color: var(--muted); }

/* ---------- home ---------- */
.home-hero { padding: 56px 0 40px; border-bottom: 1px solid var(--line); }
@media (min-width: 700px) { .home-hero { padding: 96px 0 64px; } }
.home-hero h1 { font-size: clamp(2.4rem, 7vw, 4.6rem); line-height: 1.04; }
.home-hero em { font-style: italic; color: var(--accent); }
html[lang="ko"] .home-hero em { font-style: normal; }
.home-hero p { margin: 20px 0 0; max-width: 52ch; font-size: 1.15rem; color: var(--ink-2); }
#recipes { padding-top: 48px; }
.cards { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 32px 24px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card a { display: block; text-decoration: none; }
.card figure { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.card figure img, .card .photo-ph { transition: transform .35s ease; }
.card a:hover figure img, .card a:hover .photo-ph { transform: scale(1.03); }
.card-badge { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px 5px 7px;
  border-radius: 999px; background: #fff; color: var(--green); font-size: .75rem; font-weight: 800; }
.card-badge svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.card-cat { margin: 14px 0 4px; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.card h3 { font-size: 1.2rem; line-height: 1.3; }
.card-meta { margin: 6px 0 0; font-size: .88rem; color: var(--muted); }
.about { margin-top: 72px; padding: 40px var(--gutter); background: var(--surface); border-radius: var(--radius); max-width: calc(var(--wrap) - 2 * var(--gutter)); }
.about p { margin: 10px 0 0; max-width: 64ch; color: var(--ink-2); }

/* ---------- root chooser ---------- */
.chooser { max-width: 560px; padding-top: 14vh; padding-bottom: 64px; }
.chooser .logo { font-size: 1.5rem; margin-bottom: 32px; }
.chooser ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.chooser li a { display: block; text-decoration: none; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); }
.chooser li a:hover { border-color: var(--ink); }
.chooser li span { display: block; margin-top: 2px; font-size: .88rem; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { margin-top: 96px; padding: 48px 0; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.footer-grid { display: grid; gap: 24px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 2fr 1fr; } }
.site-footer .logo { color: var(--ink); }
.site-footer p { margin: 12px 0 0; max-width: 56ch; }
.footer-legal p { font-size: .8rem; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
@media print { .site-header, .jump, .buy, .site-footer, .swaps, .step-photo, .recipe-photo { display: none !important; } .cook { display: block; } }

/* phones: the Amazon pill goes under the ingredient name so the name keeps its width */
@media (max-width: 699px) {
  .ing li { flex-wrap: wrap; }
  .ing label { grid-template-columns: 18px 62px 1fr; flex-basis: 100%; }
  .buy { margin: 6px 0 0 104px; }
  .panel-head { flex-wrap: wrap; }
}
