/* LA Civics — civic broadsheet. Paper, ink, poppy. */
:root {
  --paper: #faf6ef;
  --paper-deep: #f3ecdf;
  --ink: #1d1a15;
  --ink-soft: #51493d;
  --rule: #d8cfc0;
  --poppy: #e8531c;
  --poppy-deep: #b53c0f;
  --civic-blue: #1f3a5f;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Public Sans", -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  background-image: radial-gradient(rgba(29,26,21,.028) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
}

a { color: var(--poppy-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--poppy); }

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 1.25rem; }

/* ---------- masthead ---------- */
.topbar {
  border-bottom: 1px solid var(--ink);
  font-family: var(--mono); font-size: .72rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-soft);
}
.topbar .wrap { display: flex; justify-content: space-between; padding-top: .45rem; padding-bottom: .45rem; gap: 1rem; }
.masthead { border-bottom: 4px double var(--ink); padding: 1.6rem 0 1.1rem; }
.masthead .wrap { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.brand { font-family: var(--serif); font-weight: 900; font-size: clamp(2.6rem, 7vw, 4.4rem); line-height: .92; letter-spacing: -.02em; margin: 0; }
.brand a { color: var(--ink); text-decoration: none; }
.brand .dot { color: var(--poppy); }
.tagline { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--ink-soft); font-size: 1.05rem; margin: .3rem 0 0; }
nav.mainnav { display: flex; gap: 1.4rem; font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; padding-bottom: .35rem; }
nav.mainnav a { color: var(--ink); text-decoration: none; border-bottom: 2px solid transparent; padding-bottom: 2px; }
nav.mainnav a:hover, nav.mainnav a.active { border-bottom-color: var(--poppy); }

/* ---------- ticker ---------- */
.ticker { border-bottom: 1px solid var(--rule); background: var(--paper-deep); overflow: hidden; }
.ticker .wrap { display: flex; gap: 2.2rem; padding-top: .55rem; padding-bottom: .55rem; flex-wrap: wrap; }
.tick { font-family: var(--mono); font-size: .8rem; color: var(--ink-soft); white-space: nowrap; }
.tick b { color: var(--ink); font-size: .95rem; }
.tick .up { color: var(--poppy-deep); }

/* ---------- hero ---------- */
.hero { padding: 3.2rem 0 2.4rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0,7fr) minmax(0,5fr); gap: 3rem; align-items: start; }
@media (max-width: 760px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.7rem, 3.6vw, 2.6rem); line-height: 1.15; margin: 0 0 1rem; letter-spacing: -.01em; }
.hero h1 em { font-style: italic; color: var(--poppy-deep); }
.hero p.lede { font-size: 1.1rem; color: var(--ink-soft); margin: 0 0 1.4rem; }
.kicker { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--poppy-deep); margin-bottom: .8rem; display: block; }

/* big number stack */
.figures { border-left: 3px solid var(--ink); padding-left: 1.4rem; display: grid; gap: 1.15rem; }
.figure .num { font-family: var(--mono); font-weight: 600; font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1; font-variant-numeric: tabular-nums; }
.figure .lbl { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); margin-top: .25rem; }
.figure.accent .num { color: var(--poppy-deep); }

/* staggered reveal */
.reveal { opacity: 0; transform: translateY(10px); animation: rise .6s ease forwards; }
.reveal:nth-child(2) { animation-delay: .08s; } .reveal:nth-child(3) { animation-delay: .16s; }
.reveal:nth-child(4) { animation-delay: .24s; } .reveal:nth-child(5) { animation-delay: .32s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .reveal { animation: none; opacity: 1; transform: none; } }

/* ---------- sections ---------- */
section.band { padding: 2.6rem 0; border-top: 1px solid var(--rule); }
h2.sect { font-family: var(--serif); font-weight: 900; font-size: 1.5rem; margin: 0 0 1.3rem; display: flex; align-items: baseline; gap: .8rem; }
h2.sect::after { content: ""; flex: 1; border-bottom: 1px solid var(--ink); transform: translateY(-4px); }

.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
@media (max-width: 760px) { .cols-3 { grid-template-columns: 1fr; } }

/* data tables */
table.data { border-collapse: collapse; width: 100%; font-size: .92rem; }
table.data th { font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); text-align: left; border-bottom: 2px solid var(--ink); padding: .4rem .5rem; }
table.data td { border-bottom: 1px solid var(--rule); padding: .45rem .5rem; font-variant-numeric: tabular-nums; }
table.data td.num { font-family: var(--mono); text-align: right; }
table.data tr:hover td { background: var(--paper-deep); }

