/* Axiom Cairn. One stylesheet for the whole site. */

/* ---------- Fonts (self-hosted, SIL Open Font License; see /assets/fonts) ---------- */
@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("fonts/literata-latin-opsz-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("fonts/literata-latin-ext-opsz-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Literata";
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url("fonts/literata-latin-wght-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Literata";
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url("fonts/literata-latin-ext-wght-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/archivo-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/archivo-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens: stone, ink, lichen ---------- */
:root {
  color-scheme: light dark;
  --granite: #edefec;      /* page ground */
  --quartz: #f8f9f6;       /* raised surfaces */
  --slate: #1d272c;        /* ink */
  --scree: #566268;        /* secondary text */
  --seam: #c5cbc6;         /* rules */
  --lichen: #b9c62f;       /* waypoint fill, never text on light ground */
  --lichen-wash: #e2e8a6;  /* hover and selection */
  --moss: #6b7a12;         /* link underline, 3:1 on granite */
  --mark: #b9c62f;         /* top stone of the cairn mark; stays put when a paper sets its own accent */

  --serif: "Literata", "Iowan Old Style", "Charter", "Bitstream Charter", Georgia, serif;
  --sans: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  --gutter: clamp(1.25rem, 5vw, 3rem);
  --measure: 38rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --granite: #182024;
    --quartz: #1f292e;
    --slate: #e4e9e5;
    --scree: #a3adaa;
    --seam: #3a474d;
    --lichen: #c9d64a;
    --lichen-wash: #3c4620;
    --moss: #b4c23a;
    --mark: #c9d64a;
  }
}

/* A paper can carry its own accent, taken from its emblem */
.accent-spruce {
  --lichen: #107a3f;
  --lichen-wash: #cfe6d8;
  --moss: #107a3f;
}
@media (prefers-color-scheme: dark) {
  .accent-spruce {
    --lichen: #3fbf7c;
    --lichen-wash: #1e3a2b;
    --moss: #4cc488;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  background: var(--granite);
  color: var(--slate);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.62;
  font-optical-sizing: auto;
  font-kerning: normal;
  font-variant-numeric: oldstyle-nums proportional-nums;
}
@media (min-width: 48rem) {
  body { font-size: 1.1875rem; }
}
::selection { background: var(--lichen-wash); color: var(--slate); }
a { color: inherit; }
:focus-visible {
  outline: 2px solid var(--slate);
  outline-offset: 3px;
  border-radius: 2px;
}
img, svg { max-width: 100%; }

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  padding: 0.5rem 0.9rem;
  background: var(--slate);
  color: var(--granite);
  font-family: var(--sans);
  font-size: 0.9rem;
  text-decoration: none;
  z-index: 10;
}
.skip:focus { top: 0.75rem; }

/* ---------- Masthead ---------- */
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 78rem;
  margin: 0 auto;
  padding: 1.4rem var(--gutter) 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
}
.brand svg { width: 1.7rem; height: 1.7rem; flex: none; }
.stone { fill: var(--slate); }
.stone-top { fill: var(--mark); stroke: var(--slate); stroke-width: 1.1; }
.masthead-link {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--moss);
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.2em;
}
.masthead-link:hover { background: var(--lichen-wash); }

/* ---------- Home ---------- */
.home {
  max-width: 78rem;
  margin: 0 auto;
  padding: 0 var(--gutter) 4rem;
}
.home-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  gap: 2rem;
  padding: clamp(2.5rem, 9vw, 7rem) 0 clamp(2.5rem, 6vw, 4.5rem);
}
.home-statement {
  margin: 0;
  max-width: 20ch;
  font-size: clamp(2.1rem, 6vw, 4rem);
  font-weight: 560;
  line-height: 1.07;
  letter-spacing: -0.016em;
  text-wrap: balance;
}
.cairn-figure { display: none; }
@media (min-width: 52rem) {
  .home-top { grid-template-columns: minmax(0, 1fr) auto; }
  .cairn-figure {
    display: block;
    width: clamp(7rem, 13vw, 10.5rem);
    height: auto;
    margin-right: clamp(0rem, 6vw, 6rem);
  }
}
.shelf-heading {
  margin: 0 0 0.9rem;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--scree);
}
.shelf-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--slate);
}
.shelf-list > li {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.45rem 2.5rem;
  padding: 1.6rem 0 1.8rem;
  border-bottom: 1px solid var(--seam);
}
@media (min-width: 52rem) {
  .shelf-list > li { grid-template-columns: 11rem minmax(0, 1fr); }
  .entry-when { padding-top: 0.75rem; }
}
.shelf-note {
  margin: 0;
  padding: 1.4rem 0 0;
  border-top: 2px solid var(--slate);
  font-size: 1.15rem;
  line-height: 1.4;
  color: var(--scree);
}
.entry-emblem {
  order: -1;
  width: 4rem;
  height: auto;
  margin-bottom: 0.35rem;
}
@media (min-width: 52rem) {
  .shelf-list > li.has-emblem { grid-template-columns: 11rem minmax(0, 1fr) 6.5rem; }
  .entry-emblem { order: 0; width: 6.5rem; margin: 0.35rem 0 0; }
}
.entry-when {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--scree);
}
.entry-title {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 620;
  line-height: 1.08;
  letter-spacing: -0.012em;
}
.entry-title a {
  text-decoration: none;
}
.entry-title a:hover {
  text-decoration: underline;
  text-decoration-color: var(--moss);
  text-decoration-thickness: 0.07em;
  text-underline-offset: 0.14em;
}
.entry-sub {
  margin: 0.7rem 0 0;
  max-width: 36rem;
  font-size: 1.15rem;
  line-height: 1.4;
  color: var(--scree);
}
.entry-series {
  margin: 0.9rem 0 0;
  font-family: var(--sans);
  font-size: 0.9rem;
  line-height: 1.3;
  color: var(--scree);
}

