:root {
  color-scheme: light;
  --background: #ffffff;
  --foreground: #0a0a0a;
  --link: #1a1a1a;
  --link-underline: #000000;
  --selection-background: #000000;
  --selection-foreground: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  min-height: 100vh;
  background: var(--background);
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  color: var(--foreground);
  background: var(--background);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.15;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--selection-background);
  color: var(--selection-foreground);
}

.page {
  flex: 1;
  width: 100%;
  padding: 46px 48px 24px;
}

.site-footer {
  width: 100%;
  padding: 0 48px 46px;
}

.site-footer .footnotes {
  width: min(100%, 520px);
  margin: 0;
  padding-left: 1.25em;
  font-size: 0.9em;
}

.intro {
  width: min(100%, 520px);
}

h1 {
  margin: 0 0 16px;
  font-family: "Bitcount Grid Double", monospace;
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  line-height: 0.95;
  letter-spacing: -0.065em;
  font-weight: 400;
  font-variation-settings: "slnt" -8;
}

.site-flags {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 4px;
}

.site-flag-wrap {
  width: 72px;
  height: 120px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-flag-wrap img {
  width: 120px;
  height: 72px;
  object-fit: contain;
  transform: rotate(90deg);
}

p {
  margin: 0 0 18px;
  max-width: 51ch;
}

.lede {
  margin-bottom: 20px;
}

.fn-ref {
  font-size: 0.75em;
  line-height: 0;
  vertical-align: super;
}

.fn-ref a,
.footnote-back {
  text-decoration: none;
}

.fn-ref a::after,
.footnote-back::after {
  content: none;
  display: none;
}

.footnotes li {
  margin-bottom: 0.6em;
}

.footnotes li:last-child {
  margin-bottom: 0;
}

a {
  color: var(--link);
  text-decoration-color: var(--link-underline);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a::after {
  content: "";
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  margin-left: 0.22em;
  vertical-align: 0.04em;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5 8.5 3.5M8.5 3.5H5.5M8.5 3.5V6.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5 8.5 3.5M8.5 3.5H5.5M8.5 3.5V6.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

a:hover,
a:focus-visible {
  color: #000000;
  text-decoration-thickness: 2px;
}

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

@media (max-width: 640px) {
  .page {
    padding: 34px 28px 20px;
  }

  .site-footer {
    padding: 0 28px 34px;
  }

  body {
    font-size: 15px;
  }

  .site-flags {
    gap: 12px;
  }

  .site-flag-wrap {
    width: 58px;
    height: 96px;
  }

  .site-flag-wrap img {
    width: 96px;
    height: 58px;
  }
}
