:root {
  --paper: #f4f0e6;
  --paper-deep: #e9e1d1;
  --ink: #151713;
  --muted: #62675f;
  --forest: #153f35;
  --signal: #b83f2f;
  --lime: #b8d95b;
  --line: #cfc8b8;
  --white: #fffdf7;
  --display: Georgia, "Times New Roman", serif;
  --body: Charter, Constantia, "Palatino Linotype", serif;
  --sans: "Trebuchet MS", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(rgba(21, 23, 19, 0.026) 1px, transparent 1px),
    var(--paper);
  background-size: 100% 34px;
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(21, 23, 19, 0.08) 0.45px, transparent 0.55px);
  background-size: 5px 5px;
  content: "";
  opacity: 0.18;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--forest);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--signal);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 8px 12px;
  transform: translateY(-150%);
  background: var(--ink);
  color: white;
  font-family: var(--sans);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--ink);
  background: rgba(244, 240, 230, 0.96);
}

.header-inner {
  width: min(1240px, calc(100% - 48px));
  min-height: 86px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 800;
}

.brand-mark {
  position: relative;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 4px solid var(--forest);
  border-radius: 50%;
  background: var(--lime);
}

.brand-mark::after {
  position: absolute;
  right: -11px;
  bottom: -7px;
  width: 16px;
  height: 4px;
  transform: rotate(44deg);
  transform-origin: left center;
  background: var(--forest);
  content: "";
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  color: var(--signal);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  content: "";
}

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: 0;
  height: 4px;
  background: var(--signal);
}

.hero {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  border-bottom: 1px solid var(--ink);
  background: #e9e2d3;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(244, 240, 230, 0.98) 0%, rgba(244, 240, 230, 0.91) 36%, rgba(244, 240, 230, 0.12) 70%, rgba(244, 240, 230, 0.02) 100%);
  content: "";
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 48px));
  min-height: 660px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(610px, 54%);
  padding: 72px 0;
}

.eyebrow,
.section-kicker,
.article-meta,
.archive-date {
  margin: 0 0 16px;
  color: var(--signal);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.article-header h1 {
  max-width: 940px;
  margin: 0;
  font-family: var(--display);
  font-size: 72px;
  font-weight: 500;
  line-height: 0.98;
}

.hero h1 em {
  position: relative;
  color: var(--forest);
  font-weight: 500;
}

.hero h1 em::after {
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 8px;
  transform: rotate(-1deg);
  background: var(--lime);
  content: "";
  opacity: 0.8;
}

.hero-deck {
  max-width: 570px;
  margin: 28px 0 0;
  font-size: 21px;
  line-height: 1.55;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 18px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  background: var(--ink);
  color: var(--white);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.button::after {
  content: "→";
}

.button:hover {
  background: var(--signal);
  color: white;
}

.button-secondary {
  background: transparent;
  color: var(--ink);
}

.signal-strip {
  border-bottom: 1px solid var(--ink);
  background: var(--forest);
  color: white;
}

.signal-strip .inner {
  width: min(1240px, calc(100% - 48px));
  min-height: 82px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.signal-item {
  padding: 18px 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.4;
}

.signal-item:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.signal-item strong {
  display: block;
  margin-bottom: 3px;
  color: var(--lime);
  font-size: 16px;
}

.section {
  padding: 92px 0;
  border-bottom: 1px solid var(--line);
}

.section-inner,
.page-shell,
.article-shell {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

.section-heading {
  margin-bottom: 44px;
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(360px, 1.3fr);
  gap: 48px;
  align-items: end;
}

.section-heading h2,
.archive-intro h2,
.article-body h2,
.article-related h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 44px;
  font-weight: 500;
  line-height: 1.12;
}

.section-heading p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
}

.lead-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--ink);
}