/* ---------- Paper page ---------- */
.paper {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 78rem;
  margin: 0 auto;
  padding: 0 var(--gutter) 5rem;
}
.paper-head {
  padding: clamp(2.25rem, 8vw, 5.5rem) 0 0;
}
.emblem {
  display: block;
  width: 5.5rem;
  height: auto;
  margin: clamp(1.75rem, 6vw, 2.75rem) 0 0;
}
.emblem + .paper-head { padding-top: 1.5rem; }
@media (prefers-color-scheme: dark) {
  .emblem, .entry-emblem { filter: brightness(1.3); }
}
.series {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.55rem;
  margin: 0 0 1.1rem;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 550;
  line-height: 1.3;
  color: var(--scree);
}
.series::before {
  content: "";
  flex: none;
  width: 0.85rem;
  height: 0.66rem;
  border-radius: 52% 48% 50% 50% / 58% 54% 46% 42%;
  background: var(--lichen);
  border: 1.5px solid var(--slate);
}
.series span + span {
  padding-left: 0.6rem;
  border-left: 1px solid var(--scree);
}
.paper-head h1 {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(2.6rem, 8.2vw, 5rem);
  font-weight: 620;
  line-height: 1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.subtitle {
  margin: 1.3rem 0 0;
  max-width: 33rem;
  font-size: clamp(1.2rem, 2.7vw, 1.55rem);
  font-weight: 400;
  line-height: 1.3;
  color: var(--scree);
  text-wrap: balance;
}
.record {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0.4rem 1.6rem;
  max-width: var(--measure);
  margin: 2.2rem 0 0;
  padding: 1rem 0 1.05rem;
  border-top: 2px solid var(--slate);
  border-bottom: 1px solid var(--seam);
  font-size: 1rem;
  line-height: 1.4;
}
.record dt {
  padding-top: 0.14rem;
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--scree);
}
.record dd { margin: 0; }
.record a {
  text-decoration: underline;
  text-decoration-color: var(--moss);
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.18em;
}

/* The route: contents list drawn as a line of waypoints */
.route {
  margin: 1.75rem 0 0;
  font-family: var(--sans);
  font-size: 0.92rem;
  line-height: 1.32;
}
.route summary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.route summary::-webkit-details-marker { display: none; }
.route summary::after {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--slate);
  border-bottom: 2px solid var(--slate);
  transform: translateY(-0.12rem) rotate(45deg);
}
.route details[open] summary::after { transform: translateY(0.12rem) rotate(-135deg); }
.route ol {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
}
.route li {
  position: relative;
  padding: 0 0 0.95rem 1.7rem;
}
.route li::before {
  content: "";
  position: absolute;
  left: 0.39rem;
  top: 0.95rem;
  bottom: -0.2rem;
  width: 2px;
  background: var(--seam);
}
.route li:last-child { padding-bottom: 0; }
.route li:last-child::before { display: none; }
.route li::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2rem;
  width: 0.9rem;
  height: 0.7rem;
  border-radius: 52% 48% 50% 50% / 58% 54% 46% 42%;
  background: var(--granite);
  border: 2px solid var(--scree);
}
.route li.is-passed::after { background: var(--scree); }
.route li.is-current::after { background: var(--lichen); border-color: var(--slate); }
.route a {
  color: var(--scree);
  text-decoration: none;
}
.route a:hover { color: var(--slate); text-decoration: underline; }
.route li.is-current a { color: var(--slate); font-weight: 600; }

