/* Mescola magazine. Light only: white page, neutral greys, 3D topic tiles in the header,
   pastel topic colors inside components. */
:root {
  --bg: #FFFFFF; --card: #FFFFFF; --sunk: #F4F4F5;
  --ink: #111113; --body: #3B3B40; --muted: #6E6E76; --faint: #A3A3AB;
  --line: #EBEBEE; --line-strong: #D9D9DE;
  --accent: #C8361F; --accent-ink: #A52B18;
  --sage: #8FB79A;
  --f: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1200px; --r: 14px; --r-lg: 22px;
  --ease: cubic-bezier(.2, .7, .2, 1); --spring: cubic-bezier(.34, 1.56, .64, 1);
  --shadow: 0 1px 2px rgba(21, 17, 14, .04), 0 10px 30px -12px rgba(21, 17, 14, .18);
  --shadow-sm: 0 1px 2px rgba(21, 17, 14, .05), 0 4px 14px -6px rgba(21, 17, 14, .12);
  color-scheme: light only;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--body); font: 16px/1.6 var(--f); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
::selection { background: var(--ink); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* ---------------------------------------------------------------- Type & bits */
h1, h2, h3 { color: var(--ink); margin: 0; font-weight: 800; letter-spacing: -.025em; line-height: 1.1; text-wrap: balance; }
h1 { font-size: clamp(32px, 4.6vw, 52px); }
h2 { font-size: clamp(24px, 2.6vw, 32px); }
.lead { font-size: 18px; line-height: 1.55; color: var(--muted); margin: 14px 0 0; max-width: 680px; }
.meta { font-size: 13px; color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; line-height: 1; padding: 7px 11px; border-radius: 99px; color: var(--ink); background: color-mix(in srgb, var(--c, var(--accent)) 22%, white); text-decoration: none; white-space: nowrap; }
.chip svg { width: 15px; height: 15px; color: var(--c, var(--accent)); }
.chip img, .chip .topic-fallback { width: 22px; height: 22px; margin: -5px 0 -5px -4px; }
.chip-on-photo { position: absolute; left: 12px; bottom: 12px; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 12px; background: var(--ink); color: #fff; font: 600 15px var(--f); text-decoration: none; border: 1px solid var(--ink); cursor: pointer; transition: transform .2s var(--ease), background .2s, border-color .2s; }
.btn:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-topic { background: var(--sage); border-color: var(--sage); color: #fff; }
.btn-topic:hover { background: color-mix(in srgb, var(--sage) 80%, black); border-color: transparent; }
.section { margin-top: clamp(40px, 6vw, 64px); }
.section-tight { margin-top: 32px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.see-all { font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; }
.see-all:hover { color: var(--accent-ink); }
.empty { padding: 48px 0; color: var(--muted); font-size: 18px; }

/* ---------------------------------------------------------------- Header */
.site-head { background: var(--card); border-bottom: 1px solid var(--line); }
.head-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(16px, 3vw, 40px); padding-block: 16px 14px; }
.brand { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--ink); }
.brand-name { font-size: 30px; font-weight: 800; letter-spacing: -.045em; line-height: 1; }
.brand-tag { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.search { display: flex; align-items: center; gap: 8px; max-width: 520px; width: 100%; justify-self: center; height: 44px; padding: 0 6px 0 14px; border: 1px solid var(--line-strong); border-radius: 99px; background: var(--card); color: var(--muted); transition: border-color .2s, box-shadow .2s; }
.search:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(21, 17, 14, .06); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 14.5px; color: var(--ink); height: 40px; }
.search input::placeholder { color: var(--faint); }
.search button { border: 0; background: transparent; color: var(--ink); width: 36px; height: 36px; padding: 0; border-radius: 99px; cursor: pointer; display: grid; place-items: center; }
.search button:hover { background: var(--sunk); }
.search > svg { display: none; }
.langs { display: flex; gap: 2px; }
.langs a { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-decoration: none; padding: 6px 8px; border-radius: 99px; transition: color .2s, background .2s; }
.langs a:hover { color: var(--ink); background: var(--sunk); }
.langs a.on { color: #fff; background: var(--ink); }
.langs a.off { opacity: .4; }

/* the topic tiles: 3D icon on a soft gradient in the topic color */
.topics { position: relative; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; padding-block: 6px 20px; }
.topic { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 8px 14px; border-radius: 22px; text-align: center; text-decoration: none; color: var(--ink);
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 20%, white), color-mix(in srgb, var(--c) 8%, white));
  transition: transform .45s var(--spring), box-shadow .3s; }
.topic img, .topic .topic-fallback { width: 64px; height: 64px; filter: drop-shadow(0 8px 9px rgba(40, 25, 10, .2)); transition: transform .55s var(--spring); }
.topic span:last-child { font-weight: 700; font-size: 13.5px; line-height: 1.2; letter-spacing: -.01em; }
.topic:hover { transform: translateY(-4px); box-shadow: 0 18px 30px -18px var(--c); }
.topic:hover img, .topic:hover .topic-fallback { transform: translateY(-3px) rotate(-9deg) scale(1.12); }
.topic.on { background: var(--card); box-shadow: inset 0 0 0 2px var(--c), 0 18px 30px -18px var(--c); }
.topic.on span:last-child { color: var(--c); }
.topic-fallback { display: grid; place-items: center; border-radius: 50%; background: var(--card); color: var(--c); }
.topic-fallback svg { width: 46%; height: 46%; }

/* compact bar shown while the tiles are scrolled away */
.minibar { position: fixed; top: 0; left: 0; right: 0; z-index: 40; background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line); transform: translateY(-105%); transition: transform .35s var(--ease), box-shadow .35s; }
.minibar.show { transform: none; box-shadow: 0 10px 28px -18px rgba(21, 17, 14, .35); }
.minibar .wrap { max-width: 1440px; }
.minibar-row { display: flex; align-items: center; gap: 14px; height: 58px; }
.minibar-brand { flex: none; font-size: 21px; font-weight: 800; letter-spacing: -.045em; color: var(--ink); text-decoration: none; }
.minibar-topics { position: relative; flex: 1; min-width: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-block: 4px; }
.minibar-topics.overflows { -webkit-mask-image: linear-gradient(90deg, #000 94%, transparent); mask-image: linear-gradient(90deg, #000 94%, transparent); }
.minibar-topics::-webkit-scrollbar { display: none; }
.minibar-topics a { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px 4px 4px; border-radius: 99px; font-size: 13px; font-weight: 650; color: var(--ink); text-decoration: none;
  background: color-mix(in srgb, var(--c) 13%, white); transition: background .2s; }
.minibar-topics a:hover { background: color-mix(in srgb, var(--c) 26%, white); }
.minibar-topics a.on { background: var(--c); color: #fff; }
.minibar-topics img, .minibar-topics .topic-fallback { width: 24px; height: 24px; }
@media (max-width: 1359px) { .minibar-brand { display: none; } .minibar-topics a { font-size: 12.5px; } }
.minibar-search { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--ink); }
.minibar-search:hover { background: var(--sunk); }

main { padding: 28px 0 clamp(56px, 7vw, 96px); }

/* ---------------------------------------------------------------- Covers */
.cover { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--sunk); }
.cover > img, .cover .art, .cover .art svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover > img { transition: transform .8s var(--ease); }
.cover-wide { aspect-ratio: 2 / 1; border-radius: var(--r-lg); }

/* ---------------------------------------------------------------- Featured */
.featured { display: grid; grid-template-columns: 1fr 1fr; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; text-decoration: none; color: var(--body); position: relative; }
.featured::before { content: ""; position: absolute; left: 0; top: 28px; bottom: 28px; width: 6px; border-radius: 0 6px 6px 0; background: var(--sage); }
.featured-text { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 14px; padding: clamp(28px, 4vw, 56px) clamp(24px, 4vw, 48px) clamp(28px, 4vw, 56px) clamp(28px, 4vw, 52px); }
.featured-text h2 { font-size: clamp(28px, 3.6vw, 44px); }
.featured:hover .featured-text h2 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--sage); }
.featured-text p { margin: 0; font-size: 16.5px; color: var(--muted); max-width: 480px; }
.featured-text .btn { margin-top: 6px; }
.featured-media { background: color-mix(in srgb, var(--sage) 42%, white); padding: clamp(18px, 3vw, 36px); display: grid; place-items: center; }
.featured-photo { position: relative; width: 100%; aspect-ratio: 5 / 4; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--sunk); }
.featured-photo img, .featured-photo .art, .featured-photo .art svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.featured:hover .featured-photo img { transform: scale(1.03); }

