/* ChapterTide — one stylesheet. System fonts only, no external requests. */

:root {
  --ink: #1c1d1f;
  --muted: #56585c;
  --rule: #d9d7d0;
  --paper: #fbfaf6;
  --accent: #1f4e5f;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --measure: 38rem;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--rule);
  padding: 1.25rem 0 1rem;
}
.brand {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.brand:hover, .brand:focus { color: var(--accent); }

/* Main text */
main { padding: 3rem 0 4rem; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: normal;
  line-height: 1.2;
  color: var(--ink);
}
h1 { font-size: 2.1rem; margin: 0 0 1.25rem; }
h2 { font-size: 1.45rem; margin: 3rem 0 0.75rem; }
h3 { font-size: 1.15rem; margin: 2rem 0 0.5rem; }

p, ul, ol, dl, address { margin: 0 0 1.1rem; }
ul, ol { padding-left: 1.25rem; }
li { margin-bottom: 0.35rem; }
address { font-style: normal; }

a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover, a:focus { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.lede { font-size: 1.2rem; }
.note { color: var(--muted); font-size: 0.95rem; }

/* A status line: a rule on the left, no box */
.status {
  border-left: 2px solid var(--accent);
  padding-left: 1rem;
}

/* The founding licence price: old price struck, new price plain */
del { color: var(--muted); }

dl dt { font-weight: 600; margin-top: 0.9rem; }
dl dd { margin: 0.15rem 0 0; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 2rem 0 3rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.site-footer p { margin-bottom: 0.75rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.1rem; }
.site-footer li { margin: 0; }
.site-footer a { color: var(--muted); }
.site-footer a[aria-current="page"] { color: var(--ink); }

/* Wider screens: a little more air, same measure for text */
@media (min-width: 900px) {
  body { font-size: 1.125rem; }
  h1 { font-size: 2.6rem; }
  main { padding: 4.5rem 0 5rem; }
}

/* Narrow screens */
@media (max-width: 400px) {
  body { font-size: 1rem; }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.3rem; }
  .wrap { padding: 0 1rem; }
}

/* Print */
@media print {
  :root { --paper: #fff; --ink: #000; --muted: #333; --accent: #000; }
  body { font-size: 11pt; line-height: 1.45; }
  .site-header { border: 0; padding: 0 0 1rem; }
  main { padding: 0; }
  .wrap { max-width: none; padding: 0; }
  a { color: #000; text-decoration: none; }
  h1, h2, h3 { break-after: avoid; }
  li, dl { break-inside: avoid; }
  .site-footer { border-top: 1px solid #000; margin-top: 2rem; }
}
