/* 1519 W 139th Street — documentary/evidence styling.
   Calm and factual on purpose: a page that reads like a record is more
   credible, and more defensible, than one that reads like an argument. */

:root {
  --ink:        #16181d;
  --ink-soft:   #4a4f59;
  --ink-faint:  #7c828d;
  --paper:      #faf9f7;
  --card:       #ffffff;
  --rule:       #e2ded7;
  --rule-firm:  #c9c3b9;
  --flag:       #a3271c;
  --flag-bg:    #fbeeec;
  --ok:         #1f6b46;
  --todo:       #fff3bf;
  --todo-edge:  #d9b400;
  --wrap:       740px;
  --wrap-wide:  1040px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

a { color: var(--ink); text-decoration-color: var(--rule-firm); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-wide { max-width: var(--wrap-wide); margin: 0 auto; padding: 0 24px; }

/* ---- draft banner: remove class="draft" on <body> to publish ---- */
.draft-banner { display: none; }
body.draft .draft-banner {
  display: block;
  background: var(--flag);
  color: #fff;
  padding: 12px 24px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  position: sticky;
  top: 0;
  z-index: 50;
}

/* ---- masthead ---- */
header.masthead {
  border-bottom: 2px solid var(--ink);
  padding: 56px 0 28px;
  margin-bottom: 44px;
}
.kicker {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 14px;
}
header.masthead h1 {
  font-size: clamp(30px, 5.2vw, 46px);
  margin: 0 0 16px;
}
.standfirst {
  font-size: 19px;
  color: var(--ink-soft);
  margin: 0 0 22px;
  max-width: 62ch;
}
.byline {
  font-size: 13px;
  color: var(--ink-faint);
  border-top: 1px solid var(--rule);
  padding-top: 14px;
}

/* ---- the numbers ---- */
.ledger {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin: 0 0 44px;
}
.ledger div { background: var(--card); padding: 20px 22px; }
.ledger dt {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 8px;
}
.ledger dd {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 30px;
  line-height: 1;
}
.ledger .flag dd { color: var(--flag); }

/* ---- jump nav ---- */
.jump {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 14px;
}
.jump a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-firm);
  padding-bottom: 2px;
}
.jump a:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* ---- section anchors ---- */

/* ---- sections ---- */
section { margin: 0 0 60px; scroll-margin-top: 24px; }
section > h2 {
  font-size: 27px;
  margin: 0 0 6px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule-firm);
}
.section-note {
  font-size: 14px;
  color: var(--ink-faint);
  margin: 0 0 26px;
}

/* ---- timeline ---- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline > li {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}
.timeline time {
  font-size: 13px;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
  padding-top: 3px;
}
.timeline h3 { font-size: 17px; margin: 0 0 4px; font-family: inherit; font-weight: 600; }
.timeline p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }

/* ---- claim / record table ---- */
.claims { border-top: 2px solid var(--ink); }
.claim {
  border-bottom: 1px solid var(--rule);
  padding: 22px 0;
}
.claim-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}
.claim-head h3 { font-size: 18px; margin: 0; font-family: inherit; font-weight: 600; }
.amount {
  font-family: Georgia, serif;
  font-size: 20px;
  color: var(--flag);
  white-space: nowrap;
}
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.pair > div { background: var(--card); padding: 15px 17px; }
.pair dt {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 7px;
}
.pair dd { margin: 0; font-size: 15.5px; }
.pair .said dd { color: var(--ink-soft); font-style: italic; }
.exhibit-links { margin-top: 12px; font-size: 14px; }
.exhibit-links a { margin-right: 14px; }

/* ---- evidence grid ---- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
}
figure { margin: 0; }
figure img {
  width: 100%;
  display: block;
  border: 1px solid var(--rule-firm);
  background: var(--card);
}
figcaption {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 8px;
  line-height: 1.5;
}
figcaption b { display: block; color: var(--ink); font-weight: 600; }

/* ---- documents ---- */
.docs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.docs li { border-bottom: 1px solid var(--rule); padding: 14px 0; display: flex; gap: 14px; align-items: baseline; }
.docs .doc-date { font-size: 13px; color: var(--ink-faint); min-width: 96px; font-variant-numeric: tabular-nums; }
.docs .doc-desc { font-size: 14px; color: var(--ink-soft); }

/* ---- verbatim lease quote ---- */
.lease-quote {
  margin: 24px 0;
  padding: 22px 26px;
  background: var(--card);
  border: 1px solid var(--rule-firm);
  border-left: 3px solid var(--flag);
  font-family: "SF Mono", "Menlo", "Consolas", monospace;
  font-size: 14.5px;
  line-height: 1.7;
}
.lease-quote p { margin: 0 0 6px; }
.lease-quote p:last-of-type { margin-bottom: 0; }
.lease-quote b { color: var(--ink); }
.lease-quote cite {
  display: block;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  font-family: Georgia, serif;
  font-style: normal;
  font-size: 13px;
  color: var(--ink-faint);
}

/* ---- callouts ---- */

.callout {
  background: var(--card);
  border: 1px solid var(--rule-firm);
  border-left: 3px solid var(--ink);
  padding: 22px 24px;
}
.callout h3 { margin: 0 0 10px; font-size: 19px; }
.callout p:last-child { margin-bottom: 0; }
.callout.opinion { border-left-color: var(--ink-faint); background: transparent; }
.opinion-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border: 1px solid var(--rule-firm);
  padding: 2px 8px;
  margin-bottom: 10px;
}

/* ---- checklist ---- */
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li {
  padding: 11px 0 11px 30px;
  border-bottom: 1px solid var(--rule);
  position: relative;
  font-size: 16px;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 17px;
  width: 13px; height: 13px;
  border: 1.5px solid var(--rule-firm);
}

/* ---- placeholders ---- */
.fill {
  background: var(--todo);
  border-bottom: 2px dotted var(--todo-edge);
  padding: 0 3px;
  font-style: normal;
}
body:not(.draft) .fill { background: none; border-bottom: none; }

/* ---- footer ---- */
footer {
  border-top: 2px solid var(--ink);
  margin-top: 72px;
  padding: 32px 0 64px;
  font-size: 14px;
  color: var(--ink-soft);
}
footer h2 { font-size: 17px; margin: 0 0 10px; }
footer p { max-width: 68ch; }
.fineprint { font-size: 12.5px; color: var(--ink-faint); margin-top: 26px; line-height: 1.6; }

@media (max-width: 620px) {
  .timeline > li { grid-template-columns: 1fr; gap: 4px; }
  .pair { grid-template-columns: 1fr; }
  .ledger dd { font-size: 25px; }
}

@media print {
  body.draft .draft-banner { display: none; }
  body { background: #fff; font-size: 11pt; }
  section { break-inside: avoid; }
}
