/* Home page: recipes, cocktails, and a window onto the map. */
:root {
  --bg: #1e1e23; --card: #2a2a31; --ink: #f5f5f7; --muted: #a8a8b1;
  --line: rgba(255, 255, 255, .13); --fill: rgba(255, 255, 255, .1); --seg-on: #4c4c55;
  --blue: #2e9bff; --food: #ff6b2c; --drink: #6e6ee0;
  --shadow: 0 0 0 .5px rgba(255, 255, 255, .1), 0 12px 40px rgba(0, 0, 0, .5);
  --soft: 0 0 0 .5px rgba(255, 255, 255, .06), 0 4px 16px rgba(0, 0, 0, .35);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", Inter, "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; letter-spacing: -.01em; }
body.h-lock { overflow: hidden; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.h-wrap { max-width: 1120px; margin: 0 auto; padding: 0 max(24px, env(safe-area-inset-left, 0px)); }

/* ---------- top bar ---------- */
.h-nav { position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px max(24px, env(safe-area-inset-left, 0px)); background: rgba(30, 30, 35, .78); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%); border-bottom: .5px solid var(--line); }
.h-brand { font-weight: 700; letter-spacing: -.02em; text-decoration: none; }
.h-nav nav { display: flex; gap: 22px; font-size: 14px; }
.h-nav nav a { color: var(--muted); text-decoration: none; }
.h-nav nav a:hover { color: var(--ink); }

