/* NutriHelper public recipe pages (generated by scripts/site/build_recipes.py).
   Same palette as landing.css (cream, meadow, the icon's emerald and gold), standalone so a visitor from search loads only this small file.
   No external fonts or scripts; strict CSP (style-src 'self'). */
:root {
  color-scheme: light dark;
  --bg: #f6f1e6;
  --bg-2: #ede6d5;
  --card: #fffcf6;
  --text: #1c2a21;
  --muted: #59625a;
  --hair: rgba(52, 64, 44, .13);
  --green: #24663f;
  --leaf: #4f9a5a;
  --t-leaf: #e1ecd3;
  --emerald: #17402d;
  --emerald-2: #1f5239;
  --gold: #a87a1f;
  --cream: #f6f1e6;
  --app-a: #b9d6a4;
  --app-b: #e8d9ae;
  --shadow: 0 1px 2px rgba(70, 55, 20, .05), 0 12px 32px -14px rgba(70, 55, 20, .22);
  --focus: #1d64a8;
  --sky-1: #d5e7ee;
  --sky-2: #eaf1ec;
  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1712;
    --bg-2: #14231b;
    --card: #15241c;
    --text: #edf0e6;
    --muted: #a9b4a6;
    --hair: rgba(225, 236, 214, .11);
    --green: #94d6a6;
    --leaf: #6dbb78;
    --t-leaf: #1b3322;
    --emerald: #143a29;
    --emerald-2: #1b4a34;
    --gold: #e1c27c;
    --app-a: #2c4a33;
    --app-b: #4a4026;
    --shadow: 0 0 0 1px var(--hair), 0 14px 34px -16px rgba(0, 0, 0, .7);
    --focus: #7fb8ec;
    --sky-1: #11242a;
    --sky-2: #0f1d17;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg) linear-gradient(180deg, var(--sky-1) 0, var(--sky-2) 240px, var(--bg) 560px) no-repeat;
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--green); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
h1, h2 { margin: 0; text-wrap: balance; letter-spacing: -.012em; font-family: var(--serif); font-weight: 600; }
p { margin: 0; text-wrap: pretty; }
.wrap { width: 100%; max-width: 880px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 28px; } }
.skip { position: absolute; left: 16px; top: -60px; z-index: 10; background: var(--card); color: var(--text); padding: 10px 16px; border-radius: 12px; box-shadow: var(--shadow); }
.skip:focus { top: 12px; }

/* header */
.top { padding: 14px 0 6px; }
.top .wrap { display: flex; align-items: center; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 18px; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 3px 10px -2px rgba(23, 64, 45, .45); }
@media (prefers-color-scheme: dark) { .brand-mark { box-shadow: 0 0 0 1px rgba(233, 207, 143, .22); } }
.top nav { margin-left: auto; display: flex; gap: 2px; }
.top nav a { color: var(--text); text-decoration: none; font-size: 15px; padding: 8px 10px; border-radius: 999px; white-space: nowrap; }
.top nav a:hover { background: var(--bg-2); }
@media (max-width: 519px) { .top nav .about { display: none; } }

/* breadcrumbs */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; margin: 10px 0 14px; padding: 0; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin: 0 8px; opacity: .6; }
.crumbs a { color: var(--muted); }

main { padding-bottom: 24px; }
h1 { font-size: clamp(30px, 7.6vw, 46px); line-height: 1.08; }
.lead { color: var(--muted); font-size: 18px; margin-top: 12px; max-width: 42em; }

