/* 미리봄 레시피 v3 — dark editorial, mobile first (Instagram in-app browser) */
:root {
  --bg: #0b0b0c;
  --surface: #141416;
  --surface-2: #1b1b1f;
  --surface-3: #232328;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --ink: #f5f3f0;
  --ink-2: #d9d6d2;
  --dim: #a09ca0;
  --dim-2: #75727a;
  --pink: #ff3ba0;
  --pink-2: #ff6cb9;
  --pink-soft: rgba(255, 59, 160, 0.13);
  --pink-line: rgba(255, 59, 160, 0.45);
  --mint: #4fe3b4;
  --amber: #ffc14d;
  --sky: #78b8ff;
  --r: 18px;
  --r-sm: 12px;
  --gut: 20px;
  --max: 1160px;
  --bar: 58px;
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  /* type scale — Korean display 1.2 / heading 1.3 / body 1.7, tracking -2~-3% (Pretendard) */
  --fs-display: clamp(30px, 3.4vw + 17px, 54px);
  --fs-h1: clamp(28px, 2.6vw + 18px, 46px);
  --fs-h2: clamp(22px, 1.2vw + 17px, 30px);
  --fs-h3: clamp(19px, .6vw + 16px, 23px);
  --fs-lede: clamp(16px, .4vw + 15px, 18.5px);
  --fs-body: 16px;
  --fs-sm: 14px;
  --fs-xs: 12.5px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--bar) + 64px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: var(--fs-body); line-height: 1.7; letter-spacing: -0.01em;
  word-break: keep-all; overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss06", "tnum" 0;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--pink); color: #fff; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; border-radius: 8px; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg .dot { fill: currentColor; stroke: none; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gut); }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 99; background: var(--pink); color: #fff; padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 8px; }
mark { background: none; color: var(--pink); }

/* ---------- top bar ---------- */
.bar { position: sticky; top: 0; z-index: 40; height: var(--bar); background: rgba(11, 11, 12, 0.78); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-bottom: 1px solid var(--line); }
.bar-in { height: 100%; display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.brand img { height: 26px; width: auto; }
.brand em { font-family: var(--serif); font-size: 22px; color: var(--dim); line-height: 1; padding-top: 2px; }
.back { display: none; align-items: center; gap: 2px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 14px; margin-left: -6px; padding: 8px 6px; border-radius: 10px; }
.p-recipe .back { display: inline-flex; }
.p-recipe .brand em { display: none; }
@media (max-width: 420px) { .p-recipe .back span { display: none; } }
.bar-r { margin-left: auto; display: flex; gap: 4px; }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: transparent; border: 0; color: var(--ink-2); cursor: pointer; text-decoration: none; transition: background .2s; }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.readbar { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 50; pointer-events: none; }
.readbar i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--pink), var(--pink-2)); }
.p-home .readbar { display: none; }

/* ---------- buttons, pills ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font-weight: 700; font-size: 15px; letter-spacing: -0.01em; text-decoration: none; cursor: pointer; transition: transform .15s var(--ease), background .2s, border-color .2s; -webkit-tap-highlight-color: transparent; }
.btn:hover { border-color: var(--ink-2); }
.btn:active { transform: scale(.97); }
.btn.solid { background: var(--pink); border-color: var(--pink); color: #fff; box-shadow: 0 8px 24px -10px rgba(255, 59, 160, .7); }
.btn.solid:hover { background: #ff4fab; }
.btn svg { width: 18px; height: 18px; }
.pill { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; letter-spacing: 0; background: var(--surface-3); color: var(--ink-2); white-space: nowrap; }
.pill.t-guide { background: rgba(79, 227, 180, .13); color: var(--mint); }
.pill.t-prompt { background: var(--pink-soft); color: var(--pink-2); }
.pill.t-tools { background: rgba(120, 184, 255, .13); color: var(--sky); }
.center { text-align: center; margin-top: 28px; }

/* ---------- section heads ---------- */
.sec { padding-block: 56px 8px; }
.sec-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding-bottom: 16px; margin-bottom: 24px; border-bottom: 1px solid var(--line-2); }
.sec-h h2 { margin: 0; font-size: var(--fs-h2); font-weight: 800; letter-spacing: -0.03em; line-height: 1.3; }
.sec-h .serif { font-size: calc(var(--fs-h2) * .82); color: var(--pink); }
.sec-h p { flex-basis: 100%; margin: 4px 0 0; color: var(--dim); font-size: var(--fs-sm); }
@media (min-width: 720px) { .sec-h p { flex-basis: auto; margin: 0 0 0 auto; } }

