@font-face {
  font-family: "Anton";
  src: url("../fonts/anton.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Libre Franklin";
  src: url("../fonts/libre-franklin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Courier Prime";
  src: url("../fonts/courier-prime.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #E4E4DA;
  --ink: #111111;
  --blood: #B3202A;
  --screen: #9A9A92;
  --bright: #FAFAF5;
  --head: "Anton", Impact, "Arial Narrow", sans-serif;
  --body: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --label: "Courier Prime", "Courier New", monospace;
  --edge: 4px;
  --gap: clamp(0.9rem, 2.4vw, 1.6rem);
  --ring: var(--blood);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--blood);
  text-decoration-thickness: 0.16em;
  text-underline-offset: 0.2em;
}

a:hover {
  background: var(--blood);
  color: var(--bright);
  text-decoration-color: transparent;
}

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

.sheet {
  width: min(100% - 2rem, 76rem);
  margin-inline: auto;
}

.skip {
  position: absolute;
  inset-inline-start: 1rem;
  inset-block-start: -4rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  background: var(--bright);
  border: var(--edge) solid var(--ink);
  font-weight: 700;
}

.skip:focus {
  inset-block-start: 1rem;
}

h1,
h2,
h3 {
  margin: 0 0 0.55em;
  font-family: var(--head);
  font-weight: 400;
  letter-spacing: 0.012em;
  line-height: 1;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.9rem, 1.4rem + 6.4vw, 5.2rem);
  line-height: 0.92;
}

h2 {
  font-size: clamp(2rem, 1.2rem + 3vw, 3.2rem);
}

h3 {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
}

p {
  margin: 0 0 1rem;
  max-width: 64ch;
}

.lead {
  font-size: clamp(1.15rem, 1.05rem + 0.6vw, 1.4rem);
  line-height: 1.5;
}

.masthead {
  position: relative;
  padding-top: 1rem;
}

.masthead::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 8rem;
  background: radial-gradient(var(--screen) 1.3px, transparent 1.8px) 0 0 / 8px 8px;
  mask-image: linear-gradient(to bottom, #000, transparent);
  pointer-events: none;
}

.masthead-row {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-bottom: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--head);
  font-size: 2.1rem;
  line-height: 1;
  letter-spacing: 0.02em;
  text-decoration: none;
}

a.brand:hover {
  background: transparent;
  color: var(--blood);
}

.logo {
  flex: none;
  stroke: var(--ink);
  stroke-linejoin: miter;
}

.lg-a {
  fill: var(--bright);
}

.lg-b {
  fill: var(--blood);
}

.lg-c {
  fill: none;
}

.tagline {
  margin: 0;
  text-wrap: balance;
  font-family: var(--label);
  font-size: 0.95rem;
}

.strip {
  --ring: var(--bright);
  background: var(--ink);
  color: var(--bright);
  border-block: var(--edge) solid var(--ink);
}

.strip ol {
  position: relative;
  display: flex;
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: thin;
}

.strip a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0 1.05rem;
  border-inline-end: 2px solid var(--screen);
  font-weight: 700;
  font-size: 0.98rem;
  white-space: nowrap;
  text-decoration: none;
}

.strip li:first-child a {
  border-inline-start: 2px solid var(--screen);
}

.strip a:hover {
  background: var(--paper);
  color: var(--ink);
}

.strip a[aria-current] {
  background: var(--blood);
  color: var(--bright);
}

.pn {
  padding: 0 0.4rem;
  background: var(--bright);
  color: var(--ink);
  font-family: var(--label);
  font-size: 0.9rem;
  line-height: 1.4;
}

.board {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--gap);
  align-items: start;
  margin-block: clamp(1.5rem, 4vw, 3rem);
}

.box {
  position: relative;
  padding: clamp(1.1rem, 3vw, 2.1rem);
  background: var(--bright);
  border: var(--edge) solid var(--ink);
}

.box > :last-child {
  margin-bottom: 0;
}

.halftone::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(var(--screen) 1.4px, transparent 1.9px) 0 0 / 8px 8px;
  mask-image: linear-gradient(to top left, #000, transparent 60%);
  pointer-events: none;
}

