/* The Local Audit — shared styles */

:root {
  --ink: #0a0a0a;
  --paper: #ffffff;
  --muted: #5c5c5c;
  --faint: #8a8a8a;
  --rule: #0a0a0a;
  --halftone: #d9d9d9;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --gutter: 62px;
  --max: 1320px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Top bar ---------- */

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 0 16px;
  border-bottom: 1px solid var(--rule);
  font-size: 13px;
}

.topbar nav { display: flex; gap: 24px; }
.topbar a { text-decoration: none; font-weight: 500; }
.topbar a:hover,
.topbar a[aria-current="page"] { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Masthead ---------- */

.masthead {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  padding: 44px 0 24px;
  border-bottom: 6px solid var(--rule);
}

.wordmark {
  margin: 0;
  font-weight: 900;
  font-size: clamp(64px, 10.4vw, 138px);
  line-height: 0.8;
  letter-spacing: -0.065em;
}
.wordmark a { text-decoration: none; }
.wordmark span { display: block; }

.masthead-meta {
  text-align: right;
  font-size: 14px;
  line-height: 1.5;
  padding-bottom: 4px;
}

.tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  margin: 0 0 18px;
}

.masthead-meta p { margin: 0; }

/* ---------- Labels ---------- */

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 14px;
}

.label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.005em;
  margin: 0;
}

.aside { font-size: 13px; color: var(--muted); }

/* ---------- Hero (coming soon) ---------- */

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--rule);
}

.hero > div { padding: 50px 0 54px; }
.hero > div:first-child { padding-right: 44px; border-right: 1px solid var(--rule); }
.hero > div:last-child { padding-left: 44px; }

.big-number {
  font-weight: 900;
  font-size: clamp(96px, 13vw, 168px);
  line-height: 0.85;
  letter-spacing: -0.07em;
  margin: 6px 0 18px;
}

.big-number .redact {
  display: inline-block;
  width: 0.62em;
  height: 0.72em;
  background: var(--ink);
  vertical-align: -0.02em;
  margin-left: 0.04em;
}

.caption { font-size: 15px; color: #333; margin: 0 0 34px; }

.headline {
  font-weight: 700;
  font-size: clamp(32px, 3.4vw, 44px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: 0 0 14px;
}

.dek {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 34px;
  max-width: 34ch;
}

.stamp {
  display: inline-block;
  border: 3px solid var(--ink);
  padding: 10px 22px;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  transform: rotate(-4deg);
}

.cta-row { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.cta-row a { font-size: 15px; font-weight: 500; text-underline-offset: 3px; }

/* ---------- Ledger table ---------- */

.ledger { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }

.ledger li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 16px;
}

.ledger li strong { font-weight: 700; font-size: 19px; letter-spacing: -0.01em; text-align: right; }
.ledger li span { color: #222; }
.ledger li:last-child { border-bottom: 0; border-top: 3px double var(--rule); font-weight: 700; }

.halftone {
  margin-top: 30px;
  height: 180px;
  background-color: var(--halftone);
  background-image: radial-gradient(var(--ink) 0.9px, transparent 1.1px);
  background-size: 6px 6px;
  display: grid;
  place-items: center;
}

.halftone span {
  background: var(--paper);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.photo-caption { font-size: 13px; color: var(--muted); margin: 10px 0 0; }

/* ---------- Three / four column strips ---------- */

.strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--rule);
}

.strip > article { padding: 34px 30px 40px; border-right: 1px solid var(--rule); }
.strip > article:first-child { padding-left: 0; }
.strip > article:last-child { border-right: 0; padding-right: 0; }

.strip h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

.strip p {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
  margin: 0;
  color: #222;
}

/* ---------- Off the record ---------- */

.record {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  padding: 54px 0 56px;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}

.record p.body { font-size: 16px; line-height: 2; margin: 0; }

.bar {
  display: inline-block;
  background: var(--ink);
  height: 1.15em;
  vertical-align: -0.2em;
}

.pullquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 32px 0 0;
}

/* ---------- Docket ---------- */

.docket { padding: 36px 0 0; }

.docket-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 6px solid var(--rule);
}

.docket-grid > div {
  padding: 22px 20px 26px;
  border-right: 1px solid var(--rule);
  min-height: 160px;
}
.docket-grid > div:last-child { border-right: 0; }

.docket-grid .on { background: var(--ink); color: var(--paper); }
.docket-grid .on .meta,
.docket-grid .on .where { color: #bdbdbd; }

.docket-grid .meta { font-size: 14px; color: var(--muted); margin: 0 0 6px; }
.docket-grid h3 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 12px;
}
.docket-grid .where { font-size: 14px; color: var(--muted); margin: 0; }

