:root {
  color-scheme: light;
  --paper: #f3f0e8;
  --paper-deep: #e8e2d5;
  --ink: #11120f;
  --muted: #67675f;
  --line: #cbc6b9;
  --signal: #2f49ff;
  --acid: #c8ff36;
  --white: #fffef9;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; height: auto; }

.skip-link { position: fixed; z-index: 100; left: 12px; top: 12px; padding: 10px 14px; background: var(--ink); color: var(--white); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 4px; }

.site-header, .site-footer, .section-shell, .hero, .ticker, .legal-shell { width: min(1240px, calc(100% - 48px)); margin-inline: auto; }
.site-header { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; border-bottom: 1px solid var(--ink); }
.site-header nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 34px); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.site-header nav a { text-decoration: none; }
.site-header nav a:hover { text-decoration: underline; }
.nav-accent { color: var(--signal); }
.wordmark { display: inline-flex; align-items: baseline; gap: 0.18em; color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.55rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: -0.055em; text-decoration: none; white-space: nowrap; }
.wordmark span { color: var(--signal); font-family: Inter, sans-serif; font-size: 0.72em; font-weight: 900; }

.hero { min-height: min(720px, calc(100vh - 78px)); display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 0.36fr); gap: clamp(40px, 8vw, 110px); align-items: end; padding: clamp(70px, 10vw, 150px) 0 clamp(64px, 8vw, 110px); }
.hero-copy { max-width: 870px; }
.kicker { margin: 0 0 20px; color: var(--signal); font-size: 0.72rem; font-weight: 900; letter-spacing: 0.16em; text-transform: uppercase; }
.hero h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.5rem, 8.4vw, 8.2rem); font-weight: 400; line-height: 0.88; letter-spacing: -0.07em; }
.hero h1 em { color: var(--signal); font-weight: 400; }
.hero-dek { max-width: 710px; margin: 36px 0 0; color: #383934; font-size: clamp(1.08rem, 1.7vw, 1.35rem); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 22px 30px; align-items: center; margin-top: 36px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 0 20px; border: 1px solid var(--ink); font-size: 0.78rem; font-weight: 900; letter-spacing: 0.08em; text-decoration: none; text-transform: uppercase; }
.button--dark { background: var(--ink); color: var(--white); }
.button--dark:hover { background: var(--signal); border-color: var(--signal); }
.text-link { font-size: 0.83rem; font-weight: 850; letter-spacing: 0.05em; text-transform: uppercase; }
.hero-note { padding: 28px; border: 1px solid var(--ink); background: var(--acid); transform: rotate(1.25deg); }
.hero-note .signal-mark { display: block; margin-bottom: 48px; font-size: 0.75rem; font-weight: 950; letter-spacing: 0.1em; }
.hero-note p { margin: 0 0 8px; font-size: 0.9rem; }
.hero-note strong { display: block; font-family: Georgia, serif; font-size: clamp(1.55rem, 3vw, 2.4rem); line-height: 1.05; letter-spacing: -0.04em; }
.hero-note-meta { display: flex; justify-content: space-between; margin-top: 50px; padding-top: 12px; border-top: 1px solid var(--ink); font-size: 0.65rem; font-weight: 850; letter-spacing: 0.09em; text-transform: uppercase; }

.ticker { display: flex; align-items: center; justify-content: space-between; gap: 18px; overflow: hidden; padding: 15px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); font-size: 0.7rem; font-weight: 900; letter-spacing: 0.11em; text-transform: uppercase; white-space: nowrap; }
.ticker i { width: 5px; height: 5px; flex: 0 0 auto; border-radius: 50%; background: var(--signal); }

