:root {
  color-scheme: light dark;
  --paper: #faf7ed;
  --ink: #222a27;
  --quiet: #46534b;
  --rule: #9b9d90;
  --accent: #296054;
  font:
    100%/1.6 system-ui,
    sans-serif;
  background: var(--paper);
  color: var(--ink);
}

.red {
  --accent: #8e332e;
}
.plum {
  --accent: #653971;
}
.rose {
  --accent: #963861;
}
.blue {
  --accent: #2b5275;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #18201d;
    --ink: #faf4e8;
    --quiet: #c6c8bb;
    --rule: #777e71;
    --accent: #8acbbd;
  }
  .red {
    --accent: #f3a49c;
  }
  .plum {
    --accent: #d0a9ea;
  }
  .rose {
    --accent: #f2a7c7;
  }
  .blue {
    --accent: #a8c9f4;
  }
}

body {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 clamp(1.1rem, 5vw, 3rem) 2rem;
  overflow-wrap: break-word;
}

.collection,
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
  border-bottom: 1px solid var(--rule);
}

footer {
  border-top: 1px solid var(--rule);
  border-bottom: 0;
  color: var(--quiet);
}

main {
  margin-block: clamp(3rem, 11vw, 6.5rem) 4rem;
}

header {
  border-top: 0.35rem solid var(--accent);
  padding-top: 1rem;
}

.date {
  margin-block: 0 0.65rem;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
}

h1,
h2 {
  font-family: Georgia, serif;
  font-weight: 400;
  line-height: 1.08;
}

h1 {
  margin-block: 0 1rem;
  font-size: clamp(2.5rem, 8vw, 5rem);
}

h2 {
  font-size: 1.7rem;
}

p,
li {
  max-width: 64ch;
}

.summary {
  color: var(--quiet);
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  margin-block: 0 2rem;
}

.sources {
  border-top: 1px solid var(--rule);
  margin-top: 2.5rem;
}

.sources ul {
  padding-inline-start: 1.2em;
}

.sources li + li {
  margin-top: 0.45rem;
}

a {
  color: var(--accent);
  text-underline-offset: 0.2em;
}

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

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  inset-block-start: 1rem;
  padding: 0.45rem 0.8rem;
  background: var(--paper);
}

.skip-link:not(:focus) {
  clip-path: inset(50%);
}
