:root {
  color-scheme: light dark;
  --canvas: #f5f8fa;
  --surface: #ffffff;
  --ink: #173350;
  --muted: #495d70;
  --sky: #dceef7;
  --line: #c5d6e2;
  --link: #174f92;
  --accent: #efb57f;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 100%;
  line-height: 1.7;
  color: var(--ink);
  background: var(--canvas);
  -webkit-text-size-adjust: 100%;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: var(--link);
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
}
a:hover {
  text-decoration-thickness: 0.15em;
}
a:focus-visible,
main:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 5px;
  border-radius: 3px;
}
.skip {
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  background: var(--surface);
  z-index: 2;
  transform: translateY(-200%);
}
.skip:focus {
  transform: none;
}
.site-header {
  background: var(--sky);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 72rem;
  margin: auto;
  padding: 1.25rem 2rem;
  display: flex;
  gap: 1rem 3rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.wordmark {
  color: var(--ink);
  font-size: 1.8rem;
  font-weight: 850;
  letter-spacing: -0.07em;
  text-decoration: none;
}
.wordmark span {
  color: var(--ink);
  background: var(--accent);
  border-radius: 50%;
  padding-inline: 0.06em;
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}
nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 0.45rem;
}
nav [aria-current="page"] {
  color: var(--ink);
  font-weight: 750;
  text-decoration-thickness: 0.15em;
}
main {
  max-width: 64rem;
  padding: clamp(1.25rem, 4vw, 3rem) clamp(1rem, 4vw, 2rem) 4rem;
  margin: auto;
}
.page-heading {
  max-width: 46rem;
  padding-block: 1rem 2rem;
}
.eyebrow,
.card-label {
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}
h1,
h2,
h3 {
  line-height: 1.2;
  text-wrap: balance;
  overflow-wrap: break-word;
}
h1 {
  font-size: clamp(2.3rem, 6vw, 4.2rem);
  letter-spacing: -0.045em;
  margin: 0.55rem 0 1.2rem;
}
h2 {
  font-size: 1.4rem;
  letter-spacing: -0.025em;
  margin-top: 0;
}
p {
  margin-block: 0.8rem;
}
.intro {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 40rem;
}
.edition,
.fine {
  font-size: 0.9rem;
  color: var(--muted);
}
.summary,
.contents,
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  padding: clamp(1.25rem, 3vw, 2rem);
}
.summary {
  max-width: 48rem;
  border-top: 4px solid var(--accent);
}
.summary p:last-child,
.summary ul:last-child {
  margin-bottom: 0;
}
ul {
  padding-left: 1.3rem;
}
li + li {
  margin-top: 0.7rem;
}
.contents {
  max-width: 48rem;
  margin-block: 1.5rem 2.5rem;
  gap: 0.15rem 1.5rem;
}
.contents h2 {
  flex-basis: 100%;
  font-size: 1rem;
  margin-bottom: 0.2rem;
}
.prose {
  max-width: 45rem;
}
.prose section {
  padding-block: 1rem 1.5rem;
  scroll-margin-top: 1.5rem;
}
.prose section + section {
  border-top: 1px solid var(--line);
}
.prose p,
.prose li {
  overflow-wrap: anywhere;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 1rem;
  margin-block: 2rem;
}
.card {
  display: flex;
  flex-direction: column;
  color: var(--ink);
  text-decoration: none;
}
.card h2 {
  margin-top: 1rem;
}
.card p {
  color: var(--muted);
}
.card-action {
  margin-top: auto;
  padding-top: 1rem;
  color: var(--link);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
footer {
  border-top: 1px solid var(--line);
  padding: 2rem max(1rem, calc((100vw - 60rem) / 2));
  background: var(--surface);
}
footer p {
  margin-block: 0.5rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #102235;
    --surface: #172e43;
    --ink: #edf5fb;
    --muted: #bdccdb;
    --sky: #1c3a52;
    --line: #526b80;
    --link: #aad6ff;
    --accent: #eab17a;
  }
  .wordmark span {
    color: #173350;
  }
}
@media (prefers-contrast: more) {
  :root {
    --muted: var(--ink);
    --line: var(--ink);
  }
  a {
    text-decoration-thickness: 0.12em;
  }
}
@media (max-width: 30rem) {
  .header-inner {
    padding: 1rem;
    gap: 0.25rem;
  }
  .header-inner nav {
    width: 100%;
    gap: 0.2rem 1.15rem;
  }
}
@media print {
  :root {
    color-scheme: light;
    color: #000;
    background: #fff;
  }
  .site-header,
  .skip,
  .contents,
  footer {
    display: none;
  }
  main {
    max-width: none;
    padding: 0;
  }
  .summary {
    border: 1px solid #777;
  }
  .prose {
    max-width: none;
  }
  h2 {
    break-after: avoid;
  }
  a {
    color: #000;
  }
}