/* ---------- home ---------- */
.mast { position: relative; overflow: hidden; padding-block: 36px 8px; }
.mast::before { content: ""; position: absolute; right: -180px; top: -220px; width: 620px; height: 620px; background: radial-gradient(closest-side, rgba(255, 59, 160, .16), transparent); pointer-events: none; }
.mast-in { position: relative; display: grid; gap: 28px; }
@media (min-width: 900px) { .mast { padding-block: 72px 24px; } .mast-in { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: center; gap: 48px; } }
.eyebrow { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: var(--fs-xs); font-weight: 700; color: var(--dim); letter-spacing: 0; }
.eyebrow .serif { font-size: 19px; color: var(--pink-2); font-weight: 400; line-height: 1; }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 0 rgba(255, 59, 160, .6); animation: live 2.4s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(255, 59, 160, .55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(255, 59, 160, 0); } }
.mast-h { margin: 14px 0 0; font-size: var(--fs-display); line-height: 1.2; font-weight: 800; letter-spacing: -0.035em; text-wrap: balance; }
.mast-h mark { color: var(--pink); background: linear-gradient(transparent 70%, rgba(255, 59, 160, .22) 0); }
.mast-lede { margin: 16px 0 0; font-size: var(--fs-lede); line-height: 1.7; color: var(--ink-2); max-width: 32em; }
.mast-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.mast-stats { display: flex; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--line); max-width: 460px; }
.mast-stats div { flex: 1; padding: 14px 0 0; }
.mast-stats div + div { padding-left: 16px; margin-left: 16px; border-left: 1px solid var(--line); }
.mast-stats dt { font-size: var(--fs-xs); color: var(--dim); }
.mast-stats dd { margin: 2px 0 0; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
/* hero entrance */
.mast-txt > * { animation: up .8s var(--ease) both; }
.mast-txt > :nth-child(2) { animation-delay: .08s; } .mast-txt > :nth-child(3) { animation-delay: .16s; } .mast-txt > :nth-child(4) { animation-delay: .24s; } .mast-txt > :nth-child(5) { animation-delay: .32s; }
@keyframes up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* stage with 미리 */
.stage { position: relative; height: 270px; border-radius: calc(var(--r) + 6px); background: linear-gradient(180deg, #121215, #0e0e10); border: 1px solid var(--line); overflow: hidden; animation: up .8s .2s var(--ease) both; }
@media (min-width: 900px) { .stage { height: 380px; } }
.stage-grid { position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 16px 16px; mask-image: radial-gradient(closest-side, #000 40%, transparent); -webkit-mask-image: radial-gradient(closest-side, #000 40%, transparent); }
.stage::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26%; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 59, 160, .05), transparent); }
.bubble { position: absolute; z-index: 2; left: 50%; top: 18px; transform: translateX(-50%); margin: 0; max-width: calc(100% - 32px); padding: 0 16px; min-height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 14px; background: var(--ink); color: #121212; font-size: 13.5px; font-weight: 700; line-height: 1.25; text-align: center; white-space: nowrap; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .7); animation: pop .5s 1.1s var(--spring) both; }
.bubble::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; background: inherit; transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
.bubble .bubble-t { display: block; transition: opacity .25s, transform .25s; }
.bubble .bubble-t.swap { opacity: 0; transform: translateY(4px); }
@media (min-width: 900px) { .bubble { top: 34px; font-size: 14.5px; } }
@keyframes pop { from { opacity: 0; transform: translateX(-50%) scale(.6); } to { opacity: 1; transform: translateX(-50%) scale(1); } }
.miri-btn { position: absolute; z-index: 1; left: 50%; bottom: 9%; width: 230px; transform: translateX(-50%); padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
@media (min-width: 900px) { .miri-btn { width: 310px; bottom: 12%; } }
.miri-btn:focus-visible { outline-offset: 8px; }
.miri-drop { display: block; animation: drop 1.05s .25s both; transform-origin: 50% 100%; }
@keyframes drop {
  0% { transform: translateY(-260%); animation-timing-function: cubic-bezier(.5, 0, .9, .5); }
  55% { transform: translateY(0) scale(1.18, .78); animation-timing-function: var(--ease); }
  72% { transform: translateY(-14%) scale(.94, 1.06); animation-timing-function: cubic-bezier(.5, 0, .9, .5); }
  86% { transform: translateY(0) scale(1.06, .94); }
  100% { transform: none; }
}
.miri-bob { display: block; transform-origin: 50% 100%; animation: bob 3.2s 1.3s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: none; } 50% { transform: scale(1.015, .985); } }
.miri-shadow { position: absolute; left: 36%; right: 36%; bottom: -6px; height: 10px; border-radius: 50%; background: rgba(0, 0, 0, .55); filter: blur(2px); z-index: -1; animation: shadow 1.05s .25s both; }
@keyframes shadow { 0% { transform: scale(.3); opacity: 0; } 55% { transform: scale(1.1); opacity: 1; } 100% { transform: none; opacity: 1; } }


/* pixel character base */
.miri { width: 100%; height: auto; overflow: visible; stroke: none; fill: initial; flex: none; }
.miri path { stroke: none; }
.miri .pz { display: none; }
.miri .pz:first-child { display: inline; }
.miri .e { display: none; }
.miri .e-idle { display: inline; animation: eyeOpen 4.6s infinite; }
.miri .e-blink { display: inline; opacity: 0; animation: eyeBlink 4.6s infinite; }
@keyframes eyeOpen { 0%, 90%, 96%, 100% { opacity: 1; } 91%, 95% { opacity: 0; } }
@keyframes eyeBlink { 0%, 90%, 96%, 100% { opacity: 0; } 91%, 95% { opacity: 1; } }
/* hero: JS-driven pose show (see app.js SCENES) */
.m-hero.js .pz { display: none !important; }
.m-hero.js .pz.on { display: inline !important; }
.m-hero[data-eyes="happy"] .e-idle, .m-hero[data-eyes="happy"] .e-blink { display: none; }
.m-hero[data-eyes="happy"] .e-happy { display: inline; }
.miri-bob.poof { animation: poof .42s var(--spring); }
@keyframes poof { 0% { transform: scale(.55, 1.25); } 45% { transform: scale(1.14, .86); } 100% { transform: none; } }
.miri-bob.hop { animation: hop .7s var(--ease); }
@keyframes hop { 0% { transform: none; } 20% { transform: scale(1.12, .86); } 50% { transform: translateY(-16%) scale(.95, 1.06); } 80% { transform: scale(1.08, .92); } 100% { transform: none; } }
.shout { position: absolute; right: 2%; top: 4%; font-weight: 900; font-size: 18px; letter-spacing: -0.02em; color: var(--pink); transform: scale(.4) rotate(-8deg); opacity: 0; transition: transform .35s var(--spring), opacity .2s; pointer-events: none; }
.shout.on { opacity: 1; transform: rotate(-8deg); animation: shout .5s .35s steps(2, jump-none) infinite alternate; }
@media (min-width: 900px) { .shout { font-size: 24px; } }
@keyframes shout { to { transform: rotate(-8deg) translateY(-3px); } }
.puff { position: absolute; z-index: 2; left: 50%; bottom: 30%; width: 8px; height: 8px; margin-left: -4px; background: var(--pink-2); pointer-events: none; opacity: 0; }
.puff.go { animation: puff .5s var(--ease) forwards; }
@keyframes puff { 0% { opacity: 1; transform: translate(0, 0) scale(1); } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.4); } }

/* sitting 미리: slow leg swing (a → b → c → b), tiny details */
.m-sit .pz { display: none; }
.m-sit .pz-sit2 { display: inline; }
.m-sit .pz-sit, .m-sit .pz-sit3 { display: inline; opacity: 0; }
.m-sit .pz-sit { animation: legA 2.8s infinite step-end; }
.m-sit .pz-sit2 { animation: legB 2.8s infinite step-end; }
.m-sit .pz-sit3 { animation: legC 2.8s infinite step-end; }
@keyframes legA { 0% { opacity: 1; } 25% { opacity: 0; } }
@keyframes legB { 0% { opacity: 0; } 25% { opacity: 1; } 50% { opacity: 0; } 75% { opacity: 1; } }
@keyframes legC { 0% { opacity: 0; } 50% { opacity: 1; } 75% { opacity: 0; } }
/* eyes glance sideways now and then */
.m-sit .e-idle { animation: eyeOpen 4.6s infinite, glanceOff 11s 3s infinite step-end; }
.m-sit .e-look { display: inline; opacity: 0; animation: glanceOn 11s 3s infinite step-end; }
@keyframes glanceOff { 0% { visibility: visible; } 60% { visibility: hidden; } 72% { visibility: visible; } }
@keyframes glanceOn { 0% { opacity: 0; } 60% { opacity: 1; } 72% { opacity: 0; } }
/* footer 미리 smiles when you hover the follow button */
.foot:has(.foot-cta .btn:hover) .m-sit .e-idle, .foot:has(.foot-cta .btn:hover) .m-sit .e-blink, .foot:has(.foot-cta .btn:hover) .m-sit .e-look { display: none; }
.foot:has(.foot-cta .btn:hover) .m-sit .e-happy { display: inline; }
/* tiny 미리 sitting on the featured card */
.feat-wrap { position: relative; }
.feat-miri { position: absolute; z-index: 2; right: 26px; top: -41px; width: 44px; pointer-events: none; }
@media (min-width: 820px) { .feat-miri { right: 40px; width: 52px; top: -49px; } }
.feat-wrap:has(a:hover) .m-tiny .e-idle, .feat-wrap:has(a:hover) .m-tiny .e-blink, .feat-wrap:has(a:hover) .m-tiny .e-look { display: none; }
.feat-wrap:has(a:hover) .m-tiny .e-happy { display: inline; }
/* melt wobble, toast hop */
.m-melt { animation: wobble 2.4s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes wobble { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.06, .92); } }
.toast.on .m-toast { animation: thop .5s var(--spring); }
@keyframes thop { 0% { transform: translateY(6px) scale(1.2, .7); } 60% { transform: translateY(-4px); } 100% { transform: none; } }