/* ---------- hero ---------- */
.h-hero { max-width: 1120px; margin: 0 auto; padding: clamp(40px, 8vw, 104px) max(24px, env(safe-area-inset-left, 0px)) 24px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 64px); align-items: center; background: radial-gradient(50% 60% at 20% 30%, rgba(255, 107, 44, .14), transparent 70%); }
.h-eyebrow { margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.h-hero h1 { margin: 0; font-size: clamp(54px, 9vw, 108px); line-height: .96; font-weight: 700; letter-spacing: -.05em; }
.h-lede { margin: 22px 0 0; max-width: 30ch; font-size: clamp(18px, 2.1vw, 23px); line-height: 1.35; color: var(--muted); letter-spacing: -.015em; text-wrap: balance; }
.h-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.h-btn { display: inline-block; border: 0; background: var(--blue); color: #fff; padding: 13px 24px; border-radius: 999px; font-size: 16px; font-weight: 600; text-decoration: none; }
.h-btn:hover { filter: brightness(1.08); }
.h-btn.ghost { background: var(--fill); color: var(--ink); }
.h-feature .h-card { box-shadow: var(--shadow); }

/* ---------- sections ---------- */
.h-section { padding: clamp(48px, 7vw, 88px) 0; }
.h-kicker { margin: 0 0 10px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.h-title { margin: 0; font-size: clamp(30px, 4.4vw, 46px); line-height: 1.08; font-weight: 700; letter-spacing: -.035em; }
.h-sub { margin: 10px 0 0; color: var(--muted); font-size: 16px; }
.h-filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 26px 0 12px; }
.h-seg { display: flex; gap: 2px; padding: 2px; background: var(--fill); border-radius: 11px; }
.h-seg button { border: 0; background: transparent; padding: 8px 16px; border-radius: 9px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.h-seg button[aria-pressed="true"] { background: var(--seg-on); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.h-seg small { color: var(--muted); font-weight: 400; margin-left: 4px; font-variant-numeric: tabular-nums; }
.h-searchbox { position: relative; flex: 1 1 240px; max-width: 420px; }
.h-searchbox svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 2.2; stroke-linecap: round; pointer-events: none; }
.h-searchbox input { width: 100%; border: 0; background: var(--fill); border-radius: 11px; padding: 10px 12px 10px 36px; font-size: 15px; }
.h-searchbox input::placeholder { color: var(--muted); }
.h-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 26px; min-height: 34px; }
.h-tag { border: 0; background: var(--fill); border-radius: 999px; padding: 6px 13px; font-size: 13px; font-weight: 500; }
.h-tag:hover { background: var(--line); }
.h-tag[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* ---------- recipe cards ---------- */
.h-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.h-card { display: flex; flex-direction: column; width: 100%; padding: 0; border: 0; text-align: left; background: var(--card); border-radius: 22px; overflow: hidden; box-shadow: var(--soft); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.h-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.h-card.big { grid-column: span 2; }
.h-card.big .h-cover { aspect-ratio: 16 / 8; }
.h-cover { position: relative; aspect-ratio: 4 / 3; overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 28%, #0d0d10)); }
.h-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.h-cover .h-ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .18); }
.h-ico svg { width: 32px; height: 32px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.h-badge { position: absolute; top: 12px; left: 12px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
.h-body { padding: 16px 18px 20px; display: grid; gap: 4px; }
.h-kind { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--c); }
.h-ctitle { margin: 0; font-size: 21px; line-height: 1.15; font-weight: 700; letter-spacing: -.025em; }
.h-card.big .h-ctitle { font-size: 28px; }
.h-csum { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.h-cmeta { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.h-empty { color: var(--muted); text-align: center; padding: 40px 0; }

/* ---------- eats teaser ---------- */
.h-eats { background: var(--card); }
.h-eatshead { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.h-rail { display: flex; gap: 14px; overflow-x: auto; margin: 30px -24px 0; padding: 4px 24px 20px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.h-rail::-webkit-scrollbar { display: none; }
.h-place { flex: 0 0 min(300px, 80vw); scroll-snap-align: start; display: grid; gap: 8px; align-content: start; padding: 20px; background: var(--bg); border-radius: 20px; text-decoration: none; min-height: 190px; transition: transform .2s ease; }
.h-place:hover { transform: translateY(-3px); }
.h-place b { font-size: 18px; letter-spacing: -.02em; }
.h-place p { margin: 0; color: var(--muted); font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.h-place span { margin-top: auto; color: var(--blue); font-size: 13.5px; font-weight: 600; }

/* ---------- footer ---------- */
.h-foot { padding: 40px 0 56px; color: var(--muted); font-size: 14px; }
.h-foot .h-wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.h-foot nav { display: flex; gap: 20px; }
.h-foot a { text-decoration: none; }
.h-foot a:hover { color: var(--ink); }

/* ---------- recipe viewer ---------- */
.h-sheet { position: fixed; inset: 0; z-index: 50; background: var(--bg); overflow-y: auto; overscroll-behavior: contain; animation: h-up .25s ease; }
@keyframes h-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.h-sheetbar { position: sticky; top: 0; z-index: 3; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px max(20px, env(safe-area-inset-left, 0px)); background: rgba(30, 30, 35, .85); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-bottom: .5px solid var(--line); }
.h-back { border: 0; background: none; color: var(--blue); font-size: 16px; padding: 4px 0; }
.h-barbtns { display: flex; gap: 8px; }
.h-pill { border: 0; background: var(--fill); border-radius: 999px; padding: 7px 14px; font-size: 13.5px; font-weight: 500; }
.h-pill:hover { background: var(--line); }
.h-pill[aria-pressed="true"] { background: var(--blue); color: #fff; }
.h-sheetin { max-width: 960px; margin: 0 auto; padding: 24px max(24px, env(safe-area-inset-left, 0px)) 96px; }
.h-rcover { position: relative; aspect-ratio: 16 / 8; border-radius: 24px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 28%, #0d0d10)); }
.h-rcover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.h-rcover .h-ico { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .18); }
.h-rcover .h-ico svg { width: 42px; height: 42px; }
.h-rhead { margin-top: 22px; }
.h-rhead h1 { margin: 6px 0 0; font-size: clamp(34px, 6vw, 58px); line-height: 1.04; font-weight: 700; letter-spacing: -.04em; text-wrap: balance; }
.h-rsum { margin: 14px 0 0; max-width: 60ch; font-size: 19px; line-height: 1.45; color: var(--muted); }
.h-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.h-chip { background: var(--fill); border-radius: 999px; padding: 6px 14px; font-size: 13.5px; font-weight: 500; }
.h-chip b { font-weight: 600; margin-right: 4px; color: var(--muted); }
.h-ctrls { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; margin: 26px 0 8px; padding: 14px 16px; background: var(--card); border-radius: 16px; }
.h-ctrl { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.h-step { display: inline-flex; align-items: center; gap: 4px; background: var(--fill); border-radius: 999px; padding: 3px; }
.h-step button { width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; font-size: 18px; line-height: 1; padding: 0 0 2px; }
.h-step button:hover { background: var(--line); }
.h-step output { min-width: 28px; text-align: center; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.h-cols { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 56px); margin-top: 28px; align-items: start; }
.h-cols h2 { margin: 0 0 14px; font-size: 22px; letter-spacing: -.025em; }
.h-ing { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.h-ing .grp { margin: 18px 0 6px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.h-ing label { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; padding: 9px 4px; border-bottom: .5px solid var(--line); cursor: pointer; line-height: 1.35; }
.h-ing input, .h-steps input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 0; border-radius: 7px; border: 1.5px solid var(--muted); display: grid; place-items: center; cursor: pointer; flex: none; }
.h-ing input:checked { background: var(--blue); border-color: var(--blue); }
.h-ing input:checked::after { content: ""; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.h-ing .q { font-weight: 600; font-variant-numeric: tabular-nums; margin-right: 6px; }
.h-ing em { color: var(--muted); font-style: normal; }
.h-ing input:checked ~ span { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, .35); }
.h-steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 14px; }
.h-steps li { counter-increment: s; display: grid; grid-template-columns: 38px 1fr; gap: 14px; align-items: start; padding: 16px; background: var(--card); border-radius: 16px; cursor: pointer; }
.h-steps li::before { content: counter(s); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--fill); font-weight: 700; font-variant-numeric: tabular-nums; }
.h-steps p { margin: 5px 0 0; font-size: 17px; line-height: 1.5; }
.h-stepimg { display: block; width: 100%; max-width: 520px; margin-top: 12px; border-radius: 14px; }
.h-tip { margin-top: 10px !important; padding: 10px 12px; border-radius: 12px; background: var(--fill); color: var(--muted); font-size: 15px !important; }
.h-tip b { color: var(--ink); margin-right: 4px; }
.h-steps li.done { opacity: .5; }
.h-steps li.done::before { background: var(--blue); color: #fff; }
.h-notes { margin-top: 30px; padding: 20px; border-radius: 16px; background: var(--card); }
.h-notes h2 { margin: 0 0 8px; }
.h-notes p { white-space: pre-line; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; max-width: 62ch; }
.h-more { margin-top: 56px; }
.h-more h2 { margin: 0 0 16px; font-size: 22px; letter-spacing: -.025em; }
.h-more .h-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.h-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 80; background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow); }

@media (max-width: 820px) {
  .h-hero { grid-template-columns: minmax(0, 1fr); }
  .h-card.big { grid-column: auto; }
  .h-card.big .h-cover { aspect-ratio: 4 / 3; }
  .h-card.big .h-ctitle { font-size: 22px; }
  .h-cols { grid-template-columns: minmax(0, 1fr); }
  .h-rcover { aspect-ratio: 16 / 10; border-radius: 18px; }
  .h-nav nav { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* Printing a recipe: just the recipe, on white. */
@media print {
  :root { --bg: #fff; --card: #fff; --ink: #000; --muted: #444; --line: #ccc; --fill: #eee; }
  body > *:not(#sheet) { display: none !important; }
  .h-sheet { position: static; overflow: visible; animation: none; }
  .h-sheetbar, .h-ctrls, .h-more, .h-toast { display: none !important; }
  .h-rcover { aspect-ratio: 16 / 5; border-radius: 8px; }
  .h-steps li, .h-notes { background: none; border: 1px solid #ccc; }
  .h-ing input:checked ~ span { text-decoration: none; color: #000; }
}

/* Landing page: two doors */
.h-landing { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: radial-gradient(60% 50% at 20% 10%, rgba(255, 107, 44, .16), transparent 70%), radial-gradient(50% 50% at 90% 90%, rgba(46, 155, 255, .12), transparent 70%), var(--bg); }
.h-landmain { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: clamp(28px, 6vw, 56px); width: 100%; max-width: 1040px; margin: 0 auto; padding: clamp(40px, 8vw, 96px) max(24px, env(safe-area-inset-left, 0px)); }
.h-landhero h1 { margin: 0; font-size: clamp(64px, 13vw, 140px); line-height: .94; font-weight: 700; letter-spacing: -.055em; }
.h-landhero .h-lede { max-width: 36ch; }
.h-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.h-tile { position: relative; display: grid; gap: 6px; align-content: end; min-height: clamp(200px, 28vw, 280px); padding: clamp(20px, 3vw, 30px); border-radius: 26px; text-decoration: none; overflow: hidden; box-shadow: var(--soft); transition: transform .2s ease, box-shadow .2s ease; isolation: isolate; }
.h-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(145deg, var(--a), var(--b)); }
.h-tile.map { --a: #2e9bff; --b: #14306b; }
.h-tile.cook { --a: #ff6b2c; --b: #6e2a3c; }
.h-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.h-tilekick { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
.h-tiletitle { font-size: clamp(30px, 4.4vw, 46px); font-weight: 700; letter-spacing: -.035em; line-height: 1.05; color: #fff; }
.h-tilesub { font-size: 16px; color: rgba(255, 255, 255, .85); max-width: 30ch; }
.h-tilego { margin-top: 10px; font-size: 15px; font-weight: 600; color: #fff; }
.h-first { padding-top: clamp(32px, 5vw, 56px); }
@media (max-width: 700px) { .h-tiles { grid-template-columns: 1fr; } .h-tile { min-height: 190px; } }

/* Calorie Calculator */
.h-titlerow { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.h-titlerow .h-btn { padding: 10px 20px; font-size: 15px; }
.c-title { margin: 0; font-size: clamp(34px, 6vw, 56px); line-height: 1.04; font-weight: 700; letter-spacing: -.04em; }
.c-lede { margin: 12px 0 0; max-width: 52ch; font-size: 18px; color: var(--muted); }
.c-form { margin-top: 26px; display: grid; gap: 14px; }
.c-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.c-field { display: grid; gap: 7px; font-size: 14px; font-weight: 600; }
.c-field small { color: var(--muted); font-weight: 400; font-size: 12.5px; }
.c-field input, .c-field select { width: 100%; border: 0; background: var(--fill); color: var(--ink); border-radius: 12px; padding: 12px 14px; font: inherit; font-size: 16px; font-weight: 400; }
.c-field input::placeholder { color: var(--muted); }
.c-res { margin-top: 18px; padding: 20px; border-radius: 18px; background: var(--card); display: grid; gap: 4px; }
.c-num { font-size: 52px; font-weight: 700; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.c-num.big { font-size: 64px; }
.c-sub { color: var(--muted); font-size: 14px; }
.c-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.c-btns .h-btn { border: 0; }
.c-btns .h-btn:disabled { opacity: .5; cursor: default; }
.c-h2 { margin: 36px 0 12px; font-size: 22px; letter-spacing: -.025em; }
.c-empty, .c-note { color: var(--muted); margin: 28px 0 0; }
.c-note { margin: -6px 0 12px; font-size: 13px; }
.c-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.c-list li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--card); border-radius: 14px; }
.c-li { flex: 1; min-width: 0; display: grid; }
.c-li span { color: var(--muted); font-size: 13.5px; }
.c-cal { font-weight: 600; font-variant-numeric: tabular-nums; }
.c-x { width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--fill); font-size: 17px; line-height: 1; padding: 0 0 2px; }
.c-x:hover { background: var(--line); }
.c-total { margin-top: 16px; padding: 22px; border-radius: 18px; background: linear-gradient(135deg, #ff6b2c, #8a3350); display: grid; gap: 4px; }
.c-total .c-sub { color: rgba(255, 255, 255, .85); }
.c-split { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; color: var(--muted); }
.c-servout { min-width: 28px; text-align: center; font-weight: 600; color: var(--ink); }
.c-per { color: var(--ink); }

/* Landing: about me */
.h-landing { display: block; }
.h-fade { animation: h-fade 1.1s cubic-bezier(.2, .7, .2, 1) both; animation-delay: var(--d, 0s); }
@keyframes h-fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.h-about { max-width: 1040px; margin: 0 auto; padding: clamp(36px, 6vw, 72px) max(24px, env(safe-area-inset-left, 0px)) 0; }
.h-landtop { max-width: 1040px; margin: 0 auto; padding: clamp(56px, 10vw, 120px) max(24px, env(safe-area-inset-left, 0px)) 0; }
.h-landtop h1 { margin: 0; font-size: clamp(64px, 13vw, 140px); line-height: .94; font-weight: 700; letter-spacing: -.055em; }
.h-abouttext { max-width: 62ch; }
.h-abouthead { max-width: 1040px; margin: 0 0 22px; font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.h-abouttext p { margin: 0 0 1.15em; font-size: clamp(17px, 2vw, 19.5px); line-height: 1.6; color: #dcdce1; text-wrap: pretty; }
.h-abouttext p.h-sign { color: var(--ink); font-weight: 600; margin-top: 1.6em; }
.h-landing .h-tiles { max-width: 1040px; margin: 0 auto; padding: clamp(36px, 6vw, 64px) max(24px, env(safe-area-inset-left, 0px)) 80px; }
.h-landing .h-tiles { padding-bottom: 0; }
.h-landing .h-about { padding-bottom: 96px; }

/* About me: photos drifting beside the text, and the full gallery */
.h-aboutgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: start; }
.h-about.has-photos .h-aboutgrid { grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); gap: clamp(32px, 5vw, 72px); }
.h-galbtn { margin-top: 10px; padding: 6px 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 15px; cursor: pointer; transition: color .2s ease; }
.h-galbtn::after { content: ' ›'; }
.h-galbtn:hover, .h-galbtn:focus-visible { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.h-stage { position: sticky; top: 90px; height: min(640px, 80vh); display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; }
.h-slot { position: relative; margin: 0; min-height: 0; overflow: hidden; border-radius: 18px; background: var(--card); box-shadow: 0 0 0 .5px rgba(255, 255, 255, .08), 0 10px 30px rgba(0, 0, 0, .35); cursor: zoom-in; outline: none; }
.h-slot.s1 { grid-column: 1; grid-row: 1 / span 2; }
.h-slot.s2 { grid-column: 2; grid-row: 1; }
.h-slot.s3 { grid-column: 2; grid-row: 2; }
.h-stage.n1 .h-slot.s1 { grid-column: 1 / -1; }
.h-stage.n2 .h-slot.s2 { grid-row: 1 / span 2; }
.h-layer { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease-in-out; }
.h-layer.on { opacity: 1; }
.h-layer img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.02); transition: transform 12s ease-out; }
.h-layer.on img { transform: scale(1.09); }
.h-slot:hover { box-shadow: 0 0 0 .5px rgba(255, 255, 255, .2), 0 16px 40px rgba(0, 0, 0, .5); }
.h-slot figcaption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 40px 16px 14px; font-size: 14px; line-height: 1.35; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .35s ease; pointer-events: none; }
.h-slot:hover figcaption, .h-slot:focus-visible figcaption { opacity: 1; transform: none; }
@media (hover: none) { .h-slot figcaption { opacity: 1; transform: none; } }
@media (max-width: 820px) {
  .h-about.has-photos .h-aboutgrid { grid-template-columns: minmax(0, 1fr); }
  .h-stage { order: -1; position: relative; top: 0; height: auto; aspect-ratio: 5 / 4; }
}

.h-gcount { color: var(--muted); font-size: 14px; }
.h-gpage { max-width: 1120px; margin: 0 auto; padding: 28px max(20px, env(safe-area-inset-left, 0px)) 96px; }
.h-gh { margin: 0 0 22px; font-size: clamp(34px, 6vw, 56px); line-height: 1.04; font-weight: 700; letter-spacing: -.04em; }
.h-gcols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; grid-auto-flow: dense; }
@media (min-width: 640px) { .h-gcols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } }
@media (min-width: 980px) { .h-gcols { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } }
/* every few photos one runs larger, so the grid has rhythm instead of a uniform wall */
.h-gitem.big { grid-column: span 2; grid-row: span 2; }
.h-gitem { aspect-ratio: 1 / 1; margin: 0; position: relative; border-radius: 14px; overflow: hidden; background: var(--card); cursor: zoom-in; outline: none; box-shadow: var(--soft); }
.h-gitem img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.h-gitem:hover img, .h-gitem:focus-visible img { transform: scale(1.04); }
.h-gitem figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 12px; font-size: 14px; line-height: 1.35; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); opacity: 0; transition: opacity .3s ease; }
.h-gitem:hover figcaption, .h-gitem:focus-visible figcaption { opacity: 1; }
@media (hover: none) { .h-gitem figcaption { opacity: 1; } }
.h-lb { position: fixed; inset: 0; z-index: 70; background: rgba(8, 8, 10, .94); display: grid; place-items: center; animation: h-up .2s ease; }
.h-lbfig { margin: 0; max-width: min(92vw, 1100px); display: grid; gap: 12px; justify-items: center; }
.h-lbfig img { max-width: 100%; max-height: 80vh; border-radius: 14px; display: block; }
.h-lbfig figcaption { display: grid; gap: 4px; color: #e6e6ea; font-size: 16px; text-align: center; min-height: 1.4em; }
.h-lbx, .h-lbn { position: absolute; border: 0; background: rgba(255, 255, 255, .12); color: #fff; width: 44px; height: 44px; border-radius: 50%; font-size: 26px; line-height: 1; padding: 0 0 3px; }
.h-lbx:hover, .h-lbn:hover { background: rgba(255, 255, 255, .22); }
.h-lbx { top: max(16px, env(safe-area-inset-top, 0px)); right: 16px; }
.h-lbn { top: 50%; transform: translateY(-50%); } .h-lbn.prev { left: 14px; } .h-lbn.next { right: 14px; }
.c-mealhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 36px; }
.c-mealhead .c-h2 { margin: 0; }
.c-btns .h-btn:disabled { opacity: .45; }

.h-lbcount { color: var(--muted); font-size: 13px; letter-spacing: .04em; }

/* Calorie Calculator: nutrition label -> your ingredient -> answer */
.c-name { display: grid; gap: 7px; font-size: 14px; font-weight: 600; }
.c-name small { color: var(--muted); font-weight: 400; }
.c-name input { width: 100%; border: 0; background: var(--fill); color: var(--ink); border-radius: 12px; padding: 12px 14px; font: inherit; font-size: 16px; font-weight: 400; }
.c-step { display: flex; gap: 14px; align-items: flex-start; padding: 18px; background: var(--card); border-radius: 18px; }
.c-n { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; font-size: 14px; }
.c-line { flex: 1; min-width: 0; }
.c-q { margin: 4px 0 12px; font-size: 17px; font-weight: 600; letter-spacing: -.015em; }
.c-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.c-fl { display: grid; gap: 6px; }
.c-fll { font-size: 13px; color: var(--muted); }
.c-box { display: flex; align-items: center; background: var(--fill); border-radius: 12px; padding-right: 14px; }
.c-box input { flex: 1; min-width: 0; width: 100%; border: 0; background: transparent; color: var(--ink); padding: 12px 6px 12px 14px; font: inherit; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; outline: none; }
.c-box:focus-within { box-shadow: 0 0 0 2px var(--blue); }
.c-box em { font-style: normal; color: var(--muted); font-size: 15px; }
.c-res { margin-top: 18px; padding: 22px; border-radius: 18px; background: var(--card); display: grid; gap: 4px; }
.c-kick { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.c-stats { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 14px; padding-top: 14px; border-top: .5px solid var(--line); }
.c-stat { display: grid; gap: 2px; }
.c-stat span { font-size: 12.5px; color: var(--muted); }
.c-stat b { font-size: 17px; font-variant-numeric: tabular-nums; }
.c-total { margin-top: 16px; padding: 22px; border-radius: 18px; background: linear-gradient(135deg, #ff6b2c, #8a3350); display: grid; gap: 2px; }
.c-total .c-kick, .c-total .c-sub, .c-total .c-stat span { color: rgba(255, 255, 255, .82); }
.c-total .c-stats { border-top-color: rgba(255, 255, 255, .3); }
.c-list li.editing { box-shadow: 0 0 0 2px var(--blue); }
.c-portions { margin-top: 16px; padding: 18px; background: var(--card); border-radius: 18px; }
.c-portions .c-q { margin-top: 0; }
.c-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.c-chip { min-width: 44px; height: 40px; border: 0; border-radius: 12px; background: var(--fill); font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.c-chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.c-per { margin: 14px 0 0; font-size: 17px; font-weight: 600; }
.c-mealhead .c-note { margin: 2px 0 0; }
.c-prow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.c-pin { width: 70px !important; flex: none !important; text-align: right; }
.c-pstats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.c-pstat { padding: 14px 16px; border-radius: 14px; background: var(--fill); display: grid; gap: 2px; }
.c-pstat span { font-size: 13px; color: var(--muted); }
.c-pstat b { font-size: 28px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.h-gitem.big { aspect-ratio: auto; }
.h-gexp { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: .9; pointer-events: none; transition: transform .25s ease, background .25s ease; }
.h-gexp svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.h-gitem:hover .h-gexp, .h-gitem:focus-visible .h-gexp { transform: scale(1.12); background: rgba(46, 155, 255, .85); }
.h-gitem figcaption { padding: 34px 10px 9px; font-size: 13px; }

/* ---------- design pass: one consistent top bar, calmer cards, no wrapping ---------- */
.h-nav nav a[aria-current="page"] { color: var(--ink); }
.h-brand, .h-nav nav a { white-space: nowrap; }
.h-nav nav { align-items: center; }
.h-about .h-abouthead { max-width: none; }
.h-tags { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -24px; padding-right: 24px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); }
.h-tags::-webkit-scrollbar { display: none; }
.h-tag { flex: none; white-space: nowrap; }
.h-cover.np { aspect-ratio: 16 / 7; }
.h-card.big .h-cover.np { aspect-ratio: 16 / 6; }
.h-cover.np .h-ico { width: 52px; height: 52px; }
.h-cover.np .h-ico svg { width: 26px; height: 26px; }
.h-rcover.np { aspect-ratio: 16 / 5; }
.h-rcover.np .h-ico { width: 64px; height: 64px; }
.h-foot nav { flex-wrap: wrap; }
@media (max-width: 700px) {
  .h-nav { padding-left: 16px; padding-right: 16px; gap: 10px; }
  .h-nav nav { gap: 14px; font-size: 13.5px; }
  .h-titlerow .h-btn { display: none; }
  .h-card.big .h-cover.np, .h-cover.np { aspect-ratio: 16 / 5; }
  .h-wrap, .h-landtop, .h-about, .h-landing .h-tiles { padding-left: 18px; padding-right: 18px; }
}