/* Body copy */
.prose {
  max-width: var(--measure);
  padding-top: 2.5rem;
  overflow-wrap: break-word;
}
.prose > :first-child { margin-top: 0; }
.prose p,
.prose ul,
.prose ol,
.prose blockquote,
.prose dl,
.prose pre { margin: 1.1em 0 0; }
.prose h2 {
  margin: 2.5em 0 0;
  font-size: 1.72rem;
  font-weight: 650;
  line-height: 1.14;
  letter-spacing: -0.011em;
  scroll-margin-top: 1.5rem;
  text-wrap: balance;
}
.prose h3 {
  margin: 2em 0 0;
  font-size: 1.26rem;
  font-weight: 650;
  line-height: 1.24;
  scroll-margin-top: 1.5rem;
}
.prose h4 {
  margin: 1.8em 0 0;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.3;
  scroll-margin-top: 1.5rem;
}
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: 0.7em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { padding-left: 0.15em; }
.prose li + li { margin-top: 0.5em; }
.prose li > ul, .prose li > ol { margin-top: 0.5em; }
.prose li > p { margin: 0; }
.prose li > p + p { margin-top: 0.6em; }
.prose li::marker { color: var(--scree); }
.prose a {
  text-decoration: underline;
  text-decoration-color: var(--moss);
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.18em;
}
.prose a:hover {
  background: var(--lichen-wash);
  text-decoration-color: var(--slate);
}
.prose strong, .prose b { font-weight: 690; }
.prose blockquote {
  margin-left: 0;
  margin-right: 0;
  padding: 0.1rem 0 0.1rem 1.15rem;
  border-left: 3px solid var(--lichen);
}
.prose blockquote > :first-child { margin-top: 0; }
.prose hr {
  margin: 2.6em 0 0;
  border: 0;
  border-top: 1px solid var(--seam);
}
.prose sup, .prose sub { font-size: 0.72em; line-height: 0; }
.prose code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--quartz);
  padding: 0.12em 0.32em;
  border-radius: 0.2em;
}
.prose pre {
  overflow-x: auto;
  padding: 1rem 1.1rem;
  background: var(--quartz);
  font-size: 0.9rem;
  line-height: 1.5;
}
.prose pre code { background: none; padding: 0; font-size: inherit; }
.prose img { height: auto; }
.prose figure { margin: 2em 0 0; }
.prose figcaption, .prose caption {
  margin-top: 0.55em;
  font-family: var(--sans);
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--scree);
  text-align: left;
}
.prose caption { caption-side: bottom; }

/* Tables */
.table-wrap {
  margin: 1.7em 0 0;
  overflow-x: auto;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.45;
  font-variant-numeric: lining-nums tabular-nums;
}
.prose th, .prose td {
  padding: 0.65rem 1.1rem 0.65rem 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--seam);
}
.prose th:last-child, .prose td:last-child { padding-right: 0; }
.prose thead th {
  font-family: var(--sans);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--scree);
  border-bottom: 2px solid var(--slate);
}
.prose tbody th { font-weight: 650; }
@media screen and (max-width: 43.99rem) {
  .prose table.stack thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .prose table.stack, .prose table.stack tbody { display: block; }
  .prose table.stack tr {
    display: block;
    padding: 0.85rem 0 0.95rem;
    border-bottom: 1px solid var(--seam);
  }
  .prose table.stack tbody tr:first-child { border-top: 2px solid var(--slate); }
  .prose table.stack th, .prose table.stack td {
    display: block;
    padding: 0;
    border: 0;
  }
  .prose table.stack td + td, .prose table.stack th + td { margin-top: 0.55rem; }
  .prose table.stack td[data-label]::before, .prose table.stack th[data-label]::before {
    content: attr(data-label);
    display: block;
    font-family: var(--sans);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--scree);
  }
}

/* Source lists read smaller and wrap long addresses */
.prose .sources, .prose .sources li { font-size: 0.97em; }
.prose .sources { overflow-wrap: anywhere; }

