/* Home page: recipes, cocktails, and a window onto the map. */
:root {
  --bg: #15110e; --card: #211b16; --ink: #f3ead9; --muted: #a99d8b;
  --line: rgba(255, 255, 255, .13); --fill: rgba(255, 255, 255, .1); --seg-on: #3d342b;
  --accent: #c8532a; --food: #c8532a; --drink: #a55a8c;
  --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(--accent); 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(21, 17, 14, .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(200, 83, 42, .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(--accent); 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(--accent); 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(21, 17, 14, .85); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-bottom: .5px solid var(--line); }
.h-back { border: 0; background: none; color: var(--accent); 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(--accent); 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(--accent); border-color: var(--accent); }
.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(--accent); 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(200, 83, 42, .16), transparent 70%), radial-gradient(50% 50% at 90% 90%, rgba(200, 83, 42, .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: #a8843f; --b: #2b2113; }
.h-tile.cook { --a: #c8532a; --b: #4a1c18; }
.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, #c8532a, #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 (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, .h-gitem:active 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(--accent); 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(--accent); }
.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, #c8532a, #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(--accent); }
.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(200, 83, 42, .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; }
}

/* Admin recipe preview (loaded in an iframe): hide page chrome and the way out of the recipe. */
.h-previewing .h-back, .h-previewing #shareBtn, .h-previewing #printBtn, .h-previewing .h-more { display: none !important; }
.h-previewing .h-sheetbar { justify-content: flex-start; }
/* Page transitions (see transitions.js). */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 180ms ease-in both pg-out; }
::view-transition-new(root) { animation: 320ms ease-out both pg-in; }
@keyframes pg-out { to { opacity: 0; } }
@keyframes pg-in { from { opacity: 0; } }
@keyframes pg-fade { from { opacity: 0; } }
html:not(.is-leaving) body { animation: pg-fade .35s ease-out both; }
html.is-leaving body { opacity: 0; transition: opacity .17s ease-in; }
@media (prefers-reduced-motion: reduce) { html:not(.is-leaving) body { animation: none; } ::view-transition-old(root), ::view-transition-new(root) { animation: none; } }

/* ===== Home photography: reel, lead frames, editorial grid ===== */
.h-reel { position: relative; margin: clamp(28px, 5vw, 56px) 0 0; overflow: hidden; --rh: clamp(190px, 28vw, 340px); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.h-reel[hidden] { display: none; }
.h-reeltrack { display: flex; width: max-content; animation: h-reel var(--reel-dur, 60s) linear infinite; will-change: transform; }
.h-reel:hover .h-reeltrack, .h-reel:focus-within .h-reeltrack { animation-play-state: paused; }
.h-reelset { display: flex; gap: 14px; padding-right: 14px; }
.h-reelitem { position: relative; margin: 0; flex: none; height: var(--rh); aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: var(--card); cursor: zoom-in; outline: none; box-shadow: var(--soft); }
.h-reelitem:nth-child(3n) { aspect-ratio: 3 / 2; }
.h-reelitem:nth-child(3n + 1) { aspect-ratio: 1 / 1; }
.h-reelitem img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.h-reelitem:hover img, .h-reelitem:focus-visible img { transform: scale(1.06); }
.h-reelitem figcaption, .h-pitem figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 14px 12px; font-size: 13.5px; line-height: 1.35; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .72)); opacity: 0; transform: translateY(6px); transition: opacity .3s ease, transform .3s ease; pointer-events: none; }
.h-reelitem:hover figcaption, .h-reelitem:focus-visible figcaption, .h-pitem:hover figcaption, .h-pitem:focus-visible figcaption { opacity: 1; transform: none; }
@keyframes h-reel { to { transform: translateX(-50%); } }

/* two lead frames beside the story */
.h-stage { height: min(780px, 88vh); grid-template-columns: minmax(0, 1fr); grid-template-rows: 1.25fr 1fr; gap: 14px; }
.h-slot.s1, .h-slot.s2 { grid-column: 1; }
.h-slot.s1 { grid-row: 1; } .h-slot.s2 { grid-row: 2; }
.h-stage.n1 .h-slot.s1 { grid-row: 1 / span 2; }
.h-about.has-photos .h-aboutgrid { grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); }
.h-landing .h-about { max-width: 1180px; }