.halftone > * {
  position: relative;
}

.cell {
  margin: 0;
}

.shot {
  position: relative;
  overflow: hidden;
  aspect-ratio: var(--ratio, 16 / 10);
  background: var(--ink);
  border: var(--edge) solid var(--ink);
}

.shot img {
  position: absolute;
  inset: 0 0 auto 0;
  width: 100%;
  height: var(--grow, 130%);
  object-fit: cover;
  object-position: var(--focus, 50% 0);
}

.tall {
  --ratio: 4 / 3;
}

.wide {
  --ratio: 16 / 9;
}

.whole {
  --ratio: 16 / 9;
}

.tilt-l .shot {
  transform: rotate(-1.2deg);
}

.tilt-r .shot {
  transform: rotate(1deg);
}

.balloon {
  position: relative;
  z-index: 1;
  width: min(100% - 1.5rem, 25rem);
  margin: -1.1rem 0 0 0.75rem;
  padding: 0.7rem 1rem;
  background: var(--bright);
  border: 3px solid var(--ink);
  border-radius: 1.3rem;
  font-size: 0.95rem;
  line-height: 1.45;
}

.balloon::after {
  content: "";
  position: absolute;
  inset-block-start: -0.72rem;
  inset-inline-start: 2rem;
  width: 1rem;
  height: 1rem;
  background: var(--bright);
  border: solid var(--ink);
  border-width: 3px 0 0 3px;
  transform: rotate(45deg);
}

.bal-r .balloon {
  margin-inline: auto 0.75rem;
}

.bal-r .balloon::after {
  inset-inline: auto 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0 1.4rem;
  background: var(--blood);
  color: var(--bright);
  border: var(--edge) solid var(--ink);
  font-weight: 700;
  text-decoration: none;
  transform: rotate(-1deg);
  transition: transform 0.15s ease-out;
}

.btn:hover {
  background: var(--ink);
  color: var(--bright);
  transform: rotate(0deg);
}

.btn:active {
  transform: translateY(2px);
}

.stack {
  display: grid;
  gap: var(--gap);
}

.fact h2 {
  margin-bottom: 0.3em;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
}

.fact p {
  font-size: 0.98rem;
}

.go {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.go a {
  display: block;
  height: 100%;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  background: var(--bright);
  border: var(--edge) solid var(--ink);
  text-decoration: none;
}

.go a:hover {
  background: var(--ink);
  color: var(--bright);
}

.go h3 {
  margin-bottom: 0.25em;
}

.go p {
  margin: 0;
  font-size: 0.98rem;
}

.go .pn {
  float: inline-end;
  margin-inline-start: 0.5rem;
  background: var(--ink);
  color: var(--bright);
}

.unsaid {
  padding: 1rem 1.2rem 1rem 1.6rem;
  background: var(--bright);
  border: 3px solid var(--ink);
  border-inline-start: 0.7rem solid var(--blood);
}

.unsaid h2 {
  margin-bottom: 0.3em;
  font-family: var(--label);
  font-size: 1rem;
  letter-spacing: 0;
}

.unsaid p {
  margin: 0;
  font-size: 0.98rem;
}

.spec {
  clear: both;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.35rem 1rem;
  margin: 1rem 0 0;
}

.spec dt {
  font-family: var(--label);
}

.spec dd {
  margin: 0;
  font-weight: 700;
}

.icon {
  float: inline-start;
  margin: 0 1rem 0.5rem 0;
  border: var(--edge) solid var(--ink);
}

.scroll {
  overflow-x: auto;
}

.ledger {
  width: 100%;
  border-collapse: collapse;
  background: var(--bright);
  border: var(--edge) solid var(--ink);
  font-size: 0.98rem;
}

.ledger caption {
  padding: 0 0 0.5rem;
  font-family: var(--label);
  text-align: start;
}

.ledger th,
.ledger td {
  padding: 0.6rem 0.85rem;
  border-bottom: 2px solid var(--ink);
  text-align: start;
  vertical-align: top;
}

.ledger thead th {
  background: var(--ink);
  color: var(--bright);
  font-family: var(--label);
  font-weight: 400;
}

.ledger tbody th {
  font-weight: 700;
}

.gaps details {
  border-top: 3px solid var(--ink);
}

.gaps details:last-child {
  border-bottom: 3px solid var(--ink);
}

.gaps summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.gaps summary::-webkit-details-marker {
  display: none;
}

.gaps summary::after {
  content: "+";
  font-family: var(--label);
  font-size: 1.4rem;
  line-height: 1;
}

.gaps details[open] summary::after {
  content: "-";
}

.gaps details p {
  padding-bottom: 0.5rem;
}

.pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
  margin-block: clamp(2rem, 5vw, 4rem) 0;
}

