/*
 * Shared print styling for the Slowfall legal documents.
 *
 * Built for paper first — these render to PDF via headless Chrome — but the
 * same file serves the hosted HTML, so the screen rules matter too. The look
 * borrows Slowfall's own restraint: a serif for anything that speaks, a sans
 * for anything that is read in a hurry, and no colour doing a job that spacing
 * could do instead.
 */

@page {
  size: A4;
  margin: 20mm 18mm 18mm;
}

:root {
  --ink: #16150F;
  --ink-soft: #4A4740;
  --ink-faint: #77736A;
  --rule: #DDD9D0;
  --paper: #FFFFFF;
  --wash: #F7F5F0;
}

* { box-sizing: border-box; }

html { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 10.5pt;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Screen gets a page-like column; print already has @page margins. */
@media screen {
  body { padding: 56px 24px 96px; }
  .sheet { max-width: 44rem; margin: 0 auto; }
}

/* ── masthead ─────────────────────────────────────────────────────────── */

.masthead { margin-bottom: 2.2rem; }

.wordmark {
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-size: 11pt;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 1.4rem;
}

h1 {
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-weight: 400;
  font-size: 27pt;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.7rem;
}

.dateline {
  font-size: 9pt;
  color: var(--ink-faint);
  margin: 0;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--rule);
}
.dateline span { white-space: nowrap; }
.dateline span + span::before {
  content: "·";
  padding: 0 0.55em;
  color: var(--rule);
}

/* ── the summary panel ────────────────────────────────────────────────── */

.summary {
  background: var(--wash);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 1.15rem 1.35rem 1.25rem;
  margin: 1.9rem 0 2.4rem;
  break-inside: avoid;
}
.summary h2 {
  font-family: -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 8.5pt;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 0.75rem;
  padding: 0;
  border: 0;
}
.summary ul { margin: 0; padding-left: 1.05rem; }
.summary li { margin-bottom: 0.42rem; }
.summary li:last-child { margin-bottom: 0; }
.summary strong { font-weight: 600; }
.summary .caveat {
  margin: 0.85rem 0 0;
  padding-top: 0.7rem;
  border-top: 1px solid var(--rule);
  font-size: 9pt;
  color: var(--ink-soft);
}

/* ── body ─────────────────────────────────────────────────────────────── */

h2 {
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-weight: 400;
  font-size: 15pt;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 2.3rem 0 0.85rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--rule);
  break-after: avoid;
}
h2 .num {
  color: var(--ink-faint);
  font-size: 11pt;
  padding-right: 0.5em;
}

h3 {
  font-size: 10.5pt;
  font-weight: 700;
  margin: 1.5rem 0 0.4rem;
  break-after: avoid;
}

p { margin: 0 0 0.85rem; }
p.lede { font-size: 11.5pt; color: var(--ink-soft); line-height: 1.55; }

ul, ol { margin: 0 0 0.95rem; padding-left: 1.15rem; }
li { margin-bottom: 0.34rem; }

strong { font-weight: 600; }
a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }

/* ── data tables ──────────────────────────────────────────────────────── */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0 1.3rem;
  font-size: 9.5pt;
  break-inside: avoid;
}
caption {
  caption-side: top;
  text-align: left;
  font-size: 8.5pt;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-bottom: 0.5rem;
}
th {
  text-align: left;
  font-weight: 700;
  font-size: 8.5pt;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border-bottom: 1px solid var(--ink);
  padding: 0 0.7rem 0.4rem 0;
  vertical-align: bottom;
}
td {
  border-bottom: 1px solid var(--rule);
  padding: 0.52rem 0.7rem 0.52rem 0;
  vertical-align: top;
}
th:last-child, td:last-child { padding-right: 0; }
td:first-child { font-weight: 600; width: 34%; }

/* ── callout: the one thing that must not be skimmed ──────────────────── */

.notice {
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  padding: 1.05rem 1.25rem;
  margin: 1.4rem 0 1.6rem;
  break-inside: avoid;
}
.notice p:last-child { margin-bottom: 0; }
.notice .label {
  font-size: 8.5pt;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* ── colophon ─────────────────────────────────────────────────────────── */

.colophon {
  margin-top: 2.6rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--rule);
  font-size: 9pt;
  color: var(--ink-faint);
  break-inside: avoid;
}

/* Keep short sections whole rather than orphaning a heading on its own. */
section { break-inside: auto; }
.keep { break-inside: avoid; }
