/* The post, on RNN432's paper and in its type: Fraunces for the title and headings, Source Serif 4 for the text. */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("fonts/fraunces.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("fonts/sourceserif.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 300 700; font-display: swap; src: url("fonts/sourceserif-italic.woff2") format("woff2"); }

:root {
  --page: #fbfaf6;
  --mat: #fffefb;
  --ink: #1e2431;
  --ink-2: #454d5a;
  --muted: #6d7582;
  --hair: rgba(30, 36, 49, 0.13);
  --link: #24507d;
  --serif: "Source Serif 4", "Iowan Old Style", Charter, "Palatino Linotype", Georgia, serif;
  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --prose: 34rem;
  --bleed: 1.7rem;
}

html {
  background: var(--page);
  color: var(--ink);
  font: 400 1.1875rem/1.65 var(--serif);
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}
body { margin: 0; padding: clamp(3rem, 9vw, 7rem) 1.25rem 4rem; }
header, main, footer { max-width: var(--prose); margin: 0 auto; }

h1 {
  font: 560 clamp(2.4rem, 7vw, 3.75rem)/1.02 var(--display);
  font-optical-sizing: auto;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0 0 1.25rem;
}
.subtitle { margin: 0 0 3.5rem; font-size: 1.125rem; line-height: 1.5; font-style: italic; color: var(--ink-2); }
h2 { font: 580 1.6rem/1.2 var(--display); letter-spacing: -0.01em; text-wrap: balance; margin: 3.25rem 0 0.85rem; }
p { margin: 0 0 1.15rem; }
strong { font-weight: 650; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 2px; }

.table { overflow-x: auto; margin: 1.75rem 0 2.25rem; }
table { width: 100%; border-collapse: collapse; font-size: 1rem; font-variant-numeric: lining-nums tabular-nums; }
th, td { padding: 0.6rem 0.7rem; text-align: right; border-bottom: 1px solid var(--hair); white-space: nowrap; }
thead th { font-weight: 600; vertical-align: bottom; border-bottom: 1.5px solid var(--ink); }
th:first-child { padding-left: 0; text-align: left; white-space: normal; }
td:last-child, thead th:last-child { padding-right: 0; }
tbody th { font-weight: 400; color: var(--ink-2); }

figure { margin: 2.5rem calc(-1 * var(--bleed)); padding: var(--bleed); background: var(--mat); box-shadow: 0 0 0 1px var(--hair); }
img { display: block; width: 100%; height: auto; }

footer { margin-top: 4.5rem; padding-top: 1.25rem; border-top: 1px solid var(--hair); font-size: 1rem; color: var(--muted); }
footer p { margin: 0; }

@media (max-width: 40rem) {
  html { font-size: 106%; }
  figure { margin-inline: 0; padding: 0.75rem; }
  table { font-size: 0.8rem; }
  th, td { padding: 0.5rem 0.35rem; }
  th:first-child { min-width: 5.5rem; }
}
@media (max-width: 23.5rem) { td { white-space: normal; } }
