/* Daily Recipes World: design system
   Warm editorial food look. Fraunces for headings, DM Sans for text.
   Light + dark themes via html[data-theme]. Colour pairs are checked for 4.5:1 text contrast. */

:root {
  --bg: #fffbf5;
  --surface: #ffffff;
  --surface-2: #fbf2e7;
  --ink: #2a1810;
  --ink-2: #5a473b;
  --muted: #76645a;
  --line: #eadfd2;
  --brand: #c2410c;        /* text, buttons (white on it = 5.2:1) */
  --brand-dark: #9a3412;
  --brand-soft: #ffedd5;
  --brand-glow: #ee7c2b;   /* decorative only */
  --leaf: #2f6f4a;
  --leaf-soft: #e3f1e8;
  --gold: #f5b342;
  --on-brand: #ffffff;
  --shadow-sm: 0 1px 2px rgba(42, 24, 16, .06), 0 1px 3px rgba(42, 24, 16, .05);
  --shadow-md: 0 10px 30px -12px rgba(42, 24, 16, .22);
  --radius: 16px;
  --radius-sm: 10px;
  --f-head: 'Fraunces', Georgia, 'Times New Roman', serif;
  --f-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
html[data-theme='dark'] {
  --bg: #17100b;
  --surface: #211711;
  --surface-2: #2b1e16;
  --ink: #f8ecdf;
  --ink-2: #d9c8b8;
  --muted: #b09e90;
  --line: #3b2c22;
  --brand: #fb923c;
  --brand-dark: #fdba74;
  --brand-soft: #3a2314;
  --leaf: #7bc795;
  --leaf-soft: #1c2e23;
  --on-brand: #1b0f08;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 14px 34px -14px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1rem/1.65 var(--f-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 700; line-height: 1.12; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--brand-soft); color: var(--brand-dark); }

.sr-only, .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--brand); color: var(--on-brand); padding: .6rem 1rem; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 12px; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2.5rem, 820px); margin-inline: auto; }
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--tint { background: var(--surface-2); }
.icon { flex: none; }

