:root {
  --bg: #F7F4ED;
  --ink: #1C1B17;
  --muted: #6E665D;
  --accent: #294B1B;
  --measure: 38rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14120F;
    --ink: #E8E2D5;
    --muted: #8A8175;
    --accent: #8FB07A;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-serif, Georgia, "Iowan Old Style", "Apple Garamond", Baskerville, "Times New Roman", serif;
  font-size: 1.125rem;
  line-height: 1.55;
  font-variant-numeric: oldstyle-nums;
}

main {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(3rem, 12vh, 8rem) 1.5rem 4rem;
}

h1 {
  font-size: clamp(3.5rem, 10vw, 6rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
}

h1.editorial {
  font-family: "Fraunces", ui-serif, Georgia, "Times New Roman", serif;
  font-weight: 300;
  font-variation-settings: "opsz" 144;
  position: relative;
  display: inline-block;
  padding-bottom: 0.15em;
}

h1.editorial::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.06em;
  height: 1px;
  background: var(--ink);
  opacity: 0.6;
}

h1.editorial .swash {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.bio {
  color: var(--muted);
  margin: 0 0 3rem;
}

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

nav a {
  display: inline-block;
  padding-block: 0.25rem;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: text-decoration-thickness 120ms ease;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

.note {
  color: var(--muted);
  margin: 0;
  max-width: 32rem;
}

.mark {
  display: inline-block;
  font-size: 1.5rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
  margin: 0 0 2rem;
}

.mark:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.missing {
  color: var(--muted);
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0ms !important;
  }
}
