/* =====================================================================
   Ground Truth — design system
   Direction: "The Redaction"
   Display: Archivo · Body: Source Serif 4 · Data: IBM Plex Mono
   Red (#c0392b) is used ONLY for what is hidden / corrections / flags.
   ===================================================================== */

:root {
  --paper:    #ffffff;
  --paper-2:  #f5f5f2;
  --ink:      #17181a;
  --slate:    #25405c;
  --slate-2:  #34506d;
  --red:      #c0392b;
  --red-wash: #faf1ef;
  --muted:    #6b6a63;
  --rule:     #d8d6cd;
  --rule-2:   #cbc8bd;

  --measure: 44rem;   /* unified reading column ~704px — same everywhere */
  --wide:    44rem;   /* unified container width — header, content, bands, footer all align */

  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --display: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.65;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* ---- layout helpers ---- */
.wrap    { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 28px; }
.measure { width: 100%; max-width: var(--measure); margin: 0 auto; padding: 0 28px; }

/* ---- links ---- */
a { color: var(--slate); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--red); }

/* ---- shared type ---- */
.kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 14px;
}
.kicker--red { color: var(--red); }

h1, h2, h3 { font-family: var(--display); color: var(--ink); letter-spacing: -0.02em; }
h2 a, h3 a { text-decoration: none; }

/* ===================================================================
   Site header / masthead
   =================================================================== */
.site-header {
  border-bottom: 2px solid var(--ink);
  background: var(--paper);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 28px;
  max-width: var(--wide);
  margin: 0 auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}
