:root {
  --paper: #f2ebe0;
  --paper-strong: #f8f3eb;
  --ink: #171412;
  --ink-soft: #5d554f;
  --line: rgba(23, 20, 18, 0.12);
  --line-strong: rgba(23, 20, 18, 0.22);
  --panel: rgba(248, 243, 235, 0.72);
  --panel-strong: rgba(255, 251, 245, 0.88);
  --ember: #c2542d;
  --forest: #285c49;
  --gold: #8d6d20;
  --claret: #7f1d1d;
  --shadow: 0 18px 60px rgba(28, 23, 19, 0.12);
  --radius: 28px;
  --content-width: min(1180px, calc(100vw - 2.5rem));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "IBM Plex Sans", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(194, 84, 45, 0.13), transparent 34%),
    radial-gradient(circle at top right, rgba(40, 92, 73, 0.11), transparent 38%),
    linear-gradient(180deg, #f8f2e8 0%, #efe7da 52%, #ece2d4 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(23, 20, 18, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 20, 18, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.25));
}

.page-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.08;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(23, 20, 18, 0.4) 0.6px, transparent 0.6px),
    radial-gradient(circle at 80% 30%, rgba(23, 20, 18, 0.35) 0.6px, transparent 0.6px),
    radial-gradient(circle at 30% 70%, rgba(23, 20, 18, 0.35) 0.7px, transparent 0.7px);
  background-size: 26px 26px, 34px 34px, 22px 22px;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.shell {
  width: var(--content-width);
  margin: 0 auto;
}

.site-header {
  width: var(--content-width);
  margin: 0 auto;
  padding: 1.4rem 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.95rem;
  text-decoration: none;
}

.brand-mark {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(255, 251, 245, 0.55);
  box-shadow: var(--shadow);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.92rem;
  letter-spacing: 0.18em;
}

.brand-copy {
  display: grid;
  gap: 0.1rem;
}

.brand-copy strong {
  font-size: 0.98rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-copy span {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.site-nav {
  display: inline-flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  padding: 0.4rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 251, 245, 0.66);
  backdrop-filter: blur(10px);
}

.site-nav a {
  text-decoration: none;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(23, 20, 18, 0.07);
  color: var(--ink);
  transform: translateY(-1px);
}

.hero {
  padding: 4.4rem 0 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 2rem;
  align-items: start;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--ember);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  font-weight: 600;
}

.hero h1,
.section-head h2 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: -0.04em;
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(3.6rem, 8vw, 7rem);
}

.hero-text {
  max-width: 46rem;
  margin: 1.5rem 0 0;
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--ink-soft);
}