/* ---------- Subscribe ---------- */

.subscribe {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  padding: 50px 0;
  border-bottom: 1px solid var(--rule);
}

.subscribe h2 {
  font-size: clamp(28px, 2.8vw, 34px);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin: 0 0 4px;
  line-height: 1.1;
}

.subscribe p {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--muted);
  margin: 0;
}

.signup { display: flex; flex-shrink: 0; width: min(406px, 100%); }

.signup input,
.field input,
.field textarea,
.field select {
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 14px 18px;
  width: 100%;
}

.signup input { border-right: 0; }

.signup input:focus,
.field input:focus,
.field textarea:focus { outline: 2px solid var(--ink); outline-offset: 2px; }

.button {
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 14px 28px;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
}
.button:hover { background: #333; }

.form-note { font-size: 13px; color: var(--muted); margin-top: 10px; min-height: 1em; }

/* ---------- Footer ---------- */

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 22px 0 60px;
  font-size: 13px;
  color: var(--muted);
}
.footer a { text-underline-offset: 3px; }
.footer em { font-family: var(--serif); font-size: 15px; color: var(--ink); }

/* ---------- About page ---------- */

.about {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 60px;
  padding: 54px 0 20px;
}

.about-nav {
  position: sticky;
  top: 24px;
  align-self: start;
  font-size: 14px;
}
.about-nav ol { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.about-nav li { border-bottom: 1px solid var(--rule); }
.about-nav a { display: block; padding: 10px 0; text-decoration: none; }
.about-nav a:hover { text-decoration: underline; text-underline-offset: 3px; }

.prose section { padding: 0 0 46px; margin-bottom: 46px; border-bottom: 1px solid var(--rule); }
.prose section:last-child { border-bottom: 0; }

.prose h2 {
  font-size: clamp(30px, 3.2vw, 42px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0 0 20px;
}

.prose p {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.55;
  margin: 0 0 18px;
  max-width: 36em;
}

.prose p.lede { font-size: 26px; line-height: 1.4; }

.contents { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.contents li {
  display: grid;
  grid-template-columns: 56px 220px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.contents .num { font-size: 13px; color: var(--muted); }
.contents strong { font-size: 19px; letter-spacing: -0.02em; }
.contents span:last-child { font-family: var(--serif); font-size: 19px; color: #333; }

.promise {
  border: 3px solid var(--ink);
  padding: 30px 34px;
}
.promise p:last-child { margin-bottom: 0; }

.inline-signup { margin-top: 22px; }

/* Nominate form */

.nominate { display: grid; gap: 18px; max-width: 640px; margin-top: 24px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.field textarea { min-height: 120px; resize: vertical; }
.field .hint { font-weight: 400; color: var(--muted); }
.check { display: flex; gap: 10px; align-items: center; font-size: 15px; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  :root { --gutter: 32px; }
  .docket-grid { grid-template-columns: repeat(2, 1fr); }
  .docket-grid > div:nth-child(2) { border-right: 0; }
  .docket-grid > div:nth-child(-n + 2) { border-bottom: 1px solid var(--rule); }
  .about { grid-template-columns: 1fr; gap: 30px; }
  .about-nav { position: static; }
  .contents li { grid-template-columns: 40px 1fr; }
  .contents li span:last-child { grid-column: 2; }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .masthead { flex-direction: column; align-items: flex-start; gap: 22px; }
  .masthead-meta { text-align: left; }
  .hero { grid-template-columns: 1fr; }
  .hero > div:first-child { padding-right: 0; border-right: 0; border-bottom: 1px solid var(--rule); }
  .hero > div:last-child { padding-left: 0; }
  .strip { grid-template-columns: 1fr; }
  .strip > article { padding: 26px 0; border-right: 0; border-bottom: 1px solid var(--rule); }
  .strip > article:last-child { border-bottom: 0; }
  .record { grid-template-columns: 1fr; gap: 10px; }
  .docket-grid { grid-template-columns: 1fr; }
  .docket-grid > div { border-right: 0; border-bottom: 1px solid var(--rule); min-height: 0; }
  .docket-grid > div:last-child { border-bottom: 0; }
  .subscribe { flex-direction: column; align-items: stretch; }
  .signup { width: 100%; }
  .button { padding: 14px 18px; }
  .topbar nav { gap: 14px; }
  .promise { padding: 22px 20px; }
  .prose p { font-size: 19px; }
  .prose p.lede { font-size: 22px; }
}

/* Labels inside prose keep the sans label style */
.prose p.label { font-family: var(--sans); font-size: 13px; line-height: 1.5; }
