@font-face {
  font-family: "Geist";
  src: url("/assets/Geist-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #06141f;
  --text: #fff;
  --muted: rgb(255 255 255 / 72%);
  --rule: rgb(255 255 255 / 16%);
  --link: #9fd3ff;
  --focus: #ffd166;
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #fbfaf7;
    --text: #0b1a26;
    --muted: #3d4f5c;
    --rule: #d5dbe0;
    --link: #0b5c99;
    --focus: #b35c00;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.site-header,
main,
.site-footer {
  max-width: calc(68ch + 2rem);
  margin: 0 auto;
  padding: 0 1rem;
}

.site-header {
  padding-top: 1.5rem;
}

.site-header img {
  display: block;
  width: auto;
  height: 2rem;
}

@media (prefers-color-scheme: light) {
  .site-header img {
    filter: invert(1) hue-rotate(180deg);
  }
}

main {
  padding-top: 2.5rem;
  padding-bottom: 3rem;
}

h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 6vw, 2.75rem);
  line-height: 1.15;
}

h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.375rem;
  line-height: 1.3;
  scroll-margin-block-start: 1.5rem;
}

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

p,
li {
  text-wrap: pretty;
  hyphens: auto;
}

h3 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1.125rem;
}

p,
ul,
table {
  margin: 0 0 1rem;
}

ul {
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.5rem;
}

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

.meta p {
  margin-bottom: 0.25rem;
}

.details {
  margin: 1.5rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--rule);
}

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

th,
td {
  padding: 0.5rem 0.5rem 0.5rem 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

a {
  color: var(--link);
  text-underline-offset: 0.15em;
  overflow-wrap: anywhere;
}

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

.site-footer {
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9375rem;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 0;
}
