:root {
  --ink: #16233b;
  --paper: #ffffff;
  --muted: #5f6673;
  --rule: #d8d5ce;
  --link: #7b2d3b;
  --link-hover: #4a1823;
  --serif: "Charter", "Bitstream Charter", "Sitka Text", Cambria, Georgia, "Times New Roman", serif;
  --margin-col: 9rem;
  --text-col: 40rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e9e6e0;
    --paper: #151822;
    --muted: #a2a7b0;
    --rule: #333846;
    --link: #e3a6b1;
    --link-hover: #f2c7ce;
  }
}

* { box-sizing: border-box; }

html { font-size: 106.25%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: calc(var(--margin-col) + 2.5rem + var(--text-col) + 2.5rem);
  margin: 0 auto;
  padding: 3.5rem 1.25rem 4rem;
}

.skip {
  position: absolute;
  left: -999px;
  top: 1rem;
  background: var(--paper);
  color: var(--ink);
  padding: 0.5rem 0.75rem;
}
.skip:focus { left: 1rem; }

.masthead,
.section {
  display: grid;
  grid-template-columns: var(--margin-col) minmax(0, var(--text-col));
  column-gap: 2.5rem;
}

.masthead-content,
.section-body {
  grid-column: 2;
}

.masthead { padding-bottom: 2.75rem; }

h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
}

.role {
  margin: 0;
  font-size: 1.05rem;
}

.lede {
  margin: 1rem 0 0;
  color: var(--muted);
  max-width: 34rem;
}

nav {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

nav a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
}
nav a:hover { color: var(--link); border-color: var(--link); }

.section {
  border-top: 1px solid var(--rule);
  padding: 2rem 0 1.5rem;
}

.section h2 {
  grid-column: 1;
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
  font-style: italic;
  color: var(--muted);
  line-height: 1.6;
}

.section-body > :first-child { margin-top: 0; }

p { margin: 0 0 1rem; }

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

.note { color: var(--muted); }

@media (max-width: 720px) {
  .page { padding-top: 2.25rem; }

  .masthead,
  .section {
    grid-template-columns: 1fr;
  }

  .masthead-content,
  .section-body {
    grid-column: 1;
  }

  .section h2 { margin-bottom: 0.75rem; }
}