/* recipe cover peek */
.cover-fig { position: relative; padding-top: 44px; justify-self: center; width: 100%; max-width: 460px; }
.cover-fig:has(.wide) { max-width: 640px; }
.cover-fig .cover-media { position: relative; z-index: 1; }
.peek .e-idle { animation: eyeOpen 4.6s infinite, glanceOff 9s 2s infinite step-end; }
.peek .e-look { display: inline; opacity: 0; animation: glanceOn 9s 2s infinite step-end; }
.peek { position: absolute; z-index: 0; right: 30px; top: 4px; width: 64px; animation: peek 7s 1.5s var(--ease) infinite both; }
@keyframes peek { 0%, 100% { transform: translateY(70%); } 12%, 58% { transform: translateY(0); } 70% { transform: translateY(70%); } }
/* footer sit, empty & 404 melt, toast */
.foot-top { position: relative; }
.foot-miri { position: absolute; right: 0; top: -113px; width: 84px; }
@media (min-width: 720px) { .foot-miri { width: 104px; top: -126px; right: 6%; } }
.m-melt { width: 120px; margin: 0 auto 10px; }
.empty { text-align: center; color: var(--dim); padding: 40px 0 10px; }
.empty p { margin: 0; font-size: var(--fs-sm); }
.empty b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 4px; }
.m-nf { width: 150px; margin-bottom: 10px; }
.m-toast { width: 22px; flex: none; }
.toast { display: flex; align-items: center; gap: 10px; }

