/* =============================================================
   The Docket Audit Project -- Variant C
   Government-record register. Sans-only Inter throughout.
   Monospace stat numbers. No terracotta. No sand-soft fills.
   CourtListener / PACER / federal-court PDF aesthetic.
   ============================================================= */

:root {
  --navy: #1A2B4A;
  --navy-deep: #14233E;
  --grey-accent: #6A6A6A;
  --cream: #FCFBF7;
  --sand: #D9CCAE;
  --charcoal: #2E2A26;
  --muted-grey: #6A6A6A;
  --rule: rgba(46, 42, 38, 0.16);
  --rule-strong: rgba(46, 42, 38, 0.42);

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  --container: 1280px;
  --measure: 64ch;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: color 120ms ease, border-color 120ms ease;
}

a:hover,
a:focus {
  color: var(--grey-accent);
  border-bottom-color: var(--grey-accent);
}

/* =============================================================
   Header
   ============================================================= */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--rule-strong);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 16px 40px;
  max-width: var(--container);
  margin: 0 auto;
}

.header-left {
  display: flex;
  align-items: baseline;
  gap: 18px;
  min-width: 0;
}

.wordmark {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: var(--navy);
  border: 0;
  white-space: nowrap;
  text-transform: uppercase;
}

.wordmark:hover { color: var(--grey-accent); }

.brand-tag {
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-grey);
  white-space: nowrap;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav {
  display: flex;
  gap: 26px;
}

.site-nav a {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--charcoal);
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
}

.site-nav a.is-current {
  color: var(--navy);
  border-bottom-color: var(--navy);
}

.site-nav a:hover {
  color: var(--grey-accent);
  border-bottom-color: var(--grey-accent);
}

.header-mailto {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--navy);
  padding: 9px 16px;
  border: 1px solid var(--navy);
  white-space: nowrap;
}

.header-mailto:hover {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--cream);
  border-bottom-color: var(--charcoal);
}

/* =============================================================
   Hero
   ============================================================= */
.hero {
  background: var(--cream);
  padding: 88px 0 80px;
  border-bottom: 1px solid var(--rule-strong);
}

.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

.hero-eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted-grey);
  margin: 0 0 32px;
}

.hero-headline {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin: 0;
  max-width: 26ch;
}

.hero-dek {
  font-weight: 400;
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.55;
  color: var(--charcoal);
  margin: 24px 0 0;
  max-width: 56ch;
}

.hero-cost {
  font-size: clamp(15px, 1.45vw, 17px);
  line-height: 1.5;
  color: var(--muted-grey);
  margin: 18px 0 0;
  max-width: 56ch;
}

.hero-rule {
  width: 64px;
  height: 2px;
  background: var(--grey-accent);
  margin: 40px 0 16px;
}

.hero-jump {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey-accent);
  border-bottom: 0;
}

.hero-jump:hover { color: var(--navy); }

/* =============================================================
   Generic section
   ============================================================= */
.section {
  padding: 64px 0;
  border-bottom: 1px solid var(--rule);
}

.section-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

.eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted-grey);
  margin: 0 0 22px;
}

.section-heading {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.18;
  color: var(--navy);
  margin: 0 0 28px;
  max-width: 28ch;
  letter-spacing: -0.01em;
}

/* =============================================================
   Stats band (no fill, thin rules above/below)
   ============================================================= */
.stats {
  background: var(--cream);
  padding: 60px 0;
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
}

.stats-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

.stats-eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted-grey);
  margin: 0 0 32px;
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.stat {
  text-align: center;
  padding: 14px 18px;
  border-left: 1px solid var(--rule);
}

.stat:first-child { border-left: 0; }

.stat-num {
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(40px, 5vw, 60px);
  color: var(--navy);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-label {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-grey);
  margin-top: 16px;
}

.stats-footnote {
  max-width: 72ch;
  margin: 36px auto 0;
  text-align: center;
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--muted-grey);
  line-height: 1.6;
}

/* =============================================================
   Why
   ============================================================= */
.why-block {
  max-width: 64ch;
}

.why-block p {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--charcoal);
  margin: 0 0 20px;
}

.why-closer {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.35;
  color: var(--navy);
  margin-top: 32px;
  max-width: 36ch;
  letter-spacing: -0.005em;
}

/* =============================================================
   Findings
   ============================================================= */
.findings-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}

.findings-thesis {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--charcoal);
  margin: 0;
  max-width: 38ch;
}

.sample-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sample-list li {
  padding: 20px 0;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 24px;
  align-items: baseline;
}

.sample-list li:last-child { border-bottom: 1px solid var(--rule); }

.sample-text {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.55;
  color: var(--charcoal);
}

.sample-cite {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--navy);
  text-align: right;
}

