/* ============================================================
   NOVO — Recipes design system (extends tokens.css)
   Building blocks reused by both the exploration canvas and the
   final recipe pages: signature colour field + line-art glass,
   fizz meter, meta, ingredients, steps, tips — plus index and
   detail layout treatments (A/B/C).
   ============================================================ */

/* ---------- Signature colour field + line-art glass ---------- */
.r-field {
  position: relative; overflow: hidden;
  background: var(--field, var(--nova-paper));
  color: var(--field-ink, rgba(17,17,17,0.62));
  display: flex; align-items: flex-end; justify-content: center;
}
.r-field::after { /* soft floor shadow under the glass */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 38%;
  background: linear-gradient(180deg, transparent, color-mix(in oklch, var(--field-ink, #111) 12%, transparent));
  pointer-events: none;
}
.r-glass { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: center; }
.r-glass svg { display: block; height: 100%; width: auto; }
.r-glass .liquid { fill: var(--liquid, rgba(216,199,170,0.55)); }
.r-glass .glass-line { stroke: currentColor; }
.r-glass .bub { fill: color-mix(in oklch, #fff 55%, var(--liquid, #ccc)); opacity: 0; animation: r-bub 3.4s ease-in infinite; }
.r-glass .bub:nth-child(odd) { animation-duration: 4.1s; }
.r-glass .bub:nth-child(3n) { animation-delay: 1.1s; }
.r-glass .bub:nth-child(3n+1) { animation-delay: 2.2s; }
@keyframes r-bub {
  0% { transform: translateY(0); opacity: 0; }
  18% { opacity: .85; }
  100% { transform: translateY(-46px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .r-glass .bub { animation: none; opacity: .5; } }

/* ---------- Fizz meter ---------- */
.fizz { display: inline-flex; align-items: center; gap: 5px; }
.fizz i { width: 7px; height: 7px; border-radius: 50%; background: var(--nova-line); display: block; }
.fizz i.on { background: var(--nova-champagne-deep); }

/* ---------- Category / kicker ---------- */
.r-cat {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--nova-muted);
}
.r-name {
  font-family: var(--font-display); font-weight: 300; letter-spacing: -0.035em;
  line-height: 0.98; margin: 0; color: var(--surface-ink); text-wrap: balance;
}
.r-name em { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; }
.r-tag {
  font-family: var(--font-serif); font-style: italic; font-size: 18px;
  color: var(--nova-muted); margin: 0; text-wrap: pretty;
}

/* ---------- Meta strip ---------- */
.r-meta { display: flex; flex-wrap: wrap; gap: 28px 40px; }
.r-meta > div { display: flex; flex-direction: column; gap: 6px; }
.r-meta .m-label {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--nova-faint);
}
.r-meta .m-value { font-size: 14px; color: var(--surface-ink); display: flex; align-items: center; gap: 8px; }

/* ---------- Ingredients ---------- */
.r-ing-title, .r-block-title {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--nova-muted); margin: 0 0 16px;
}
.r-ing { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--nova-line); }
.r-ing li {
  display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: baseline;
  padding: 13px 0; border-bottom: 1px solid var(--nova-line-soft);
}
.r-ing .amt {
  font-family: var(--font-mono); font-size: 12.5px; color: var(--nova-champagne-deep);
  letter-spacing: 0.02em; white-space: nowrap;
}
.r-ing .item { font-size: 15px; color: var(--surface-ink); line-height: 1.4; }
.r-ing .item small { display: block; font-size: 12.5px; color: var(--nova-muted); margin-top: 2px; }

/* ---------- Steps ---------- */
.r-steps { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.r-steps li {
  counter-increment: step; position: relative; padding: 0 0 26px 56px;
}
.r-steps li:last-child { padding-bottom: 0; }
.r-steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: -2px;
  font-family: var(--font-mono); font-size: 13px; color: var(--nova-champagne-deep);
}
.r-steps li::after { /* connector line */
  content: ""; position: absolute; left: 8px; top: 18px; bottom: 8px; width: 1px;
  background: var(--nova-line);
}
.r-steps li:last-child::after { display: none; }
.r-steps .s-head {
  font-family: var(--font-display); font-size: 16px; font-weight: 600;
  letter-spacing: -0.01em; margin: 0 0 5px; color: var(--surface-ink);
}
.r-steps .s-body { font-size: 15px; line-height: 1.6; color: var(--nova-ink); margin: 0; }

/* ---------- Note / NOVO tie-in callout ---------- */
.r-note { position: relative; border: 1px solid var(--nova-line); background: var(--surface-1); padding: 22px 24px; }
.r-note::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--nova-champagne-deep); }
.r-note .n-label {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--nova-muted); margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.r-note p { font-size: 14.5px; line-height: 1.6; color: var(--nova-ink); margin: 0; }
.r-note .n-label svg { width: 14px; height: 14px; color: var(--nova-champagne-deep); }

/* ---------- Page shells (final recipe pages) ---------- */
.rcp-shell { padding-top: clamp(92px, 11vw, 124px); background: var(--surface-0); }
.rcp-wrap { max-width: 1140px; margin: 0 auto; padding-inline: var(--gutter); }
.rcp-section { padding-block: clamp(44px, 6vw, 76px); }

/* Cards as links */
a.ix-card { text-decoration: none; color: inherit; transition: background .2s; }
a.ix-card .r-field, .ix-card .r-field { transition: none; }
a.ix-card .r-glass svg { transition: transform .4s var(--ease, ease); }
a.ix-card:hover .r-glass svg { transform: translateY(-4px); }
a.ix-card:hover .r-name { color: var(--nova-champagne-deep); }
.ix-card .r-name { transition: color .2s; }
.ix-card[hidden] { display: none; }

/* ============================================================
   INDEX — Variant A · Editorial grid
   ============================================================ */
.ixA-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.ixA-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.ixA-chip {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 7px 14px; border: 1px solid var(--nova-line); border-radius: var(--r-pill);
  color: var(--nova-muted); background: var(--surface-0);
}
.ixA-chip.on { background: var(--surface-ink); color: var(--on-ink); border-color: var(--surface-ink); }

.ix-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1px; background: var(--nova-line); border: 1px solid var(--nova-line); }
.ix-card { background: var(--surface-0); display: flex; flex-direction: column; }
.ix-card .r-field { aspect-ratio: 5/4; }
.ix-card .r-glass { height: 76%; }
.ix-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 12px; }
.ix-body .r-name { font-size: 24px; }
.ix-row-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 2px; }
.ix-row-foot .fizz-label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--nova-faint); }