.how { padding-top: 22px; }
.how ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-block: 1px solid var(--line); }
.how li { display: flex; align-items: center; gap: 14px; padding: 14px 2px; }
.how li + li { border-top: 1px solid var(--line); }
.how li > span { flex: none; font-family: var(--mono); font-size: 12.5px; font-weight: 600; color: var(--pink); width: 22px; }
.how b { font-size: 15.5px; letter-spacing: -0.02em; margin-right: 8px; }
.how small { color: var(--dim); font-size: 13px; }
@media (min-width: 720px) {
  .how ol { grid-template-columns: repeat(3, 1fr); }
  .how li { padding: 18px 4px; } .how li + li { border-top: 0; border-left: 1px solid var(--line); padding-left: 20px; }
  .how li div { display: flex; flex-direction: column; } .how b { font-size: 16px; }
}

.latest { padding-top: 48px; }
.all { padding-top: 56px; }
.tools-row { display: flex; flex-direction: column; gap: 12px; margin-bottom: 22px; }
@media (min-width: 820px) { .tools-row { flex-direction: row; align-items: center; justify-content: space-between; } }
.search { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-2); color: var(--dim); transition: border-color .2s; }
.search:focus-within { border-color: var(--pink); color: var(--ink); }
.search input { flex: 1; min-width: 0; height: 100%; background: transparent; border: 0; outline: 0; color: var(--ink); font: inherit; font-size: 16px; }
.search input::placeholder { color: var(--dim-2); }
@media (min-width: 820px) { .search { width: 360px; } }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); font-weight: 700; font-size: 14px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.chip b { font-weight: 600; color: var(--dim); font-size: 12.5px; }
.chip.on { background: var(--ink); border-color: var(--ink); color: #111; }
.chip.on b { color: #666; }

/* ---------- cards ---------- */
.cards { list-style: none; margin: 0; padding: 0; }
.cards.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
@media (min-width: 720px) { .cards.grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 20px; } }
@media (min-width: 1040px) { .cards.grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card a { display: block; text-decoration: none; color: inherit; -webkit-tap-highlight-color: transparent; }
.card-media { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; background: var(--surface); }
.card-media video { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card a:hover .card-media video { transform: scale(1.04); }
.card-media::after { content: ""; position: absolute; inset: auto 0 0; height: 45%; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); pointer-events: none; }
.card-no { position: absolute; left: 12px; bottom: 8px; z-index: 1; font-family: var(--serif); font-size: 34px; line-height: 1; color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .5); }
.card-no i { font-size: 18px; margin-right: 1px; opacity: .85; }
.new { position: absolute; top: 10px; left: 10px; z-index: 1; height: 24px; padding: 0 9px; border-radius: 999px; background: var(--pink); color: #fff; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; display: inline-flex; align-items: center; }
.card-body { padding-top: 12px; }
.card-kick { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--dim); }
.card h3 { margin: 8px 0 4px; font-size: 16.5px; line-height: 1.38; font-weight: 750; letter-spacing: -0.03em; }
.card p { margin: 0; color: var(--dim); font-size: 13.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card[hidden] { display: none; }
@media (min-width: 720px) { .card h3 { font-size: 18px; } .card p { font-size: 14.5px; } }

/* featured */
.cards.one .card a { display: grid; gap: 18px; padding: 12px; border-radius: calc(var(--r) + 8px); background: var(--surface); border: 1px solid var(--line); }
.cards.one .card-media { aspect-ratio: 4 / 4.2; }
.cards.one .card-body { padding: 4px 6px 8px; }
.cards.one h3 { font-size: var(--fs-h2); line-height: 1.3; letter-spacing: -0.03em; margin-top: 12px; }
.cards.one p { font-size: 15.5px; -webkit-line-clamp: 3; }
.cards.one .card-no { font-size: 48px; }
.card-go { display: inline-flex; align-items: center; gap: 4px; margin-top: 18px; color: var(--pink); font-weight: 800; font-size: 15px; }
.card-go svg { width: 18px; height: 18px; }
@media (min-width: 820px) { .cards.one .card a { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 36px; padding: 16px; } .cards.one .card-media { aspect-ratio: 4 / 3.4; } }

/* rail (more recipes) */
.cards.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 62%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); scrollbar-width: none; }
.cards.rail::-webkit-scrollbar { display: none; }
.cards.rail .card { scroll-snap-align: start; }
@media (min-width: 720px) { .cards.rail { grid-auto-columns: 30%; } }
@media (min-width: 1040px) { .cards.rail { grid-auto-columns: 23%; } }

