/* ============================================================
   OpenOverheid — editorial system
   One choice per axis, applied to every page:
     type    Georgia-class serif for display AND reading;
             system grotesque, uppercase + tracked, for meta only
     color   warm newsprint paper, warm ink, ONE accent (oxide red);
             status hues are desaturated derivatives of nothing else
     radius  0 — newsprint has no rounded corners
     shadow  none
     motion  none — the site renders, it does not perform
   No CDNs, no webfonts, no analytics: a legal-defence face makes
   zero external requests beyond its own API.
   ============================================================ */

:root {
  --paper:    #f7f4ed;
  --paper-2:  #efeade;
  --ink:      #17140f;
  --ink-mut:  #5b554a;
  --rule:     #cec7b8;
  --accent:   #a03025;   /* oxide red — the only accent */

  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --measure: 41rem;      /* reading column */
  --wide:    64rem;      /* masthead / register */
}

* { box-sizing: border-box; }

html { background: var(--paper); }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 1.0625rem/1.7 var(--serif);       /* 17px, serif for reading */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ── Masthead ─────────────────────────────────────────────── */

.masthead {
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
}

.mast-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 2.25rem 1.25rem 0;
  text-align: center;
}

.kicker {
  margin: 0 0 .75rem;
  font: 600 .6875rem/1.4 var(--sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
}

.nameplate {
  display: block;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.5rem, 8vw, 4.75rem);
  line-height: .95;
  letter-spacing: -.02em;
  color: var(--ink);
  text-decoration: none;
}
.nameplate:hover { color: var(--accent); }

.dateline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--wide);
  margin: 1.25rem auto 0;
  padding: .55rem 1.25rem;
  border-top: 4px double var(--ink);
  font: 600 .6875rem/1.5 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-mut);
}
.dateline span:last-child { text-align: right; }

/* ── Nav ──────────────────────────────────────────────────── */

nav { border-top: 1px solid var(--rule); }

nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .35rem 2.25rem;
  max-width: var(--wide);
  margin: 0 auto;
  padding: .8rem 1.25rem;
  list-style: none;
}

nav a {
  font: 600 .75rem/1.4 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: .15rem;
  border-bottom: 2px solid transparent;
}
nav a:hover { color: var(--accent); border-bottom-color: var(--accent); }
nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }

/* ── Layout ───────────────────────────────────────────────── */

main {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 3rem 1.25rem 4.5rem;
}
main.wide { max-width: var(--wide); }

/* ── Article typography ───────────────────────────────────── */

h1 {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: -.015em;
}

.lede {
  font-size: clamp(1.15rem, 2.4vw, 1.35rem);
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--ink);
}

/* drop cap — the oldest editorial device there is */
.dropcap::first-letter {
  float: left;
  font-size: 3.4em;
  line-height: .82;
  padding: .06em .1em 0 0;
  font-weight: 700;
  color: var(--accent);
}

section { margin: 0 0 2.75rem; }

h2 {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  margin: 0 0 .9rem;
  padding-top: .9rem;
  border-top: 1px solid var(--rule);
  font: 600 .75rem/1.4 var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink);
}

.sec-num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: .95rem;
  letter-spacing: 0;
  color: var(--accent);
}

p { margin: 0 0 1rem; }

a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: .18em; }
a:hover { color: var(--accent); }

/* pull quote — the human gate, given the weight it deserves */
.pullquote {
  margin: 2.75rem 0;
  padding: 1.5rem 0;
  border-top: 4px double var(--ink);
  border-bottom: 4px double var(--ink);
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-style: italic;
  line-height: 1.4;
  text-align: center;
}
.pullquote p { margin: 0; }
.pullquote cite {
  display: block;
  margin-top: .8rem;
  font: 600 .6875rem/1.4 var(--sans);
  font-style: normal;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ── Definition ledger (identity page) ────────────────────── */

dl { margin: 0 0 2.25rem; border-top: 1px solid var(--ink); }

dt {
  margin-top: 1.1rem;
  font: 600 .75rem/1.4 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}

dd {
  margin: .3rem 0 0;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--rule);
  font-size: 1.0625rem;
}
dd:last-child { padding-bottom: 1.25rem; }