/* =============================================================
   About + RUSD link section (index)
   ============================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-col p {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.7;
  color: var(--charcoal);
  margin: 0 0 16px;
  max-width: 50ch;
}

.case-card {
  border-top: 2px solid var(--charcoal);
  padding-top: 24px;
}

.case-card .case-eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-grey);
  margin: 0 0 12px;
}

.case-card h3 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.25;
  color: var(--navy);
  margin: 0 0 14px;
  letter-spacing: -0.005em;
}

.case-card p {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--charcoal);
  margin: 0 0 16px;
  max-width: 52ch;
}

.case-card .case-read {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey-accent);
  border-bottom: 0;
}

.case-card .case-read:hover { color: var(--navy); }

/* =============================================================
   UPL block (no fill, top + bottom rule)
   ============================================================= */
.upl-block {
  margin: 0 auto;
  padding: 28px 0;
  background: transparent;
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
  border-left: 0;
  max-width: 70ch;
}

.upl-block .eyebrow { margin-bottom: 14px; }

.upl-block p {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--charcoal);
  margin: 0;
}

/* =============================================================
   ASK band
   ============================================================= */
.ask {
  background: var(--navy);
  color: var(--cream);
  padding: 96px 0;
  text-align: center;
}

.ask-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

.ask-eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sand);
  margin: 0 0 26px;
}

.ask-text {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.35;
  color: var(--cream);
  max-width: 28ch;
  margin: 0 auto;
  letter-spacing: -0.005em;
}

.ask-cta {
  margin-top: 36px;
}

.ask-cta a {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cream);
  background: transparent;
  border: 1px solid var(--cream);
  border-bottom: 1px solid var(--cream);
  padding: 13px 26px;
}

.ask-cta a:hover {
  background: var(--cream);
  color: var(--navy);
  border-color: var(--cream);
}

/* =============================================================
   Data section (index -- "What the data shows")
   ============================================================= */
.data-callout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 36px;
  align-items: center;
  padding: 34px 0;
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
  margin: 8px 0 40px;
}

.data-callout-num {
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(56px, 8vw, 96px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.data-callout-text {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--charcoal);
  margin: 0;
  max-width: 46ch;
}

.demographics-table th.num { text-align: right; }

.data-note {
  font-family: var(--sans);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted-grey);
  margin: 0 0 44px;
  max-width: 76ch;
}

.data-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule-strong);
  margin-top: 12px;
}

.data-point {
  padding: 28px 28px 24px;
  border-left: 1px solid var(--rule);
}

.data-point:first-child { border-left: 0; padding-left: 0; }

.data-point-num {
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 16px;
}

.data-point-label {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.55;
  color: var(--charcoal);
  margin: 0;
}

.tenant-notice strong { color: var(--navy); font-weight: 600; }

/* =============================================================
   Page header (RUSD page)
   ============================================================= */
.page-header {
  background: var(--cream);
  padding: 72px 0 52px;
  border-bottom: 1px solid var(--rule-strong);
}

.page-header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

.page-eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted-grey);
  margin: 0 0 20px;
}

.page-title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(32px, 4.4vw, 50px);
  line-height: 1.12;
  color: var(--charcoal);
  margin: 0 0 24px;
  max-width: 32ch;
  letter-spacing: -0.01em;
}

.case-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  max-width: 920px;
}

.case-meta dt {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-grey);
  margin: 0 0 6px;
}

.case-meta dd {
  font-family: var(--mono);
  font-size: 14.5px;
  color: var(--charcoal);
  margin: 0;
  line-height: 1.4;
}

/* =============================================================
   Court order quote block (no fill, top + bottom rule)
   ============================================================= */
.court-order {
  background: var(--cream);
  padding: 64px 0;
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
}

.court-order-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 40px;
  text-align: center;
}

.court-order-eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted-grey);
  margin: 0 0 26px;
}

.court-order-text {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.55;
  color: var(--charcoal);
  margin: 0;
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}

.court-order-cite {
  display: block;
  margin-top: 26px;
  font-family: var(--mono);
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
}

/* =============================================================
   Case sections (RUSD page body)
   ============================================================= */
.case-section {
  padding: 64px 0;
  border-bottom: 1px solid var(--rule);
}

.case-section-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 40px;
}

.case-section h2 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(24px, 2.8vw, 32px);
  line-height: 1.22;
  color: var(--navy);
  margin: 0 0 24px;
  max-width: 30ch;
  letter-spacing: -0.005em;
}

.case-section p {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--charcoal);
  margin: 0 0 16px;
}

.case-section blockquote {
  margin: 22px 0;
  padding: 0 0 0 22px;
  border-left: 2px solid var(--rule-strong);
  font-family: var(--sans);
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--charcoal);
}

