@font-face {
  font-family: "Source Sans 3";
  src: local("Source Sans 3");
  font-display: swap;
}

:root {
  --ink: #0d2744;
  --slate: #516273;
  --paper: #fcfbf8;
  --bone: #f4f1ea;
  --teal: #2e7180;
  --line: #cfd2d1;
  font-family: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  font-size: 1.05rem;
  line-height: 1.65;
}

a {
  color: #245d69;
  text-underline-offset: 0.2em;
}

:focus-visible {
  outline: 3px solid #b27a2e;
  outline-offset: 4px;
}

header {
  border-bottom: 1px solid var(--line);
}

.header-inner,
main,
footer {
  width: min(100% - 2rem, 60rem);
  margin-inline: auto;
}

.header-inner {
  display: flex;
  min-height: 5rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.back {
  font-size: 0.95rem;
}

main {
  padding-block: clamp(3.5rem, 8vw, 7rem);
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.02em;
}

h1 {
  max-width: 18ch;
  margin: 0 0 1.5rem;
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  line-height: 0.98;
}

h2 {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.05;
}

h3 {
  margin-top: 2rem;
}

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

.notice {
  margin-block: 2rem;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--teal);
  background: var(--bone);
}

pre {
  overflow-x: auto;
  padding: 1.25rem;
  background: #071a2f;
  color: #f5f7f8;
  font-size: 0.88rem;
  line-height: 1.5;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

table {
  width: 100%;
  border-collapse: collapse;
}

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

th {
  color: var(--teal);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

footer {
  padding-block: 2rem 4rem;
  border-top: 1px solid var(--line);
  color: var(--slate);
  font-size: 0.9rem;
}

@media (max-width: 38rem) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
  }

  table,
  tbody,
  tr,
  th,
  td {
    display: block;
  }

  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
  }

  td {
    padding-inline: 0;
  }
}