/* Sign-off: author line, disclosure and series links at the end of the paper */
.prose .signoff {
  margin-top: 2.6em;
  padding-top: 1.3rem;
  border-top: 1px solid var(--seam);
}
.prose .signoff > :first-child { margin-top: 0; }
.prose .signoff > p:last-child {
  font-family: var(--sans);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Preview builds only: a blank the author still has to fill */
mark.todo {
  padding: 0.05em 0.25em;
  border-radius: 0.15em;
  background: #ffd84d;
  color: #1d272c;
  font-style: normal;
  font-weight: 600;
}

.paper-end {
  max-width: var(--measure);
  margin: 3.5rem 0 0;
  padding-top: 1.2rem;
  border-top: 2px solid var(--slate);
  font-family: var(--sans);
  font-size: 0.95rem;
  line-height: 1.5;
}
.paper-end p { margin: 0; }
.paper-end p + p { margin-top: 0.5rem; }
.paper-end a {
  text-decoration: underline;
  text-decoration-color: var(--moss);
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.2em;
}
.paper-end a:hover { background: var(--lichen-wash); }

/* Wide screens: the route sits beside the paper and stays in view */
@media (min-width: 70rem) {
  .paper {
    grid-template-columns: 14rem minmax(0, var(--measure)) minmax(0, 1fr);
    column-gap: clamp(3rem, 5vw, 5rem);
  }
  .paper-head { grid-column: 2 / -1; grid-row: 1; }
  .route {
    grid-column: 1;
    grid-row: 1 / span 3;
    align-self: start;
    position: sticky;
    top: 0;
    max-height: 100vh;
    overflow-y: auto;
    margin: 0;
    padding: clamp(2.25rem, 8vw, 5.5rem) 0.5rem 2rem 0;
  }
  .route summary { padding-top: 0; }
  .emblem {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    width: 10rem;
    margin: clamp(2.25rem, 8vw, 5.5rem) 0 0;
  }
  .emblem + .paper-head { padding-top: clamp(2.25rem, 8vw, 5.5rem); }
  /* The contents list starts below the emblem, then rides up to the top once the emblem scrolls away. */
  .emblem ~ .route {
    --emblem-block: 12.5rem;
    top: calc(-1 * var(--emblem-block));
    max-height: calc(100vh + var(--emblem-block));
    padding-top: calc(clamp(2.25rem, 8vw, 5.5rem) + var(--emblem-block));
  }
  .prose { grid-column: 2; grid-row: 2; }
  .paper-end { grid-column: 2; grid-row: 3; }
  .table-wrap, .prose figure.wide {
    width: min(54rem, calc(100vw - 14rem - 2 * var(--gutter) - 5rem));
    max-width: none;
  }
}

/* ---------- Plain pages (404) ---------- */
.plain {
  max-width: 78rem;
  margin: 0 auto;
  padding: clamp(3rem, 12vw, 8rem) var(--gutter) 5rem;
}
.plain h1 {
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.016em;
}
.plain p { max-width: 34rem; margin: 1.2rem 0 0; }
.plain a {
  text-decoration: underline;
  text-decoration-color: var(--moss);
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.18em;
}

/* ---------- Footer ---------- */
.site-foot {
  width: min(calc(100% - 2 * var(--gutter)), calc(78rem - 2 * var(--gutter)));
  margin: 0 auto;
  padding: 1.6rem 0 3rem;
  border-top: 1px solid var(--seam);
  font-family: var(--sans);
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--scree);
}
.site-foot p { max-width: 44rem; margin: 0; }
.site-foot p + p { margin-top: 0.35rem; }
.site-foot a { text-decoration: underline; text-underline-offset: 0.18em; }

/* ---------- Print: a clean document, no site chrome ---------- */
@media print {
  :root {
    --granite: #fff;
    --quartz: #fff;
    --slate: #000;
    --scree: #333;
    --seam: #999;
    --lichen: #999;
    --lichen-wash: #fff;
    --moss: #000;
  }
  body { font-size: 10.5pt; line-height: 1.5; }
  .skip, .route, .masthead-link, .no-print { display: none !important; }
  .masthead { padding: 0 0 1.2rem; }
  .paper { display: block; padding: 0; max-width: none; }
  .paper-head, .emblem + .paper-head { padding-top: 0.5rem; }
  .paper-head h1 { font-size: 30pt; max-width: none; }
  .emblem { width: 27mm; margin: 0 0 3mm; filter: none; }
  .prose, .record, .paper-end { max-width: none; }
  .table-wrap { width: auto; overflow: visible; }
  .prose h2, .prose h3, .prose h4 { break-after: avoid; }
  .prose h2[id^="appendix-"] { break-before: page; }
  .prose tr, .prose figure, .prose blockquote { break-inside: avoid; }
  .prose p, .prose li { orphans: 3; widows: 3; }
  .prose a { text-decoration-color: #888; text-decoration-thickness: 0.05em; }
  .prose th, .prose td { padding-top: 0.4rem; padding-bottom: 0.4rem; }
  .prose .sources a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.86em;
    overflow-wrap: anywhere;
  }
  .site-foot { width: auto; padding: 1rem 0 0; margin-top: 2rem; }
}
