:root {
  --ink: #161616;
  --paper: #f4f0e8;
  --paper-bright: #fffdf8;
  --blue: #1557ff;
  --yellow: #ffd84a;
  --red: #ef4b3f;
  --green: #167c5a;
  --muted: #6c685f;
  --line: 2px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --content: 78rem;
}

* { box-sizing: border-box; }
html { max-width: 100%; overflow-x: hidden; scroll-behavior: smooth; }
body { max-width: 100%; margin: 0; overflow-x: hidden; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, sans-serif; line-height: 1.5; }
a { color: inherit; text-underline-offset: .18em; }
h1, h2, h3, p, a { overflow-wrap: anywhere; }
button, input { font: inherit; }
button, .primary-button { border: var(--line); background: var(--yellow); color: var(--ink); padding: .75rem 1rem; font-weight: 800; cursor: pointer; box-shadow: 3px 3px 0 var(--ink); }
button:hover, .primary-button:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
:focus-visible { outline: 4px solid var(--blue); outline-offset: 3px; }
.skip-link { position: fixed; z-index: 100; top: .5rem; left: .5rem; transform: translateY(-150%); background: white; padding: .75rem; }
.skip-link:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header { max-width: var(--content); margin: 0 auto; min-height: 5.5rem; padding: 1rem 1.5rem; display: flex; align-items: center; justify-content: space-between; border-bottom: var(--line); }
.wordmark { font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; font-size: clamp(2rem, 6vw, 3.5rem); line-height: .9; letter-spacing: -.04em; text-decoration: none; }
.wordmark-dot { color: var(--blue); }
.site-header nav { display: flex; align-items: center; gap: 1.35rem; font-size: .88rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.nav-telegram { background: var(--blue); color: white; padding: .6rem .8rem; text-decoration: none; }
.menu-toggle { display: none; }

main, .site-footer, .join-strip { max-width: var(--content); margin-inline: auto; }
.city-pulse { display: grid; grid-template-columns: 1fr auto auto; gap: 1rem; align-items: center; padding: .7rem 1.5rem; background: var(--ink); color: white; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.city-pulse div { display: flex; align-items: center; gap: .55rem; font-weight: 900; }
.city-pulse p { margin: 0; color: var(--yellow); font-weight: 800; }
.pulse-dot { width: .7rem; height: .7rem; border-radius: 50%; background: #45e394; box-shadow: 0 0 0 .25rem rgb(69 227 148 / 20%); }

.lead-grid { min-width: 0; display: grid; grid-template-columns: minmax(0, 3fr) minmax(16rem, 1fr); border-bottom: var(--line); }
.lead-story { min-width: 0; padding: clamp(2rem, 6vw, 5.5rem) 1.5rem; background: var(--paper-bright); }
.lead-story h1, .article-header h1, .empty-state h1 { max-width: 18ch; margin: .35rem 0 1rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.8rem, 8vw, 7rem); line-height: .91; letter-spacing: -.055em; }
.lead-story h1 a { text-decoration: none; }
.lead-summary { max-width: 45rem; font-size: clamp(1.15rem, 2.3vw, 1.6rem); }
.eyebrow { margin: 0 0 .5rem; color: var(--blue); font-size: .76rem; font-weight: 900; text-transform: uppercase; letter-spacing: .14em; }
.text-link { display: inline-block; margin-top: 1rem; font-weight: 900; }
.city-snapshot { padding: 2rem 1.5rem; background: var(--yellow); border-left: var(--line); display: grid; align-content: center; grid-template-columns: auto 1fr; gap: .3rem .7rem; }
.city-snapshot .eyebrow, .city-snapshot a { grid-column: 1 / -1; color: var(--ink); }
.city-snapshot strong { font-family: Georgia, serif; font-size: 3rem; line-height: 1; }
.city-snapshot span { align-self: end; padding-bottom: .35rem; }

.editorial-section, .sponsors, .listing-shell, .empty-state { padding: clamp(2.5rem, 7vw, 5.5rem) 1.5rem; border-bottom: var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; margin-bottom: 1.75rem; }
.section-heading h2, .join-strip h2, .weekly-section h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(2.2rem, 5vw, 4.5rem); line-height: .95; letter-spacing: -.045em; }
.section-heading > a { font-weight: 850; }
.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.story-grid--compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.story-card { min-height: 18rem; padding: 1.25rem; border: var(--line); background: var(--paper-bright); display: flex; flex-direction: column; align-items: start; }
.story-card:nth-child(3n + 2) { transform: rotate(.35deg); }
.story-card h3 { margin: 1rem 0 .7rem; font-family: Georgia, serif; font-size: clamp(1.55rem, 2.4vw, 2.25rem); line-height: 1; letter-spacing: -.025em; }
.story-card h3 a { text-decoration-thickness: .08em; }
.story-card p { margin: 0 0 1rem; color: #38362f; }
.story-card .quirky-label, .story-card .careful-label { margin-top: auto; }
.card-meta { width: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; font-size: .7rem; font-weight: 900; text-transform: uppercase; letter-spacing: .09em; }
.district-label { color: var(--blue); }
.quirky-section { background: var(--yellow); }
.quirky-section .eyebrow { color: var(--ink); }
.national-context-section { background: #e8e4dc; border-left: .5rem solid #334c66; }
.national-context-section .eyebrow { color: #334c66; }
.left-bank-section { background: var(--blue); color: white; }
.left-bank-section .eyebrow, .left-bank-section .section-heading a { color: var(--yellow); }
.left-bank-section .story-card { color: var(--ink); }
.quirky-label, .careful-label, .language-cue { display: inline-block; padding: .25rem .5rem; border: 1px solid currentColor; font-size: .72rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.quirky-label { background: var(--yellow); }
.careful-label { background: #e6e1d8; color: #3d3b37; }
.quiet-empty { max-width: 38rem; font-family: Georgia, serif; font-size: 1.35rem; }

.event-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.event-card { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; padding: 1rem; border: var(--line); background: var(--paper-bright); }
.event-card > time { display: flex; flex-direction: column; align-items: center; justify-content: center; border-right: var(--line); font-size: .75rem; text-transform: uppercase; }
.event-card > time strong { font-family: Georgia, serif; font-size: 1.45rem; }
.event-card h3 { margin: .55rem 0 .3rem; font-family: Georgia, serif; font-size: 1.65rem; line-height: 1; }
.event-card p { margin: 0 0 .75rem; }
.event-card--closed { opacity: .68; }
.language-cue--warning { color: #8b2b20; background: #fff0ed; }
.cancelled { display: block; color: #9d1f18; margin-top: .6rem; text-transform: uppercase; }

.sponsor-slot { border: 1px dashed var(--muted); padding: 1rem; display: flex; justify-content: space-between; color: var(--muted); background: #ebe7df; }
.sponsor-slot > span { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }
.sponsor-slot > a { font-weight: 800; }
.sponsor-slot img { display: block; max-width: 10rem; max-height: 4rem; object-fit: contain; }

.article-shell { max-width: 62rem; margin-inline: auto; padding: clamp(3rem, 8vw, 7rem) 1.5rem; }
.article-header { padding-bottom: 2rem; border-bottom: var(--line); }
.article-header h1 { font-size: clamp(3rem, 9vw, 6.7rem); }
.article-shell[data-tone="sensitive"] { --blue: #334c66; }
.article-shell[data-tone="sensitive"] .article-header { background: #eeeae2; padding: 2rem; border-left: .5rem solid #334c66; }
.article-body { max-width: 43rem; margin: 2.5rem auto; font-family: Georgia, serif; font-size: 1.15rem; }
.article-body p { margin: 0 0 1.25rem; }
.article-footer { display: flex; justify-content: space-between; gap: 1rem; align-items: center; border-top: var(--line); padding-top: 1.25rem; font-weight: 800; }
.correction { padding: 1rem; border: var(--line); background: var(--yellow); }
.primary-button { display: inline-block; text-decoration: none; }
.listing-shell > h1 { font-family: Georgia, serif; font-size: clamp(3rem, 8vw, 6rem); margin: 0 0 2rem; }
.filter-nav { display: flex; flex-wrap: wrap; gap: .6rem; margin: -1rem 0 2rem; }
.filter-nav a { padding: .55rem .75rem; border: 1px solid var(--ink); font-weight: 800; text-decoration: none; }
.filter-nav a[aria-current="page"] { color: white; background: var(--ink); }
.search-form { max-width: 44rem; margin-bottom: 2rem; }
.search-form label { display: block; font-weight: 800; margin-bottom: .4rem; }
.search-form div { display: flex; }
.search-form input, .join-strip input { min-width: 0; flex: 1; border: var(--line); padding: .8rem; background: white; }

.join-strip { padding: 2rem 1.5rem; background: var(--blue); color: white; display: grid; grid-template-columns: 1.1fr 1.3fr auto; gap: 1.5rem; align-items: center; }
.join-strip .eyebrow { color: var(--yellow); }
.join-strip form { display: flex; }
.telegram-button { padding: .8rem 1rem; border: 2px solid white; font-weight: 900; text-decoration: none; }
.site-footer { padding: 2rem 1.5rem; display: grid; grid-template-columns: 1fr auto auto; gap: 2rem; font-size: .82rem; }
.site-footer nav { display: flex; gap: 1rem; }

@media (max-width: 52rem) {
  .menu-toggle { display: inline-block; }
  .site-header nav { position: absolute; z-index: 10; inset: 5.5rem 1rem auto; display: none; flex-direction: column; align-items: stretch; padding: 1rem; background: var(--paper-bright); border: var(--line); box-shadow: var(--shadow); }
  .site-header nav.is-open { display: flex; }
  .city-pulse { grid-template-columns: 1fr auto; }
  .city-pulse p { display: none; }
  .lead-grid { grid-template-columns: 1fr; }
  .city-snapshot { border-left: 0; border-top: var(--line); }
  .story-grid, .story-grid--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .event-list { grid-template-columns: 1fr; }
  .join-strip { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; }
}

@media (max-width: 35rem) {
  .story-grid, .story-grid--compact { grid-template-columns: 1fr; }
  .story-card:nth-child(3n + 2) { transform: none; }
  .event-card { grid-template-columns: 4.5rem 1fr; }
  .section-heading { align-items: start; flex-direction: column; }
  .article-footer, .sponsor-slot, .search-form div, .join-strip form { align-items: stretch; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
