:root {
  --accent: #B87318;
  --accent-strong: #89500D;
  --secondary: #7A3043;
  --sky: #2F7470;
  --paper: #FFFFFF;
  --ink: #1C181A;
  --bg: var(--paper);
  --surface: #fff;
  --surface-2: #F6F4F2;
  --text: var(--ink);
  --muted: #6F686C;
  --line: rgba(28,24,26,.11);
  --line-strong: rgba(28,24,26,.23);
  --header-bg: rgba(255,255,255,.9);
  --shadow: 0 18px 60px rgba(18,19,21,.09);
  --shadow-hover: 0 24px 70px rgba(18,19,21,.14);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 38px;
  --container: 1360px;
  --header-h: 76px;
  --ease: cubic-bezier(.22,.8,.24,1);
  --display: 'Archivo Black', system-ui, sans-serif;
  --body: 'Manrope', system-ui, sans-serif;
  --font-display: var(--display);
  --olive: var(--secondary);
  --border: var(--line);
  --border-strong: var(--line-strong);
}


:root[data-theme='dark'] {
  --bg: #0d0e10;
  --surface: #17181b;
  --surface-2: #202125;
  --text: #f5f5f1;
  --muted: #a7a8ad;
  --line: rgba(255,255,255,.11);
  --line-strong: rgba(255,255,255,.24);
  --header-bg: rgba(13,14,16,.82);
  --shadow: 0 20px 64px rgba(0,0,0,.28);
  --shadow-hover: 0 26px 76px rgba(0,0,0,.4);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); font-family: var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: -1; background: radial-gradient(circle at 8% 5%, color-mix(in srgb, var(--secondary) 20%, transparent), transparent 28rem), radial-gradient(circle at 92% 20%, color-mix(in srgb, var(--sky) 15%, transparent), transparent 30rem); opacity: .58; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
svg.icon { width: 20px; height: 20px; flex: 0 0 auto; }
::selection { background: var(--secondary); color: #111214; }

.skip-link { position: fixed; left: 16px; top: 12px; z-index: 1000; padding: 11px 15px; border-radius: 999px; background: var(--text); color: var(--bg); transform: translateY(-150%); transition: transform .2s; }
.skip-link:focus { transform: translateY(0); }
.page-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 300; pointer-events: none; }
.page-progress span { display: block; width: calc(var(--scroll-progress, 0) * 100%); height: 100%; background: linear-gradient(90deg,var(--accent),var(--secondary)); }
.section-shell { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section-block { padding-block: clamp(72px, 9vw, 140px); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 200; height: var(--header-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 0 clamp(20px,3vw,44px); border-bottom: 1px solid transparent; background: var(--header-bg); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 30px rgba(0,0,0,.05); }
.brand { display: inline-flex; align-items: center; gap: 12px; width: fit-content; }
.brand-mark { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 14px; background: var(--text); overflow: hidden; }
.brand-mark::before { content: ''; width: 19px; height: 19px; border: 5px solid var(--secondary); border-radius: 50%; }
.brand-mark i { position: absolute; width: 9px; height: 9px; right: 5px; top: 5px; border-radius: 50%; background: var(--accent); }
.brand > span:last-child { display: grid; }
.brand strong { font-size: .9rem; letter-spacing: -.02em; }
.brand small { color: var(--muted); font-size: .59rem; letter-spacing: .12em; text-transform: uppercase; }
.desktop-nav { display: flex; align-items: center; gap: 5px; padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb,var(--surface) 72%,transparent); }
.desktop-nav a { padding: 9px 14px; border-radius: 999px; color: var(--muted); font-size: .76rem; font-weight: 700; transition: background .2s,color .2s,transform .2s; }
.desktop-nav a:hover { color: var(--text); }
.desktop-nav a.is-active { background: var(--text); color: var(--bg); }
.header-actions { display: flex; justify-content: flex-end; gap: 8px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; min-width: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb,var(--surface) 74%,transparent); cursor: pointer; transition: transform .2s,background .2s,border-color .2s; }
.icon-button:hover { transform: translateY(-2px); border-color: var(--line-strong); background: var(--surface); }
.icon-button span { font-size: .72rem; font-weight: 800; }
.theme-dark { display: none; }
:root[data-theme='dark'] .theme-light { display: none; }
:root[data-theme='dark'] .theme-dark { display: inline-flex; }
.mobile-menu-button { display: none; }
.mobile-menu { position: fixed; top: calc(var(--header-h) + 10px); left: 14px; right: 14px; z-index: 240; padding: 12px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); }
.mobile-menu a { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; font-weight: 700; }
.mobile-menu a:hover,.mobile-menu a.is-active { background: var(--surface-2); }