.case-section blockquote p {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  margin: 0 0 10px;
}

.demographics-table {
  width: 100%;
  border-collapse: collapse;
  margin: 26px 0 30px;
  font-family: var(--sans);
  font-size: 14px;
}

.demographics-table th,
.demographics-table td {
  padding: 13px 15px;
  text-align: left;
  border-bottom: 1px solid var(--rule);
}

.demographics-table th {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-grey);
  border-bottom: 1px solid var(--rule-strong);
}

.demographics-table td.num {
  text-align: right;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  color: var(--charcoal);
}

.demographics-table td.gap {
  text-align: right;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  color: var(--navy);
  font-weight: 600;
}

.timeline-table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0 28px;
  font-family: var(--sans);
  font-size: 14px;
}

.timeline-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  line-height: 1.6;
}

.timeline-table td.tl-date {
  width: 160px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--navy);
  white-space: nowrap;
}

.timeline-table td.tl-event {
  color: var(--charcoal);
}

.evidence-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.evidence-list li {
  padding: 11px 0;
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--charcoal);
}

.evidence-list li:last-child { border-bottom: 1px solid var(--rule); }

.case-coda {
  padding: 84px 0;
  background: var(--cream);
  text-align: center;
}

.case-coda-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 40px;
}

.case-coda-closer {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.42;
  color: var(--navy);
  margin: 0 0 48px;
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: -0.005em;
}

.case-coda-rule {
  width: 48px;
  height: 1px;
  background: var(--rule-strong);
  margin: 0 auto 36px;
}

.case-coda-thesis {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(16px, 1.55vw, 18.5px);
  line-height: 1.55;
  color: var(--muted-grey);
  max-width: 56ch;
  margin: 0 auto;
}

/* =============================================================
   Footer
   ============================================================= */
.site-footer {
  background: var(--navy-deep);
  color: var(--cream);
  padding: 48px 0 28px;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand .wordmark {
  color: var(--cream);
  font-size: 16px;
}

.footer-brand .wordmark:hover { color: var(--sand); }

.footer-meta {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sand);
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}

/* =============================================================
   Mobile
   ============================================================= */
@media (max-width: 960px) {
  .header-inner,
  .hero-inner,
  .section-inner,
  .stats-inner,
  .ask-inner,
  .page-header-inner,
  .court-order-inner,
  .case-section-inner,
  .case-coda-inner,
  .footer-inner {
    padding-left: 24px;
    padding-right: 24px;
  }

  .header-inner { gap: 16px; }
  .brand-tag { display: none; }
  /* On mobile the nav collapses to just the RUSD case page link. "The data"
     and "Who we are" are scroll-jumps to sections already on this page, so a
     mobile user reaches them by scrolling. The RUSD case is a separate page,
     so it stays in the header to keep it reachable. */
  .site-nav a:not(.nav-page) { display: none; }
  .header-right { gap: 14px; }

  .hero { padding: 60px 0 52px; }
  .section { padding: 48px 0; }
  .stats { padding: 48px 0; }

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

  .stat {
    border-left: 0;
    border-top: 1px solid var(--rule);
    padding: 24px 14px;
  }

  .stat:first-child { border-top: 0; }

  .findings-grid,
  .about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .data-callout {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 26px 0;
  }

  .data-points {
    grid-template-columns: 1fr;
  }

  .data-point {
    border-left: 0;
    border-top: 1px solid var(--rule);
    padding: 24px 0 22px;
  }

  .data-point:first-child { border-top: 0; }

  .sample-list li {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .sample-cite { text-align: left; }

  .case-meta {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .case-section { padding: 48px 0; }
  .case-coda { padding: 56px 0; }
  .court-order { padding: 48px 0; }

  .timeline-table td.tl-date {
    width: 120px;
    font-size: 10.5px;
  }

  .demographics-table th,
  .demographics-table td {
    padding: 10px 8px;
    font-size: 13px;
  }

  .footer-meta { gap: 16px; }
  .ask { padding: 72px 0; }
}

@media (max-width: 520px) {
  .header-mailto {
    padding: 8px 11px;
    font-size: 10.5px;
    letter-spacing: 0.1em;
    flex-shrink: 0;
  }

  /* Let the wordmark wrap instead of colliding with the button at narrow widths. */
  .wordmark {
    font-size: 13.5px;
    white-space: normal;
    line-height: 1.2;
  }

  .header-left { gap: 10px; }
  .case-meta { grid-template-columns: 1fr; }

  /* Shrink the lone RUSD nav link to match the contact button at narrow
     widths and keep it on one line; the wordmark wraps to absorb the squeeze. */
  .site-nav a.nav-page {
    font-size: 10.5px;
    letter-spacing: 0.1em;
    padding-bottom: 0;
    white-space: nowrap;
  }
}
