:root {
  --ink: #0a1520;
  --paper: #f6f1e8;
  --paper-deep: #e9e2d7;
  --coral: #ff6652;
  --blue: #b9d7e2;
  --muted: #626c73;
  --line: rgba(10, 21, 32, 0.22);
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.skip-link { position: fixed; top: -5rem; left: 1rem; z-index: 20; background: var(--coral); color: var(--ink); padding: .7rem 1rem; font-weight: 700; }
.skip-link:focus { top: 1rem; }
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 30; background: transparent; }
.progress span { display: block; width: 0; height: 100%; background: var(--coral); }

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.2rem, 4vw, 4.5rem);
  color: var(--paper);
  border-bottom: 1px solid rgba(246, 241, 232, .24);
}
.brand { display: inline-flex; align-items: center; gap: .7rem; font-weight: 700; text-decoration: none; letter-spacing: -.02em; }
.brand-mark { width: 1rem; height: 1rem; border-radius: 50%; background: var(--coral); box-shadow: .45rem 0 0 rgba(246, 241, 232, .5); }
nav { display: flex; gap: clamp(1.2rem, 3vw, 2.8rem); }
nav a { font-size: .88rem; text-transform: uppercase; letter-spacing: .11em; text-decoration: none; }
nav a:hover, nav a:focus-visible { color: var(--coral); }
.posts-menu { position: relative; }
.posts-toggle { border: 0; padding: 0; background: transparent; color: inherit; font: inherit; font-size: .88rem; text-transform: uppercase; letter-spacing: .11em; cursor: pointer; }
.posts-toggle span { display: inline-block; margin-left: .35rem; transition: transform .2s ease; }
.posts-menu.open .posts-toggle span { transform: rotate(180deg); }
.posts-panel { position: absolute; top: calc(100% + 1.4rem); right: 0; width: min(360px, 88vw); max-height: 0; overflow: hidden; opacity: 0; background: rgba(10,21,32,.98); border: 1px solid rgba(246,241,232,.25); box-shadow: 10px 12px 0 rgba(255,102,82,.72); transition: max-height .28s ease, opacity .2s ease; }
.posts-menu.open .posts-panel { max-height: 520px; opacity: 1; }
.posts-panel a { display: grid; gap: .25rem; padding: .9rem 1rem; border-bottom: 1px solid rgba(246,241,232,.16); font-size: .76rem; }
.posts-panel a:last-child { border-bottom: 0; }
.posts-panel a span { color: rgba(246,241,232,.65); font-size: .72rem; letter-spacing: .02em; text-transform: none; }
.menu-button { display: none; }