/* ---------- small parts ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.eyebrow::before { content: ''; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-2); max-width: 56ch; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 48px; padding: .75rem 1.4rem;
  border-radius: 999px; border: 1.5px solid transparent; font-weight: 600; font-size: .98rem; line-height: 1.2;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn--primary { background: var(--brand); color: var(--on-brand); }
.btn--primary:hover { background: var(--brand-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
html[data-theme='dark'] .btn--primary:hover { background: #fdba74; }
.btn--ghost { border-color: var(--line); background: var(--surface); color: var(--ink); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--sm { min-height: 40px; padding: .5rem 1rem; font-size: .9rem; }
.btn:active { transform: scale(.98); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; padding: .4rem 1rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); font-size: .92rem; font-weight: 500; color: var(--ink-2);
  transition: background .2s, border-color .2s, color .2s;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip[aria-pressed='true'], .chip.is-active { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.pill { display: inline-flex; align-items: center; padding: .25rem .7rem; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .04em; background: var(--brand-soft); color: var(--brand-dark); }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.section__head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-top: .5rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--brand); }
.link-arrow:hover .icon { transform: translateX(3px); }
.link-arrow .icon { transition: transform .2s var(--ease); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); transition: box-shadow .25s; }
.site-header.is-scrolled { box-shadow: 0 8px 24px -16px rgba(42, 24, 16, .35); }
.site-header__inner { display: flex; align-items: center; gap: 1rem; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .75rem; min-width: 0; }
.brand__mark { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: #fff center / 82% no-repeat; flex: none; }
.brand__text { display: grid; line-height: 1.15; min-width: 0; }
.brand__name { font-family: var(--f-head); font-weight: 800; font-size: 1.2rem; letter-spacing: -.01em; }
.brand__tag { font-size: .7rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; gap: .15rem; }
.nav a { display: block; padding: .55rem 1rem; border-radius: 999px; font-weight: 500; color: var(--ink-2); transition: background .2s, color .2s; }
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a[aria-current='page'] { background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: .4rem; }
.icon-btn, .site-header .theme-cycle-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 0; transition: background .2s, border-color .2s, color .2s; }
.icon-btn:hover, .site-header .theme-cycle-btn:hover { border-color: var(--brand); color: var(--brand); background: var(--surface); transform: none; }
.menu-toggle { display: none; }
.search-panel { display: none; border-top: 1px solid var(--line); background: var(--surface); }
.search-panel.is-open { display: block; }
.search-panel form { display: flex; gap: .6rem; padding-block: 1rem; }
.field { flex: 1; min-height: 50px; padding: .7rem 1.1rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg); transition: border-color .2s, box-shadow .2s; }
.field:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
::placeholder { color: var(--muted); opacity: 1; }

@media (max-width: 920px) {
  .menu-toggle { display: inline-grid; }
  .brand__tag { display: none; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; margin: 0; background: var(--bg); border-bottom: 1px solid var(--line); display: none; padding: .75rem 1.25rem 1.25rem; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; }
  .nav a { padding: .85rem 1rem; font-size: 1.05rem; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2.5rem, 5vw, 4rem); background:
  radial-gradient(900px 420px at 88% -10%, color-mix(in srgb, var(--brand-glow) 22%, transparent), transparent 70%),
  radial-gradient(520px 340px at -4% 55%, color-mix(in srgb, var(--leaf) 11%, transparent), transparent 70%), var(--bg); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { font-size: clamp(2.7rem, 6.4vw, 5rem); line-height: 1.02; letter-spacing: -.025em; margin: 1.1rem 0 1.2rem; font-weight: 800; }
.hero h1 em { font-style: italic; font-weight: 700; color: var(--brand); }
.searchbar { display: flex; gap: .5rem; padding: .4rem; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line); box-shadow: var(--shadow-sm); margin: 1.75rem 0 1.1rem; max-width: 540px; transition: border-color .2s, box-shadow .2s; }
.searchbar:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 16%, transparent); }
.searchbar input { flex: 1; min-width: 0; border: 0; background: transparent; padding: .6rem 1rem; outline: none; }
.hero__quick { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; color: var(--muted); font-size: .9rem; }
.hero__stats { list-style: none; display: flex; flex-wrap: wrap; gap: 2rem; margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.hero__stats strong { display: block; font-family: var(--f-head); font-size: 1.9rem; line-height: 1; }
.hero__stats span { font-size: .85rem; color: var(--muted); }
.hero__art { position: relative; aspect-ratio: 1 / 1.02; max-width: 560px; justify-self: end; width: 100%; }
.hero__tile { position: absolute; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-md); border: 6px solid var(--surface); background: var(--surface-2); }
.hero__tile img { width: 100%; height: 100%; object-fit: cover; }
.hero__tile--a { inset: 0 18% 22% 0; transform: rotate(-2deg); }
.hero__tile--b { width: 46%; aspect-ratio: 1; right: 0; top: 8%; transform: rotate(4deg); }
.hero__tile--c { width: 50%; aspect-ratio: 4 / 3; right: 6%; bottom: 0; transform: rotate(-3deg); }
.hero__badge { position: absolute; left: 4%; bottom: 8%; display: flex; align-items: center; gap: .6rem; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .55rem 1rem .55rem .6rem; box-shadow: var(--shadow-md); font-size: .85rem; font-weight: 600; max-width: 70%; }
.hero__badge span.dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--leaf-soft); color: var(--leaf); flex: none; }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { max-width: 460px; justify-self: center; order: -1; aspect-ratio: 1 / .8; }
}

/* ---------- category tiles ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.1rem; }
.cat-tile { position: relative; display: block; aspect-ratio: 5 / 4; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); isolation: isolate; }
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); z-index: -2; }
.cat-tile::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(26, 13, 6, .82), rgba(26, 13, 6, .05) 60%); }
.cat-tile:hover img { transform: scale(1.06); }
.cat-tile__body { position: absolute; inset: auto 0 0 0; padding: 1.1rem 1.2rem; color: #fff; }
.cat-tile h3 { font-size: 1.35rem; color: #fff; }
.cat-tile p { font-size: .85rem; opacity: .9; margin-top: .2rem; }
.cat-tile--fallback { background: linear-gradient(135deg, #9a3412, #f59e0b); }

/* ---------- recipe cards ---------- */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; }
.grid--feature > .card:first-child { grid-column: span 2; grid-row: span 1; }
.grid--feature > .card:first-child .card__media { aspect-ratio: 16 / 9; }
.grid--feature > .card:first-child .card__title { font-size: 1.7rem; }
@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; gap: 1.3rem; } .grid--feature > .card:first-child { grid-column: auto; } .grid--feature > .card:first-child .card__media { aspect-ratio: 4 / 3; } }
.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__pill { position: absolute; left: .8rem; top: .8rem; background: color-mix(in srgb, var(--surface) 92%, transparent); color: var(--ink); backdrop-filter: blur(6px); }
.card__body { display: flex; flex-direction: column; gap: .6rem; padding: 1.15rem 1.2rem 1.3rem; flex: 1; }
.card__title { font-size: 1.28rem; line-height: 1.2; }
.card__title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.card__desc { color: var(--ink-2); font-size: .94rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__meta { margin-top: auto; padding-top: .4rem; display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .84rem; color: var(--muted); }
.card__meta span { display: inline-flex; align-items: center; gap: .35rem; }
.card__save { position: absolute; right: .7rem; top: .7rem; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; background: color-mix(in srgb, var(--surface) 92%, transparent); color: var(--ink); backdrop-filter: blur(6px); transition: color .2s, transform .2s; }
.card__save:hover { color: var(--brand); transform: scale(1.08); }
.card__save.is-saved { color: var(--brand); }
.card__save.is-saved svg { fill: currentColor; }

/* ---------- listing pages ---------- */
.page-head { padding-block: clamp(2.5rem, 5vw, 4rem) 1.5rem; background: radial-gradient(800px 260px at 85% 0, color-mix(in srgb, var(--brand-glow) 16%, transparent), transparent 70%); }
.page-head h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); margin: .9rem 0 .8rem; letter-spacing: -.02em; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .88rem; color: var(--muted); margin-bottom: .5rem; }
.crumbs a:hover { color: var(--brand); }
.crumbs span[aria-hidden] { opacity: .6; }
.crumbs [aria-current] { color: var(--ink-2); }
.toolbar { position: sticky; top: 72px; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); border-block: 1px solid var(--line); padding-block: .85rem; }
.toolbar__row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.toolbar .field { flex: 1 1 240px; max-width: 420px; }
.select { min-height: 48px; padding: .6rem 2.4rem .6rem 1rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2376645a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .9rem center; appearance: none; -webkit-appearance: none; font-weight: 500; }
.select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.toolbar__chips { display: flex; gap: .5rem; overflow-x: auto; padding-top: .75rem; scrollbar-width: none; }
.toolbar__chips::-webkit-scrollbar { display: none; }
.toolbar__chips .chip { flex: none; }
.results-count { margin: 1.6rem 0 1.2rem; color: var(--muted); font-size: .95rem; }
.results-count strong { color: var(--ink); }
.empty { grid-column: 1 / -1; text-align: center; padding: 4rem 1rem; color: var(--ink-2); }
.empty h3 { font-size: 1.6rem; margin-bottom: .4rem; }
.load-more { display: none; margin: 2.5rem auto 0; }
.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--surface), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; border-radius: var(--radius); min-height: 340px; }
@keyframes shimmer { to { background-position: -200% 0; } }