/* Hero */
.hero { position: relative; min-height: calc(100svh - var(--header-h)); display: grid; grid-template-columns: minmax(0,1.08fr) minmax(420px,.82fr); align-items: center; gap: clamp(42px,7vw,110px); padding-block: clamp(70px,9vh,120px) 100px; }
.hero-copy { position: relative; z-index: 2; }
.hero-kicker,.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.hero-kicker i { width: 28px; height: 3px; border-radius: 999px; background: var(--accent); }
.hero h1 { margin: 24px 0 28px; font-family: var(--display); font-size: clamp(4.6rem,8.1vw,9rem); line-height: .87; letter-spacing: -.065em; text-transform: uppercase; }
.hero h1 span { display: block; }
.hero h1 .accent-line { color: var(--accent); }
.hero-copy > p { max-width: 680px; margin: 0; color: var(--muted); font-size: clamp(1rem,1.2vw,1.2rem); line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 11px; min-height: 52px; padding: 0 22px; border: 1px solid var(--line); border-radius: 999px; background: transparent; font-size: .78rem; font-weight: 800; cursor: pointer; transition: transform .22s var(--ease),box-shadow .22s,background .22s; }
.button:hover { transform: translateY(-3px); }
.button--primary { background: var(--text); color: var(--bg); border-color: var(--text); box-shadow: 0 12px 28px color-mix(in srgb,var(--text) 18%,transparent); }
.button--primary:hover { box-shadow: 0 18px 40px color-mix(in srgb,var(--text) 24%,transparent); }
.button--ghost { background: var(--surface); }
.button--dark { background: #111214; color: #fff; border-color: #111214; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 44px; }
.hero-stats div { min-width: 108px; display: flex; align-items: baseline; gap: 7px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 14px; background: color-mix(in srgb,var(--surface) 70%,transparent); }
.hero-stats strong { font-family: var(--display); font-size: 1.3rem; }
.hero-stats span { color: var(--muted); font-size: .72rem; }
.hero-board { position: relative; min-height: 610px; }
.board-card { position: absolute; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.board-card--main { inset: 7% 8% 7% 3%; background: var(--surface); transform: rotate(-2deg); }
.board-card--main img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.board-card--main:hover img { transform: scale(1.035); }
.board-card--main::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg,transparent 45%,rgba(0,0,0,.72)); }
.board-card--main > div { position: absolute; left: 28px; bottom: 26px; z-index: 2; color: #fff; }
.board-card--main span { display: block; margin-bottom: 4px; font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; }
.board-card--main strong { font-family: var(--display); font-size: clamp(2.4rem,4vw,4.4rem); letter-spacing: -.05em; text-transform: uppercase; }
.board-card--small { z-index: 3; display: flex; flex-direction: column; justify-content: space-between; width: 166px; height: 166px; padding: 20px; border-radius: 26px; color: #111214; box-shadow: var(--shadow); }
.board-card--small span { font-family: var(--display); font-size: 2.15rem; line-height: .9; letter-spacing: -.06em; }
.board-card--small small { font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.board-card--lime { top: 0; right: 0; background: var(--secondary); transform: rotate(5deg); }
.board-card--orange { left: 0; bottom: 0; background: var(--accent); color: #fff; transform: rotate(-5deg); }
.board-card--orange span { font-size: 4.2rem; }
.board-orbit { position: absolute; right: 1%; bottom: 2%; width: 112px; height: 112px; border: 1px solid var(--line-strong); border-radius: 50%; animation: spin 14s linear infinite; }
.board-orbit i { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--sky); }
.board-orbit i:nth-child(1){ top: -7px; left: 49px; }.board-orbit i:nth-child(2){ right: 1px; bottom: 18px; background: var(--accent); }.board-orbit i:nth-child(3){ left: 6px; bottom: 12px; background: var(--secondary); }
.scroll-cue { position: absolute; left: 0; bottom: 30px; display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.scroll-cue i { width: 54px; height: 1px; background: var(--line-strong); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ''; position: absolute; inset: 0; background: var(--accent); transform: translateX(-100%); animation: lineMove 2.2s infinite; }

.pulse-strip { overflow: hidden; border-block: 1px solid var(--line); background: var(--text); color: var(--bg); transform: rotate(-.5deg) scale(1.01); }
.pulse-strip > div { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.pulse-strip span { display: inline-flex; align-items: center; gap: 22px; padding: 16px 32px; font-family: var(--display); font-size: clamp(1rem,1.8vw,1.55rem); letter-spacing: -.02em; }
.pulse-strip span::after { content: '✦'; color: var(--secondary); }

/* Sections */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(34px,5vw,64px); }
.section-head > div { max-width: 780px; }
.section-head h2,.tip-wall h2,.manage-banner h2 { margin: 12px 0 0; font-family: var(--display); font-size: clamp(2.6rem,5vw,5.5rem); line-height: .94; letter-spacing: -.055em; text-transform: uppercase; }
.section-head p { max-width: 650px; margin: 18px 0 0; color: var(--muted); line-height: 1.7; }
.text-link { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; padding-bottom: 5px; border-bottom: 2px solid var(--accent); font-size: .76rem; font-weight: 800; text-transform: uppercase; }
.text-link svg { transition: transform .2s; }
.text-link:hover svg { transform: translateX(4px); }
.mini-label { color: var(--muted); font-size: .66rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.chip-row { display: flex; flex-wrap: wrap; gap: 7px; }
.chip-row span { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .66rem; font-weight: 700; }

/* Cities */
.city-grid { display: grid; grid-template-columns: repeat(12,1fr); gap: 18px; }
.city-card { grid-column: span 4; min-height: 470px; }
.city-card--large { grid-column: span 8; }
.city-card > a { position: relative; display: block; height: 100%; min-height: inherit; overflow: hidden; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.city-card-media,.city-card-media img { width: 100%; height: 100%; }
.city-card-media img { object-fit: cover; transition: transform .65s var(--ease),filter .65s; }
.city-card-overlay { position: absolute; inset: 0; background: linear-gradient(180deg,rgba(0,0,0,.08),rgba(0,0,0,.76)); }
.city-card-top { position: absolute; top: 20px; left: 20px; right: 20px; display: flex; justify-content: space-between; z-index: 2; color: #fff; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.city-card-copy { position: absolute; left: 24px; right: 24px; bottom: 23px; z-index: 2; color: #fff; }
.city-card-copy > span { font-size: .67rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.city-card h3 { margin: 8px 0 10px; font-family: var(--display); font-size: clamp(2.4rem,4.5vw,5rem); line-height: .9; letter-spacing: -.055em; text-transform: uppercase; }
.city-card:not(.city-card--large) h3 { font-size: clamp(2.1rem,3vw,3.35rem); }
.city-card p { max-width: 620px; margin: 0; color: rgba(255,255,255,.78); line-height: 1.55; }
.city-card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.28); font-size: .71rem; text-transform: uppercase; }
.city-card-foot i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #fff; color: #111214; transition: transform .25s; }
.city-card:hover img { transform: scale(1.04); filter: saturate(1.1); }
.city-card:hover .city-card-foot i { transform: translateX(4px); }
.city-grid--archive .city-card:nth-child(4n+2),.city-grid--archive .city-card:nth-child(4n+3) { grid-column: span 6; }

/* Places */
.places-section { border-radius: var(--radius-xl); }
.place-list { display: grid; gap: 10px; }
.place-card { display: grid; grid-template-columns: 64px minmax(0,1fr) 180px; align-items: center; gap: 24px; min-height: 168px; padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); transition: transform .23s var(--ease),border-color .23s,box-shadow .23s; }
.place-card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.place-card-index { align-self: stretch; display: grid; place-items: center; border-right: 1px solid var(--line); color: var(--muted); font-family: var(--display); font-size: 1.15rem; }
.place-card-heading h3 { margin: 5px 0 12px; font-family: var(--display); font-size: clamp(1.55rem,2.4vw,2.7rem); line-height: 1; letter-spacing: -.045em; text-transform: uppercase; }
.place-card-main > p { max-width: 760px; margin: 0 0 15px; color: var(--muted); line-height: 1.55; }
.place-card-side { height: 100%; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.place-meta { display: flex; gap: 10px; color: var(--muted); font-size: .7rem; }
.map-link { display: inline-flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 999px; background: var(--secondary); color: #111214; font-size: .72rem; font-weight: 800; }
.map-link svg:last-child { width: 15px; transition: transform .2s; }
.map-link:hover svg:last-child { transform: translateX(3px); }

/* Content lab */
.content-lab { border-top: 1px solid var(--line); }
.content-lab-grid { display: grid; grid-template-columns: minmax(0,1.18fr) minmax(330px,.82fr); gap: 18px; }
.stories-stack,.recipes-stack { display: grid; gap: 18px; }
.story-card > a,.recipe-card > a { position: relative; display: grid; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); transition: transform .25s var(--ease),box-shadow .25s,border-color .25s; }
.story-card > a:hover,.recipe-card > a:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.story-card > a { grid-template-columns: 220px 1fr; min-height: 250px; }
.story-card--feature > a { grid-template-columns: 1fr; min-height: 520px; }
.story-media { overflow: hidden; }
.story-media img,.recipe-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.story-card:hover img,.recipe-card:hover img { transform: scale(1.035); }
.story-card--feature .story-media { position: absolute; inset: 0; }
.story-card--feature .story-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg,transparent 24%,rgba(0,0,0,.82)); }
.story-copy { position: relative; z-index: 2; display: flex; flex-direction: column; padding: 24px; }
.story-card--feature .story-copy { justify-content: flex-end; color: #fff; }
.story-meta,.story-foot { display: flex; justify-content: space-between; gap: 18px; color: var(--muted); font-size: .65rem; font-weight: 800; text-transform: uppercase; }
.story-card--feature .story-meta,.story-card--feature .story-foot { color: rgba(255,255,255,.7); }
.story-card h3,.recipe-card h3 { margin: 18px 0 10px; font-family: var(--display); font-size: clamp(1.5rem,2.5vw,2.9rem); line-height: .98; letter-spacing: -.045em; text-transform: uppercase; }
.story-card p,.recipe-card p { margin: 0; color: var(--muted); line-height: 1.58; }
.story-card--feature p { color: rgba(255,255,255,.72); }
.story-foot { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); }
.story-card--feature .story-foot { border-color: rgba(255,255,255,.2); }
.recipe-card > a { grid-template-columns: 155px 1fr; min-height: 200px; }
.recipe-card { position: relative; }
.recipe-copy { padding: 22px 22px 18px; }
.recipe-card h3 { margin-top: 7px; font-size: clamp(1.4rem,2vw,2.15rem); }
.recipe-number { position: absolute; top: 12px; left: 12px; z-index: 2; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--secondary); color: #111214; font-family: var(--display); font-size: .74rem; }
.recipe-meta { display: flex; justify-content: space-between; gap: 14px; margin-top: 18px; color: var(--muted); font-size: .68rem; font-weight: 700; }
.recipe-meta span { display: inline-flex; align-items: center; gap: 6px; }
.recipe-meta svg { width: 16px; height: 16px; }

/* Tips and banner */
.tip-wall { padding-top: 0; }
.tip-wall-head { margin-bottom: 32px; }
.tip-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.tip-card { min-height: 260px; display: grid; grid-template-columns: 50px 1fr; gap: 16px; padding: 24px; border-radius: 22px; background: var(--text); color: var(--bg); }
.tip-card:nth-child(2) { background: var(--secondary); color: #111214; }
.tip-card:nth-child(3) { background: var(--sky); color: #111214; }
.tip-card > span { font-family: var(--display); font-size: 1rem; }
.tip-card small { font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; opacity: .68; }
.tip-card h3 { margin: 14px 0 10px; font-family: var(--display); font-size: 1.65rem; line-height: 1; letter-spacing: -.04em; text-transform: uppercase; }
.tip-card p { margin: 0; line-height: 1.58; opacity: .76; }
.manage-banner { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 34px; margin-bottom: clamp(82px,10vw,140px); padding: clamp(32px,5vw,66px); border-radius: var(--radius-xl); background: var(--accent); color: #fff; }
.manage-banner h2 { max-width: 980px; }
.manage-banner p { max-width: 720px; margin: 20px 0 0; color: rgba(255,255,255,.75); line-height: 1.65; }

/* Page heroes */
.page-hero { padding-block: clamp(90px,12vw,180px) clamp(54px,7vw,94px); border-bottom: 1px solid var(--line); }
.page-hero h1,.not-found h1 { margin: 20px 0 26px; font-family: var(--display); font-size: clamp(4.2rem,9vw,10rem); line-height: .84; letter-spacing: -.07em; text-transform: uppercase; }
.page-hero h1 span,.not-found h1 span { color: var(--accent); }
.page-hero p { max-width: 680px; color: var(--muted); font-size: 1.08rem; line-height: 1.7; }
.filter-zone { padding-bottom: 120px; }
.filter-bar { display: grid; grid-template-columns: 1fr 240px; gap: 10px; margin: 28px 0 12px; }
.filter-search { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.filter-search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); }
.filter-bar select { min-height: 54px; padding: 0 15px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--text); }
.filter-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 30px; }
.filter-chips button,.search-filters button { padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); cursor: pointer; color: var(--muted); font-size: .7rem; font-weight: 800; }
.filter-chips button.is-active,.search-filters button.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }
.empty-state { padding: 36px; border: 1px dashed var(--line-strong); border-radius: 18px; color: var(--muted); text-align: center; }

/* City detail */
.city-detail-hero { display: grid; grid-template-columns: 1fr minmax(420px,.82fr); align-items: center; gap: clamp(42px,7vw,100px); min-height: calc(100svh - var(--header-h)); padding-block: clamp(74px,9vw,130px); }
.city-detail-copy h1 { margin: 20px 0 24px; font-family: var(--display); font-size: clamp(5.2rem,10vw,11rem); line-height: .82; letter-spacing: -.075em; text-transform: uppercase; }
.city-detail-copy p { max-width: 680px; color: var(--muted); font-size: 1.08rem; line-height: 1.75; }
.city-detail-stats { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 32px; }
.city-detail-stats span { padding: 10px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .71rem; }
.city-detail-stats strong { color: var(--text); }
.city-detail-media { position: relative; height: 620px; margin: 0; overflow: hidden; border-radius: var(--radius-xl); box-shadow: var(--shadow); }
.city-detail-media img { width: 100%; height: 100%; object-fit: cover; }
.city-detail-media figcaption,.article-head figure figcaption { position: absolute; left: 18px; bottom: 18px; padding: 9px 12px; border-radius: 999px; background: rgba(17,18,20,.78); color: #fff; font-size: .69rem; font-weight: 800; text-transform: uppercase; backdrop-filter: blur(8px); }

/* Archives */
.story-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.story-grid .story-card--feature { grid-row: span 2; }
.story-grid--archive { grid-template-columns: repeat(12,1fr); }
.story-grid--archive .story-card { grid-column: span 4; }
.story-grid--archive .story-card--feature { grid-column: span 8; grid-row: span 1; }
.recipe-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.recipe-grid > .recipe-card > a { display: block; min-height: 470px; }
.recipe-grid .recipe-media { height: 250px; }
.recipe-grid .recipe-copy { padding: 24px; }
.recipe-grid--archive { grid-template-columns: repeat(3,1fr); }

/* Article and recipe detail */
.article-page,.recipe-detail { padding-block: clamp(84px,9vw,140px); }
.article-head,.recipe-detail-head { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(380px,.72fr); align-items: center; gap: clamp(42px,7vw,100px); padding-bottom: clamp(60px,8vw,110px); border-bottom: 1px solid var(--line); }
.article-head h1,.recipe-detail h1 { margin: 20px 0 24px; font-family: var(--display); font-size: clamp(4rem,7.8vw,8.4rem); line-height: .87; letter-spacing: -.065em; text-transform: uppercase; }
.article-head > div > p,.recipe-detail-head > div > p { max-width: 720px; color: var(--muted); font-size: 1.08rem; line-height: 1.75; }
.article-head figure,.recipe-detail-head figure { position: relative; height: 590px; margin: 0; overflow: hidden; border-radius: var(--radius-xl); }
.article-head figure img,.recipe-detail-head figure img { width: 100%; height: 100%; object-fit: cover; }
.article-grid { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: clamp(40px,7vw,100px); padding-top: clamp(60px,8vw,110px); }
.article-body { max-width: 820px; }
.article-body section { display: grid; grid-template-columns: 54px 1fr; gap: 20px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.article-body section > span { color: var(--accent); font-family: var(--display); }
.article-body p { margin: 0; font-size: clamp(1.08rem,1.4vw,1.3rem); line-height: 1.85; }
.article-grid aside { align-self: start; position: sticky; top: calc(var(--header-h) + 24px); padding: 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.article-grid aside h2 { margin: 14px 0; font-family: var(--display); font-size: 2.4rem; letter-spacing: -.05em; text-transform: uppercase; }
.article-grid aside p { color: var(--muted); line-height: 1.65; }
.recipe-detail-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.recipe-detail-meta span { display: inline-flex; align-items: center; gap: 7px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .7rem; }
.recipe-columns { display: grid; grid-template-columns: .72fr 1.28fr; gap: 18px; padding-top: 24px; }
.ingredient-panel,.steps-panel,.tips-panel { padding: clamp(26px,4vw,48px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.ingredient-panel ul,.steps-panel ol { list-style: none; margin: 30px 0 0; padding: 0; }
.ingredient-panel li,.steps-panel li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.ingredient-panel li > span,.steps-panel li > span { color: var(--accent); font-family: var(--display); }
.steps-panel p { margin: 0; line-height: 1.7; }
.tips-panel { margin-top: 18px; background: var(--secondary); color: #111214; border: 0; }
.tips-panel > div { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 28px; }
.tips-panel p { display: flex; align-items: flex-start; gap: 10px; margin: 0; line-height: 1.6; }

/* Search */
.search-drawer { position: fixed; inset: 0; z-index: 500; display: grid; place-items: start center; padding: clamp(14px,4vw,44px); opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .25s,visibility .25s,transform .25s; }
.search-drawer.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.search-panel { width: min(960px,100%); max-height: calc(100dvh - 40px); overflow: auto; padding: clamp(22px,4vw,42px); border: 1px solid var(--line); border-radius: 28px; background: var(--bg); box-shadow: 0 30px 100px rgba(0,0,0,.28); }
.search-panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.search-panel-head h2 { margin: 8px 0 24px; font-family: var(--display); font-size: clamp(2.4rem,5vw,5rem); text-transform: uppercase; letter-spacing: -.055em; }
.search-panel-head button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); cursor: pointer; }
.global-search { display: flex; align-items: center; gap: 12px; min-height: 66px; padding: 0 18px; border: 2px solid var(--text); border-radius: 18px; }
.global-search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 1.05rem; }
.search-filters { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0 20px; }
.search-results { display: grid; gap: 8px; }
.search-result { display: grid; grid-template-columns: 42px 1fr 24px; align-items: center; gap: 14px; padding: 15px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.search-result:hover { border-color: var(--line-strong); }
.search-result-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--surface-2); }
.search-result strong { display: block; font-size: .89rem; }
.search-result small { display: block; margin-top: 4px; color: var(--muted); }
.search-hint { color: var(--muted); }
.drawer-backdrop { position: fixed; inset: 0; z-index: 490; background: rgba(0,0,0,.5); backdrop-filter: blur(6px); }

/* Footer */
.site-footer { display: grid; grid-template-columns: 1.2fr .7fr .7fr; gap: 40px; padding-block: 58px 105px; border-top: 1px solid var(--line); }
.footer-brand { display: flex; gap: 15px; align-items: flex-start; }
.footer-brand strong { font-size: 1.1rem; }
.footer-brand p { max-width: 540px; margin: 8px 0 0; color: var(--muted); font-size: .82rem; line-height: 1.6; }
.footer-links,.footer-meta { display: grid; align-content: start; gap: 10px; }
.footer-links a { color: var(--muted); font-size: .82rem; font-weight: 700; }
.footer-links a:hover { color: var(--text); }
.footer-meta { color: var(--muted); font-size: .72rem; }
.back-to-top { position: fixed; right: 20px; bottom: 20px; z-index: 130; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--text); color: var(--bg); transform: rotate(-90deg) translateX(-20px); opacity: 0; pointer-events: none; transition: opacity .2s,transform .2s; }
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: rotate(-90deg) translateX(0); }
.mobile-dock { display: none; }
.not-found { min-height: calc(100svh - var(--header-h)); display: flex; flex-direction: column; justify-content: center; padding-block: 80px; }
.not-found p { max-width: 600px; color: var(--muted); font-size: 1.05rem; }
.not-found .button { width: fit-content; margin-top: 22px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s var(--ease),transform .65s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
[hidden] { display: none !important; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes lineMove { 50%,100% { transform: translateX(100%); } }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (max-width: 1100px) {
  .site-header { grid-template-columns: 1fr auto; }
  .desktop-nav { display: none; }
  .mobile-menu-button { display: inline-flex; }
  .hero { grid-template-columns: 1fr .8fr; }
  .hero h1 { font-size: clamp(4.4rem,8.6vw,7.3rem); }
  .hero-board { min-height: 520px; }
  .city-card,.city-card--large { grid-column: span 6; }
  .place-card { grid-template-columns: 52px 1fr 155px; }
  .content-lab-grid { grid-template-columns: 1fr; }
  .recipes-stack { grid-template-columns: repeat(3,1fr); }
  .recipe-card > a { grid-template-columns: 1fr; }
  .recipe-media { height: 180px; }
  .story-grid--archive .story-card,.story-grid--archive .story-card--feature { grid-column: span 6; }
  .recipe-grid { grid-template-columns: repeat(2,1fr); }
  .city-detail-hero,.article-head,.recipe-detail-head { grid-template-columns: 1fr 1fr; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .footer-meta { grid-column: 1/-1; }
}

@media (max-width: 780px) {
  :root { --header-h: 68px; --radius-xl: 26px; --radius-lg: 22px; }
  .section-shell { width: min(calc(100% - 26px), var(--container)); }
  .site-header { height: var(--header-h); padding-inline: 14px; }
  .brand small { display: none; }
  .brand-mark { width: 36px; height: 36px; border-radius: 12px; }
  .search-button span { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 44px; padding-block: 58px 95px; }
  .hero h1 { font-size: clamp(3.9rem,17vw,6.2rem); }
  .hero-copy > p { font-size: .98rem; }
  .hero-board { min-height: 500px; }
  .board-card--main { inset: 6% 4% 8% 4%; }
  .board-card--small { width: 132px; height: 132px; padding: 16px; border-radius: 21px; }
  .board-card--small span { font-size: 1.72rem; }
  .board-card--orange span { font-size: 3.3rem; }
  .board-orbit { width: 90px; height: 90px; }
  .scroll-cue { bottom: 24px; }
  .pulse-strip span { padding: 13px 22px; }
  .section-block { padding-block: 78px; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 20px; }
  .section-head h2,.tip-wall h2,.manage-banner h2 { font-size: clamp(2.5rem,11vw,4rem); }
  .city-grid { display: grid; grid-template-columns: 1fr; }
  .city-card,.city-card--large,.city-grid--archive .city-card:nth-child(n) { grid-column: auto; min-height: 430px; }
  .city-card h3,.city-card:not(.city-card--large) h3 { font-size: 3rem; }
  .place-card { grid-template-columns: 1fr; gap: 16px; padding: 20px; }
  .place-card-index { display: none; }
  .place-card-side { align-items: stretch; gap: 14px; }
  .place-meta { justify-content: space-between; }
  .map-link { justify-content: center; min-height: 46px; }
  .content-lab-grid,.stories-stack,.recipes-stack { display: grid; grid-template-columns: 1fr; }
  .story-card > a,.story-card--feature > a { grid-template-columns: 1fr; min-height: auto; }
  .story-card:not(.story-card--feature) .story-media { height: 220px; }
  .story-card--feature > a { min-height: 490px; }
  .recipe-card > a { grid-template-columns: 150px 1fr; }
  .recipe-media { height: auto; }
  .tip-grid { grid-template-columns: 1fr; }
  .tip-card { min-height: 220px; }
  .manage-banner { grid-template-columns: 1fr; align-items: start; }
  .manage-banner .button { width: fit-content; }
  .page-hero { padding-top: 82px; }
  .page-hero h1,.not-found h1 { font-size: clamp(4rem,17vw,6.4rem); }
  .filter-bar { grid-template-columns: 1fr; }
  .city-detail-hero,.article-head,.recipe-detail-head { grid-template-columns: 1fr; min-height: auto; }
  .city-detail-copy h1 { font-size: clamp(4.7rem,19vw,7.5rem); }
  .city-detail-media,.article-head figure,.recipe-detail-head figure { height: 470px; }
  .story-grid,.story-grid--archive,.recipe-grid,.recipe-grid--archive { grid-template-columns: 1fr; }
  .story-grid--archive .story-card,.story-grid--archive .story-card--feature { grid-column: auto; }
  .recipe-grid > .recipe-card > a { min-height: auto; }
  .recipe-grid .recipe-media { height: 260px; }
  .article-grid { grid-template-columns: 1fr; }
  .article-grid aside { position: static; }
  .article-head h1,.recipe-detail h1 { font-size: clamp(3.5rem,14vw,6rem); }
  .recipe-columns { grid-template-columns: 1fr; }
  .tips-panel > div { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; padding-bottom: 130px; }
  .footer-meta { grid-column: auto; }
  .back-to-top { bottom: 82px; }
  .mobile-dock { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 180; display: grid; grid-template-columns: repeat(3,1fr); gap: 3px; padding: 6px; border: 1px solid var(--line); border-radius: 20px; background: color-mix(in srgb,var(--surface) 88%,transparent); box-shadow: var(--shadow); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
  .mobile-dock a { display: grid; justify-items: center; gap: 3px; padding: 8px 3px; border-radius: 14px; color: var(--muted); font-size: .55rem; font-weight: 700; }
  .mobile-dock a svg { width: 18px; height: 18px; }
  .mobile-dock a.is-active { background: var(--text); color: var(--bg); }
}

@media (max-width: 480px) {
  .brand strong { font-size: .82rem; }
  .icon-button { min-width: 38px; height: 38px; padding: 0 9px; }
  .hero { padding-top: 42px; }
  .hero h1 { font-size: clamp(3.4rem,16.5vw,5.2rem); }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .button { width: 100%; }
  .hero-board { min-height: 410px; }
  .board-card--main { inset: 8% 2% 8% 2%; }
  .board-card--small { width: 108px; height: 108px; border-radius: 18px; }
  .board-card--small span { font-size: 1.4rem; }
  .board-card--orange span { font-size: 2.6rem; }
  .board-card--main > div { left: 20px; bottom: 20px; }
  .board-card--main strong { font-size: 2.4rem; }
  .board-orbit { display: none; }
  .hero-stats div { min-width: 90px; }
  .recipe-card > a { grid-template-columns: 1fr; }
  .recipe-card .recipe-media { height: 210px; }
  .article-body section { grid-template-columns: 38px 1fr; gap: 12px; }
}

@media (hover:none) {
  .city-card:hover img,.story-card:hover img,.recipe-card:hover img { transform: none; }
}

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