/* photo */
.photo { margin: 22px 0 0; }
.photo img { width: 100%; border-radius: 24px; background: var(--bg-2); box-shadow: var(--shadow); }
.photo figcaption { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.photo figcaption a { color: var(--muted); }

/* nutrition per serving */
.nut { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 20px; background: var(--card); border-radius: 22px; padding: 14px 12px 12px; box-shadow: var(--shadow); text-align: center; }
.nut b { display: block; font-size: 19px; line-height: 1.2; }
.nut span { display: block; font-size: 13px; color: var(--muted); hyphens: auto; -webkit-hyphens: auto; overflow-wrap: normal; }
@media (max-width: 380px) { .nut { gap: 4px; padding-inline: 8px; } .nut span { font-size: 12px; } }
.nut-k b { color: var(--green); }
.nut b { font-family: var(--serif); font-weight: 600; font-size: 21px; }
.nut-note { grid-column: 1 / -1; font-size: 13px; color: var(--muted); border-top: 1px solid var(--hair); padding-top: 8px; }
.times { margin: 4px 0 0; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.times b { color: var(--text); font-weight: 600; }

/* sections */
.block { margin-top: 30px; }
.block h2 { font-size: 26px; margin-bottom: 12px; }
.block h2 small { font-size: 16px; font-weight: 500; color: var(--muted); }
.ing, .steps { background: var(--card); border-radius: 22px; box-shadow: var(--shadow); margin: 0; }
.ing { list-style: none; padding: 6px 18px; }
.ing li { padding: 10px 0; border-bottom: 1px solid var(--hair); }
.ing li:last-child { border-bottom: 0; }
.steps { padding: 14px 18px 14px 44px; }
.steps li { padding: 6px 0 10px 4px; }
.steps li::marker { color: var(--gold); font-weight: 700; }
.base { margin-top: 12px; font-size: 16px; }

/* nutrition facts (computed from the ingredients) */
.facts p { max-width: 42em; }
.nt { width: 100%; margin-top: 14px; border-collapse: separate; border-spacing: 0; background: var(--card); border-radius: 22px; box-shadow: var(--shadow); font-variant-numeric: tabular-nums; overflow: hidden; }
.nt th, .nt td { padding: 10px 14px; text-align: right; border-bottom: 1px solid var(--hair); font-size: 15px; }
.nt th[scope="row"] { text-align: left; font-weight: 500; }
.nt thead th { font-size: 13px; font-weight: 600; color: var(--muted); }
.nt thead small { font-weight: 500; }
.nt tbody tr:last-child th, .nt tbody tr:last-child td { border-bottom: 0; }
.nt tr.sub th { padding-left: 28px; color: var(--muted); }
.nt-note { margin-top: 8px; font-size: 13px; color: var(--muted); }

/* soft call to the app */
.cta { position: relative; overflow: hidden; isolation: isolate; display: flex; gap: 16px; align-items: flex-start; margin-top: 34px; padding: 26px 22px; border-radius: 26px; color: #eef0e4; background: linear-gradient(160deg, var(--emerald-2), var(--emerald) 60%, #10301f); }
.cta::before { content: ""; position: absolute; z-index: -1; right: -120px; top: -160px; width: 400px; height: 400px; border-radius: 50%; background: radial-gradient(closest-side, rgba(217, 180, 94, .3), transparent); }
.cta-mark { width: 52px; height: 52px; border-radius: 13px; flex: none; box-shadow: 0 0 0 1px rgba(233, 207, 143, .3), 0 8px 18px -6px rgba(0, 0, 0, .5); }
.cta h2 { font-size: 24px; color: #f6f1e6; }
.cta p { margin-top: 6px; color: rgba(238, 240, 228, .84); font-size: 16px; }
.btn { display: inline-flex; align-items: center; margin-top: 16px; padding: 10px 20px; border-radius: 15px; background: var(--cream); color: #15392a; text-decoration: none; box-shadow: 0 12px 26px -12px rgba(0, 0, 0, .55); }
.btn:hover { text-decoration: none; }
/* While the App Store still shows the former name (scripts/site/brand.py STORE_RENAME_PENDING). */
.cta .store-note { margin-top: 10px; font-size: 13.5px; color: rgba(238, 240, 228, .72); }
.btn-text { display: grid; line-height: 1.15; }
.btn-text small { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; opacity: .75; }
.btn-text strong { font-size: 17px; font-weight: 650; }
@media (max-width: 420px) { .cta { flex-direction: column; } }

/* recipe cards */
.grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.rc { display: flex; flex-direction: column; height: 100%; background: var(--card); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); color: var(--text); text-decoration: none; }
.rc:hover .rc-t { text-decoration: underline; }
.rc img, .rc .ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--bg-2); }
.rc .ph { display: block; background: linear-gradient(150deg, color-mix(in srgb, var(--app-a) 28%, var(--card)), color-mix(in srgb, var(--app-b) 30%, var(--card))); }
.rc-t { padding: 10px 12px 2px; font-weight: 600; font-size: 15px; line-height: 1.3; }
.rc-k { padding: 0 12px 12px; font-size: 13px; color: var(--muted); margin-top: auto; }
.more { display: inline-block; margin-top: 14px; font-weight: 600; }

/* categories */
.cats { margin-top: 22px; }
.chips-h { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin: 16px 0 9px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 4px; }
.chip { display: inline-block; padding: 8px 15px; border-radius: 999px; background: var(--card); border: 1px solid var(--hair); color: var(--text); text-decoration: none; font-size: 15px; }
.chip:hover { border-color: var(--leaf); background: var(--t-leaf); }
.chip.on { background: var(--emerald-2); border-color: var(--emerald-2); color: var(--cream); font-weight: 600; }
.cats + .grid { margin-top: 22px; }
.chip .n { color: var(--muted); font-size: 13px; margin-left: 2px; }
.stats { color: var(--muted); font-size: 16px; margin-top: 8px; max-width: 42em; }
.az-h { font-size: 26px; margin: 30px 0 12px; }

/* A–Z list */
.az { list-style: none; padding: 0; margin: 0; columns: 1; column-gap: 28px; }
@media (min-width: 640px) { .az { columns: 2; } }
.az li { break-inside: avoid; padding: 5px 0; font-size: 16px; }
.az span { color: var(--muted); font-size: 13px; white-space: nowrap; }

/* footer */
footer { padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.langs { margin-bottom: 16px; }
.langs a { margin-right: 10px; white-space: nowrap; }
.disclaimer { max-width: 52em; margin-bottom: 18px; }
.foot { display: grid; gap: 12px; border-top: 1px solid var(--hair); padding-top: 18px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot a { color: var(--text); }
.tm { font-size: 13px; }

@media print { .top nav, .cta, .related, footer .langs { display: none; } body { background: #fff; color: #000; } }