/* ---------------------------------------------------------------- Topic strip (row cards) */
.row-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.row-card { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: center; padding: 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--body); box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s; }
.row-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.row-cover { position: relative; display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--sunk); }
.row-cover img, .row-cover .art, .row-cover .art svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.row-body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.row-title { font-size: 15.5px; font-weight: 700; color: var(--ink); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.row-card:hover .row-title { color: var(--accent-ink); }

/* ---------------------------------------------------------------- Latest + Most read */
.two-col { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(280px, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.grid { display: grid; gap: 28px 20px; }
.grid-2 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 16px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--body); }
.card .cover { border-radius: 16px; }
.card:hover .cover > img { transform: scale(1.04); }
.card h3 { font-size: 16.5px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; transition: color .2s; }
.card:hover h3 { color: var(--accent-ink); }
.card-text { margin: 0; font-size: 14.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ranked { list-style: none; margin: 0; padding: 0; }
.ranked li { border-bottom: 1px solid var(--line); }
.ranked li:last-child { border-bottom: 0; }
.ranked a { display: grid; grid-template-columns: 20px 64px 1fr; gap: 12px; align-items: center; padding: 12px 0; text-decoration: none; color: var(--body); }
.rank { font-size: 15px; font-weight: 800; color: var(--ink); }
.rank-cover { position: relative; display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--sunk); }
.rank-cover img, .rank-cover .art, .rank-cover .art svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rank-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rank-title { font-size: 14.5px; font-weight: 700; color: var(--ink); line-height: 1.3; transition: color .2s; }
.ranked a:hover .rank-title { color: var(--accent-ink); }

/* ---------------------------------------------------------------- App card */
.app { position: relative; display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(24px, 4vw, 64px); align-items: center; padding: clamp(24px, 4vw, 48px) clamp(24px, 4vw, 56px); background: var(--card); border-radius: var(--r-lg); overflow: hidden; }
.app::before { content: ""; position: absolute; inset: 0; border-radius: var(--r-lg); padding: 3px; background: linear-gradient(90deg, #9FC7A6, #F6C6A5, #F7E39A, #A9D3F0, #CDB7EC, #F5B6C9, #9FC7A6); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.app-text h2 { font-size: clamp(28px, 3.4vw, 42px); }
.app-text > p { margin: 16px 0 24px; font-size: 16.5px; color: var(--muted); max-width: 480px; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; }
.badge { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; border-radius: 10px; background: var(--ink); color: #fff; }
.badge span { display: flex; flex-direction: column; line-height: 1.05; font-weight: 600; font-size: 15px; }
.badge small { font-size: 10px; font-weight: 500; opacity: .75; }
.app-text .meta { margin-top: 12px; }
.phone { justify-self: center; width: min(280px, 100%); padding: 10px; border-radius: 40px; background: #1B1715; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .5), inset 0 0 0 2px rgba(255, 255, 255, .08); transform: translateY(24px); }
.phone-screen { border-radius: 32px; background: #FFFDF9; color: var(--ink); padding: 18px 16px 12px; overflow: hidden; display: flex; flex-direction: column; gap: 10px; }
.phone-nav { display: flex; justify-content: space-around; margin: 8px -4px 0; padding-top: 10px; border-top: 1px solid var(--line); }
.phone-nav span { width: 22px; height: 22px; border-radius: 7px; background: var(--sunk); }
.phone-nav span:first-child { background: var(--ink); }
.phone-top { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.phone-top span { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--ink); }
.phone-h { margin: 6px 0 0; font-size: 19px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.phone-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.phone-chips span { font-size: 11px; font-weight: 600; padding: 6px 10px; border-radius: 99px; background: var(--sunk); }
.phone-chips span:first-child { background: color-mix(in srgb, var(--accent) 20%, white); }
.phone-label { margin: 4px 0 0; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.phone-card { display: grid; grid-template-columns: 52px 1fr; gap: 10px; align-items: center; padding: 8px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); }
.phone-img { position: relative; display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; }
.phone-img img, .phone-img .art, .phone-img .art svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phone-card b { display: block; font-size: 12px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.phone-card small { font-size: 10.5px; color: var(--muted); }

/* ---------------------------------------------------------------- List pages */
.page-head { padding-top: 12px; max-width: 820px; }
.page-head-topic { max-width: none; display: flex; align-items: center; gap: clamp(18px, 3vw, 40px); padding: clamp(22px, 3vw, 36px) clamp(22px, 3.5vw, 44px); border-radius: 28px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 20%, white), color-mix(in srgb, var(--c) 6%, white)); }
.page-head-topic h1 { margin-top: 0; }
.page-head-icon { flex: none; width: clamp(84px, 10vw, 128px); height: auto; filter: drop-shadow(0 16px 18px rgba(40, 25, 10, .22)); animation: bob 6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px) rotate(-4deg); } }
.h-topic { display: flex; align-items: center; gap: 12px; }
.h-topic img, .h-topic .topic-fallback { width: 44px; height: 44px; filter: drop-shadow(0 6px 7px rgba(40, 25, 10, .18)); }
.chip-lg { font-size: 13px; padding: 8px 13px; }
.page-head h1 { margin-top: 14px; }
.page-head .meta { margin: 14px 0 0; }
.bigsearch { display: flex; gap: 10px; margin-top: 24px; max-width: 620px; }
.bigsearch input { flex: 1; min-width: 0; height: 46px; padding: 0 16px; font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line-strong); border-radius: 12px; outline: 0; }
.bigsearch input:focus { border-color: var(--ink); }

/* ---------------------------------------------------------------- Article */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 50; pointer-events: none; }
.progress span { display: block; height: 100%; transform: scaleX(0); transform-origin: 0 50%; }
.post-head { max-width: 820px; padding-top: 12px; }
.post-head h1 { margin-top: 16px; font-size: clamp(32px, 5vw, 56px); }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; font-size: 13.5px; color: var(--muted); }
.post-meta a { margin-left: 6px; font-weight: 600; }
.post-cover { margin: 32px auto; max-width: calc(960px + 2 * clamp(16px, 4vw, 40px)); }
.prose { max-width: 700px; margin: 0 auto; font-size: 18px; line-height: 1.8; }
.prose h2 { font-size: 26px; margin: 44px 0 14px; }
.prose h3 { font-size: 21px; margin: 32px 0 10px; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose table, .prose figure { margin: 0 0 20px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--c); font-weight: 700; }
.prose strong { color: var(--ink); }
.prose a { color: var(--ink); text-decoration-color: var(--c); text-decoration-thickness: 2px; }
.prose a:hover { color: var(--accent-ink); }
.prose img { border-radius: var(--r); margin: 28px 0; }
.prose blockquote { margin: 32px 0; padding: 18px 22px; border-left: 4px solid var(--c); background: color-mix(in srgb, var(--c) 10%, white); border-radius: 0 var(--r) var(--r) 0; font-size: 19px; color: var(--ink); }
.prose blockquote p:last-child { margin: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.prose th, .prose td { border-top: 1px solid var(--line); padding: 11px 14px; text-align: left; }
.prose th { border-top: 0; background: var(--sunk); font-size: 13px; }
.prose code { background: var(--sunk); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.recipes { max-width: 700px; margin: 56px auto; padding: 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.recipes h2 { margin-top: 12px; font-size: 26px; }
.recipes-text { margin: 8px 0 0; color: var(--muted); }
.recipes ul { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 10px; }
.recipes li { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 8px; border-radius: 14px; background: var(--sunk); }
.recipe-art { position: relative; width: 56px; height: 56px; border-radius: 10px; overflow: hidden; }
.recipe-art svg { width: 100%; height: 100%; }
.recipe-name { font-weight: 700; color: var(--ink); }
.post-foot { max-width: 700px; margin: 44px auto 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tag { font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: none; padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: 99px; transition: background .2s, border-color .2s; }
.tag:hover { background: var(--sunk); border-color: var(--ink); }
.note { font-size: 13px; line-height: 1.6; color: var(--muted); margin: 0; padding: 14px 16px; background: var(--sunk); border-radius: 12px; }

/* ---------------------------------------------------------------- Pager & footer */
.pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 40px; }
.pager-pos { font-size: 13px; font-weight: 600; color: var(--muted); }
.site-foot { border-top: 1px solid var(--line); background: var(--card); padding: 40px 0 28px; }
.foot-row { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(24px, 4vw, 56px); align-items: start; }
.foot-legal { margin: 14px 0 0; font-size: 12.5px; color: var(--muted); }
.foot-topics { display: flex; flex-wrap: wrap; gap: 8px; max-width: 620px; }
.foot-topics .chip { padding: 8px 12px; font-size: 12.5px; }
.foot-side { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.foot-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 16px; font-size: 13.5px; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--ink); }
.foot-note { margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 1020px) {
  .two-col { grid-template-columns: 1fr; }
  /* tiles become a row you swipe, running to the screen edges */
  .topics { display: flex; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; gap: 10px;
    margin-inline: calc(-1 * clamp(16px, 4vw, 40px)); padding: 8px clamp(16px, 4vw, 40px) 20px; scroll-padding-inline: clamp(16px, 4vw, 40px); }
  .topics::-webkit-scrollbar { display: none; }
  .topic { flex: 0 0 108px; scroll-snap-align: start; }
  .minibar-brand { display: none; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row-grid { grid-template-columns: 1fr; }
  .foot-row { grid-template-columns: 1fr; }
  .foot-side { align-items: flex-start; }
}
@media (max-width: 820px) {
  .head-row { grid-template-columns: 1fr auto; }
  .search { grid-column: 1 / -1; grid-row: 2; max-width: none; }
  .head-row .langs { grid-column: 2; grid-row: 1; }
  .brand-tag { display: none; }
  .featured { grid-template-columns: 1fr; }
  .featured-media { order: -1; }
  .featured::before { display: none; }
  .app { grid-template-columns: 1fr; }
  .phone { transform: none; order: 1; }
  .cover-wide { aspect-ratio: 16 / 10; }
}
@media (max-width: 820px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .brand-name { font-size: 26px; }
  .prose { font-size: 17px; }
  .recipes li { grid-template-columns: 48px 1fr; }
  .recipes li .meta { grid-column: 2; }
  .bigsearch { flex-direction: column; }
  .page-head-topic { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