.section-shell { padding: clamp(70px, 10vw, 130px) 0; }
.section-heading { display: grid; grid-template-columns: 1fr minmax(260px, 0.45fr); gap: 30px; align-items: end; margin-bottom: 50px; }
.section-heading h2, .pulse h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(2.8rem, 6vw, 5.8rem); font-weight: 400; line-height: 0.92; letter-spacing: -0.06em; }
.section-heading > p { margin: 0; color: var(--muted); font-size: 1.05rem; line-height: 1.6; }
.section-heading--compact { grid-template-columns: 1fr; }
.status-panel { min-height: 220px; display: grid; place-items: center; padding: 30px; border: 1px solid var(--line); color: var(--muted); text-align: center; }
.article-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.article-card { grid-column: span 4; min-height: 410px; display: flex; flex-direction: column; background: var(--paper); }
.article-card:first-child { grid-column: span 8; }
.article-card__image { aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper-deep); }
.article-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 250ms ease; }
.article-card:hover .article-card__image img { transform: scale(1.02); }
.article-card__body { display: flex; flex: 1; flex-direction: column; padding: 24px; }
.article-card__label { margin: 0 0 18px; color: var(--signal); font-size: 0.65rem; font-weight: 900; letter-spacing: 0.13em; text-transform: uppercase; }
.article-card h3 { margin: 0; font-family: Georgia, serif; font-size: clamp(1.8rem, 3vw, 3.1rem); font-weight: 400; line-height: 1; letter-spacing: -0.045em; }
.article-card p { color: var(--muted); line-height: 1.55; }
.article-card__meta { display: flex; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 26px; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.article-card a { text-decoration: none; }

.beats { border-top: 1px solid var(--ink); }
.beat-grid { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.beat-grid article { min-height: 300px; padding: 24px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.beat-grid span { color: var(--signal); font-size: 0.68rem; font-weight: 900; }
.beat-grid h3 { margin: 70px 0 14px; font-family: Georgia, serif; font-size: 2.2rem; font-weight: 400; letter-spacing: -0.05em; }
.beat-grid p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.55; }

.pulse { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.6fr); gap: clamp(40px, 9vw, 130px); border-top: 1px solid var(--ink); }
.pulse-copy > p:last-child { max-width: 650px; color: var(--muted); font-size: 1.05rem; line-height: 1.6; }
.pulse-form { align-self: end; }
.pulse-form > label:first-child { display: block; margin-bottom: 9px; font-size: 0.75rem; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; }
.input-row { display: flex; border-bottom: 2px solid var(--ink); }
.input-row input { min-width: 0; flex: 1; padding: 15px 4px; border: 0; background: transparent; color: var(--ink); outline: 0; }
.input-row button { padding: 0 18px; border: 0; background: var(--ink); color: var(--white); font-size: 0.72rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.input-row button:disabled, .input-row input:disabled { cursor: not-allowed; opacity: 0.5; }
.pulse-frequency { min-width: 0; margin: 22px 0 0; padding: 0; border: 0; }
.pulse-frequency legend { padding: 0; font-size: 0.75rem; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; }
.pulse-frequency label { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 12px 0; line-height: 1.45; cursor: pointer; }
.pulse-frequency input { flex: 0 0 18px; width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--signal); }
.pulse-frequency label > span { min-width: 0; }
.pulse-frequency strong, .pulse-frequency label > span > span { display: block; }
.pulse-frequency label > span > span { color: var(--muted); font-size: 0.85rem; }
.pulse-frequency input:disabled { cursor: not-allowed; }
.pulse-frequency label:has(input:disabled) { cursor: not-allowed; opacity: 0.6; }
.consent { display: flex; gap: 10px; margin-top: 16px; color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
.consent input { width: 18px; height: 18px; margin: 0; accent-color: var(--signal); }
.consent a { color: var(--signal); }
.form-status { min-height: 1.4em; margin: 14px 0 0; font-size: 0.9rem; line-height: 1.45; }
.form-status[data-state="error"] { color: #a5271d; }
.form-status[data-state="confirmation"] { padding: 20px; border: 1px solid var(--line); border-left: 3px solid var(--signal); background: var(--white); color: var(--ink); font-size: 1rem; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }
.form-status[data-state="confirmation"]::first-line { font-weight: 750; }
.form-help { margin: 12px 0 0; color: var(--muted); font-size: 0.78rem; line-height: 1.5; }

.site-footer { display: grid; grid-template-columns: minmax(230px, 1fr) auto; gap: 40px; padding: 46px 0; border-top: 1px solid var(--ink); }
.wordmark--small { font-size: 1.55rem; }
.site-footer p { max-width: 390px; color: var(--muted); line-height: 1.5; }
.site-footer nav { display: grid; grid-template-columns: repeat(2, auto); gap: 12px 28px; align-content: start; font-size: 0.75rem; font-weight: 750; }
.copyright { grid-column: 1 / -1; margin: 10px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; }

.legal-shell { padding: clamp(70px, 9vw, 120px) 0; }
.legal-shell__header { max-width: 880px; margin-bottom: 60px; }
.legal-shell h1 { margin: 0 0 24px; font-family: Georgia, serif; font-size: clamp(3.4rem, 9vw, 7.4rem); font-weight: 400; line-height: 0.9; letter-spacing: -0.07em; }
.legal-shell__intro { color: var(--muted); font-size: 1.15rem; line-height: 1.6; }
.prose { max-width: 780px; }
.prose h2 { margin: 48px 0 12px; font-family: Georgia, serif; font-size: 2rem; font-weight: 400; letter-spacing: -0.04em; }
.prose p, .prose li { color: #3f403b; font-size: 1.02rem; line-height: 1.75; }
.prose a { color: var(--signal); }

.story-shell { width: min(900px, calc(100% - 48px)); margin-inline: auto; padding: clamp(70px, 10vw, 130px) 0; }
.story-header .kicker { margin-bottom: 26px; }
.story-header h1 { margin: 0; font-family: Georgia, serif; font-size: clamp(3rem, 8vw, 6.8rem); font-weight: 400; line-height: 0.92; letter-spacing: -0.07em; }
.story-dek { max-width: 800px; color: #44453f; font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.55; }
.story-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; margin-top: 34px; padding: 16px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); font-size: 0.72rem; font-weight: 850; letter-spacing: 0.07em; text-transform: uppercase; }
.story-cover { margin: 50px 0; }
.story-cover img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }
.story-body { max-width: 720px; margin: 60px auto 0; }
.story-body p, .story-body li { font-family: Georgia, serif; font-size: clamp(1.08rem, 1.8vw, 1.24rem); line-height: 1.8; }
.story-body h2, .story-body h3 { margin: 2.2em 0 0.55em; font-family: Georgia, serif; font-weight: 400; letter-spacing: -0.04em; }
.story-body h2 { font-size: 2.5rem; }.story-body h3 { font-size: 1.8rem; }
.story-body blockquote { margin: 2em 0; padding-left: 24px; border-left: 5px solid var(--signal); font-family: Georgia, serif; font-size: 1.6rem; line-height: 1.4; }
.story-body a { color: var(--signal); }
.story-source { max-width: 720px; margin: 50px auto 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.82rem; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-note { max-width: 430px; }
  .section-heading, .pulse { grid-template-columns: 1fr; }
  .article-card, .article-card:first-child { grid-column: span 6; }
  .beat-grid { grid-template-columns: repeat(2, 1fr); }
  .beat-grid article:last-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .site-header, .site-footer, .section-shell, .hero, .ticker, .legal-shell { width: min(100% - 28px, 1240px); }
  .site-header { align-items: flex-start; flex-direction: column; padding: 18px 0; }
  .site-header nav { width: 100%; gap: 0; justify-content: space-between; }
  .site-header nav a:nth-child(2) { display: none; }
  .hero { padding-top: 60px; }
  .hero h1 { font-size: clamp(3.1rem, 17vw, 5.2rem); }
  .hero-note { margin-inline: 8px; }
  .ticker { justify-content: flex-start; }
  .article-card, .article-card:first-child { grid-column: 1 / -1; min-height: 360px; }
  .beat-grid { grid-template-columns: 1fr; }
  .beat-grid article:last-child { grid-column: auto; }
  .beat-grid article { min-height: 220px; }
  .beat-grid h3 { margin-top: 38px; }
  .pulse { padding-bottom: 90px; }
  .input-row { align-items: stretch; flex-direction: column; border-bottom: 0; gap: 10px; }
  .input-row input { min-height: 52px; padding-inline: 12px; border: 1px solid var(--ink); }
  .input-row button { min-height: 50px; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer nav { grid-template-columns: 1fr; }
  .copyright { grid-column: auto; }
  .story-shell { width: min(100% - 28px, 900px); }
}

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