.hero { position: relative; min-height: min(900px, 100svh); display: grid; align-items: end; overflow: hidden; background: var(--ink); color: var(--paper); }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 58% center; }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4, 12, 20, .96) 0%, rgba(4, 12, 20, .7) 39%, rgba(4, 12, 20, .07) 76%), linear-gradient(0deg, rgba(4,12,20,.72), transparent 45%); }
.hero-copy { position: relative; z-index: 2; width: min(780px, 80vw); padding: 9rem clamp(1.2rem, 7vw, 8rem) clamp(4rem, 10vh, 7.5rem); }
.eyebrow { margin: 0 0 1.1rem; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; }
.coral { color: #d73f31; }
h1, h2, h3, h4, p { margin-top: 0; }
h1 { margin-bottom: 1.5rem; font-family: var(--serif); font-weight: 400; font-size: clamp(3.8rem, 7.5vw, 7.7rem); line-height: .82; letter-spacing: -.045em; }
h1 em { color: var(--coral); font-weight: 400; }
.dek { width: min(620px, 100%); font-size: clamp(1.05rem, 1.6vw, 1.32rem); line-height: 1.55; color: rgba(246,241,232,.84); }
.read-link { display: inline-flex; gap: .65rem; margin-top: 1rem; font-size: .88rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; text-decoration: none; border-bottom: 1px solid var(--coral); padding-bottom: .3rem; }
.hero-caption { position: absolute; right: 1.2rem; bottom: 1rem; z-index: 2; margin: 0; color: rgba(246,241,232,.58); font-size: .72rem; }

.article, .about, .series, .sources { padding: clamp(5rem, 10vw, 9rem) clamp(1.2rem, 7vw, 8rem); }
.article-header { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: end; padding-bottom: 2.2rem; border-bottom: 1px solid var(--line); }
.article-header h2, .about h2, .series h2, .sources h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 6vw, 6.2rem); line-height: .92; letter-spacing: -.035em; }
.article-meta { display: grid; gap: .25rem; text-align: right; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.article-grid { display: grid; grid-template-columns: minmax(220px, .65fr) minmax(0, 1.55fr); gap: clamp(3rem, 8vw, 9rem); padding-top: 4rem; }
.article-aside { position: relative; }
.pullquote { position: sticky; top: 2rem; font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 3.2rem); line-height: 1.08; color: #23495a; }
.signal-card { margin-top: 4rem; width: 11rem; border-top: 4px solid var(--coral); padding-top: .8rem; }
.signal-number { display: block; font-family: var(--serif); font-size: 4rem; line-height: 1; }
.signal-card p { font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; }
.article-body { max-width: 760px; }
.article-body p { font-family: Georgia, serif; font-size: 1.12rem; line-height: 1.82; color: #24303a; }
.article-body .lead { font-family: var(--serif); font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.25; color: var(--ink); }
.article-body h3 { margin: 4.2rem 0 1rem; font-family: var(--serif); font-size: clamp(2rem, 3vw, 3rem); line-height: 1.05; font-weight: 400; }
.article-body h3 span { display: block; margin-bottom: .8rem; font-family: var(--sans); color: var(--coral); font-size: .78rem; letter-spacing: .12em; }
.article-body sup a { color: #b32f26; font-family: var(--sans); font-weight: 700; text-decoration: none; }
.focus-box { margin: 3rem 0; padding: clamp(1.5rem, 4vw, 3rem); background: var(--ink); color: var(--paper); box-shadow: 12px 12px 0 var(--blue); }
.focus-box h4 { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 400; line-height: 1; }
.focus-box p { color: rgba(246,241,232,.85); }
.focus-box .eyebrow { color: var(--coral); font-family: var(--sans); font-size: .76rem; }
blockquote { margin: 4rem 0; padding: 1.4rem 0 1.4rem 2rem; border-left: 7px solid var(--coral); }
blockquote p { margin: 0; font-family: var(--serif) !important; font-size: clamp(2rem, 4vw, 3.6rem) !important; line-height: 1.04 !important; color: var(--ink) !important; }

.about { position: relative; display: grid; grid-template-columns: .45fr 1.25fr .7fr; gap: clamp(2rem, 6vw, 7rem); background: var(--blue); }
.section-index { font-size: .75rem; font-weight: 700; letter-spacing: .12em; }
.about h2 { max-width: 800px; }
.about-copy > p:not(.eyebrow) { max-width: 700px; font-family: Georgia, serif; font-size: 1.18rem; line-height: 1.75; }
.about-note { align-self: end; border-top: 1px solid rgba(10,21,32,.45); padding-top: 1rem; }
.about-note span { color: #b32f26; font-size: 1.5rem; }
.about-note p { font-size: .92rem; }

.series { background: var(--ink); color: var(--paper); }
.series-heading, .sources-heading { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: end; margin-bottom: 4rem; }
.series-heading > p, .sources-heading > p { max-width: 460px; color: rgba(246,241,232,.68); }
.post-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(246,241,232,.25); }
.post-list li { display: grid; grid-template-columns: 70px 1fr 45px; gap: 1.5rem; align-items: start; padding: 2.3rem 0; border-bottom: 1px solid rgba(246,241,232,.25); transition: background .2s ease, padding .2s ease; }
.post-list li:hover { background: rgba(246,241,232,.04); padding-left: 1rem; padding-right: 1rem; }
.post-number, .post-tag { color: var(--coral); font-size: .75rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.post-list h3 { margin: .15rem 0 .45rem; font-family: var(--serif); font-size: clamp(2rem, 3.7vw, 4rem); font-weight: 400; line-height: 1; }
.post-list p { max-width: 850px; margin-bottom: 0; color: rgba(246,241,232,.68); }
.post-list .post-tag { color: var(--blue); }
.post-arrow { justify-self: end; color: var(--coral); font-size: 1.5rem; }

.sources { background: var(--paper-deep); }
.sources-heading > p { color: var(--muted); }
.sources ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.sources li { display: grid; grid-template-columns: 55px 1fr; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); scroll-margin-top: 2rem; }
.sources li > span { color: #b32f26; font-weight: 700; }
.sources a { display: grid; gap: .2rem; text-decoration: none; }
.sources a:hover strong, .sources a:focus-visible strong { text-decoration: underline; text-decoration-color: var(--coral); text-underline-offset: .25rem; }
.sources small { color: var(--muted); font-size: .84rem; }

footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; padding: 2.5rem clamp(1.2rem, 7vw, 8rem); background: #050b11; color: var(--paper); font-size: .85rem; }
footer p { margin: 0; color: rgba(246,241,232,.55); }
footer > a:last-child { justify-self: end; text-decoration: none; }

@media (max-width: 820px) {
  .site-header { min-height: 68px; }
  .menu-button { display: block; border: 1px solid rgba(246,241,232,.4); background: rgba(10,21,32,.7); color: var(--paper); padding: .55rem .8rem; font: inherit; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; }
  nav { display: none; position: absolute; inset: 68px 0 auto; padding: 1.2rem; background: rgba(10,21,32,.97); border-bottom: 1px solid rgba(246,241,232,.2); }
  nav.open { display: grid; }
  .posts-panel { position: static; width: 100%; margin-top: .8rem; box-shadow: none; }
  .posts-menu.open .posts-panel { max-height: 520px; }
  .hero { min-height: 820px; }
  .hero-image { object-position: 68% center; }
  .hero-scrim { background: linear-gradient(0deg, rgba(4,12,20,.98) 0%, rgba(4,12,20,.88) 46%, rgba(4,12,20,.1) 90%); }
  .hero-copy { width: 100%; padding: 7.5rem 1.2rem 4rem; }
  .hero-caption { display: none; }
  .article-header, .article-grid, .about, .series-heading, .sources-heading { grid-template-columns: 1fr; }
  .article-meta { text-align: left; }
  .article-aside { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: end; }
  .pullquote { position: static; margin: 0; }
  .signal-card { margin: 0; }
  .about-note { max-width: 440px; }
  footer { grid-template-columns: 1fr; text-align: left; }
  footer > a:last-child { justify-self: start; }
}

@media (max-width: 520px) {
  .brand { font-size: .92rem; }
  h1 { font-size: clamp(3.35rem, 17vw, 5rem); }
  .hero { min-height: 760px; }
  .article-aside { grid-template-columns: 1fr; }
  .signal-card { display: none; }
  .article-body p { font-size: 1.04rem; }
  .post-list li { grid-template-columns: 42px 1fr; gap: 1rem; }
  .post-arrow { display: none; }
}

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