/* ---------- recipe cover ---------- */
.cover { display: grid; gap: 26px; padding-block: 28px 10px; }
@media (min-width: 900px) { .cover { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 56px; padding-block: 56px 20px; } }
.kicker { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; color: var(--dim); font-size: 13.5px; }
.kicker .serif { color: var(--pink); font-size: 30px; line-height: 1; }
.cover h1 { margin: 14px 0 0; font-size: var(--fs-h1); line-height: 1.22; font-weight: 800; letter-spacing: -0.035em; text-wrap: balance; }
.lede { margin: 16px 0 0; color: var(--ink-2); font-size: var(--fs-lede); line-height: 1.7; max-width: 34em; }
.facts { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.facts li { padding: 14px 4px 14px 0; display: flex; flex-direction: column; gap: 2px; }
.facts li + li { padding-left: 14px; border-left: 1px solid var(--line); }
.facts b { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.1; color: var(--ink); }
.facts span { font-size: 12.5px; color: var(--dim); }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.cover-media { position: relative; margin: 0; border-radius: calc(var(--r) + 4px); overflow: hidden; background: var(--surface); width: 100%; box-shadow: 0 30px 80px -40px rgba(255, 59, 160, .35); }
.cover-media.tall { aspect-ratio: 4 / 5; }
.cover-media.wide { aspect-ratio: 16 / 10; }
.cover-media.stack { aspect-ratio: 640 / 722; }
.cover-media video { width: 100%; height: 100%; object-fit: cover; }
.tag { position: absolute; left: 10px; bottom: 10px; z-index: 1; height: 28px; display: inline-flex; align-items: center; padding: 0 11px; border-radius: 999px; background: rgba(0, 0, 0, .58); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: 0; max-width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- toc (sticky) ---------- */
.toc { position: sticky; top: var(--bar); z-index: 30; background: rgba(11, 11, 12, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); margin-top: 26px; }
.toc-in { display: flex; align-items: center; gap: 10px; height: 54px; }
.toc-links { flex: 1; min-width: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.toc-links::-webkit-scrollbar { display: none; }
.toc-links a { flex: none; height: 36px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; color: var(--dim); text-decoration: none; font-size: 14px; font-weight: 700; transition: background .2s, color .2s; }
.toc-links a.on { background: var(--ink); color: #111; }
.toc-prog { flex: none; display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--dim); }
.toc-prog i { width: 54px; height: 6px; border-radius: 6px; background: var(--surface-3); position: relative; overflow: hidden; }
.toc-prog i::after { content: ""; position: absolute; inset: 0; width: var(--p, 0%); background: var(--mint); border-radius: 6px; transition: width .3s var(--ease); }
.toc-prog b { font-weight: 700; color: var(--ink-2); min-width: 28px; }

/* ---------- steps ---------- */
.step { display: grid; gap: 20px; padding-block: 26px 34px; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: 0; }
@media (min-width: 860px) {
  .step { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 48px; align-items: start; padding-block: 40px; }
  .step.rev .step-media { order: 2; }
  .step.wide { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
}
.step-media { position: relative; margin: 0; border-radius: var(--r); overflow: hidden; background: var(--surface); width: 100%; }
.step-media.tall { aspect-ratio: 4 / 5; max-width: 440px; }
.step-media.wide { aspect-ratio: 16 / 9; }
.step-media.stack { aspect-ratio: 640 / 722; max-width: 460px; }
.step-media video { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 860px) { .step-media { position: sticky; top: calc(var(--bar) + 74px); } }
.step-no { display: flex; align-items: center; gap: 10px; }
.step-no .serif { font-size: 44px; line-height: .9; color: var(--pink); }
.step-txt h3 { margin: 10px 0 0; font-size: var(--fs-h3); line-height: 1.35; font-weight: 800; letter-spacing: -0.03em; text-wrap: balance; }
.step-txt > p { margin: 12px 0 0; color: var(--ink-2); font-size: 16px; }
.step-txt > p b { color: var(--ink); background: linear-gradient(transparent 62%, rgba(255, 59, 160, .35) 0); }
.pts { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.pts li { position: relative; padding-left: 30px; color: var(--ink-2); font-size: 16px; line-height: 1.65; }
.pts li::before { content: ""; position: absolute; left: 2px; top: .52em; width: 16px; height: 16px; border-radius: 50%; background: var(--pink-soft); box-shadow: inset 0 0 0 1.5px var(--pink-line); }
.pts li.has-prompt { padding-left: 0; }
.pts li.has-prompt::before { display: none; }
.done-btn { margin-top: 20px; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 12px; border: 1px dashed var(--line-2); background: transparent; color: var(--dim); font-weight: 700; font-size: 14px; cursor: pointer; transition: all .2s; }
.done-btn svg { width: 18px; height: 18px; opacity: .5; }
.done-btn[aria-pressed="true"] { border-style: solid; border-color: rgba(79, 227, 180, .5); background: rgba(79, 227, 180, .1); color: var(--mint); }
.done-btn[aria-pressed="true"] svg { opacity: 1; }

.vs { display: flex; gap: 12px; align-items: baseline; margin-top: 14px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--surface); font-size: 15px; color: var(--dim); }
.vs.pro { background: var(--pink-soft); color: var(--ink); }
.vs .lab { flex: none; font-size: 12px; font-weight: 800; letter-spacing: .02em; color: var(--dim-2); width: 30px; }
.vs.pro .lab { color: var(--pink-2); }
.go { margin-top: 18px; }
.go svg { width: 16px; height: 16px; }

/* ---------- prompts ---------- */
.prompt { margin-top: 16px; border-radius: var(--r-sm); background: #0f0f12; border: 1px solid var(--line-2); overflow: hidden; }
.prompt-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 6px 6px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.prompt-h > span { font-size: 12.5px; color: var(--dim); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prompt pre { margin: 0; padding: 14px 16px 16px; white-space: pre-wrap; word-break: break-word; font-family: var(--mono); font-size: 14px; line-height: 1.7; color: #f2eef0; letter-spacing: -0.01em; }
.prompt pre code { font-family: inherit; }
.prompt .k { color: var(--pink-2); font-weight: 600; }
.prompt .ko { color: var(--dim); font-family: var(--sans); }
.prompt.big pre { max-height: 420px; overflow: auto; }
.copy { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 10px; border: 0; background: var(--pink); color: #fff; font-weight: 700; font-size: 13.5px; cursor: pointer; transition: background .2s, transform .15s; }
.copy:active { transform: scale(.96); }
.copy svg { width: 16px; height: 16px; }
.copy.done { background: var(--mint); color: #062; }
.tip { color: var(--dim); font-size: 14px; margin-top: 14px; }

/* ingredients (quick copy rows) */
.ings { display: grid; gap: 10px; }
@media (min-width: 860px) { .ings { grid-template-columns: 1fr 1fr; } .ing-who { grid-column: 1 / -1; } }
.ing-who { margin-top: 12px; font-size: 13.5px; font-weight: 800; color: var(--ink-2); }
.ing-who span { font-weight: 500; color: var(--dim); }
.ing { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 12px 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); cursor: pointer; transition: border-color .2s, background .2s; }
.ing:hover { border-color: var(--pink-line); }
.ing .n { flex: none; font-family: var(--serif); font-size: 26px; color: var(--pink); width: 32px; line-height: 1; }
.ing-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ing-t small { font-size: 13px; color: var(--dim); font-weight: 600; }
.ing-t code { font-family: var(--mono); font-size: 13.5px; line-height: 1.55; color: var(--ink); white-space: pre-wrap; }
.ing .c { flex: none; display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 10px; border-radius: 10px; background: var(--pink-soft); color: var(--pink-2); font-size: 12.5px; font-weight: 700; }
.ing .c svg { width: 15px; height: 15px; }
.ing .c em { font-style: normal; }
.ing.done .c { background: rgba(79, 227, 180, .14); color: var(--mint); }
.src { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--surface-2); }
.src b { display: block; font-size: 15px; }
.src span { font-size: 13px; color: var(--dim); }
.src a { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; font-weight: 700; color: var(--pink-2); text-decoration: none; }
.src a svg { width: 15px; height: 15px; }

/* tools index */
.tidxs { display: grid; gap: 8px; }
@media (min-width: 720px) { .tidxs { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .tidxs { grid-template-columns: 1fr 1fr 1fr; } }
.tidx { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: border-color .2s; }
.tidx:hover { border-color: var(--pink-line); }
.tidx .n { font-family: var(--serif); font-size: 24px; color: var(--pink); width: 30px; }
.tidx-t { flex: 1; display: flex; flex-direction: column; line-height: 1.35; }
.tidx-t small { color: var(--dim); font-size: 12.5px; }
.tidx-t b { font-size: 15.5px; }
.tidx svg { color: var(--dim-2); width: 18px; height: 18px; }

/* table, alts, tips, notes */
.table { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.prow { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 15px 18px; background: var(--surface); }
.prow + .prow { border-top: 1px solid var(--line); }
.prow span { font-family: var(--mono); color: var(--dim); font-size: 14px; flex: none; }
.prow b { text-align: right; font-size: 15.5px; font-weight: 700; }
.sub3 { margin: 30px 0 12px; font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.alts { display: grid; gap: 10px; }
@media (min-width: 720px) { .alts { grid-template-columns: 1fr 1fr; } }
.alt { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: border-color .2s; }
.alt:hover { border-color: var(--pink-line); }
.alt img { width: 48px; height: 48px; border-radius: 12px; }
.alt div { flex: 1; display: flex; flex-direction: column; line-height: 1.45; }
.alt b { font-size: 16px; }
.alt span { color: var(--dim); font-size: 13.5px; }
.alt svg { color: var(--dim-2); width: 18px; height: 18px; }
.tips { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.tips li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--r); background: var(--surface); }
.tips li > span { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--pink); color: #fff; font-weight: 800; font-size: 14px; margin-top: 1px; }
.tips p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.notes { list-style: none; margin-top: 40px; display: grid; gap: 6px; }
.notes li { position: relative; padding-left: 18px; color: var(--dim); font-size: 13.5px; line-height: 1.6; }
.notes li::before { content: "※"; position: absolute; left: 0; color: var(--dim-2); }

/* share band + prev/next */
.share-band { margin-top: 48px; display: flex; flex-direction: column; gap: 16px; padding: 22px; border-radius: calc(var(--r) + 6px); background: linear-gradient(135deg, rgba(255, 59, 160, .16), rgba(255, 59, 160, .04)); border: 1px solid var(--pink-line); }
.share-band b { display: block; font-size: 19px; letter-spacing: -0.03em; }
.share-band span { color: var(--ink-2); font-size: 14px; }
.share-band .ctas { margin: 0; }
@media (min-width: 820px) { .share-band { flex-direction: row; align-items: center; justify-content: space-between; padding: 26px 30px; } }
.pns { display: grid; gap: 10px; margin-bottom: 44px; }
@media (min-width: 720px) { .pns { grid-template-columns: 1fr 1fr; } .pn.next { text-align: right; grid-column: 2; } .pn.next small { justify-content: flex-end; } }
.pn { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: border-color .2s; }
.pn:hover { border-color: var(--line-2); }
.pn small { display: flex; align-items: center; gap: 4px; color: var(--dim); font-size: 12.5px; font-weight: 600; }
.pn small svg { width: 15px; height: 15px; }
.pn b { font-size: 15.5px; line-height: 1.4; letter-spacing: -0.02em; }
.more { padding-top: 44px; }

/* floating prompt shortcut (mobile) */
.fab { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: flex; justify-content: center; padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom)); pointer-events: none; transform: translateY(120%); transition: transform .35s var(--ease); }
.fab.on { transform: none; }
.fab-btn { pointer-events: auto; display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 22px; border-radius: 999px; background: var(--pink); color: #fff; font-weight: 800; font-size: 15px; text-decoration: none; box-shadow: 0 14px 34px -10px rgba(255, 59, 160, .8), 0 0 0 1px rgba(255, 255, 255, .08) inset; }
.fab-btn svg { width: 18px; height: 18px; }
@media (min-width: 1040px) { .fab { justify-content: flex-end; } }
.totop { position: fixed; right: 16px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 34; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(27, 27, 31, .9); backdrop-filter: blur(10px); color: var(--ink); display: grid; place-items: center; cursor: pointer; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .25s, transform .25s; }
.totop.on { opacity: 1; transform: none; pointer-events: auto; }
.p-home .totop { bottom: calc(20px + env(safe-area-inset-bottom)); }

/* footer */
.foot { margin-top: 80px; padding-block: 56px calc(100px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: linear-gradient(180deg, transparent, rgba(255, 59, 160, .05)); }
.foot-top img { width: 34px; height: auto; }
.foot-big { margin: 18px 0 0; font-size: var(--fs-h2); line-height: 1.35; font-weight: 800; letter-spacing: -0.03em; }
.foot-big a { display: inline-flex; align-items: center; gap: .28em; margin-top: 4px; font-family: var(--sans); font-style: normal; font-weight: 800; letter-spacing: -0.025em; text-decoration: none; background: linear-gradient(92deg, #ff3ba0 0%, #ff7ac4 55%, #ffb3dc 100%); -webkit-background-clip: text; background-clip: text; color: transparent; transition: filter .2s; }
.foot-big a:hover { filter: brightness(1.15); }
.foot-big a svg { width: .9em; height: .9em; color: var(--pink); stroke-width: 2.2; }
.foot-sub { margin: 12px 0 0; color: var(--dim); font-size: 14.5px; max-width: 34em; }
.foot-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.foot-legal { margin: 40px 0 0; color: var(--dim-2); font-size: 12px; line-height: 1.7; }
.foot-legal a { color: var(--dim); font-weight: 600; text-decoration: none; }
.foot-legal a:hover { color: var(--pink-2); }

/* toast */
.toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 60; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; padding: 12px 18px; border-radius: 14px; background: #fff; color: #111; font-weight: 700; font-size: 14.5px; box-shadow: 0 14px 40px -12px rgba(0, 0, 0, .6); transition: opacity .25s, transform .25s var(--ease); white-space: nowrap; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* 404 */
.nf { padding-block: 90px 40px; text-align: center; }
.nf-big { font-size: 88px; line-height: 1; color: var(--pink); margin: 0; }
.nf h1 { margin: 10px 0; font-size: 28px; }
.nf p { color: var(--dim); }

/* entrance */
.rise { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.rise.in { opacity: 1; transform: none; }