/* ── Register: ledger table ───────────────────────────────── */

.pagehead { margin-bottom: 2rem; }
.pagehead .lede { margin-bottom: 0; }

/* filters — squared, ink-ruled, no pills */
.bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  margin: 0 0 1.5rem;
  padding: 1rem;
  background: var(--paper-2);
  border: 1px solid var(--ink);
}
.field { display: flex; flex-direction: column; gap: .3rem; }
.field > span {
  font: 600 .6875rem/1.4 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-mut);
}
.field input, .field select {
  font: .95rem/1.4 var(--sans);
  padding: .5rem .6rem;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
}
.field input { min-width: 16rem; }
.field input:focus, .field select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
#count {
  margin-left: auto;
  padding-bottom: .5rem;
  font: italic .9rem/1.4 var(--serif);
  color: var(--ink-mut);
}

.tablewrap { overflow-x: auto; border-top: 2px solid var(--ink); }

table { width: 100%; border-collapse: collapse; font-size: .98rem; }

th {
  text-align: left;
  font: 600 .6875rem/1.4 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-mut);
  padding: .65rem .85rem .65rem 0;
  border-bottom: 1px solid var(--ink);
  white-space: nowrap;
}

td {
  padding: .8rem .85rem .8rem 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
td:nth-child(4), td:nth-child(5) { white-space: nowrap; font-variant-numeric: tabular-nums; }
tbody tr:last-child td { border-bottom: 2px solid var(--ink); }
tbody tr:hover { background: var(--paper-2); }
td .sub { display: block; font-size: .8rem; font-style: italic; color: var(--ink-mut); }

/* status tags — squared, bordered, meta type (kept class names for JS) */
.badge {
  display: inline-block;
  padding: .18rem .55rem;
  border: 1px solid;
  border-radius: 0;
  font: 600 .68rem/1.3 var(--sans);
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.b-light  { background: #e9e4d7; border-color: #bdb5a3; color: #5b554a; }
.b-blue   { background: #e3ecf4; border-color: #9db8d0; color: #2c5578; }
.b-green  { background: #e4ede2; border-color: #a4bda0; color: #3c6637; }
.b-violet { background: #ece5f2; border-color: #b9a6c9; color: #5b4177; }
.b-grey   { background: #e6e3dc; border-color: #b5b0a4; color: #55504a; }
.b-orange { background: #f5e8d6; border-color: #d4b183; color: #8a5a17; }
.b-red    { background: #f4e0dd; border-color: #cf9a93; color: var(--accent); }
.b-dark   { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.opeschort {
  font: 600 .7rem/1.3 var(--sans);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8a5a17;
}
.muted { color: var(--ink-mut); }

/* ── Loading / error / empty states ───────────────────────── */

.state { padding: 2.75rem 0; text-align: center; color: var(--ink-mut); font-style: italic; }
.state p { margin: 0 0 .75rem; }
.state strong { font-style: normal; }
.state .sub { font-size: .85rem; font-family: var(--sans); font-style: normal; letter-spacing: .04em; }
.state button {
  font: 600 .75rem/1.4 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .6rem 1.2rem;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}
.state button:hover { background: var(--ink); color: var(--paper); }

/* ── Notes, colophon ──────────────────────────────────────── */

.note {
  margin: 2rem 0 0;
  padding: .85rem 0 .85rem 1rem;
  border-left: 3px solid var(--accent);
  color: var(--ink-mut);
  font-size: .98rem;
  font-style: italic;
}

footer { margin-top: 3.5rem; padding-top: 1.25rem; border-top: 1px solid var(--ink); }

.colo-note {
  font-size: 1.05rem;
  font-style: italic;
  margin-bottom: .75rem;
}

.meta {
  font: 600 .6875rem/1.6 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-mut);
}

@media (max-width: 40rem) {
  .dateline { flex-direction: column; gap: .25rem; text-align: center; }
  .dateline span:last-child { text-align: center; }
  .field input { min-width: 0; width: 100%; }
  .bar { padding: .85rem; }
}