.hero-actions {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.freshness-note {
  margin: 1rem 0 0;
  color: var(--ink-soft);
  line-height: 1.7;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  color: #fff8f0;
  background: linear-gradient(135deg, #181412 0%, #2d211a 100%);
  box-shadow: 0 18px 40px rgba(23, 20, 18, 0.2);
}

.button-secondary {
  background: rgba(255, 251, 245, 0.62);
}

.text-link {
  display: inline-flex;
  margin-top: 0.85rem;
  color: var(--ember);
  text-decoration: none;
  font-weight: 600;
}

.text-link--inline {
  display: inline;
  margin-top: 0;
}

.text-link:hover,
.text-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.query-strip {
  margin: 1.8rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.query-strip li {
  padding: 0.5rem 0.85rem;
  border: 1px solid rgba(194, 84, 45, 0.25);
  border-radius: 999px;
  background: rgba(194, 84, 45, 0.08);
  font-size: 0.88rem;
  color: var(--claret);
}

.signal-ledger {
  position: relative;
  padding: 1.25rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(255, 251, 245, 0.82), rgba(243, 235, 224, 0.94)),
    rgba(255, 255, 255, 0.35);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.signal-ledger::before {
  content: "";
  position: absolute;
  inset: auto auto 0 -10%;
  width: 120%;
  height: 50%;
  background: linear-gradient(180deg, transparent 0%, rgba(40, 92, 73, 0.08) 100%);
}

.signal-ledger__top,
.signal-footnote {
  position: relative;
  z-index: 1;
}

.signal-ledger__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}

.signal-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.signal-grid article {
  min-height: 10.5rem;
  padding: 1rem;
  border-radius: 20px;
  border: 1px solid rgba(23, 20, 18, 0.08);
  background: rgba(255, 253, 249, 0.76);
}

.signal-label,
.status-kicker,
.footer-title {
  display: inline-block;
  margin-bottom: 0.55rem;
  color: var(--ink-soft);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.signal-grid strong {
  display: block;
  font-size: 1.45rem;
  font-family: "Fraunces", serif;
  margin-bottom: 0.4rem;
}

.signal-grid p,
.status-card p,
.query-grid p,
.watchlist-grid p,
.site-footer p,
.timeline-card p,
.section-head p,
.faq-panel p,
.sources-list a {
  color: var(--ink-soft);
  line-height: 1.65;
}

.signal-footnote {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 1.95rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pill-live {
  color: #fff7ef;
  background: linear-gradient(135deg, var(--forest), #12392c);
}

.pill-alert {
  color: #fff8f2;
  background: linear-gradient(135deg, var(--ember), #8d3114);
}

.pill-watch {
  color: #fffaf0;
  background: linear-gradient(135deg, var(--gold), #694d11);
}

.section {
  padding: 3.2rem 0 0.8rem;
}

.section-head {
  max-width: 50rem;
}

.section-head h2 {
  font-size: clamp(2.2rem, 4.2vw, 4rem);
  max-width: 16ch;
}

.section-head p:last-child {
  margin-top: 0.9rem;
}

.status-cards,
.query-grid,
.watchlist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.6rem;
}

.status-card,
.query-grid article,
.watchlist-grid article {
  position: relative;
  padding: 1.35rem;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.status-card h3,
.timeline-card h3,
.query-grid h3,
.watchlist-grid h3,
.article-card h3,
.metric-card h3,
.article-section h2 {
  margin: 0 0 0.6rem;
  font-size: 1.2rem;
  line-height: 1.25;
}

.fee-table-wrap {
  margin-top: 1.7rem;
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: 30px;
  background: rgba(255, 251, 245, 0.76);
  box-shadow: var(--shadow);
}

.fee-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 740px;
}

.fee-table th,
.fee-table td {
  padding: 1.1rem 1.2rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.fee-table thead th {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.fee-table tbody tr:last-child th,
.fee-table tbody tr:last-child td {
  border-bottom: 0;
}

.fee-table tbody th {
  width: 24%;
  font-size: 1rem;
}

.timeline {
  position: relative;
  margin-top: 1.8rem;
  display: grid;
  gap: 1rem;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 8.65rem;
  width: 1px;
  background: linear-gradient(180deg, rgba(23, 20, 18, 0.1), rgba(23, 20, 18, 0.25));
}

.timeline-entry {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 1.15rem;
  align-items: start;
}

.timeline-date {
  padding-top: 1rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.timeline-card {
  position: relative;
  padding: 1.15rem 1.15rem 1.15rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.timeline-card::before {
  content: "";
  position: absolute;
  top: 1.55rem;
  left: -1.45rem;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 999px;
  background: var(--ink);
  box-shadow: 0 0 0 6px rgba(23, 20, 18, 0.07);
}

.timeline-badge {
  display: inline-flex;
  margin-bottom: 0.7rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline-badge--official {
  color: #fff9f3;
  background: linear-gradient(135deg, var(--forest), #17392d);
}

.timeline-badge--reported {
  color: #fffaf3;
  background: linear-gradient(135deg, #69501a, #9a7319);
}

.timeline-badge--observed {
  color: #fff8f2;
  background: linear-gradient(135deg, var(--ember), #8d3415);
}

.timeline-badge--gap {
  color: #fff6ef;
  background: linear-gradient(135deg, #26211f, #4c4038);
}

.faq-list {
  margin-top: 1.4rem;
  display: grid;
  gap: 0.85rem;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq-icon {
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.1rem;
  color: var(--ink-soft);
}

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 220ms ease;
}

.faq-panel p {
  overflow: hidden;
  margin: 0;
  padding: 0 1.2rem 0;
}

.faq-item.is-open .faq-panel {
  grid-template-rows: 1fr;
}

.faq-item.is-open .faq-panel p {
  padding-bottom: 1.15rem;
}

.faq-item.is-open .faq-icon {
  color: var(--ember);
}

.sources-list {
  margin: 1.4rem 0 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.8rem;
}

.sources-list a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.sources-list a:hover,
.sources-list a:focus-visible {
  color: var(--ember);
}

.site-footer {
  margin-top: 3rem;
  padding: 2rem 0 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.site-footer > div {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 251, 245, 0.66);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--ember);
  font-weight: 600;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.footer-contact {
  margin-top: 0.9rem;
}

.footer-contact a {
  color: var(--ember);
  font-weight: 600;
  text-decoration: none;
}

.footer-contact a:hover,
.footer-contact a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.article-main {
  padding: 3.4rem 0 3rem;
}

.article-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.72fr);
  gap: 1.4rem;
  align-items: start;
}

.article-hero h1 {
  margin: 0;
  max-width: 12ch;
  font-family: "Fraunces", serif;
  font-size: clamp(3rem, 7vw, 5.7rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
}

.lede {
  margin: 1.2rem 0 0;
  max-width: 45rem;
  color: var(--ink-soft);
  line-height: 1.72;
  font-size: 1.06rem;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 1.3rem;
  margin-top: 2rem;
  align-items: start;
}

.article-column {
  display: grid;
  gap: 1rem;
}

.article-card,
.metric-card,
.callout,
.article-section {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.article-card,
.callout,
.article-section {
  padding: 1.25rem;
}

.callout {
  background:
    linear-gradient(135deg, rgba(40, 92, 73, 0.1), rgba(248, 243, 235, 0.8)),
    rgba(255, 251, 245, 0.9);
}

.callout strong {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.metric-stack {
  display: grid;
  gap: 0.95rem;
}

.metric-card {
  padding: 1rem;
}

.metric-card p,
.article-card p,
.article-section p,
.callout p,
.article-list li,
.state-grid article p {
  color: var(--ink-soft);
  line-height: 1.68;
}

.article-list {
  margin: 0.95rem 0 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.65rem;
}

.article-list strong {
  color: var(--ink);
}

.mini-table {
  width: 100%;
  border-collapse: collapse;
}

.mini-table th,
.mini-table td {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.mini-table tr:last-child th,
.mini-table tr:last-child td {
  border-bottom: 0;
}

.mini-table th {
  width: 32%;
  font-size: 0.95rem;
}

.subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.3rem;
}

.subnav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 251, 245, 0.62);
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.subnav a:hover,
.subnav a:focus-visible {
  color: var(--ink);
  border-color: var(--line-strong);
}

.state-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.state-grid article {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 251, 245, 0.6);
}

.meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.meta-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 2.2rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 251, 245, 0.62);
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.update-list {
  display: grid;
  gap: 1rem;
}

.update-entry {
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 251, 245, 0.72);
}

.update-entry h3 {
  margin: 0.2rem 0 0.55rem;
}

.update-entry time {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
}

.compare-table th,
.compare-table td {
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.compare-table tr:last-child th,
.compare-table tr:last-child td {
  border-bottom: 0;
}

.compare-table th {
  width: 24%;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 520ms ease, transform 520ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero,
  .site-footer,
  .status-cards,
  .query-grid,
  .watchlist-grid,
  .article-hero,
  .article-layout,
  .state-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: 12ch;
  }

  .timeline::before {
    left: 0.3rem;
  }

  .timeline-entry {
    grid-template-columns: 1fr;
    gap: 0.55rem;
    padding-left: 1.6rem;
  }

  .timeline-card::before {
    left: -1.72rem;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding-top: 1rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    padding-top: 2.7rem;
  }

  .hero h1 {
    font-size: clamp(2.9rem, 18vw, 4.6rem);
  }

  .section {
    padding-top: 2.4rem;
  }

  .section-head h2 {
    max-width: 100%;
  }

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

  .button,
  .faq-trigger {
    min-height: 3rem;
  }

  .fee-table {
    min-width: 640px;
  }

  .article-main {
    padding-top: 2.4rem;
  }

  .article-hero h1 {
    font-size: clamp(2.6rem, 16vw, 4rem);
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

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