:root {
  color-scheme: light;
  --ink: #111111;
  --paper: #f4f2ed;
  --white: #ffffff;
  --muted: #6b6a66;
  --line: #d7d4cc;
  --coral: #ff5b49;
  --teal: #159d94;
  --yellow: #f0d84b;
  --max: 1240px;
  --header-height: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.45;
  letter-spacing: 0;
}
body.dialog-open { overflow: hidden; }
button, input { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }

.skip-link { position: fixed; top: 8px; left: 8px; z-index: 1000; padding: 10px 14px; color: var(--white); background: var(--ink); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.22);
  transition: color .3s ease, background-color .3s ease, border-color .3s ease;
}
.site-header.scrolled,
.site-header.on-light { color: var(--ink); background: rgba(244,242,237,.94); border-color: var(--line); backdrop-filter: blur(14px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; width: min(var(--max), calc(100% - 48px)); height: var(--header-height); margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; }
.brand-signal { display: flex; align-items: flex-end; gap: 3px; width: 27px; height: 26px; }
.brand-signal i { display: block; width: 7px; background: currentColor; animation: signal 1.8s ease-in-out infinite; }
.brand-signal i:nth-child(1) { height: 44%; }
.brand-signal i:nth-child(2) { height: 100%; animation-delay: -.45s; }
.brand-signal i:nth-child(3) { height: 68%; animation-delay: -.9s; }
.brand-name { font-size: 20px; line-height: 1; }
.brand-name span { color: var(--coral); }
.desktop-nav { display: flex; align-items: center; gap: 30px; font-size: 14px; }
.desktop-nav a { position: relative; }
.desktop-nav a::after { content: ""; position: absolute; right: 0; bottom: -7px; left: 0; height: 2px; background: var(--coral); transform: scaleX(0); transform-origin: right; transition: transform .25s ease; }
.desktop-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.text-button, .menu-button { padding: 0; border: 0; background: none; cursor: pointer; }
.text-button { font-size: 14px; border-bottom: 1px solid currentColor; }
.menu-button { display: none; width: 34px; height: 34px; }
.menu-button span { display: block; width: 22px; height: 2px; margin: 5px auto; background: currentColor; transition: transform .25s ease; }
.menu-button[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-button[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.mobile-nav { display: none; padding: 12px 24px 24px; color: var(--ink); background: var(--paper); border-top: 1px solid var(--line); }
.mobile-nav.open { display: grid; gap: 12px; }
.mobile-search-button { width: fit-content; padding: 10px 0 3px; border: 0; border-bottom: 1px solid currentColor; background: none; text-align: left; cursor: pointer; }

.hero { position: relative; display: flex; align-items: flex-end; min-height: min(820px, 88vh); overflow: hidden; color: var(--white); background: #1a2635; }
.hero-media, .hero-shade { position: absolute; inset: 0; }
.hero-media { background-image: url('/assets/hero-city.webp'); background-position: center; background-size: cover; transform: scale(1.035); animation: hero-breathe 14s ease-in-out infinite alternate; }
.hero-shade { background: rgba(4, 10, 18, .45); }
.hero-content { position: relative; z-index: 2; width: min(var(--max), calc(100% - 48px)); margin: 0 auto; padding: 150px 0 72px; }
.hero-meta, .story-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.hero-meta span + span::before, .story-meta span + span::before { content: "·"; margin-right: 16px; }
.hero h1 { max-width: 900px; margin: 18px 0 22px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(46px, 7.1vw, 96px); font-weight: 500; line-height: .96; letter-spacing: 0; text-wrap: balance; }
.hero-content > p { max-width: 620px; margin: 0; font-size: 19px; color: rgba(255,255,255,.84); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.primary-button, .outline-button, .subscribe-form button { min-height: 46px; padding: 12px 18px; border: 1px solid var(--ink); border-radius: 4px; font-weight: 700; cursor: pointer; transition: transform .2s ease, background-color .2s ease, color .2s ease; }
.primary-button { border-color: var(--coral); color: var(--ink); background: var(--coral); }
.primary-button:hover, .outline-button:hover, .subscribe-form button:hover { transform: translateY(-2px); }
.save-button { width: fit-content; padding: 6px 0; border: 0; border-bottom: 1px solid currentColor; background: none; font-size: 13px; cursor: pointer; }
.save-button[aria-pressed="true"] { color: var(--teal); }
.save-button-light { color: var(--white); border-color: rgba(255,255,255,.7); }
.scroll-cue { position: absolute; z-index: 3; right: max(24px, calc((100vw - var(--max)) / 2)); bottom: 32px; display: flex; align-items: center; gap: 10px; font-size: 11px; text-transform: uppercase; }
.scroll-cue span { width: 42px; height: 1px; background: currentColor; animation: cue 1.6s ease-in-out infinite; }

.pulse-line { overflow: hidden; color: var(--ink); background: var(--yellow); border-bottom: 1px solid var(--ink); }
.pulse-track { display: flex; align-items: center; gap: 28px; width: max-content; min-height: 46px; animation: ticker 26s linear infinite; }
.pulse-track span { font-size: 13px; font-weight: 700; text-transform: uppercase; white-space: nowrap; }
.pulse-track i { width: 7px; height: 7px; background: var(--coral); border-radius: 50%; }

.section { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; padding: 100px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 38px; }
.section-kicker { margin: 0 0 8px; color: var(--teal); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.section h2, .focus-band h2, .newsletter-band h2, .page-hero h1, .article-dialog h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: 0; }
.section h2 { font-size: 60px; line-height: 1; }
.category-tabs { display: flex; border-bottom: 1px solid var(--line); }
.category-tabs button { padding: 9px 13px; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--muted); cursor: pointer; }
.category-tabs button[aria-selected="true"] { color: var(--ink); border-color: var(--coral); }

.story-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 24px; }
.story-card { display: grid; grid-template-rows: auto 1fr; min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.story-card-wide { grid-column: 1 / -1; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr); grid-template-rows: 1fr; }
.story-card[hidden] { display: none; }
.story-image { display: block; width: 100%; padding: 0; overflow: hidden; border: 0; background: #d8d8d5; cursor: pointer; }
.story-image img { height: 100%; min-height: 360px; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.story-card:not(.story-card-wide) .story-image { aspect-ratio: 4 / 3; }
.story-card:not(.story-card-wide) .story-image img { min-height: 0; }
.story-card:hover .story-image img { transform: scale(1.035); }
.story-body { display: flex; flex-direction: column; align-items: flex-start; padding: 28px; }
.story-meta { color: var(--muted); }
.story-body h3 { margin: 18px 0 12px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(28px, 3.2vw, 46px); font-weight: 500; line-height: 1.04; letter-spacing: 0; }
.story-card:not(.story-card-wide) h3 { font-size: clamp(27px, 2.5vw, 38px); }
.story-body h3 button { padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.story-body p { margin: 0 0 26px; color: var(--muted); font-size: 16px; }
.story-body .save-button { margin-top: auto; }
.empty-state { padding: 48px 0; color: var(--muted); border-top: 1px solid var(--line); }

.focus-band { display: grid; grid-template-columns: 1.2fr .8fr; gap: 72px; padding: 110px max(24px, calc((100vw - var(--max)) / 2)); color: var(--white); background: var(--ink); }
.focus-copy h2 { max-width: 760px; font-size: clamp(44px, 6vw, 78px); line-height: .98; text-wrap: balance; }
.focus-copy > p:not(.section-kicker) { max-width: 650px; margin: 24px 0 30px; color: #bab9b5; font-size: 18px; }
.focus-copy .outline-button { color: var(--white); border-color: #6e6e6c; background: transparent; }
.focus-copy .outline-button:hover { color: var(--ink); background: var(--yellow); border-color: var(--yellow); }
.focus-notes { align-self: end; border-top: 1px solid #444; }
.focus-notes div { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid #444; }
.focus-notes strong { color: var(--coral); }
.focus-notes span { font-size: 18px; }

.newsletter-band { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; width: min(var(--max), calc(100% - 48px)); margin: 0 auto; padding: 100px 0; }
.newsletter-band h2 { max-width: 650px; font-size: clamp(42px, 5vw, 68px); line-height: 1; }
.subscribe-form { align-self: end; }
.subscribe-form label { display: block; margin-bottom: 10px; font-size: 13px; font-weight: 700; }
.subscribe-form > div { display: grid; grid-template-columns: 1fr auto; }
.subscribe-form input { min-width: 0; min-height: 50px; padding: 12px 14px; border: 1px solid var(--ink); border-right: 0; border-radius: 4px 0 0 4px; background: var(--white); }
.subscribe-form button { border-radius: 0 4px 4px 0; color: var(--white); background: var(--ink); }
.form-note { margin: 10px 0 0; color: var(--muted); font-size: 12px; }
.form-note.success { color: var(--teal); font-weight: 700; }

.site-footer { padding: 54px max(24px, calc((100vw - var(--max)) / 2)) 28px; color: var(--white); background: #1c1c1c; }
.footer-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding-bottom: 44px; }
.footer-top p { max-width: 360px; margin: 0; color: #aeadab; text-align: right; }
.brand-footer .brand-name { font-size: clamp(30px, 4vw, 48px); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 20px 32px; padding-top: 24px; color: #aeadab; border-top: 1px solid #424242; font-size: 13px; }
.footer-bottom span { margin-right: auto; }
.footer-bottom a:hover { color: var(--white); }

dialog { width: min(780px, calc(100% - 32px)); max-height: calc(100vh - 32px); padding: 0; color: var(--ink); background: var(--paper); border: 1px solid var(--ink); border-radius: 6px; box-shadow: 0 20px 70px rgba(0,0,0,.28); }
dialog::backdrop { background: rgba(13,13,13,.66); backdrop-filter: blur(5px); }
.dialog-top { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.dialog-top button { padding: 6px 0; border: 0; border-bottom: 1px solid currentColor; background: none; cursor: pointer; }
.search-dialog { padding-bottom: 28px; }
.search-dialog > label { display: block; margin: 28px 28px 10px; font-weight: 700; }
.search-dialog > input { display: block; width: calc(100% - 56px); margin: 0 28px; padding: 14px; border: 1px solid var(--ink); border-radius: 3px; background: var(--white); font-size: 18px; }
.search-results { display: grid; margin: 20px 28px 0; border-top: 1px solid var(--line); }
.search-results button { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; cursor: pointer; }
.search-results button span:last-child { color: var(--muted); font-size: 12px; text-transform: uppercase; }
.article-dialog article { padding: 42px clamp(24px, 7vw, 72px) 64px; }
.article-dialog h2 { margin: 7px 0 22px; font-size: clamp(38px, 7vw, 66px); line-height: 1; }
.article-lead { color: var(--muted); font-size: 20px; }
.article-copy { margin-top: 30px; font-family: Georgia, "Times New Roman", serif; font-size: 18px; line-height: 1.68; }
.article-copy p { margin: 0 0 20px; }

.page-shell { padding-top: var(--header-height); }
.page-shell .site-header { color: var(--ink); background: var(--paper); border-color: var(--line); }
.page-hero { width: min(960px, calc(100% - 48px)); min-height: 56vh; margin: 0 auto; padding: 110px 0 80px; }
.page-hero h1 { max-width: 900px; font-size: clamp(52px, 8vw, 96px); line-height: .95; }
.page-hero > p { max-width: 720px; margin: 28px 0 0; color: var(--muted); font-size: 20px; }
.page-content { width: min(960px, calc(100% - 48px)); margin: 0 auto; padding: 0 0 110px; }
.page-content-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.page-content-grid article { padding: 28px 28px 28px 0; border-bottom: 1px solid var(--line); }
.page-content-grid h2 { margin: 0 0 12px; font-family: Georgia, "Times New Roman", serif; font-size: 28px; font-weight: 500; }
.page-content-grid p { margin: 0; color: var(--muted); }
.status-panel { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.status-dot { width: 14px; height: 14px; margin-top: 6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 7px rgba(21,157,148,.12); }
.status-panel h2 { margin: 0 0 6px; font-size: 24px; }
.status-panel p { margin: 0; color: var(--muted); }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .65s ease, transform .65s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

@keyframes signal { 0%,100% { transform: scaleY(.72); } 50% { transform: scaleY(1); } }
@keyframes hero-breathe { from { transform: scale(1.035); } to { transform: scale(1.085); } }
@keyframes cue { 0%,100% { transform: scaleX(.7); transform-origin: left; } 50% { transform: scaleX(1); transform-origin: left; } }
@keyframes ticker { to { transform: translateX(-50%); } }

@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .menu-button { display: block; }
  .story-card-wide { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .story-card-wide .story-image { aspect-ratio: 16 / 10; }
  .story-card-wide .story-image img { min-height: 0; }
  .focus-band, .newsletter-band { grid-template-columns: 1fr; }
  .focus-band { gap: 56px; }
  .page-content-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  :root { --header-height: 64px; }
  .header-inner, .hero-content, .section, .newsletter-band { width: min(100% - 32px, var(--max)); }
  .header-inner { height: var(--header-height); }
  .text-button { display: none; }
  .page-shell .text-button { display: inline-block; }
  .hero { min-height: 760px; }
  .hero-media { background-position: 61% center; }
  .hero-content { padding-bottom: 90px; }
  .hero h1 { font-size: clamp(46px, 13vw, 66px); }
  .hero-content > p { font-size: 17px; }
  .scroll-cue { right: 16px; bottom: 28px; }
  .section { padding: 72px 0; }
  .section-head { align-items: flex-start; flex-direction: column; margin-bottom: 28px; }
  .section h2 { font-size: 50px; }
  .category-tabs { width: 100%; overflow-x: auto; }
  .category-tabs button { flex: 0 0 auto; }
  .story-grid { grid-template-columns: 1fr; }
  .story-card-wide { grid-column: auto; }
  .story-body { padding: 22px; }
  .focus-band { padding-top: 76px; padding-bottom: 76px; }
  .newsletter-band { padding: 76px 0; }
  .subscribe-form > div { grid-template-columns: 1fr; }
  .subscribe-form input { border-right: 1px solid var(--ink); border-radius: 4px 4px 0 0; }
  .subscribe-form button { border-radius: 0 0 4px 4px; }
  .footer-top { align-items: flex-start; flex-direction: column; }
  .footer-top p { text-align: left; }
  .footer-bottom span { width: 100%; }
  .page-hero, .page-content { width: calc(100% - 32px); }
  .page-hero { padding-top: 80px; }
}

@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; }
}
