:root {
  color-scheme: light;
  --paper: #f7f4ee;
  --ink: #1c1915;
  --muted: #3f3a33;
  --line: #d9d1c4;
  --accent: #0b3d91;
  --accent-ink: #ffffff;
  --header: #142033;
  --header-ink: #f6f3ec;
  --focus: #0b3d91;
  --footer: #142033;
  --footer-ink: #f6f3ec;
}

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

html {
  scroll-padding-top: 1rem;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 2;
  transform: translateY(-200%);
  background: #ffffff;
  color: var(--ink);
  padding: 0.5rem 0.75rem;
  border: 2px solid var(--ink);
}

.skip:focus {
  transform: none;
}

.wrap {
  width: min(100% - 2.5rem, 68rem);
  margin-inline: auto;
}

.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 0.85rem;
}

.site-header {
  background: var(--header);
  color: var(--header-ink);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--header-ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  min-height: 2.75rem;
}

.brand:hover,
.brand:focus-visible {
  text-decoration: underline;
}

.brand img {
  display: block;
  width: 1.75rem;
  height: 1.75rem;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a {
  display: inline-block;
  color: inherit;
  padding: 0.45rem 0.7rem;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

nav a[aria-current="page"] {
  font-weight: 700;
  text-decoration-thickness: 2px;
}

.site-header nav a {
  color: var(--header-ink);
}

main {
  flex: 1 0 auto;
  padding-block: 1.5rem 2.5rem;
}

.prose > :is(p, ul, h1, h2, h3) {
  max-width: 40rem;
}

h1,
h2,
h3 {
  line-height: 1.25;
  font-weight: 700;
}

h1 {
  font-size: clamp(1.8rem, 1.2rem + 2vw, 2.5rem);
  margin: 0 0 0.75rem;
}

h2 {
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.7rem);
  margin: 2rem 0 0.6rem;
}

h3 {
  font-size: 1.15rem;
  margin: 1.4rem 0 0.4rem;
}

p,
ul {
  margin: 0.75rem 0;
}

.lede {
  font-size: 1.2rem;
}

ul {
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: 0.35rem;
}

nav li + li {
  margin-top: 0;
}

a {
  color: var(--accent);
  overflow-wrap: anywhere;
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

code {
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-size: 0.92em;
  overflow-wrap: anywhere;
}

.store-link {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.75rem 1.05rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--accent);
  border-radius: 0.35rem;
}

.store-link:hover,
.store-link:focus-visible {
  background: #072c68;
  border-color: #072c68;
  color: var(--accent-ink);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.site-header :focus-visible,
.site-footer :focus-visible {
  outline-color: #ffe08a;
}

.table-wrap {
  max-width: 68rem;
  margin: 1rem 0 1.4rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fffdf8;
}

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

th {
  background: #efe8db;
  font-weight: 700;
}

.table-kv th {
  width: 32%;
}

.site-footer {
  background: var(--footer);
  color: var(--footer-ink);
  padding-block: 1.25rem 1.75rem;
}

.site-footer a {
  color: #d7e4ff;
}

.site-footer p {
  max-width: 40rem;
  margin: 0.8rem 0 0;
}

@media (max-width: 56rem) {
  .table-grid,
  .table-grid thead,
  .table-grid tbody,
  .table-grid tr,
  .table-grid td {
    display: block;
  }

  .table-grid thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .table-grid tr {
    margin: 0 0 0.85rem;
    border: 1px solid var(--line);
  }

  .table-grid td {
    border-width: 0 0 1px;
  }

  .table-grid td:last-child {
    border-bottom: 0;
  }

  .table-grid td::before {
    content: attr(data-label);
    display: block;
    font-weight: 700;
    margin-bottom: 0.15rem;
  }
}

@media (max-width: 36rem) {
  .table-kv,
  .table-kv tbody,
  .table-kv tr,
  .table-kv th,
  .table-kv td {
    display: block;
    width: auto;
  }

  .table-kv tr {
    margin: 0 0 0.85rem;
    border: 1px solid var(--line);
  }

  .table-kv th,
  .table-kv td {
    border-width: 0 0 1px;
  }

  .table-kv td {
    border-bottom: 0;
    padding-top: 0.15rem;
  }
}

@media (forced-colors: active) {
  .store-link,
  .site-header,
  .site-footer {
    border: 1px solid CanvasText;
  }
}
