/* Asterhäll Kitchen — shared styles. See KitchenImages/ASTERHALL-DESIGN.md */

:root {
  --canvas: #000;
  --card: #111;
  --surface: #1c1c1c;
  --field: #1a1a1a;
  --border: #5a5a5a;
  --line: #1f1f1f;
  --text: #f2f2f0;
  --muted: #b3b3b3;
  --dim: #7a7a7a;
  --error: #e8a39a;
  --glow: #f3e2a9;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --h1: clamp(40px, 5vw, 64px);
  --h2: clamp(30px, 3vw, 38px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 140px; }
body { background: var(--canvas); color: var(--text); font-family: var(--sans); font-weight: 300; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
:focus-visible { outline: 1px solid var(--text); outline-offset: 4px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }
.caps { font-family: var(--sans); font-weight: 400; text-transform: uppercase; letter-spacing: .28em; font-size: 11px; color: var(--dim); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--text); color: #000; padding: 8px 16px; }
.skip:focus { left: 8px; }

.lead { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(19px, 2vw, 24px); line-height: 1.5; color: var(--muted); }
.page-title { font-family: var(--serif); font-weight: 400; font-size: var(--h1); line-height: 1.04; letter-spacing: .01em; }
.section-title { font-family: var(--serif); font-weight: 400; font-size: var(--h2); letter-spacing: .01em; line-height: 1.15; }

/* ---------- Header / navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(0,0,0,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand img { height: 40px; width: auto; }  /* same logo sizes as on the rest of asterhall.se */
.topnav { display: flex; align-items: center; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; font-weight: 400; }
.topnav a { color: var(--muted); padding: 4px 18px; transition: color .3s; }
.topnav a + a { border-left: 1px solid var(--border); }
.topnav a:last-child { padding-right: 0; }
.topnav a:hover, .topnav a[aria-current] { color: var(--text); }
.menu-btn { display: none; background: none; border: 0; color: var(--text); cursor: pointer; align-items: center; gap: 12px; font-size: 11px; letter-spacing: .28em; text-transform: uppercase; font-weight: 400; padding: 8px 0; }
.menu-btn .lines { width: 22px; height: 9px; position: relative; }
.menu-btn .lines::before, .menu-btn .lines::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: currentColor; transition: transform .4s var(--ease), top .4s var(--ease); }
.menu-btn .lines::before { top: 0; }
.menu-btn .lines::after { top: 8px; }
.menu-open .menu-btn .lines::before { top: 4px; transform: rotate(45deg); }
.menu-open .menu-btn .lines::after { top: 4px; transform: rotate(-45deg); }
.progress { position: absolute; left: 0; bottom: -1px; height: 1px; width: 0; background: var(--text); }

/* Home: header floats over the hero, logo appears once scrolled */
.home .site-header { position: fixed; left: 0; right: 0; background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; transition: background .4s, border-color .4s; animation: fade 1s var(--ease) 2.4s both; }
.home .site-header .brand { opacity: 0; pointer-events: none; transition: opacity .4s; }
.home.scrolled .site-header { background: rgba(0,0,0,.72); border-bottom-color: var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.home.scrolled .site-header .brand { opacity: 1; pointer-events: auto; }

/* Mobile menu overlay */
.mobile-menu { position: fixed; inset: 0; z-index: 15; background: #000; display: flex; flex-direction: column; justify-content: center; padding: 96px 24px 48px; opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s; }
.mobile-menu a { font-family: var(--serif); font-size: 44px; line-height: 1.5; color: var(--muted); }
.mobile-menu a[aria-current] { color: var(--text); }
.mobile-menu .caps { margin-top: 48px; }
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.menu-open { overflow: hidden; }

/* ---------- Hero (home) ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: #000; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; animation: heroImg 1.2s var(--ease) both; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 52% 58%, rgba(0,0,0,0) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,.9) 100%), linear-gradient(to bottom, rgba(0,0,0,.6) 0%, rgba(0,0,0,0) 25%, rgba(0,0,0,0) 70%, #000 100%); }
.hero-content { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 0 16px; text-align: center; }
.hero h1 { display: flex; align-items: flex-end; justify-content: center; gap: 16px; flex-wrap: wrap; font-weight: 400; }
.hero h1 img { width: min(360px, 64vw); height: auto; animation: fromLeft 1.2s var(--ease) .5s both; }
.hero .kitchen { font-family: var(--serif); font-size: clamp(34px, 4.6vw, 58px); letter-spacing: .04em; line-height: 1; padding-bottom: 2.2%; animation: fromRight 1.2s var(--ease) .5s both; }
.hero .slogan { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(20px, 2.2vw, 26px); letter-spacing: .02em; color: var(--muted); animation: fromCenter 1s var(--ease) 1.6s both; }
.scroll-cue { position: absolute; left: 50%; bottom: 32px; z-index: 1; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 12px; animation: fade 1s var(--ease) 2.8s both; }
.scroll-cue::after { content: ""; width: 1px; height: 40px; background: linear-gradient(to bottom, var(--muted), transparent); }

@keyframes heroImg { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }
@keyframes fromLeft { from { opacity: 0; transform: translateX(-80px); } to { opacity: 1; transform: none; } }
@keyframes fromRight { from { opacity: 0; transform: translateX(80px); } to { opacity: 1; transform: none; } }
@keyframes fromCenter { from { opacity: 0; transform: scale(.96); letter-spacing: .2em; } to { opacity: 1; transform: none; letter-spacing: .02em; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Page intro ---------- */
.intro { text-align: center; padding-top: 120px; padding-bottom: 96px; }
.intro .page-title { margin: 28px 0 24px; }
.intro .lead { max-width: 600px; margin: 0 auto; }

.crumb { padding-top: 40px; }
.crumb a:hover { color: var(--text); }

/* ---------- Menu-card list (recipes) ---------- */
.menu { display: grid; grid-template-columns: 1fr 1fr; column-gap: 96px; }
.menu.three { grid-template-columns: repeat(3, 1fr); column-gap: 64px; }
.dish { display: block; padding-bottom: 56px; }
.dish .row { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; }
.dish h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; letter-spacing: .005em; transition: color .3s; }
.dish .time { font-family: var(--serif); font-size: 19px; color: var(--muted); white-space: nowrap; }
.dish .time small { font-family: var(--sans); font-size: 10px; letter-spacing: .24em; text-transform: uppercase; margin-left: 4px; color: var(--dim); }
.dish .meta { margin: 10px 0 14px; font-size: 10px; }
.dish p { color: var(--muted); font-size: 15px; line-height: 1.6; max-width: 46ch; }
a.dish:hover h3 { color: #fff; }
.dish.soon h3, .dish.soon .time { color: var(--dim); }
.dish.soon p { color: var(--dim); }
.badge { display: inline-block; margin-left: 10px; font-size: 9px; letter-spacing: .24em; text-transform: uppercase; color: var(--dim); border: 1px solid #333; border-radius: 40px; padding: 3px 9px; vertical-align: middle; font-family: var(--sans); }

.cats { display: flex; justify-content: center; gap: 8px; height: 52px; align-items: center; border-top: 1px solid var(--line); overflow-x: auto; }
.cats a { color: var(--dim); padding: 8px 16px; white-space: nowrap; border-bottom: 1px solid transparent; transition: color .3s, border-color .3s; }
.cats a:hover { color: var(--text); }
.cats a.on { color: var(--text); border-bottom-color: var(--text); }

section.cat { padding: 88px 0 32px; border-top: 1px solid var(--line); }
.cat-head { display: flex; align-items: baseline; gap: 24px; margin-bottom: 56px; }
.cat-head em { font-family: var(--serif); font-style: italic; font-weight: 300; color: var(--muted); font-size: 20px; margin-left: auto; }

.closing { text-align: center; padding-top: 96px; padding-bottom: 72px; }

/* ---------- Photos with dark treatment ---------- */
.ph { position: relative; overflow: hidden; background: #000; }
.ph img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, center); transition: transform 1.2s var(--ease); }
.ph::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.shade-1 img { filter: brightness(.82) saturate(.92); }
.shade-1::after { background: radial-gradient(ellipse at center, rgba(0,0,0,0) 45%, rgba(0,0,0,.65) 100%), linear-gradient(to bottom, rgba(0,0,0,0) 70%, #000 100%); }
.shade-2 img { filter: brightness(.6) contrast(1.12) saturate(.85); }
.shade-2::after { background: radial-gradient(ellipse 55% 60% at 50% 52%, rgba(0,0,0,0) 0%, rgba(0,0,0,.55) 60%, rgba(0,0,0,.95) 100%), linear-gradient(to bottom, rgba(0,0,0,.3) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 65%, #000 100%); }
.shade-3 img { filter: brightness(.75) contrast(1.1) saturate(.9); }
.shade-3::after { background: radial-gradient(ellipse 30% 42% at 48% 52%, rgba(0,0,0,0) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,.85) 85%, #000 100%); }
.bw img { filter: grayscale(1) brightness(.78) contrast(1.15); }
.bw::after { background: radial-gradient(ellipse 70% 65% at 50% 40%, rgba(0,0,0,0) 40%, rgba(0,0,0,.75) 100%), linear-gradient(to bottom, rgba(0,0,0,0) 60%, #000 100%); }
a:hover .ph img { transform: scale(1.03); }

figure.photo { margin: 0; }
figure.photo .ph { aspect-ratio: 16 / 8; }
figure.photo figcaption { text-align: center; margin-top: 16px; font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--dim); }

/* ---------- Recipe / post shared ---------- */
.title { text-align: center; padding-top: 72px; padding-bottom: 56px; }
.title .page-title { margin: 24px 0 8px; line-height: 1; }
.title .thai { font-family: var(--serif); font-size: 22px; color: var(--dim); }
.title .lead { max-width: 620px; margin: 28px auto 0; }
.byline { display: flex; justify-content: center; gap: 16px; margin-top: 32px; }
.byline span + span, .meta-line span + span { border-left: 1px solid var(--border); padding-left: 16px; }
.meta-line { display: flex; gap: 16px; flex-wrap: wrap; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 56px; }
.facts div { text-align: center; padding: 24px 8px; }
.facts div + div { border-left: 1px solid var(--line); }
.facts b { display: block; font-family: var(--serif); font-weight: 400; font-size: 28px; margin-bottom: 6px; }

.recipe-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 96px; padding: 88px 0 40px; align-items: start; }
.recipe-body h2 { margin-bottom: 8px; }
.sub { display: block; margin-bottom: 36px; }
.ing { position: sticky; top: 104px; }
.serves { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.serves button { width: 32px; height: 32px; border-radius: 40px; border: 1px solid var(--border); background: transparent; color: var(--text); font-size: 18px; cursor: pointer; transition: border-color .3s; }
.serves button:hover { border-color: var(--text); }
.serves output { font-family: var(--serif); font-size: 24px; min-width: 20px; text-align: center; }
.ing ul { list-style: none; }
.ing li { display: flex; align-items: baseline; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.ing li .name { color: var(--text); }
.ing li .name i { font-style: normal; color: var(--dim); }
.ing li .dots { flex: 1; border-bottom: 1px dotted #333; transform: translateY(-4px); }
.ing li .qty { font-family: var(--serif); font-size: 18px; white-space: nowrap; }

.steps { list-style: none; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 64px 1fr; padding: 28px 0; border-bottom: 1px solid var(--line); }
.steps li:first-child { padding-top: 0; }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--serif); font-size: 26px; color: var(--dim); line-height: 1.1; }
.steps h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 16px; line-height: 1.7; }

.notes { padding: 72px 0 24px; }
.notes .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 96px; }
.notes p { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 20px; line-height: 1.55; color: var(--muted); padding: 22px 0; border-top: 1px solid var(--line); }

.nutrition { margin-top: 56px; padding: 22px 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 32px; }
.nutrition .caps { font-size: 10px; letter-spacing: .24em; }
.nutrition dl { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 12px; }
.nutrition dl div { display: flex; gap: 6px; }
.nutrition dt { color: var(--dim); }
.nutrition dt.sub-row { font-style: italic; }
.nutrition dd { color: var(--text); }
.nutrition small { width: 100%; font-size: 11px; color: var(--dim); }

.more { margin-top: 72px; padding-top: 88px; border-top: 1px solid var(--line); }
.more .head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 48px; }
.more .head a:hover { color: var(--text); }

/* Article (blog post) */
.article { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 680px) minmax(0, 1fr); gap: 56px; padding-top: 96px; }
.article aside { grid-column: 3; align-self: start; position: sticky; top: 112px; }
.article .body { grid-column: 2; grid-row: 1; }
.body p { font-size: 18px; line-height: 1.8; color: var(--muted); margin-bottom: 24px; }
.body p strong { color: var(--text); font-weight: 400; }
.body > p:first-of-type::first-letter { font-family: var(--serif); font-size: 76px; float: left; line-height: .82; padding: 8px 14px 0 0; color: var(--text); }
.body h2 { font-family: var(--serif); font-weight: 400; font-size: 32px; letter-spacing: .01em; margin: 12px 0 20px; }
.body .kicker { display: block; margin-top: 64px; }
blockquote { margin: 56px 0; padding: 40px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; }
blockquote p { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(24px, 2.8vw, 32px); line-height: 1.35; color: var(--text); }
.body blockquote p { font-size: clamp(24px, 2.8vw, 32px); color: var(--text); margin: 0; line-height: 1.35; }
.howto { list-style: none; counter-reset: h; }
.howto li { counter-increment: h; display: grid; grid-template-columns: 56px 1fr; padding: 22px 0; border-bottom: 1px solid var(--line); }
.howto li:first-child { border-top: 1px solid var(--line); }
.howto li::before { content: counter(h, decimal-leading-zero); font-family: var(--serif); font-size: 24px; color: var(--dim); line-height: 1.2; }
.howto h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; margin-bottom: 6px; }
.body .howto p { font-size: 16px; margin: 0; line-height: 1.7; }
.verdict { margin: 56px 0; padding: 36px 40px; background: var(--card); }
.verdict .caps { color: var(--text); }
.verdict b { display: block; font-family: var(--serif); font-weight: 400; font-size: 32px; margin: 12px 0 10px; }
.body .verdict p { font-size: 16px; line-height: 1.7; margin: 0; }
.verdict .score { display: flex; gap: 6px; margin-top: 18px; }
.verdict .score i { width: 28px; height: 2px; background: var(--text); }
.glance { border-top: 1px solid var(--text); }
.glance .caps { display: block; padding: 16px 0 8px; color: var(--text); }
.glance dl div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.glance dt { color: var(--dim); }
.glance dd { color: var(--muted); text-align: right; font-family: var(--serif); font-size: 16px; }

.pager { display: grid; grid-template-columns: 1fr 1fr; margin-top: 104px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pager a { padding: 40px 0; }
.pager a + a { text-align: right; border-left: 1px solid var(--line); padding-left: 40px; }
.pager b { display: block; font-family: var(--serif); font-weight: 400; font-size: 28px; margin-top: 10px; transition: color .3s; }
.pager small { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--dim); }
.pager a:hover b { color: #fff; }

/* ---------- Blog list ---------- */
.series-head { display: flex; align-items: baseline; gap: 24px; padding-top: 72px; margin-bottom: 56px; border-top: 1px solid var(--line); }
.series-head em { font-family: var(--serif); font-style: italic; font-weight: 300; color: var(--muted); font-size: 20px; margin-left: auto; }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.posts.four { grid-template-columns: repeat(4, 1fr); gap: 32px; }
.posts.four .post h3 { font-size: 26px; }
.post .ph { aspect-ratio: 4 / 5; margin-bottom: 26px; }
.post .no { position: absolute; left: 24px; bottom: 18px; z-index: 1; font-family: var(--serif); font-size: 56px; line-height: 1; }
.post h3 { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.1; margin: 12px 0 4px; transition: color .3s; }
.post .thai { font-family: var(--serif); font-size: 17px; color: var(--dim); }
.post p { color: var(--muted); font-size: 15px; line-height: 1.65; margin-top: 14px; }
.post .more-link { display: inline-block; margin-top: 20px; color: var(--muted); border-bottom: 1px solid var(--border); padding-bottom: 4px; transition: color .3s, border-color .3s; }
.post:hover h3 { color: #fff; }
.post:hover .more-link { color: var(--text); border-color: var(--text); }
.paging { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 72px; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.paging button { background: none; border: 0; color: var(--text); cursor: pointer; padding: 8px 0; border-bottom: 1px solid transparent; transition: border-color .3s, opacity .3s; }
.paging button:hover { border-bottom-color: var(--text); }
.paging button[disabled] { opacity: .25; cursor: default; border-bottom-color: transparent; }
.paging .count { color: var(--muted); }
.posts .post[hidden] { display: none; }
.posts { transition: opacity .45s var(--ease), transform .45s var(--ease); }
.posts.turning { opacity: 0; transform: translateY(12px); }
.next-up { margin-top: 120px; padding: 40px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; }
.next-up p { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 20px; color: var(--muted); margin-top: 10px; }

/* ---------- About ---------- */
.story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 96px; align-items: center; padding-top: 40px; padding-bottom: 120px; }
.portrait { aspect-ratio: 4 / 5; }
.portrait img { object-position: center 30%; }
.portrait figcaption { position: absolute; left: 0; right: 0; bottom: 20px; z-index: 1; text-align: center; color: var(--muted); }
.story .section-title { margin: 18px 0 32px; }
.story p { color: var(--muted); font-size: 17px; line-height: 1.75; margin-bottom: 20px; max-width: 54ch; }
.story p:first-of-type::first-letter { font-family: var(--serif); font-size: 64px; float: left; line-height: .85; padding: 6px 12px 0 0; color: var(--text); }

.kitchens { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kitchens > div { padding: 72px 40px; text-align: center; }
.kitchens > div + div { border-left: 1px solid var(--line); }
.kitchens h3 { font-family: var(--serif); font-weight: 400; font-size: 30px; margin: 16px 0 6px; }
.kitchens .who { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 20px; color: var(--muted); }
.kitchens ul { list-style: none; margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; }
.kitchens li { color: var(--muted); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; font-weight: 400; }

.interlude { position: relative; height: 78vh; min-height: 460px; margin: 120px 0; overflow: hidden; }
.interlude img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; filter: brightness(.8); }
.interlude::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 60%, rgba(0,0,0,0) 20%, rgba(0,0,0,.7) 75%, #000 100%), linear-gradient(to bottom, #000 0%, rgba(0,0,0,0) 25%, rgba(0,0,0,0) 70%, #000 100%); }
.interlude blockquote { position: absolute; inset: 0; z-index: 1; margin: 0; border: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 14vh; }
.interlude blockquote p { font-style: normal; font-weight: 400; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.15; max-width: 16ch; }
.interlude blockquote em { font-style: italic; font-weight: 300; }
.interlude cite { margin-top: 24px; font-style: normal; }

.promise .head { text-align: center; margin-bottom: 72px; }
.promise ol { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 64px; counter-reset: p; }
.promise li { counter-increment: p; border-top: 1px solid var(--line); padding-top: 28px; }
.promise li::before { content: counter(p, decimal-leading-zero); display: block; font-family: var(--serif); font-size: 22px; color: var(--dim); margin-bottom: 18px; }
.promise h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; margin-bottom: 12px; }
.promise p { color: var(--muted); font-size: 15px; line-height: 1.7; }

.cta { text-align: center; padding-top: 120px; padding-bottom: 40px; }
.cta .lead { margin-bottom: 36px; }
.disclaimer { max-width: 680px; margin: 96px auto 0; padding-top: 32px; border-top: 1px solid var(--line); text-align: center; }
.disclaimer p { margin-top: 14px; font-size: 15px; line-height: 1.7; color: var(--muted); }
.btn { display: inline-block; border: 1px solid #e6e6e6; border-radius: 40px; padding: 14px 32px; font-size: 11px; letter-spacing: .28em; text-transform: uppercase; font-weight: 400; transition: background .3s, color .3s; }
.btn:hover { background: var(--text); color: #000; }

/* ---------- Home sections ---------- */
.statement { text-align: center; padding-top: 136px; padding-bottom: 120px; }
.statement p { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3vw, 38px); line-height: 1.35; max-width: 26ch; margin: 28px auto 0; }
.statement p em { font-weight: 300; color: var(--muted); }
.band { display: block; margin-bottom: 120px; }
.band:hover .caps { color: var(--text); }
.band .ph { aspect-ratio: 16 / 8; }
.band figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-top: 18px; }
.band figcaption em { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 17px; color: var(--dim); }
.home-section { padding-top: 88px; padding-bottom: 32px; border-top: 1px solid var(--line); }
.home-section .head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 56px; }
.home-section .head a:hover { color: var(--text); }
.about-teaser { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 80px; align-items: center; padding-top: 96px; padding-bottom: 32px; border-top: 1px solid var(--line); margin-top: 88px; }
.about-teaser .portrait { aspect-ratio: 4 / 5; }
.about-teaser .section-title { margin: 16px 0 20px; }
.about-teaser p { color: var(--muted); font-size: 17px; line-height: 1.75; margin-bottom: 32px; max-width: 52ch; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: calc(100vh - 73px); }
.visual { position: relative; overflow: hidden; background: #000; border-right: 1px solid var(--line); }
.visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; transform: scale(1.06); animation: glow 2.4s var(--ease) both; }
.visual::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 60% at 50% 55%, rgba(0,0,0,0) 30%, rgba(0,0,0,.7) 100%), linear-gradient(to bottom, rgba(0,0,0,.6) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 60%, rgba(0,0,0,.9) 100%); }
.visual .txt { position: absolute; left: 56px; right: 56px; bottom: 56px; z-index: 1; }
.visual .page-title { margin: 18px 0; }
.visual .lead { max-width: 420px; }
@keyframes glow { from { opacity: 0; transform: scale(1.12); } to { opacity: 1; transform: scale(1.06); } }

.form-col { display: flex; flex-direction: column; justify-content: center; padding: 88px 72px; }
.form-col h2 { font-family: var(--serif); font-weight: 400; font-size: 32px; margin: 14px 0 8px; }
.form-col .intro-text { color: var(--muted); font-size: 15px; line-height: 1.6; margin-bottom: 40px; max-width: 44ch; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 24px; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 10px; font-weight: 400; letter-spacing: .28em; text-transform: uppercase; color: var(--dim); }
.field input, .field select, .field textarea { width: 100%; background-color: var(--field); border: 1px solid #262626; border-radius: 10px; color: var(--text); font: 300 16px var(--sans); padding: 14px 16px; transition: border-color .3s, background-color .3s; -webkit-appearance: none; appearance: none; }
.field input:hover, .field select:hover, .field textarea:hover { background-color: #1f1f1f; }
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 17px) 52%; background-size: 5px 5px; background-repeat: no-repeat; cursor: pointer; padding-right: 44px; }
.field select option { background: var(--field); color: var(--text); }
.field textarea { resize: vertical; min-height: 150px; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: #8a8a8a; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: #8a8a8a; background-color: #1f1f1f; }
.field.invalid input, .field.invalid textarea { border-color: var(--error); }
.err { font-size: 13px; color: var(--error); }
.err:empty { display: none; }
.form .actions { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 8px; flex-wrap: wrap; }
.privacy { font-size: 12px; color: var(--dim); max-width: 32ch; line-height: 1.6; }
.send { background: var(--text); color: #000; border: 0; border-radius: 40px; padding: 16px 40px; cursor: pointer; font-size: 11px; font-weight: 400; letter-spacing: .28em; text-transform: uppercase; transition: background .3s, transform .2s; }
.send:hover { background: #fff; }
.send:active { transform: scale(.98); }
.send[disabled] { opacity: .5; cursor: progress; }
.done { display: none; border-top: 1px solid var(--line); padding-top: 40px; }
.done h3 { font-family: var(--serif); font-weight: 400; font-size: 32px; margin: 14px 0 10px; }
.done p { color: var(--muted); font-size: 15px; line-height: 1.6; }
.sent .form { display: none; }
.sent .done { display: block; }
.details { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.details div { padding: 40px 0 48px; text-align: center; }
.details div + div { border-left: 1px solid var(--line); }
.details .site-link { border-bottom: 1px solid var(--border); transition: border-color .3s, color .3s; }
.details .site-link:hover { color: #fff; border-color: var(--text); }
.details b { display: block; font-family: var(--serif); font-weight: 400; font-size: 22px; margin-top: 10px; }

/* ---------- Privacy / 404 ---------- */
.legal-text { max-width: 680px; margin: 0 auto; }
.legal-text .kicker:first-child { margin-top: 0; }
.body a { color: var(--text); border-bottom: 1px solid var(--border); }
.body a:hover { border-color: var(--text); }
.notfound { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding-top: 72px; padding-bottom: 72px; }
.privacy a { color: var(--muted); border-bottom: 1px solid var(--border); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 72px; }
.site-footer .inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 40px 0; flex-wrap: wrap; }
.site-footer img { height: 44px; width: auto; }
.site-footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.site-footer nav a { color: var(--dim); transition: color .3s; }
.site-footer nav a:hover { color: var(--text); }
.site-footer .legal { display: flex; justify-content: space-between; gap: 16px; padding: 20px 0 40px; border-top: 1px solid var(--line); font-size: 10px; flex-wrap: wrap; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease), color .8s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Text glow: text in the middle of the screen turns light yellow ---------- */
.hl, .hl * { transition: color .8s ease; }
.hl.lit, .hl.lit *:not(.badge) { color: var(--glow); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .js .reveal { transform: none; }
}

/* ---------- Print: recipes and posts print as clean black-on-white pages ---------- */
@media print {
  :root { --text: #000; --muted: #222; --dim: #555; --line: #ccc; --border: #999; --glow: #000; }
  body { background: #fff; color: #000; }
  .site-header, .mobile-menu, .site-footer, .skip, .crumb, figure.photo, .more, .pager, .closing, .serves button, .scroll-cue, .glance, .verdict .score { display: none !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .hl.lit, .hl.lit * { color: inherit !important; }
  .title { padding: 0 0 16px; }
  .page-title { font-size: 32pt; }
  .recipe-body { display: block; padding: 16px 0; }
  .ing { position: static; margin-bottom: 24px; }
  .ing li .dots { border-color: #bbb; }
  .steps li, .ing li, .notes p { break-inside: avoid; }
  .article { display: block; padding-top: 16px; }
  .body p { color: #222; }
  a { border: 0 !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .article { grid-template-columns: minmax(0, 1fr); }
  .article .body, .article aside { grid-column: 1; width: 100%; max-width: 680px; justify-self: center; }
  .article aside { grid-row: 2; position: static; }
  .menu.three { grid-template-columns: 1fr 1fr; }
  .posts.four { grid-template-columns: 1fr 1fr; gap: 56px 32px; }
}
@media (max-width: 900px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .topnav { display: none; }
  .menu-btn { display: flex; }
  .brand img { height: 32px; }
  .site-footer img { height: 36px; }
  .home .site-header .brand { opacity: 1; pointer-events: auto; }
  .menu, .menu.three { grid-template-columns: 1fr; }
  .cats { justify-content: flex-start; }
  .cat-head, .series-head { flex-wrap: wrap; gap: 12px; }
  .cat-head em, .series-head em { margin-left: 0; width: 100%; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:nth-child(3) { border-left: 0; }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
  figure.photo .ph, .band .ph { aspect-ratio: 4 / 3; margin-left: -16px; margin-right: -16px; }
  .band { margin-bottom: 88px; }
  .recipe-body { grid-template-columns: 1fr; gap: 64px; padding-top: 56px; }
  .ing { position: static; }
  .notes .grid2, .posts, .promise ol, .kitchens { grid-template-columns: 1fr; }
  .posts { gap: 64px; }
  .post .ph { aspect-ratio: 4 / 3; }
  .story, .about-teaser { grid-template-columns: 1fr; gap: 48px; }
  .kitchens > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .kitchens > div { padding: 56px 8px; }
  .interlude { margin: 88px 0; }
  .contact { grid-template-columns: 1fr; min-height: 0; }
  .visual { aspect-ratio: 4 / 5; border-right: 0; }
  .visual .txt { left: 16px; right: 16px; bottom: 32px; }
  .form-col { padding: 64px 16px 72px; }
  .pager { grid-template-columns: 1fr; }
  .pager a + a { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .verdict { padding: 28px 24px; }
}
@media (max-width: 640px) {
  .posts.four { grid-template-columns: 1fr; gap: 64px; }
  .form { grid-template-columns: 1fr; }
  .form .actions { flex-direction: column-reverse; align-items: stretch; }
  .details { grid-template-columns: 1fr; }
  .details div + div { border-left: 0; border-top: 1px solid var(--line); }
  .hero h1 { flex-direction: column; align-items: center; gap: 4px; }
  .hero .kitchen { padding-bottom: 0; }
}

/* Link back to the main site asterhall.se (added when Kitchen moved to /kitchen/) */
.to-global { opacity: .6; transition: opacity .3s; }
.to-global:hover, .to-global:focus-visible { opacity: 1; }
.legal a { border-bottom: 1px solid currentColor; }

/* Ingredient groups (e.g. "Sauce", "To serve") on recipes made by tools/kitchen/gen_recipes.py */
.ing .ing-group { font-size: 11px; letter-spacing: .24em; color: var(--dim); font-weight: 400; margin: 30px 0 2px; }
