@font-face {
  font-family: "IBM Plex Serif";
  src: url("assets/fonts/IBMPlexSerif-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Serif";
  src: url("assets/fonts/IBMPlexSerif-SemiBold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f5f1e8;
  --ink: #221a14;
  --support: #4e4b45;
  --rule: #d8cdba;
  --accent: #3d4a57;
  font-family: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  background: var(--paper);
  color: var(--ink);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.6;
}

main {
  max-width: 46rem;
  margin-inline: auto;
  padding: clamp(2rem, 7vw, 4.5rem) 1.5rem 3rem;
}

h1, h2 {
  margin: 0;
  font-weight: 600;
  text-wrap: balance;
}

h1 {
  margin-bottom: 2rem;
  font-size: clamp(1.625rem, 4vw, 2rem);
  line-height: 1.25;
}

ul { list-style: none; margin: 0; padding: 0; }

li {
  padding-block: 1.25rem 1.5rem;
  border-top: 1px solid var(--rule);
}

li:last-child { border-bottom: 1px solid var(--rule); }

h2 { font-size: 1.25rem; line-height: 1.4; }

a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
  overflow-wrap: anywhere;
}

a:hover { color: var(--accent); }

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

p { margin: .25rem 0 0; color: var(--support); }

::selection { background: #e3dac8; }

@media (max-width: 380px) {
  main { padding-inline: 1.125rem; }
}
