:root {
  color-scheme: dark;
  --bg: #141414;
  --ink: #ededed;
  --muted: #8f8f8f;
  --rule: #333333;
  --mark: #8ea2ff;
  --serif: "Latin Modern Roman", "CMU Serif", "Computer Modern", Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  padding: 8vh 1.5rem 7rem;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.7;
}
main { max-width: 38rem; margin: 0 auto; }

a { color: inherit; text-decoration: underline; text-decoration-color: var(--rule); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-color: var(--mark); color: var(--mark); }
a:focus-visible { outline: 2px solid var(--mark); outline-offset: 3px; }

/* navigation on inner pages */
.nav { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6rem; font-size: 1rem; }
.nav .home { font-weight: 700; text-decoration: none; }
.nav .links a { margin-left: 1.5rem; }
.nav a[aria-current] { text-decoration-color: var(--ink); }

/* titles */
.wordmark { margin: 0 0 1.5rem; font-weight: 400; font-size: clamp(4rem, 17vw, 8.5rem); line-height: 0.86; letter-spacing: -0.055em; }
.pagetitle { margin: 0 0 1rem; font-weight: 400; font-size: clamp(3.5rem, 14vw, 7rem); line-height: 0.9; letter-spacing: -0.05em; }
.tagline, .pagelead { margin: 0 0 6rem; font-size: 1rem; line-height: 1.4; color: var(--muted); }

.block { margin: 0 0 5rem; }
.label { font-weight: 700; }
.stmt { margin: 0; }
.aside { margin: 0 0 5rem; font-size: 2.25rem; line-height: 1; color: var(--muted); letter-spacing: -0.02em; }

/* the two doors on the home page */
.door { display: block; margin: 0 0 3rem; text-decoration: none; }
.door .big { display: block; font-size: clamp(3rem, 12vw, 5.5rem); line-height: 0.95; letter-spacing: -0.05em; }
.door .sub { display: block; margin-top: 0.5rem; color: var(--muted); font-size: 1rem; line-height: 1.4; }
.door:hover .big { color: var(--mark); }

h2 { margin: 0 0 1.25rem; font-size: 1.15rem; font-weight: 700; }
h2 span { font-weight: 400; font-style: italic; }

ol { list-style: none; margin: 0; padding: 0; }
li { display: grid; grid-template-columns: 3rem 1fr; padding: 0.55rem 0; }
.n { color: var(--muted); font-variant-numeric: tabular-nums; }
.pub { display: block; color: var(--muted); font-size: 1rem; line-height: 1.4; }

.qed { text-align: right; font-size: 1.5rem; margin: 3rem 0 0; }