.brand__mark {                 /* the redaction bar */
  width: 34px;
  height: 15px;
  background: var(--ink);
  flex: none;
  display: inline-block;
}
.brand__name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}
.site-nav {
  margin-left: auto;
  display: flex;
  gap: 22px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.site-nav a { color: var(--ink); text-decoration: none; padding-bottom: 2px; }
.site-nav a:hover { color: var(--red); }
.site-nav a[aria-current="page"] { border-bottom: 2px solid var(--red); color: var(--ink); }

/* ---- the recurring tick "datum" rule (borrowed from the survey motif) ---- */
.datum {
  height: 12px;
  border: 0;
  border-bottom: 1.5px solid var(--ink);
  background-image: repeating-linear-gradient(90deg, var(--ink) 0, var(--ink) 1px, transparent 1px, transparent 15px);
  background-size: 15px 6px;
  background-position: left bottom;
  background-repeat: repeat-x;
  margin: 0;
}

/* ===================================================================
   Homepage
   =================================================================== */
.hero { padding: 72px 0 8px; }
.hero__answer {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(27px, 4.1vw, 40px);
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin: 0 0 26px;
  max-width: 20em;
}
.hero__answer em { font-style: italic; }
.hero__sub {
  font-size: 20px;
  line-height: 1.55;
  color: #3d3e41;
  max-width: 36em;
  margin: 0;
}
.hero__redact { background: var(--ink); color: transparent; border-radius: 1px; padding: 0 2px; user-select: none; }

.positioning {
  margin: 40px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: var(--slate);
  text-transform: uppercase;
}

/* editorial standard strip */
.standard {
  background: var(--ink);
  color: var(--paper);
  margin-top: 64px;
  padding: 56px 0;
}
.standard .kicker { color: #e08a80; }
.standard h2 {
  color: var(--paper);
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 700;
  margin: 0 0 34px;
  max-width: 20em;
  line-height: 1.15;
}
.standard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(246,245,241,0.16);
  border: 1px solid rgba(246,245,241,0.16);
}
.standard-card { background: var(--ink); padding: 26px 24px; }
.standard-card__n { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: #e08a80; }
.standard-card h3 { color: var(--paper); font-size: 18px; font-weight: 600; margin: 12px 0 8px; letter-spacing: -0.01em; }
.standard-card p { margin: 0; font-size: 15.5px; line-height: 1.55; color: #c9c8c2; }

/* piece list (featured + archive) */
.section-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin: 64px 0 8px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ink);
}
.section-head h2 { font-size: 22px; font-weight: 700; margin: 0; }
.section-head .kicker { margin: 0 0 0 auto; }

.piece-list { list-style: none; margin: 0; padding: 0; }
.piece {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
}
.piece__meta { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em; color: var(--muted); text-transform: uppercase; line-height: 1.7; }
.piece__tag { color: var(--slate); }
.piece__title { font-family: var(--display); font-weight: 700; font-size: 25px; line-height: 1.14; letter-spacing: -0.02em; margin: 0 0 8px; }
.piece__title a { color: var(--ink); text-decoration: none; }
.piece__title a:hover { color: var(--red); }
.piece__summary { margin: 0; font-size: 17.5px; line-height: 1.5; color: #3d3e41; max-width: 40em; }
.piece--soon .piece__title { color: var(--muted); }
.piece--soon .piece__flag { color: var(--red); }

/* lead story — the featured piece surfaced directly under the hero */
.lead-story { padding-bottom: 28px; }
.lead-story .section-head { margin-top: 72px; }
.piece--lead {
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 34px 0 48px;
  border-top: 2px solid var(--ink);
}
.piece--lead .piece__meta { display: flex; gap: 16px; }
.piece--lead .piece__title { font-size: clamp(27px, 3.9vw, 37px); line-height: 1.1; margin: 8px 0 16px; }
.piece--lead .piece__summary { font-size: 19px; line-height: 1.62; max-width: 42em; }
.piece__more { margin: 26px 0 0; }
.piece__more a { font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; color: var(--red); text-decoration: none; }
.piece__more a:hover { text-decoration: underline; }
.archive-link { margin: 34px 0 0; }
.archive-link a { font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; }

/* ===================================================================
   Article base (shared prose) — bespoke article styling lives in-page
   =================================================================== */
.article { padding: 8px 0 0; }
.article-header { padding: 56px 0 0; }
.article-header h1 {
  font-size: clamp(30px, 5vw, 50px);
  font-weight: 800;
  line-height: 1.06;
  margin: 16px 0 20px;
}
.article-standfirst {
  font-size: 22px;
  line-height: 1.5;
  color: #3d3e41;
  margin: 0 0 26px;
  max-width: 34em;
}
.article-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 16px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 8px;
}
.article-dates b { color: var(--slate); font-weight: 500; }

.callout {
  margin: 32px 0;
  padding: 22px 26px;
  background: var(--paper-2);
  border-left: 4px solid var(--slate);
}
.callout--correction { background: var(--red-wash); border-left-color: var(--red); }
.callout .kicker { margin-bottom: 8px; }
.callout--correction .kicker { color: var(--red); }
.callout p { margin: 0; font-size: 17px; line-height: 1.55; }

/* ---- about-org block appended to articles ---- */
.about-org {
  margin: 56px 0 0;
  padding: 28px 30px;
  border: 1px solid var(--rule-2);
  background: var(--paper-2);
}
.about-org .kicker { margin-bottom: 10px; }
.about-org h2 { font-size: 20px; font-weight: 700; margin: 0 0 10px; }
.about-org p { margin: 0 0 12px; font-size: 16.5px; line-height: 1.6; color: #2a2b2d; }
.about-org p:last-child { margin-bottom: 0; }

/* ===================================================================
   Generic page (about, archive)
   =================================================================== */
.page-header { padding: 64px 0 0; }
.page-header h1 { font-size: clamp(30px, 5vw, 48px); font-weight: 800; line-height: 1.08; margin: 14px 0 18px; }
.page-header p { font-size: 21px; line-height: 1.5; color: #3d3e41; max-width: 34em; margin: 0; }

.prose { padding: 40px 0 0; }
.prose h2 { font-size: 26px; font-weight: 700; margin: 44px 0 8px; }
.prose h3 { font-size: 19px; font-weight: 600; margin: 28px 0 4px; }
.prose p { font-size: 18px; line-height: 1.65; margin: 0 0 20px; }
.prose ul { font-size: 18px; line-height: 1.6; padding-left: 1.1em; }
.prose li { margin: 0 0 8px; }

/* archive controls */
.archive-groups { margin-top: 8px; }
.archive-year {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--red);
  padding: 40px 0 0; margin: 0;
}

/* ===================================================================
   Footer
   =================================================================== */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  margin-top: 88px;
  padding: 56px 0 40px;
}
.site-footer .datum { border-bottom-color: rgba(246,245,241,0.5);
  background-image: repeating-linear-gradient(90deg, rgba(246,245,241,0.5) 0, rgba(246,245,241,0.5) 1px, transparent 1px, transparent 15px); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-top: 40px;
}
.footer-brand .brand__mark { background: var(--red); }
.footer-brand .brand__name { color: var(--paper); }
.footer-brand p {
  margin: 16px 0 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: #c9c8c2;
  max-width: 30em;
}
.footer-indep {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.7;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #e08a80;
}
.footer-col h3 {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: #9a9a95; font-weight: 500; margin: 0 0 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 0 0 10px; }
.footer-col a { color: var(--paper); text-decoration: none; font-size: 15.5px; }
.footer-col a:hover { color: #e08a80; }
.footer-legal {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid rgba(246,245,241,0.16);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #8a8a85;
  text-transform: uppercase;
}

/* ===================================================================
   Accessibility & motion
   =================================================================== */
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; font-family: var(--mono); font-size: 13px; z-index: 50;
}
.skip-link:focus { left: 8px; top: 8px; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ===================================================================
   Responsive
   =================================================================== */
@media (max-width: 760px) {
  body { font-size: 18px; }
  .site-nav { gap: 14px; font-size: 11.5px; }
  .standard-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .piece { grid-template-columns: 1fr; gap: 8px; }
  .piece__meta { display: flex; gap: 14px; }
  .article-body h2 { font-size: 24px; }
}
@media (max-width: 520px) {
  .site-header__inner { flex-wrap: wrap; gap: 12px; }
  .site-nav { width: 100%; margin-left: 0; }
}
