:root {
  color-scheme: light;
  --paper: #fffdf8;
  --ink: #28241f;
  --muted: #645d53;
  --line: #ded5c7;
  --accent: #5d6f55;
  --panel: #f6f1e8;
  --focus: #174ea6;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.62;
}

body {
  margin: 0;
}

.skip-link {
  background: var(--ink);
  color: var(--paper);
  left: 1rem;
  padding: 0.55rem 0.8rem;
  position: fixed;
  top: 1rem;
  transform: translateY(-200%);
  z-index: 10;
}

.skip-link:focus {
  transform: translateY(0);
}

a {
  color: #344f75;
  text-underline-offset: 0.16em;
}

a:focus-visible {
  border-radius: 0.15rem;
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

header,
main,
footer {
  margin-inline: auto;
  max-width: 54rem;
  padding-inline: clamp(1.1rem, 4vw, 2.6rem);
}

header {
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.5rem;
  justify-content: space-between;
  padding-block: 1.15rem;
}

.brand {
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 750;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

main {
  padding-block: clamp(2rem, 7vw, 4rem);
}

footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
  padding-block: 1.4rem 2.2rem;
}

h1,
h2,
h3 {
  line-height: 1.2;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 7vw, 3.5rem);
  letter-spacing: -0.035em;
  margin: 0 0 1rem;
}

h2 {
  border-top: 1px solid var(--line);
  font-size: 1.45rem;
  margin: 2.6rem 0 0.8rem;
  padding-top: 1.35rem;
}

h3 {
  font-size: 1.1rem;
  margin: 1.6rem 0 0.45rem;
}

p,
ul,
ol,
table {
  margin-block: 0.65rem 1.1rem;
}

.lede {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 44rem;
}

.meta,
.note {
  color: var(--muted);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  margin-block: 1.5rem;
  padding: 1rem 1.2rem;
}

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  margin-block: 2rem;
}

.card {
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  padding: 1.1rem;
}

.card h2 {
  border: 0;
  font-size: 1.2rem;
  margin: 0 0 0.45rem;
  padding: 0;
}

.table-wrap {
  overflow-x: auto;
}

.table-wrap:focus-visible {
  border-radius: 0.2rem;
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

table {
  border-collapse: collapse;
  font-size: 0.9rem;
  width: 100%;
}

th,
td {
  border: 1px solid var(--line);
  padding: 0.65rem;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--panel);
}

caption {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
  padding-block: 0 0.5rem;
  text-align: left;
}

code {
  overflow-wrap: anywhere;
}

@media (max-width: 40rem) {
  html {
    font-size: 16px;
  }

  header {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media print {
  html {
    font-size: 10pt;
  }

  header,
  main,
  footer {
    max-width: none;
    padding-inline: 0;
  }

  nav,
  footer {
    display: none;
  }

  main {
    padding-block: 1rem;
  }

  .panel,
  table,
  tr,
  td,
  th {
    break-inside: avoid;
  }

  .table-wrap {
    overflow: visible;
  }

  table {
    font-size: 7.5pt;
  }

  a {
    color: inherit;
  }
}