/* the editorial grid */
.h-photos { overflow-x: clip; position: relative; max-width: 1480px; margin: 0 auto; padding: clamp(24px, 5vw, 64px) clamp(12px, 3vw, 40px) 120px; isolation: isolate; }
.h-photos[hidden] { display: none; }
.h-photos::before, .h-photos::after { content: ""; position: absolute; z-index: -1; width: 60vw; max-width: 760px; aspect-ratio: 1; border-radius: 50%; filter: blur(90px); opacity: .22; pointer-events: none; animation: h-drift 28s ease-in-out infinite alternate; }
.h-photos::before { left: -12%; top: 6%; background: #c8532a; }
.h-photos::after { right: -14%; top: 46%; background: #a8843f; animation-duration: 36s; animation-direction: alternate-reverse; opacity: .16; }
@keyframes h-drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(8%, 12%, 0) scale(1.18); } }
.h-photohead { max-width: 1040px; margin: 0 auto clamp(20px, 3vw, 36px); padding: 0 max(12px, env(safe-area-inset-left, 0px)); }
.h-photohead h2 { margin: 0; font-size: clamp(34px, 6vw, 64px); line-height: 1.02; font-weight: 700; letter-spacing: -.04em; text-wrap: balance; }
.h-photohead p { margin: 12px 0 0; color: var(--muted); font-size: clamp(16px, 1.6vw, 18px); max-width: 52ch; }
.h-pgrid { column-count: 2; column-gap: 12px; }
@media (min-width: 760px) { .h-pgrid { column-count: 3; column-gap: 16px; } }
@media (min-width: 1200px) { .h-pgrid { column-count: 4; } }
.h-pitem, .h-ptile { break-inside: avoid; margin: 0 0 12px; border-radius: 18px; overflow: hidden; position: relative; opacity: 0; transform: translateY(32px) scale(.985); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1), box-shadow .3s; }
@media (min-width: 760px) { .h-pitem, .h-ptile { margin-bottom: 16px; } }
.h-pitem.in, .h-ptile.in { opacity: 1; transform: none; }
.h-pitem { background: var(--card); cursor: zoom-in; outline: none; box-shadow: var(--soft); }
.h-pitem:hover, .h-pitem:focus-visible { box-shadow: 0 0 0 .5px rgba(255, 255, 255, .22), 0 18px 44px rgba(0, 0, 0, .55); }
.h-pitem img { display: block; width: 100%; height: auto; transform: scale(1.14); will-change: transform; }
.h-pitem:not(.loaded) { aspect-ratio: 4 / 5; }
.h-pitem.tall { aspect-ratio: 3 / 4; } .h-pitem.wide { aspect-ratio: 4 / 3; }
.h-pitem.tall img, .h-pitem.wide img { height: 100%; object-fit: cover; }
.h-ptile { padding: clamp(20px, 3vw, 30px); display: grid; gap: 10px; align-content: end; min-height: 200px; background: linear-gradient(155deg, #382f27, #261f1a); box-shadow: var(--soft); }
.h-ptile.quote { background: linear-gradient(155deg, #c8532a, #d94a14); color: #fff; }
.h-pkick { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.h-pbig { font-size: clamp(24px, 3vw, 36px); line-height: 1.08; font-weight: 700; letter-spacing: -.035em; text-wrap: balance; }
.h-ptile.quote .h-pbig { font-size: clamp(20px, 2.4vw, 28px); }
.h-psmall { font-size: 15px; opacity: .8; }
.h-pfoot { display: flex; justify-content: center; margin-top: clamp(16px, 3vw, 36px); }
.h-pmore { border: 0; border-radius: 999px; padding: 14px 28px; background: var(--ink); color: #111; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; transition: transform .2s, background .2s; }
.h-pmore:hover { transform: translateY(-2px); background: #fff; }
.h-pmore[hidden] { display: none; }

/* the all-photos gallery: a masonry wall instead of uniform squares */
.h-gcols { display: block; column-count: 2; column-gap: 10px; }
@media (min-width: 640px) { .h-gcols { column-count: 3; column-gap: 12px; } }
@media (min-width: 980px) { .h-gcols { column-count: 4; column-gap: 14px; } }
.h-gitem { aspect-ratio: auto; break-inside: avoid; margin: 0 0 10px; }
@media (min-width: 640px) { .h-gitem { margin-bottom: 12px; } }
.h-gitem img { height: auto; min-height: 120px; }
.h-gitem.big { grid-column: auto; grid-row: auto; }

@media (max-width: 820px) {
  .h-stage { height: auto; aspect-ratio: 4 / 5; grid-template-rows: 1.2fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .h-reeltrack, .h-photos::before, .h-photos::after { animation: none; }
  .h-reel { overflow-x: auto; }
  .h-pitem, .h-ptile { opacity: 1; transform: none; transition: none; }
  .h-pitem img { transform: none; }
}
body.h-landing, body { overflow-x: clip; }

/* ===== Cleaner home: calm tiles, one photo strip, one grid, no clutter ===== */
.h-photos::before, .h-photos::after { display: none; }
.h-reelitem, .h-reelitem:nth-child(3n), .h-reelitem:nth-child(3n + 1) { aspect-ratio: 4 / 5; }
.h-reelitem figcaption { display: none; }
.h-reel { --rh: clamp(200px, 22vw, 300px); }
.h-pitem.wide, .h-pitem.tall { aspect-ratio: auto; }
.h-pitem.wide img, .h-pitem.tall img { height: auto; }
.h-tile { min-height: clamp(180px, 22vw, 240px); box-shadow: none; }
.h-tile:hover { box-shadow: none; }
@media (max-width: 700px) {
  .h-landtop { padding-top: 40px; }
  .h-landtop h1 { font-size: clamp(54px, 17vw, 80px); }
  .h-reel { display: none !important; }
  .h-landing .h-tiles { padding-top: 28px; padding-bottom: 8px; }
  .h-tiles { gap: 12px; }
  .h-tile { min-height: 0; padding: 20px 20px 18px; border-radius: 20px; gap: 4px; }
  .h-tiletitle { font-size: 28px; }
  .h-tilesub { font-size: 15px; }
  .h-tilego { margin-top: 8px; }
  .h-nav nav { gap: 14px; }
  .h-nav nav a { font-size: 14px; }
  .h-about { padding-top: 44px; }
  .h-abouthead { margin-bottom: 14px; }
  .h-stage { aspect-ratio: 1 / 1; grid-template-rows: 1fr; }
  .h-stage .h-slot.s2 { display: none; }
  .h-stage .h-slot.s1 { grid-row: 1; }
  .h-photos { padding: 24px 12px 72px; }
  .h-photohead { padding: 0 6px; margin-bottom: 18px; }
  .h-photohead h2 { font-size: 30px; }
  .h-photohead p { font-size: 15px; }
  .h-pitem figcaption { display: none; }
  .h-pgrid { column-gap: 8px; }
  .h-pitem { margin-bottom: 8px; border-radius: 14px; }
}
@media (max-width: 820px) { .h-about.has-photos .h-aboutgrid { grid-template-columns: minmax(0, 1fr); gap: 28px; } .h-stage { order: -1; position: relative; top: 0; } }
/* About me appears together with its photo instead of line by line (the long stagger felt slow and messy). */
.h-about .h-fade, .h-about .h-stage { animation-delay: .15s !important; animation-duration: .7s; }
/* Keep the home page simple: the photo strip and grid are retired. */
.h-reel, .h-photos { display: none !important; }


/* Feature photos retired: the About text stands alone; photos live in the background and the gallery. */
.h-stage { display: none !important; }
.h-aboutgrid { grid-template-columns: minmax(0, 720px) !important; }

/* About me: a centred reading column on desktop */
.h-landing .h-about { max-width: 816px; margin-left: auto; margin-right: auto; }
.h-aboutgrid { margin-left: auto; margin-right: auto; }

/* Home page: no top bar. Only the Calorie Calculator link floats at the top right, blended into the page.
   The bar (brand, Map, Recipes) appears on the Map and Recipes pages. */
.h-landing .h-nav { position: absolute; top: 0; left: 0; right: 0; justify-content: flex-end; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; border: 0; box-shadow: none; }
.h-landing .h-nav .h-brand, .h-landing .h-nav nav a:not([href*="calories"]) { display: none; }
.h-landing .h-nav nav a { color: var(--muted); }

/* Home page: the two entry points are quiet text rows that sit on the background, not coloured cards. */
.h-landing .h-tiles { gap: clamp(20px, 5vw, 56px); }
.h-landing .h-tile { min-height: 0; padding: 18px 2px 4px; border-radius: 0; background: none; box-shadow: none; border-top: 1px solid rgba(255, 255, 255, .16); gap: 4px; align-content: start; transform: none; transition: border-color .2s ease; }
.h-landing .h-tile::before { display: none; }
.h-landing .h-tile:hover { transform: none; box-shadow: none; border-top-color: rgba(255, 255, 255, .5); }
.h-landing .h-tilekick { font-size: 12px; color: var(--muted); }
.h-landing .h-tiletitle { font-size: clamp(22px, 2.6vw, 28px); font-weight: 600; letter-spacing: -.025em; color: var(--ink); }
.h-landing .h-tilesub { font-size: 15px; color: var(--muted); max-width: 34ch; }
.h-landing .h-tilego { margin-top: 6px; font-size: 14px; font-weight: 500; color: var(--muted); transition: color .2s ease, transform .2s ease; }
.h-landing .h-tile:hover .h-tilego { color: var(--ink); transform: translateX(3px); }
@media (max-width: 700px) { .h-landing .h-tiles { gap: 14px; } .h-landing .h-tile { padding-top: 14px; } .h-landing .h-tiletitle { font-size: 22px; } }

/* Home entry points: real buttons, but calm. Frosted glass over the pattern, a thin light edge, an arrow chip. */
.h-landing .h-tile { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title arrow" "sub arrow"; column-gap: 16px; row-gap: 4px; align-items: center;
  padding: 20px 20px 20px 24px; min-height: 0; border: 1px solid rgba(255, 255, 255, .16); border-top-color: rgba(255, 255, 255, .24); border-radius: 18px;
  background: rgba(255, 255, 255, .06); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 8px 24px rgba(0, 0, 0, .18); transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.h-landing .h-tile:hover { background: rgba(255, 255, 255, .11); border-color: rgba(255, 255, 255, .34); transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 12px 28px rgba(0, 0, 0, .24); }
.h-landing .h-tile:active { transform: translateY(0); background: rgba(255, 255, 255, .09); }
.h-landing .h-tilekick, .h-landing .h-tilego { display: none; }
.h-landing .h-tiletitle { grid-area: title; font-size: clamp(20px, 2.2vw, 24px); font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.h-landing .h-tilesub { grid-area: sub; font-size: 14px; line-height: 1.35; color: var(--muted); max-width: none; }
.h-landing .h-tile::after { content: "\203A"; grid-area: arrow; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .12); color: var(--ink); font-size: 22px; line-height: 1; padding-bottom: 2px; transition: background .2s ease, transform .2s ease; }
.h-landing .h-tile:hover::after { background: rgba(255, 255, 255, .22); transform: translateX(2px); }
@media (max-width: 700px) { .h-landing .h-tiles { gap: 12px; } .h-landing .h-tile { padding: 16px 16px 16px 20px; border-radius: 16px; } }

/* About me: a short intro first; the rest opens on request. */
.h-abouthello, .h-aboutfull { display: grid; transition: grid-template-rows .65s cubic-bezier(.2, .7, .2, 1), opacity .45s ease, visibility 0s linear .65s; }
.h-abouthello > div, .h-aboutfull > div { overflow: hidden; min-height: 0; }
.h-abouthello { grid-template-rows: 1fr; opacity: 1; }
.h-aboutfull { grid-template-rows: 0fr; opacity: 0; visibility: hidden; }
.h-abouttext.is-open .h-abouthello { grid-template-rows: 0fr; opacity: 0; visibility: hidden; }
.h-abouttext.is-open .h-aboutfull { grid-template-rows: 1fr; opacity: 1; visibility: visible; transition-delay: 0s, .12s, 0s; }
.h-abouttext.is-open .h-abouthello { transition-delay: 0s, 0s, .65s; }
.h-aboutfull .h-fade { animation: none !important; opacity: 1 !important; transform: none !important; }
.h-abouthello p { font-size: clamp(20px, 2.4vw, 26px); line-height: 1.35; letter-spacing: -.02em; font-weight: 500; margin: 0 0 20px; }
.h-abouthead { transition: opacity .18s ease; }
.h-abouthead.swap { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .h-abouthello, .h-aboutfull, .h-abouthead { transition: none; } }
.h-morebtn { display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 0; padding: 9px 16px 9px 18px; border: 1px solid var(--edge, rgba(255, 255, 255, .16)); border-radius: 999px; background: var(--sheen, rgba(255, 255, 255, .06)); color: var(--ink); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.h-morebtn:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); }
.h-morebtn::after { content: ""; width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s ease; }
.h-morebtn[aria-expanded="true"]::after { transform: rotate(-135deg) translateY(-1px); }
.h-abouttext > .h-morebtn + .h-galbtn { margin-left: 14px; }

/* Surprise me: a fun one-photo-at-a-time viewer. Tap for another. */
.h-shuf { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; overflow: hidden; background: #101013; cursor: pointer; -webkit-tap-highlight-color: transparent; animation: h-up .25s ease; user-select: none; -webkit-user-select: none; }
.h-shuf[hidden] { display: none; }
.h-shufbg { position: absolute; inset: -10%; background-size: cover; background-position: center; filter: blur(46px) saturate(1.25); opacity: .4; }
.h-shufstage { position: relative; width: 100%; height: 100%; display: grid; place-items: center; pointer-events: none; }
.h-shufcard { grid-area: 1 / 1; position: relative; width: min(84vw, 440px); margin: 0; padding: 12px 12px 38px; background: #f3efe7; border-radius: 6px; box-shadow: 0 28px 70px rgba(0, 0, 0, .55), 0 2px 0 rgba(255, 255, 255, .5) inset;
  opacity: 0; transform: translateY(70px) rotate(calc(var(--tilt, 0deg) + 9deg)) scale(.9); transition: transform .55s cubic-bezier(.2, .9, .25, 1.12), opacity .35s ease; }
.h-shufcard.in { opacity: 1; transform: rotate(var(--tilt, 0deg)); }
.h-shufcard.out { opacity: 0; transform: translate(calc(var(--dir, 1) * 62vw), -8vh) rotate(calc(var(--dir, 1) * 22deg)); transition: transform .5s cubic-bezier(.5, 0, .9, .5), opacity .45s ease; }
.h-shufcard img { display: block; width: 100%; height: auto; max-height: 64vh; object-fit: cover; border-radius: 2px; pointer-events: none; }
.h-shufcard figcaption { position: absolute; left: 12px; right: 12px; bottom: 9px; text-align: center; font-size: 14px; font-weight: 500; letter-spacing: -.01em; color: #2b2620; opacity: 0; transition: opacity .2s ease; }
.h-shuf { --cap-hit: auto; }
.h-shufcard:hover figcaption, .h-shufcard:active figcaption { opacity: 1; }
.h-shufstage { pointer-events: auto; }
.h-shufx { position: absolute; top: max(14px, env(safe-area-inset-top, 0px)); right: 14px; z-index: 3; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 50%; background: rgba(14, 11, 9, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding-bottom: 3px; }
.h-shufx:hover { background: rgba(255, 255, 255, .16); }
.h-shufhint { position: absolute; left: 50%; bottom: max(26px, env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); margin: 0; padding: 9px 18px; border-radius: 999px; background: rgba(14, 11, 9, .6); border: 1px solid rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .9); font-size: 14px; font-weight: 500; pointer-events: none; transition: opacity .4s ease, transform .4s ease; animation: h-hint 1.8s ease-in-out infinite; }
.h-shufhint.gone { opacity: 0; transform: translateX(-50%) translateY(8px); animation: none; }
@keyframes h-hint { 50% { transform: translateX(-50%) translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .h-shufcard, .h-shufcard.out { transition: opacity .25s ease; transform: rotate(var(--tilt, 0deg)); } .h-shufhint { animation: none; } }