.cat-banner { position: relative; isolation: isolate; color: #fff; padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2rem, 4vw, 3rem); background: #3b1d0d; overflow: hidden; }
.cat-banner__bg { position: absolute; inset: 0; z-index: -2; }
.cat-banner__bg img { width: 100%; height: 100%; object-fit: cover; }
.cat-banner::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(95deg, rgba(23, 10, 4, .88) 20%, rgba(23, 10, 4, .45)); }
.cat-banner .crumbs, .cat-banner .crumbs [aria-current] { color: rgba(255, 255, 255, .8); }
.cat-banner .eyebrow { color: #ffc27a; }
.cat-banner h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); margin: .7rem 0 1rem; color: #fff; }
.cat-banner__desc { max-width: 70ch; color: rgba(255, 255, 255, .88); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cat-banner__desc.is-open { -webkit-line-clamp: unset; }
.cat-banner .link-arrow { color: #ffc27a; margin-top: .6rem; background: none; border: 0; padding: 0; }
.subcats { margin-top: 1.4rem; }
.subcats .chip { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); color: #fff; }
.subcats .chip:hover { background: #fff; color: #3b1d0d; border-color: #fff; }

.cat-section + .cat-section { margin-top: 3rem; }
.cat-section h2 { font-size: 1.7rem; margin-bottom: 1.1rem; }
.cat-section h2 a:hover { color: var(--brand); }

/* ---------- recipe article ---------- */
.article-head { padding-block: clamp(1.8rem, 4vw, 3rem) 1.5rem; }
.article-head h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -.02em; margin: .9rem 0 1rem; }
.article-head .lede { max-width: 66ch; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: 1.4rem; font-size: .92rem; color: var(--muted); }
.byline img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.byline strong { color: var(--ink); }
.byline .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--line); }
.article-hero { position: relative; border-radius: calc(var(--radius) + 6px); overflow: hidden; box-shadow: var(--shadow-md); background: var(--surface-2); }
.article-hero img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; max-height: 640px; }
.stats { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }
.stat { flex: 1 1 130px; min-width: 0; display: flex; align-items: center; gap: .85rem; padding: 1rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.stat .icon { color: var(--brand); }
.stat small { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.stat strong { font-size: 1.02rem; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; align-items: center; }
.share { display: flex; gap: .4rem; margin-left: auto; align-items: center; flex-wrap: wrap; }
.share__label { font-size: .8rem; color: var(--muted); font-weight: 600; margin-right: .2rem; }
.share a, .share button { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); transition: color .2s, border-color .2s, transform .2s; }
.share a:hover, .share button:hover { color: var(--brand); border-color: var(--brand); transform: translateY(-2px); }
.share svg { width: 20px; height: 20px; }
.share svg.icon { fill: none; }
.note { margin-top: 1.4rem; padding: .9rem 1.1rem; border-radius: var(--radius-sm); background: var(--leaf-soft); color: var(--leaf); font-size: .92rem; border: 1px solid color-mix(in srgb, var(--leaf) 25%, transparent); }
.recipe-layout { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; margin-top: 2.5rem; }
@media (max-width: 920px) { .recipe-layout { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.panel--sticky { position: sticky; top: 96px; }
@media (max-width: 920px) { .panel--sticky { position: static; } }
.panel h2 { font-size: 1.6rem; display: flex; align-items: center; gap: .6rem; margin-bottom: 1.1rem; }
.panel h2 .icon { color: var(--brand); }
.ingredients { list-style: none; display: grid; gap: .15rem; }
.ingredients h3 { font-size: 1rem; font-family: var(--f-body); margin: 1rem 0 .3rem; color: var(--brand); text-transform: uppercase; letter-spacing: .08em; }
.ingredients label { display: flex; gap: .8rem; align-items: flex-start; padding: .6rem .4rem; border-radius: 10px; cursor: pointer; transition: background .15s; }
.ingredients label:hover { background: var(--surface-2); }
.ingredients input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: .1rem 0 0; flex: none; border: 2px solid var(--line); border-radius: 7px; background: var(--bg); display: grid; place-items: center; transition: background .15s, border-color .15s; cursor: pointer; }
.ingredients input:checked { background: var(--brand); border-color: var(--brand); }
.ingredients input:checked::after { content: ''; width: 6px; height: 11px; border: solid var(--on-brand); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px); }
.ingredients input:checked + span { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 60%, transparent); }
.steps { list-style: none; counter-reset: step; display: grid; gap: 1.6rem; }
.step { counter-increment: step; display: grid; grid-template-columns: 48px 1fr; gap: 1.1rem; }
.step::before { content: counter(step); width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--on-brand); font-family: var(--f-head); font-weight: 800; font-size: 1.2rem; }
.step h3 { font-size: 1.25rem; margin-bottom: .35rem; padding-top: .55rem; }
.step p { color: var(--ink-2); }
.step img { margin-top: 1rem; border-radius: var(--radius-sm); width: 100%; max-width: 480px; aspect-ratio: 4 / 3; object-fit: cover; }
.callout { margin-top: 2rem; padding: 1.4rem 1.5rem; border-radius: var(--radius); background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent); }
.callout h3 { display: flex; align-items: center; gap: .55rem; font-size: 1.25rem; margin-bottom: .5rem; color: var(--brand-dark); }
.faq { margin-top: 3rem; }
.faq h2 { font-size: 1.8rem; margin-bottom: 1rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: .6rem; transition: border-color .2s; }
.faq details[open] { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; padding: 1rem 1.2rem; font-weight: 600; list-style: none; min-height: 52px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; width: 10px; height: 10px; border: solid var(--brand); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); transition: transform .25s var(--ease); flex: none; margin-right: .3rem; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq .answer { padding: 0 1.2rem 1.1rem; color: var(--ink-2); }
.tagrow { margin-top: 2.5rem; }
.more { margin-top: 4rem; }
.more h2 { font-size: 1.9rem; margin-bottom: 1.4rem; }

