:root {
  color-scheme: light;
  --ink: #242424;
  --muted: #626262;
  --link: #254e72;
  --rule: #d9d9d9;
}

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

html { background: #fff; }

body {
  max-width: 44rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.125rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 5px;
}

::selection { background: #dae6ef; }

.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  padding: 0.25rem 0.5rem;
  background: #fff;
  transform: translateY(-200%);
}

.skip-link:focus { transform: none; }

header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-bottom: 3rem;
}

h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.25;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 1rem;
}

nav a { padding-block: 0.5rem; }

p { margin: 0 0 1.25rem; }

.opening {
  max-width: 28ch;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 1.875rem);
  letter-spacing: -0.025em;
  line-height: 1.35;
}

figure {
  margin: 2.5rem 0;
  padding: 1.75rem 0;
  border-block: 1px solid var(--rule);
}

.example-note {
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: 1rem;
}

blockquote { margin: 0; }

blockquote p { margin-bottom: 1rem; }

.changed {
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-color: #777;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

figcaption {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

details { margin-top: 0.75rem; }

summary {
  width: fit-content;
  padding-block: 0.25rem;
  color: var(--link);
  cursor: pointer;
  font-size: 1rem;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

details blockquote {
  margin-top: 1rem;
  padding-left: 1.25rem;
  border-left: 1px solid var(--rule);
}

footer {
  margin-top: 3rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

footer p { margin-bottom: 0.5rem; }

@media (max-width: 32rem) {
  body { padding: 1.75rem 1.25rem; }
  header { margin-bottom: 2.25rem; }
  h1 { font-size: 1.875rem; }
  figure { margin-block: 2rem; }
}

@media print {
  body { max-width: none; padding: 0; color: #000; }
  nav, .skip-link, details { display: none; }
  a { color: inherit; }
  figure { break-inside: avoid; }
}