.pager a {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-height: 5.5rem;
  padding: 1rem 1.1rem;
  border: var(--edge) solid var(--ink);
  text-decoration: none;
}

.pager .back {
  background: var(--bright);
}

.pager .back:hover {
  background: var(--paper);
  color: var(--ink);
}

.pager .next {
  --ring: var(--bright);
  grid-column: 2;
  align-items: flex-end;
  background: var(--ink);
  color: var(--bright);
  text-align: end;
}

.pager .next::after {
  content: "";
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 0;
  width: 2rem;
  height: 2rem;
  background: linear-gradient(45deg, var(--blood) 50%, transparent 50%);
}

.pager .next:hover {
  background: var(--blood);
}

.dir {
  font-family: var(--label);
  font-size: 0.92rem;
}

.name {
  font-family: var(--head);
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem);
  line-height: 1.05;
}

.foot {
  --ring: var(--bright);
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-block: 2rem 2.5rem;
  background: var(--ink);
  color: var(--bright);
  border-top: var(--edge) solid var(--blood);
}

.foot-row p {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}

.foot-row .foot-name {
  font-family: var(--head);
  font-size: 1.8rem;
  letter-spacing: 0.02em;
}

.foot ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.foot a {
  display: inline-block;
  padding-block: 0.7rem;
  text-decoration-color: currentColor;
}

.foot a:hover {
  background: var(--bright);
  color: var(--ink);
}

.lost {
  max-width: 34rem;
  margin: clamp(2rem, 8vw, 5rem) auto;
}

.lost .num {
  display: block;
  margin-bottom: 0.15em;
  color: var(--blood);
  font-family: var(--head);
  font-size: clamp(5rem, 3rem + 14vw, 10rem);
  line-height: 0.9;
}

@media (min-width: 48rem) {
  .board {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .span-4 {
    grid-column-end: span 4;
  }

  .span-5 {
    grid-column-end: span 5;
  }

  .span-6 {
    grid-column-end: span 6;
  }

  .span-7 {
    grid-column-end: span 7;
  }

  .span-8 {
    grid-column-end: span 8;
  }

  .span-12 {
    grid-column: 1 / -1;
  }

  .from-2 {
    grid-column-start: 2;
  }

  .from-4 {
    grid-column-start: 4;
  }

  .tall {
    --ratio: 4 / 5;
  }

  .wide {
    --ratio: 2 / 1;
  }

  .nudge {
    margin-block-start: 2.5rem;
  }

  .go {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .go li:nth-child(1),
  .go li:nth-child(2) {
    grid-column: span 3;
  }

  .go li:nth-child(n + 3) {
    grid-column: span 2;
  }

  .fact:nth-child(2) {
    margin-inline-start: 1.25rem;
  }
}

@media (min-width: 48rem) and (prefers-reduced-motion: no-preference) {
  .landing > :nth-child(-n + 4) {
    animation: land 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.15) both;
  }

  .landing > :nth-child(2) {
    animation-delay: 0.08s;
  }

  .landing > :nth-child(3) {
    animation-delay: 0.16s;
  }

  .landing > :nth-child(4) {
    animation-delay: 0.24s;
  }
}

@keyframes land {
  from {
    opacity: 0;
    transform: scale(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
}