/* ---------- long-form text ---------- */
.prose { font-size: 1.08rem; line-height: 1.8; color: var(--ink-2); }
.prose > * + * { margin-top: 1.25em; }
.prose h2 { font-size: 1.9rem; color: var(--ink); margin-top: 2.2em; }
.prose h3 { font-size: 1.4rem; color: var(--ink); margin-top: 1.8em; }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.prose a:hover { color: var(--brand-dark); }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li + li { margin-top: .4em; }
.prose strong { color: var(--ink); }
.prose img { border-radius: var(--radius); margin-inline: auto; }
.prose figure { margin: 2em 0; }
.prose figcaption { font-size: .88rem; color: var(--muted); text-align: center; margin-top: .6rem; }
.prose blockquote { margin-inline: 0; padding: .4rem 1.4rem; border-left: 4px solid var(--brand-glow); font-family: var(--f-head); font-size: 1.25rem; color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.prose th, .prose td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--line); }
.prose th { color: var(--ink); background: var(--surface-2); }

/* ---------- newsletter + footer ---------- */
.news { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.news__box { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(1.8rem, 5vw, 3.5rem); background: #2a1810; color: #fff; display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; }
.news__box::before { content: ''; position: absolute; width: 420px; height: 420px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(238, 124, 43, .55), transparent 70%); }
.news__box > * { position: relative; }
.news h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); color: #fff; }
.news p.lede { color: rgba(255, 255, 255, .78); margin-top: .7rem; }
.news form { display: flex; gap: .5rem; padding: .4rem; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; }
.news input { flex: 1; min-width: 0; border: 0; background: transparent; color: #fff; padding: .65rem 1rem; outline: none; }
.news input::placeholder { color: rgba(255, 255, 255, .7); }
.news .btn--primary { background: #ffb26b; color: #2a1810; }
.news .btn--primary:hover { background: #fff; }
.nl-msg { margin-top: .7rem; font-size: .9rem; font-weight: 600; min-height: 1.4em; }
@media (max-width: 800px) { .news__box { grid-template-columns: 1fr; } }

.site-footer { background: #1b0f08; color: rgba(255, 255, 255, .72); padding-top: 4rem; }
.site-footer a { transition: color .2s; }
.site-footer a:hover { color: #ffb26b; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer__brand .brand__name { color: #fff; }
.footer__brand p { margin: 1.1rem 0 1.3rem; max-width: 38ch; font-size: .95rem; }
.footer__social { display: flex; gap: .5rem; }
.footer__social a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); color: #fff; }
.footer__social a:hover { background: #ffb26b; border-color: #ffb26b; color: #1b0f08; }
.site-footer h3 { font-family: var(--f-body); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 1.1rem; font-weight: 700; }
.site-footer ul { list-style: none; display: grid; gap: .65rem; font-size: .95rem; }
.site-footer li a { display: inline-flex; gap: .5rem; align-items: baseline; }
.site-footer li small { opacity: .6; font-size: .78rem; }
.footer__bottom { margin-top: 3.5rem; padding-block: 1.4rem; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; font-size: .88rem; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

/* ---------- about / contact / pages ---------- */
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.1rem; }
.value { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.value .icon-wrap { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 1rem; }
.value h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.value p { color: var(--ink-2); font-size: .95rem; }
.split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.form { display: grid; gap: 1.1rem; }
.form label { font-weight: 600; font-size: .92rem; display: grid; gap: .4rem; }
.form .field, .form textarea { border-radius: 14px; width: 100%; background: var(--surface); }
.form textarea { padding: .8rem 1.1rem; border: 1.5px solid var(--line); min-height: 150px; resize: vertical; }
.form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.contact-card { padding: 1.6rem; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); display: grid; gap: 1rem; }
.contact-card a { color: var(--brand); font-weight: 600; }

.err { min-height: 70vh; display: grid; place-items: center; text-align: center; padding-block: 4rem; }
.err__num { font-family: var(--f-head); font-weight: 900; font-size: clamp(6rem, 22vw, 12rem); line-height: .9; color: var(--brand-glow); letter-spacing: -.04em; }
.err h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 1rem 0 .7rem; }
.err .searchbar { margin-inline: auto; }
.err .chips { justify-content: center; margin-top: 1.4rem; }

/* ---------- motion + print ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print {
  .site-header, .site-footer, .news, .toolbar, .share, .actions, .more, .faq, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  .recipe-layout { grid-template-columns: 1fr; }
  .panel--sticky { position: static; }
  .article-hero { box-shadow: none; }
}

/* ---------- small-screen refinements ---------- */
.hero__grid > *, .split > *, .recipe-layout > * { min-width: 0; }
@media (max-width: 920px) {
  .site-header__inner { height: 64px; gap: .6rem; }
  .brand__name { font-size: 1.02rem; white-space: nowrap; }
  .brand__mark { width: 38px; height: 38px; }
  .icon-btn, .site-header .theme-cycle-btn { width: 42px; height: 42px; }
  .toolbar { top: 64px; }
  .panel--sticky, html { scroll-padding-top: 80px; }
}
@media (max-width: 420px) {
  .wrap, .wrap--narrow { width: min(100% - 2rem, var(--wrap)); }
  .searchbar { padding: .3rem; }
  .searchbar .btn { padding-inline: 1rem; }
  .hero__stats { gap: 1.25rem; }
  .news form { flex-direction: column; border-radius: 20px; }
  .news .btn { width: 100%; }
}
.brand { flex: 1 1 auto; }
.brand__text { min-width: 0; }
.brand__name { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 420px) {
  .brand { gap: .55rem; }
  .brand__name { font-size: .92rem; }
  .brand__mark { width: 34px; height: 34px; border-radius: 10px; }
  .icon-btn, .site-header .theme-cycle-btn { width: 40px; height: 40px; }
  .header-actions { gap: .25rem; }
  .site-header__inner { gap: .4rem; }
}

@media (max-width: 700px) { .toolbar { position: static; } }