/* ============================================================
   INDEX — Variant B · Editorial list
   ============================================================ */
.ixB-list { border-top: 1px solid var(--nova-line); }
.ix-rowB {
  display: grid; grid-template-columns: 52px minmax(0,1fr) 150px 120px 96px; gap: 28px; align-items: center;
  padding: 22px 0; border-bottom: 1px solid var(--nova-line);
}
.ix-rowB .num { font-family: var(--font-mono); font-size: 13px; color: var(--nova-champagne-deep); letter-spacing: 0.04em; }
.ix-rowB .nm { display: flex; flex-direction: column; gap: 4px; }
.ix-rowB .nm .r-name { font-size: 26px; }
.ix-rowB .nm .r-tag { font-size: 15px; }
.ix-rowB .cat { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--nova-muted); }
.ix-rowB .fz { display: flex; flex-direction: column; gap: 6px; }
.ix-rowB .fz .fizz-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; color: var(--nova-faint); text-transform: uppercase; }
.ix-rowB .thumb { width: 96px; height: 96px; }
.ix-rowB .thumb .r-glass { height: 82%; }

/* ============================================================
   INDEX — Variant C · Featured + grid
   ============================================================ */
.ixC-feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1px; background: var(--nova-line); border: 1px solid var(--nova-line); margin-bottom: 1px; }
.ixC-feature .r-field { min-height: 380px; }
.ixC-feature .r-glass { height: 74%; }
.ixC-feature .feat-body { background: var(--surface-0); padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.ixC-feature .feat-tag-row { display: flex; align-items: center; gap: 12px; }
.ixC-feature .feat-pill { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; background: var(--nova-champagne); color: var(--nova-black); padding: 4px 9px; }
.ixC-feature .r-name { font-size: clamp(34px, 4vw, 52px); }
.ixC-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1px; background: var(--nova-line); border: 1px solid var(--nova-line); border-top: 0; }

/* ============================================================
   DETAIL — Variant A · Split hero
   ============================================================ */
.dtA-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--nova-line); border: 1px solid var(--nova-line); }
.dtA-hero .r-field { min-height: 460px; }
.dtA-hero .r-glass { height: 78%; }
.dtA-intro { background: var(--surface-0); padding: clamp(32px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.dtA-intro .r-name { font-size: clamp(36px, 4.4vw, 60px); }
.dtA-intro .r-meta { padding-top: 20px; border-top: 1px solid var(--nova-line); }
.dtA-body { display: grid; grid-template-columns: 300px minmax(0,1fr); gap: clamp(40px, 6vw, 80px); padding-top: clamp(40px, 5vw, 64px); }
.dtA-body .dtA-aside { align-self: start; }
@media (max-width: 820px) { .dtA-hero { grid-template-columns: 1fr; } .dtA-body { grid-template-columns: 1fr; gap: 40px; } }

/* ============================================================
   DETAIL — Variant B · Centered editorial
   ============================================================ */
.dtB-hero { position: relative; }
.dtB-hero .r-field { min-height: 440px; }
.dtB-hero .r-glass { height: 80%; }
.dtB-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; gap: 12px; background: linear-gradient(180deg, transparent, color-mix(in oklch, var(--field-ink, #111) 16%, transparent)); }
.dtB-cap .r-name { font-size: clamp(40px, 5.5vw, 76px); }
.dtB-col { max-width: 680px; margin: 0 auto; padding-top: clamp(40px, 5vw, 64px); display: flex; flex-direction: column; gap: 40px; }
.dtB-col .r-meta { justify-content: space-between; padding: 24px 0; border-block: 1px solid var(--nova-line); }
.dtB-ing-block { border: 1px solid var(--nova-line); background: var(--surface-1); padding: clamp(24px, 3vw, 36px); }

/* ============================================================
   DETAIL — Variant C · Magazine
   ============================================================ */
.dtC-top { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: clamp(32px, 5vw, 72px); align-items: end; padding-bottom: clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--nova-line); }
.dtC-top .r-name { font-size: clamp(44px, 6vw, 88px); }
.dtC-top .r-field { width: 300px; height: 300px; }
.dtC-top .r-glass { height: 80%; }
.dtC-body { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: clamp(40px, 6vw, 80px); padding-top: clamp(40px, 5vw, 56px); align-items: start; }
.dtC-body .dtC-side { align-self: start; display: flex; flex-direction: column; gap: 28px; }
.dtC-body .r-steps li { padding-left: 64px; padding-bottom: 32px; }
.dtC-body .r-steps li::before { font-size: 15px; }
.dtC-body .r-steps .s-head { font-size: 18px; }
@media (max-width: 820px) { .dtC-top { grid-template-columns: 1fr; } .dtC-body { grid-template-columns: 1fr; } }