/* leader-dot index rows */
.ledger { list-style: none; margin: 0; padding: 0; }
.ledger li { display: flex; align-items: baseline; gap: .5rem; padding: .42rem 0; }
.ledger .k { flex-shrink: 0; }
.ledger .dots { flex: 1; border-bottom: 2px dotted var(--rule); transform: translateY(-4px); }
.ledger .v { font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 600; }

/* ---------- brief article ---------- */
article.brief { max-width: 680px; }
article.brief .dateline { font-family: var(--mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--poppy-deep); }
article.brief h1 { font-family: var(--serif); font-weight: 900; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.1; margin: .4rem 0 1.2rem; }
article.brief .body p { margin: 0 0 1.1rem; }
article.brief .body p:first-of-type::first-letter {
  font-family: var(--serif); font-weight: 900; font-size: 3.4em; line-height: .8;
  float: left; padding: .08em .12em 0 0; color: var(--poppy-deep);
}
article.brief .stats { background: var(--paper-deep); border: 1px solid var(--rule); border-left: 4px solid var(--poppy); padding: 1rem 1.2rem; margin: 1.4rem 0; font-size: .95rem; }
article.brief .stats h3 { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 .6rem; color: var(--ink-soft); }

.brief-index { list-style: none; padding: 0; margin: 0; }
.brief-index li { border-bottom: 1px solid var(--rule); padding: 1rem 0; }
.brief-index .d { font-family: var(--mono); font-size: .75rem; color: var(--poppy-deep); text-transform: uppercase; letter-spacing: .1em; }
.brief-index h3 { font-family: var(--serif); font-size: 1.25rem; margin: .2rem 0 .3rem; }
.brief-index h3 a { color: var(--ink); text-decoration: none; }
.brief-index h3 a:hover { color: var(--poppy-deep); }

/* ---------- coupon subscribe ---------- */
.coupon {
  border: 2px dashed var(--ink);
  background: var(--paper-deep);
  padding: 1.6rem 1.7rem 1.7rem;
  position: relative;
  max-width: 460px;
}
.coupon::before { content: "✂"; position: absolute; top: -0.85rem; left: 1.4rem; background: var(--paper); padding: 0 .4rem; font-size: 1.1rem; color: var(--ink-soft); }
.coupon h3 { font-family: var(--serif); font-weight: 900; font-size: 1.35rem; margin: 0 0 .4rem; }
.coupon p { font-size: .92rem; color: var(--ink-soft); margin: 0 0 1rem; }
.coupon form { display: flex; gap: .5rem; flex-wrap: wrap; }
.coupon input[type=email] {
  flex: 1 1 200px; font-family: var(--mono); font-size: .95rem;
  padding: .65rem .8rem; border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink);
}
.coupon input[type=email]:focus { outline: 2px solid var(--poppy); outline-offset: 1px; }
.coupon button {
  font-family: var(--mono); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase;
  background: var(--ink); color: var(--paper); border: 1.5px solid var(--ink);
  padding: .65rem 1.2rem; cursor: pointer; transition: background .15s, color .15s;
}
.coupon button:hover { background: var(--poppy); border-color: var(--poppy); color: #fff; }
.coupon .fine { font-family: var(--mono); font-size: .68rem; color: var(--ink-soft); margin: .7rem 0 0; }
.coupon .msg { font-family: var(--mono); font-size: .85rem; margin-top: .7rem; }
.coupon .msg.ok { color: #2e6b34; } .coupon .msg.err { color: var(--poppy-deep); }

/* ---------- notice / flash ---------- */
.notice { max-width: 680px; margin: 3rem auto; border: 1px solid var(--rule); border-left: 4px solid var(--poppy); background: var(--paper-deep); padding: 1.4rem 1.6rem; }
.notice h1 { font-family: var(--serif); font-size: 1.5rem; margin: 0 0 .5rem; }

/* ---------- footer ---------- */
footer.colophon { border-top: 4px double var(--ink); margin-top: 3.5rem; padding: 1.6rem 0 2.4rem; font-size: .85rem; color: var(--ink-soft); }
footer.colophon .wrap { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
footer.colophon .fmono { font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; }
footer.colophon a { color: var(--ink-soft); }
