@font-face {
  font-family: "IBM Plex Sans Variable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("./ibm-plex-sans-latin-wght-normal.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --paper: #0e0f0e;
  --ink: #eeefeb;
  --secondary: #b8bcb5;
  --link: #a1ba9f;
  --rule: rgb(228 232 225 / 0.19);
  --pressed: rgb(161 186 159 / 0.1);
  --reading-width: 43rem;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  font-family:
    "IBM Plex Sans Variable", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  background: var(--paper);
  color: var(--ink);
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  padding-inline: max(2rem, env(safe-area-inset-left)) max(2rem, env(safe-area-inset-right));
}
header,
main,
footer {
  max-width: var(--reading-width);
  margin-inline: auto;
}
header,
footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
  padding-block: 1.25rem;
}
header {
  justify-content: space-between;
  padding-top: max(3rem, env(safe-area-inset-top));
  animation: legal-fade 200ms var(--ease-out) both;
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}
main {
  padding-block: 3.5rem 2rem;
  color: var(--secondary);
  font-size: 1.0625rem;
  line-height: 1.7;
}
h1,
h2 {
  color: var(--ink);
  text-wrap: balance;
}
h1 {
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  animation: legal-fade 200ms var(--ease-out) both;
  animation-delay: 50ms;
}
h2 {
  font-size: 1.375rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin: 3rem 0 1rem;
  scroll-margin-top: 1.5rem;
}
p,
ul {
  margin: 0 0 1.25rem;
}
li + li {
  margin-top: 0.75rem;
}
ul {
  padding-inline-start: 1.5rem;
}
a {
  color: var(--link);
  text-underline-offset: 0.2em;
}
header nav a,
footer a {
  transition: color 140ms ease;
}
@keyframes legal-fade {
  from {
    opacity: 0;
  }
}
@media (hover: hover) and (pointer: fine) {
  a:hover {
    text-decoration-thickness: 2px;
  }
  header nav a:hover {
    color: var(--link);
    text-decoration: underline;
  }
  footer a:hover {
    color: var(--ink);
  }
}
a:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 5px;
  border-radius: 2px;
}
header a,
footer a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}
header a:active,
footer a:active {
  background: var(--pressed);
}
header nav {
  font-size: 0.9375rem;
}
header nav a {
  color: var(--secondary);
  text-decoration: none;
}
header nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--link);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.5em;
}
.brand {
  color: var(--ink);
  gap: 9px;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1;
  text-decoration: none;
}
.brand svg {
  width: 30px;
  height: 30px;
  flex: none;
  fill: var(--link);
}

.updated {
  color: var(--secondary);
  font-size: 0.9375rem;
  margin-bottom: 2rem;
}
code {
  overflow-wrap: anywhere;
  font-size: 0.875em;
}
footer {
  justify-content: center;
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
  font-size: 13px;
}
.skip-link {
  position: absolute;
  left: 1.25rem;
  top: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--paper);
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: none;
}
::selection {
  background: var(--link);
  color: var(--paper);
}
@media (max-width: 36rem) {
  body {
    padding-inline: max(1.5rem, env(safe-area-inset-left)) max(1.5rem, env(safe-area-inset-right));
  }
  main {
    padding-top: 2.5rem;
  }
  header {
    padding-top: max(1.75rem, env(safe-area-inset-top));
  }
}
@media (prefers-contrast: more) {
  :root {
    --secondary: var(--ink);
    --rule: var(--ink);
  }
}
@media (prefers-reduced-motion: reduce) {
  header,
  h1 {
    animation: none;
  }
}
@media print {
  :root {
    color-scheme: light;
    --paper: white;
    --ink: black;
    --secondary: black;
    --link: black;
    --rule: #666;
  }
  header,
  .skip-link,
  footer {
    display: none;
  }
  main {
    max-width: none;
    padding: 0;
  }
  h1 {
    animation: none;
  }
  h2 {
    break-after: avoid;
  }
}
