:root {
  --cream: #f7f2e9;
  --paper: #fffdf8;
  --ink: #292825;
  --muted: #68645d;
  --wine: #7b2637;
  --wine-dark: #551827;
  --terra: #c6654b;
  --olive: #53614b;
  --line: #ded5c7;
  --shadow: 0 12px 35px rgba(75, 55, 40, .08);
  --radius: 18px;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: var(--sans); line-height: 1.65; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--wine); }
button, input { font: inherit; }
.skip-link { position: fixed; top: .5rem; left: .5rem; z-index: 100; padding: .65rem 1rem; background: var(--ink); color: white; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.container { width: min(1180px, calc(100% - 2rem)); margin-inline: auto; }
.narrow { width: min(760px, calc(100% - 2rem)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--cream) 94%, transparent); border-bottom: 1px solid rgba(99, 83, 66, .13); backdrop-filter: blur(10px); }
.header-row { display: flex; align-items: center; min-height: 74px; gap: 1.4rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; margin-right: auto; color: var(--wine-dark); font-family: var(--serif); font-size: 1.55rem; font-weight: 700; text-decoration: none; letter-spacing: -.03em; }
.brand-logo { width: 38px; height: 38px; object-fit: contain; flex: 0 0 auto; }
.brand-mark { width: 34px; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-family: var(--sans); font-size: .68rem; letter-spacing: .08em; }
.primary-nav { display: flex; align-items: center; gap: 1.35rem; }
.primary-nav a { font-size: .91rem; font-weight: 650; text-decoration: none; }
.nav-button { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: var(--paper); }
.hero { padding: clamp(4rem, 9vw, 8rem) 0 3.5rem; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr); align-items: center; gap: clamp(2rem, 6vw, 6rem); }
.eyebrow, .kicker { display: inline-flex; align-items: center; gap: .55rem; color: var(--wine); font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow::before, .kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.08; letter-spacing: -.035em; }
h1 { max-width: 850px; margin: .8rem 0 1.2rem; font-size: clamp(3rem, 7vw, 6.6rem); font-weight: 600; }
h2 { margin: 0 0 1rem; font-size: clamp(2rem, 4.2vw, 3.8rem); font-weight: 600; }
h3 { margin: 0 0 .55rem; font-size: 1.45rem; }
.hero-copy { max-width: 650px; color: var(--muted); font-size: clamp(1.05rem, 1.7vw, 1.25rem); }
.search-box { display: flex; max-width: 650px; margin-top: 2rem; padding: .45rem; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); }
.search-box label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.search-box input { flex: 1; min-width: 0; padding: .9rem 1.1rem; border: 0; outline: 0; background: transparent; color: var(--ink); }
.search-box button, .button { display: inline-flex; align-items: center; justify-content: center; padding: .82rem 1.25rem; border: 1px solid var(--wine); border-radius: 999px; background: var(--wine); color: white; cursor: pointer; font-weight: 750; text-decoration: none; }
.search-box button:hover, .button:hover { background: var(--wine-dark); color: white; }
.button.secondary { border-color: var(--line); background: transparent; color: var(--ink); }
.button.secondary:hover { border-color: var(--wine); color: var(--wine); }
.hero-visual { position: relative; }
.hero-photo { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; border-radius: 44% 44% 18px 18px; box-shadow: var(--shadow); }
.photo-note { position: absolute; right: -1rem; bottom: 2.5rem; max-width: 210px; padding: 1rem 1.15rem; border-radius: 12px; background: var(--paper); box-shadow: var(--shadow); font-size: .82rem; }
.photo-note strong { display: block; color: var(--wine); }
.section { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.section-head p { max-width: 560px; margin: 0; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: .7rem; }
.chip { display: inline-flex; align-items: center; gap: .45rem; padding: .68rem .9rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.4); font-size: .91rem; font-weight: 650; text-decoration: none; }
.chip:hover { border-color: var(--wine); background: var(--paper); }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.15rem; }
.card { position: relative; display: flex; flex-direction: column; min-height: 250px; padding: 1.45rem; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: 0 4px 18px rgba(70, 54, 43, .035); }
.card::after { content: ""; position: absolute; right: -32px; bottom: -38px; width: 120px; height: 120px; border: 1px solid var(--line); border-radius: 50%; opacity: .55; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); transition: .2s ease; }
.card a { text-decoration: none; }
.card p { margin: 0 0 1.1rem; color: var(--muted); }
.card .meta { margin-top: auto; color: var(--wine); font-size: .82rem; font-weight: 750; }
.card.dark { color: white; border-color: var(--olive); background: var(--olive); }
.card.dark p, .card.dark .meta { color: #f4eee2; }
.card.terra { background: #ead0c3; border-color: #d8b5a5; }
.districts { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: repeat(2, 190px); gap: 1rem; }
.district { position: relative; display: flex; flex-direction: column; justify-content: end; padding: 1.5rem; overflow: hidden; border-radius: var(--radius); color: white; background: var(--wine); text-decoration: none; }
.district:first-child { grid-row: span 2; background: var(--wine-dark); }
.district:nth-child(2) { background: var(--olive); }
.district:nth-child(3) { background: #a14837; }
.district:nth-child(4) { background: #4e6065; }
.district:nth-child(5) { background: #765742; }
.district::before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(255,255,255,.25); border-radius: 50% 18px 50% 18px; transform: rotate(-7deg); }
.district img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .48; transition: transform .35s ease, opacity .35s ease; }
.district::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(35,26,23,.88), rgba(35,26,23,.08)); }
.district:hover img { transform: scale(1.035); opacity: .6; }
.district span, .district strong { position: relative; z-index: 2; }
.district span { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; opacity: .8; }
.district strong { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 3rem); }
.newsletter { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; padding: clamp(2rem, 5vw, 4rem); border-radius: 24px; color: white; background: var(--wine-dark); }
.newsletter h2 { max-width: 650px; margin-bottom: .5rem; }
.newsletter p { margin: 0; color: #eadad8; }
.newsletter .button { border-color: white; background: white; color: var(--wine-dark); }
.page-hero { padding: clamp(3.5rem, 8vw, 7rem) 0 2.5rem; }
.page-hero h1 { max-width: 920px; font-size: clamp(2.8rem, 6vw, 5.6rem); }
.lede { max-width: 780px; color: var(--muted); font-size: 1.2rem; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.3rem; color: var(--muted); font-size: .82rem; }
.breadcrumbs a { color: inherit; }
.article-layout { display: grid; grid-template-columns: minmax(0, 760px) minmax(230px, 1fr); gap: clamp(2.5rem, 7vw, 6rem); align-items: start; }
.prose { font-size: 1.05rem; }
.prose h2 { margin-top: 2.5rem; font-size: clamp(1.8rem, 3.5vw, 2.7rem); }
.prose h3 { margin-top: 2rem; }
.prose p { margin: 0 0 1.25rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .55rem; }
.prose blockquote { margin: 2rem 0; padding: 1.4rem 1.6rem; border-left: 3px solid var(--terra); background: #efe2d6; font-family: var(--serif); font-size: 1.35rem; }
.aside { position: sticky; top: 98px; padding: 1.35rem; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.aside h2 { font-family: var(--sans); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.aside a { display: block; padding: .55rem 0; border-top: 1px solid var(--line); font-weight: 650; text-decoration: none; }
.status { display: inline-flex; align-items: center; gap: .5rem; margin: .6rem 0 1.5rem; padding: .55rem .8rem; border-radius: 999px; color: #244b38; background: #dfeadf; font-size: .86rem; font-weight: 750; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3b7756; }
.archive-photo { width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--radius); image-rendering: auto; }
.caption { margin: .55rem 0 1.5rem; color: var(--muted); font-size: .78rem; }
.fact-list { display: grid; gap: .2rem; margin: 1.5rem 0; padding: 1.25rem; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.fact-list div { display: grid; grid-template-columns: 145px 1fr; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.fact-list div:last-child { border-bottom: 0; }
.fact-list dt { color: var(--muted); }
.fact-list dd { margin: 0; font-weight: 650; }
.updated { color: var(--muted); font-size: .85rem; }
.search-results { display: none; margin-top: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.search-results.active { display: block; }
.search-results a { display: block; padding: .55rem; text-decoration: none; }
.search-results a + a { border-top: 1px solid var(--line); }
.empty { padding: 4rem 0 7rem; }
.not-found { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.not-found .code { color: var(--terra); font-family: var(--serif); font-size: clamp(5rem, 16vw, 11rem); line-height: .8; }
.site-footer { padding: 3rem 0 1.5rem; color: #e6ddd4; background: #282724; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; }
.site-footer .brand { color: white; }
.site-footer .brand-logo { width: 42px; height: 42px; }
.site-footer h2 { font-family: var(--sans); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; }
.site-footer a { display: block; margin: .35rem 0; color: #e6ddd4; text-decoration: none; }
.footer-bottom { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid #45433f; color: #aaa59d; font-size: .78rem; }
:focus-visible { outline: 3px solid var(--terra); outline-offset: 3px; }
@media (max-width: 900px) {
  .nav-button { display: grid; place-items: center; }
  .primary-nav { position: absolute; top: 74px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; padding: 1rem; background: var(--paper); border-bottom: 1px solid var(--line); }
  .primary-nav.open { display: flex; }
  .hero-grid, .article-layout { grid-template-columns: 1fr; }
  .hero-visual { max-width: 620px; }
  .hero-photo { aspect-ratio: 16 / 10; border-radius: 18px; }
  .photo-note { right: 1rem; }
  .aside { position: static; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .districts { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 180px); }
  .district:first-child { grid-row: auto; grid-column: span 2; }
}
@media (max-width: 620px) {
  .container, .narrow { width: min(100% - 1.25rem, 1180px); }
  .hero { padding-top: 3rem; }
  .hero-grid { gap: 2.4rem; }
  h1 { font-size: clamp(2.7rem, 15vw, 4.4rem); }
  .search-box { border-radius: 16px; flex-wrap: wrap; }
  .search-box input { flex-basis: 100%; }
  .search-box button { width: 100%; }
  .section-head { display: block; }
  .card-grid, .footer-grid { grid-template-columns: 1fr; }
  .districts { display: grid; grid-template-columns: 1fr; grid-template-rows: auto; }
  .district, .district:first-child { min-height: 170px; grid-column: auto; }
  .newsletter { grid-template-columns: 1fr; }
  .fact-list div { grid-template-columns: 1fr; gap: .2rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Editorial homepage */
.editorial-hero { padding: 1rem 0 0; }
.editorial-hero-frame { position: relative; min-height: min(760px, calc(100vh - 95px)); display: grid; align-items: end; overflow: hidden; border-radius: 26px; background: var(--wine-dark); box-shadow: var(--shadow); }
.editorial-hero-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(39,25,22,.92) 0%, rgba(39,25,22,.73) 38%, rgba(39,25,22,.1) 70%); }
.editorial-hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.editorial-hero-content { position: relative; z-index: 1; max-width: 770px; padding: clamp(2rem, 6vw, 5rem); color: white; }
.editorial-hero-content .eyebrow { color: #f0c5b5; }
.editorial-hero-content h1 { max-width: 740px; margin-bottom: 1rem; font-size: clamp(4rem, 9vw, 8.5rem); line-height: .86; }
.editorial-hero-content p { max-width: 620px; margin-bottom: 1.7rem; color: #f0e9df; font-size: clamp(1.05rem, 1.8vw, 1.3rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.hero-actions .button.secondary { border-color: rgba(255,255,255,.5); color: white; background: rgba(255,255,255,.08); }
.hero-credit { position: absolute; z-index: 2; right: 1.4rem; bottom: 1rem; color: rgba(255,255,255,.75); font-size: .72rem; }
.quick-search { position: relative; z-index: 5; width: min(920px, calc(100% - 2rem)); margin: -30px auto 0; padding: 1rem; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: var(--shadow); }
.quick-search .search-box { max-width: none; margin: 0; box-shadow: none; background: var(--cream); }
.quick-search .search-results { position: absolute; top: calc(100% - .4rem); left: 1rem; right: 1rem; z-index: 10; box-shadow: var(--shadow); }
.editorial-intro { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 7vw, 7rem); align-items: start; }
.editorial-intro h2 { max-width: 720px; }
.manifesto { padding-top: .6rem; color: var(--muted); font-size: 1.12rem; }
.manifesto strong { color: var(--ink); }
.choice-list { border-top: 1px solid var(--ink); }
.choice-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 1.2rem; align-items: center; padding: 1.25rem .4rem; border-bottom: 1px solid var(--line); text-decoration: none; }
.choice-row:hover { padding-left: .8rem; color: var(--wine); }
.choice-row .number { font-family: var(--serif); color: var(--terra); font-size: 1.35rem; }
.choice-row strong { font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 2rem); line-height: 1.1; }
.choice-row span:last-child { color: var(--muted); font-size: .85rem; }
.feature-layout { display: grid; grid-template-columns: 1.25fr .75fr; gap: 1.2rem; }
.feature-story { position: relative; min-height: 590px; display: flex; align-items: end; overflow: hidden; border-radius: 22px; color: white; background: var(--ink); text-decoration: none; }
.feature-story img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-story::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(32,25,21,.9), transparent 65%); }
.feature-story-copy { position: relative; z-index: 1; padding: clamp(1.6rem, 4vw, 3.5rem); }
.feature-story-copy h3 { max-width: 650px; font-size: clamp(2.2rem, 4vw, 4rem); }
.feature-story-copy p { max-width: 570px; margin: 0; color: #eee5db; }
.story-stack { display: grid; gap: 1.2rem; }
.story-panel { display: grid; grid-template-columns: 150px 1fr; min-height: 180px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); text-decoration: none; }
.story-panel img { width: 100%; height: 100%; object-fit: cover; }
.story-panel-copy { padding: 1.2rem; }
.story-panel-copy h3 { font-size: 1.35rem; }
.story-panel-copy p { color: var(--muted); font-size: .9rem; }
.story-panel.text-only { grid-template-columns: 1fr; color: white; border-color: var(--wine); background: var(--wine); }
.local-note { display: grid; grid-template-columns: .65fr 1.35fr; gap: clamp(2rem, 6vw, 6rem); padding: clamp(2rem, 6vw, 5rem); border-radius: 24px; background: #e7d7c8; }
.local-note blockquote { margin: 0; font-family: var(--serif); font-size: clamp(1.8rem, 3.5vw, 3.2rem); line-height: 1.08; }
.local-note p { margin: 0; color: #544a43; }
.reading-cover { margin: 0 0 2.4rem; }
.reading-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 18px; }
.reading-cover figcaption { margin-top: .6rem; color: var(--muted); font-size: .76rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: .65rem 1.2rem; margin: 1.2rem 0 0; color: var(--muted); font-size: .82rem; }
.article-meta span { display: inline-flex; align-items: center; gap: .4rem; }
.article-meta span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--terra); }
.prose > p:first-of-type:not(.caption) { font-size: 1.16rem; }

@media (max-width: 900px) {
  .editorial-hero-frame { min-height: 680px; }
  .editorial-hero-frame::after { background: linear-gradient(0deg, rgba(39,25,22,.93), rgba(39,25,22,.15)); }
  .editorial-hero-content { max-width: none; }
  .editorial-intro, .feature-layout, .local-note { grid-template-columns: 1fr; }
  .feature-story { min-height: 500px; }
  .story-stack { grid-template-columns: repeat(2, 1fr); }
  .story-panel { grid-template-columns: 1fr; }
  .story-panel img { height: 180px; }
  .story-panel.text-only { grid-column: span 2; }
}
@media (max-width: 620px) {
  .editorial-hero { padding-top: .5rem; }
  .editorial-hero-frame { min-height: 640px; border-radius: 18px; }
  .editorial-hero-image { object-position: 62% center; }
  .editorial-hero-content { padding: 1.5rem 1.25rem 2.4rem; }
  .editorial-hero-content h1 { font-size: clamp(3.4rem, 19vw, 5.2rem); }
  .hero-credit { display: none; }
  .quick-search { margin-top: -16px; }
  .choice-row { grid-template-columns: 42px 1fr; }
  .choice-row span:last-child { display: none; }
  .feature-story { min-height: 470px; }
  .story-stack { grid-template-columns: 1fr; }
  .story-panel { grid-template-columns: 115px 1fr; }
  .story-panel img { height: 100%; }
  .story-panel.text-only { grid-column: auto; }
}