.story-card {
  min-width: 0;
  padding: 28px 26px 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.story-card:first-child {
  padding-left: 0;
}

.story-card:last-child {
  border-right: 0;
}

.story-card h3 {
  margin: 9px 0 13px;
  font-family: var(--display);
  font-size: 27px;
  font-weight: 500;
  line-height: 1.18;
}

.story-card:first-child h3 {
  font-size: 38px;
}

.story-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.story-card h3 a:hover {
  color: var(--signal);
}

.story-card p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.story-label {
  color: var(--forest);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.story-link {
  margin-top: 22px;
  display: inline-flex;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 800;
}

.archive-band {
  background: var(--white);
}

.archive-list {
  border-top: 2px solid var(--ink);
}

.archive-row {
  min-height: 118px;
  padding: 24px 0;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 180px;
  gap: 28px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.archive-row:hover {
  color: var(--ink);
  background: linear-gradient(90deg, rgba(184, 217, 91, 0.23), transparent 75%);
}

.archive-row h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 27px;
  font-weight: 500;
  line-height: 1.2;
}

.archive-row p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.archive-tag {
  justify-self: end;
  color: var(--forest);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.page-hero {
  padding: 92px 0 62px;
  border-bottom: 1px solid var(--ink);
  background: var(--white);
}

.page-hero h1 {
  font-size: 64px;
}

.page-hero p {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 21px;
}

.archive-page {
  padding: 72px 0 100px;
}

.archive-controls {
  margin-bottom: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.filter-button {
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.filter-button[aria-pressed="true"],
.filter-button:hover {
  background: var(--forest);
  color: white;
}

.article-header {
  position: relative;
  padding: 92px 0 62px;
  overflow: hidden;
  border-bottom: 1px solid var(--ink);
  background: var(--white);
}

.article-header::after {
  position: absolute;
  right: -90px;
  bottom: -140px;
  width: 390px;
  height: 390px;
  border: 46px solid var(--lime);
  border-radius: 50%;
  content: "";
  opacity: 0.55;
}

.article-header h1 {
  position: relative;
  z-index: 1;
  font-size: 62px;
}

.article-deck {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 22px;
}

.article-layout {
  padding: 72px 0 100px;
  display: grid;
  grid-template-columns: 190px minmax(0, 740px) minmax(220px, 1fr);
  gap: 46px;
  align-items: start;
}

.article-aside {
  position: sticky;
  top: 28px;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.55;
}

.article-aside strong {
  display: block;
  margin-bottom: 9px;
  color: var(--signal);
  text-transform: uppercase;
}

.article-aside p {
  margin: 0;
  color: var(--muted);
}

.article-body {
  min-width: 0;
}

.article-body > p:first-child {
  font-size: 22px;
}

.article-body p,
.article-body ul,
.article-body ol,
.article-body blockquote,
.article-body table {
  margin: 0 0 1.35em;
}

.article-body h2 {
  margin: 1.7em 0 0.55em;
  font-size: 34px;
}

.article-body h3 {
  margin: 1.5em 0 0.45em;
  font-family: var(--sans);
  font-size: 21px;
  line-height: 1.3;
}

.article-body ul,
.article-body ol {
  padding-left: 1.25em;
}

.article-body li {
  margin-bottom: 0.48em;
}

.article-body blockquote {
  padding: 8px 0 8px 24px;
  border-left: 5px solid var(--lime);
  color: var(--forest);
  font-family: var(--display);
  font-size: 24px;
  line-height: 1.45;
}

.article-body code,
.article-body pre {
  font-family: Consolas, monospace;
}

.article-body pre {
  max-width: 100%;
  padding: 18px;
  overflow-x: auto;
  background: var(--ink);
  color: var(--white);
  font-size: 14px;
}

.article-body img {
  margin: 30px 0;
  border: 1px solid var(--line);
}

.article-note {
  margin-bottom: 36px;
  padding: 18px 20px;
  border-left: 5px solid var(--signal);
  background: var(--paper-deep);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
}

.article-rail {
  padding-top: 6px;
  border-top: 1px solid var(--ink);
}

.article-rail h2 {
  margin: 12px 0 16px;
  font-family: var(--sans);
  font-size: 13px;
  text-transform: uppercase;
}

.rail-link {
  padding: 14px 0;
  display: block;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--display);
  font-size: 18px;
  line-height: 1.3;
  text-decoration: none;
}

.article-related {
  padding: 72px 0;
  border-top: 1px solid var(--ink);
  background: var(--forest);
  color: white;
}

.article-related h2 {
  color: white;
}

.article-related .lead-grid {
  margin-top: 34px;
  border-color: rgba(255, 255, 255, 0.55);
}

.article-related .story-card {
  border-color: rgba(255, 255, 255, 0.22);
}

.article-related .story-label,
.article-related .story-card p {
  color: var(--lime);
}

.article-related .story-card h3 a,
.article-related .story-link {
  color: white;
}

.legal-layout {
  padding: 72px 0 100px;
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 720px);
  gap: 80px;
}

.legal-layout h2 {
  margin: 0 0 20px;
  font-family: var(--display);
  font-size: 34px;
  font-weight: 500;
}

.legal-layout h3 {
  margin: 36px 0 10px;
  font-family: var(--sans);
  font-size: 18px;
}

.legal-index {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 14px;
}

.site-footer {
  padding: 54px 0 26px;
  background: var(--ink);
  color: var(--white);
}

.footer-inner {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

.footer-top {
  padding-bottom: 42px;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.7fr;
  gap: 52px;
}

.footer-title {
  max-width: 560px;
  margin: 0;
  font-family: var(--display);
  font-size: 36px;
  line-height: 1.18;
}

.footer-col h2 {
  margin: 0 0 15px;
  color: var(--lime);
  font-family: var(--sans);
  font-size: 13px;
  text-transform: uppercase;
}

.footer-col a,
.footer-col p {
  margin: 0 0 8px;
  display: block;
  color: #d7d5cc;
  font-family: var(--sans);
  font-size: 14px;
}

.footer-bottom {
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: #a9aca4;
  font-family: var(--sans);
  font-size: 12px;
}

[data-reveal] {
  transform: none;
  opacity: 1;
  transition: transform 180ms ease;
}

.story-card[data-reveal]:hover {
  transform: translateY(-3px);
}

@media (max-width: 1040px) {
  .hero h1,
  .article-header h1 {
    font-size: 56px;
  }

  .lead-grid {
    grid-template-columns: 1fr 1fr;
  }

  .story-card:first-child {
    grid-column: 1 / -1;
    padding-left: 0;
  }

  .article-layout {
    grid-template-columns: minmax(0, 1fr) 230px;
  }

  .article-aside {
    position: static;
    grid-column: 1 / -1;
    display: flex;
    gap: 18px;
  }

  .article-aside strong {
    flex: 0 0 auto;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-title {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 17px;
  }

  .header-inner,
  .hero-inner,
  .signal-strip .inner,
  .section-inner,
  .page-shell,
  .article-shell,
  .footer-inner {
    width: min(100% - 32px, 1240px);
  }

  .header-inner {
    min-height: 70px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 70px;
    right: 0;
    left: 0;
    padding: 18px 16px 24px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid var(--ink);
    background: var(--paper);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 8px;
    border-bottom: 1px solid var(--line);
  }

  .hero,
  .hero-inner {
    min-height: 714px;
  }

  .hero-media::after {
    background: linear-gradient(180deg, rgba(244, 240, 230, 0.97) 0%, rgba(244, 240, 230, 0.88) 53%, rgba(244, 240, 230, 0.08) 77%);
  }

  .hero-media img {
    object-position: 67% center;
  }

  .hero-inner {
    align-items: flex-start;
  }

  .hero-copy {
    width: 100%;
    padding: 74px 0 270px;
  }

  .hero h1,
  .page-hero h1,
  .article-header h1 {
    font-size: 43px;
    line-height: 1.02;
  }

  .hero-deck,
  .page-hero p,
  .article-deck {
    font-size: 18px;
  }

  .signal-strip .inner {
    grid-template-columns: 1fr 1fr;
  }

  .signal-item:nth-child(2) {
    border-right: 1px solid rgba(255, 255, 255, 0.22);
  }

  .signal-item:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 255, 255, 0.22);
  }

  .section,
  .archive-page {
    padding: 64px 0;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .section-heading h2,
  .archive-intro h2,
  .article-body h2,
  .article-related h2 {
    font-size: 34px;
  }

  .lead-grid {
    grid-template-columns: 1fr;
  }

  .story-card,
  .story-card:first-child {
    grid-column: auto;
    padding: 25px 0;
    border-right: 0;
  }

  .story-card:first-child h3,
  .story-card h3 {
    font-size: 28px;
  }

  .archive-row {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 14px;
  }

  .archive-row h3 {
    font-size: 22px;
  }

  .archive-tag {
    grid-column: 2;
    justify-self: start;
  }

  .page-hero,
  .article-header {
    padding: 64px 0 48px;
  }

  .article-header::after {
    right: -130px;
    width: 270px;
    height: 270px;
  }

  .article-layout {
    padding: 54px 0 72px;
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .article-rail {
    position: static;
  }

  .legal-layout {
    padding: 56px 0 80px;
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-title {
    grid-column: auto;
    font-size: 30px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  [data-reveal] {
    transform: none;
    opacity: 1;
    transition: none;
  }
}
