@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/plex-mono-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans Condensed";
  src: url("/assets/fonts/plex-condensed-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans Condensed";
  src: url("/assets/fonts/plex-condensed-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #DCE6EB;
  --panel: #F1F6F8;
  --steel: #2D4452;
  --steel-soft: #4B6372;
  --ice: #8FB8CC;
  --amber: #F2B400;
  --rule: #A9BFCB;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --cond: "IBM Plex Sans Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --gutter: clamp(1rem, 4vw, 2rem);
  --frame: 72rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 7rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--steel);
  font: 400 1.1875rem/1.6 var(--cond);
}

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

img {
  height: auto;
}

a {
  color: var(--steel);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

a:hover {
  background: var(--amber);
}

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 40;
  padding: 0.7rem 1rem;
  background: var(--amber);
  color: var(--steel);
  font: 600 0.9375rem var(--mono);
}

.skip:focus {
  top: 0.5rem;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "brand btn" "readout readout";
  align-items: center;
  column-gap: 1rem;
  padding-inline: var(--gutter);
  background: var(--steel);
  color: var(--panel);
  border-bottom: 2px solid var(--amber);
}

.bar :focus-visible,
.index :focus-visible {
  outline-color: var(--amber);
}

.brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  justify-self: start;
  color: inherit;
  font: 600 1rem var(--mono);
  text-decoration: none;
}

.brand:hover {
  background: none;
}

.mark {
  flex: none;
  width: 28px;
  height: 28px;
}

.mark circle {
  fill: var(--amber);
}

.readout {
  grid-area: readout;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  padding: 0.35rem 0 0.5rem;
  border-top: 1px solid color-mix(in srgb, var(--ice) 35%, transparent);
  font: 400 0.8125rem/1.4 var(--mono);
  color: var(--ice);
}

.readout strong {
  font-weight: 600;
  color: var(--amber);
}

.lamp {
  flex: none;
  width: 8px;
  height: 8px;
  background: var(--amber);
  animation: lamp 2.4s ease-in-out infinite;
}

@keyframes lamp {
  50% {
    opacity: 0.3;
  }
}

.index-btn,
.index-close {
  grid-area: btn;
  min-width: 5rem;
  min-height: 44px;
  padding: 0.4rem 1rem;
  background: transparent;
  color: var(--panel);
  border: 1px solid var(--ice);
  font: 600 0.875rem var(--mono);
  cursor: pointer;
}

.index-btn:hover,
.index-close:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--steel);
}

@media (min-width: 48rem) {
  .bar {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "brand readout btn";
    column-gap: 1.5rem;
  }

  .readout {
    align-self: stretch;
    padding: 0 0 0 1.5rem;
    border-top: 0;
    border-left: 1px solid color-mix(in srgb, var(--ice) 35%, transparent);
    font-size: 0.875rem;
  }
}

.deck {
  max-width: var(--frame);
  margin-inline: auto;
  padding: 0 var(--gutter) 4rem;
}

.lead {
  padding-block: clamp(2rem, 6vw, 4.5rem) 1.5rem;
}

.lead h1 {
  max-width: 18ch;
  margin: 0 0 1rem;
  font: 600 clamp(2.25rem, 1.2rem + 4.6vw, 4.25rem) / 1.02 var(--cond);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.strap {
  max-width: 40rem;
  margin: 0 0 2rem;
  font-size: clamp(1.1875rem, 1.05rem + 0.6vw, 1.45rem);
  line-height: 1.45;
}

.log {
  margin: 0;
  border-top: 1px solid var(--steel);
}

.log > div {
  display: grid;
  gap: 0.1rem 1.5rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--rule);
}

.log dt {
  font: 600 0.8125rem/1.5 var(--mono);
  color: var(--steel-soft);
}

.log dd {
  margin: 0;
  font: 400 0.9375rem/1.55 var(--mono);
}

@media (min-width: 40rem) {
  .log > div {
    grid-template-columns: 9.5rem 1fr;
    align-items: baseline;
  }
}

.live > div {
  animation: print 0.5s ease-out both;
}

.live > div:nth-child(2) { animation-delay: 80ms; }
.live > div:nth-child(3) { animation-delay: 160ms; }
.live > div:nth-child(4) { animation-delay: 240ms; }
.live > div:nth-child(5) { animation-delay: 320ms; }
.live > div:nth-child(6) { animation-delay: 400ms; }
.live > div:nth-child(7) { animation-delay: 480ms; }
.live > div:nth-child(8) { animation-delay: 560ms; }

@keyframes print {
  from {
    opacity: 0;
  }
}

.gauge {
  width: 100%;
  height: 28px;
  margin-top: 1.5rem;
  color: var(--steel);
}

.needle {
  fill: var(--amber);
  stroke: var(--steel);
  stroke-width: 1;
}

.feed {
  margin: 2rem 0;
  background: var(--panel);
  border: 1px solid var(--steel);
}

.feed-bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0.75rem;
  background: var(--steel);
  color: var(--panel);
  font: 600 0.75rem/1.4 var(--mono);
}

.feed-view {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--steel);
}

.feed-view img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feed-view::before,
.feed-view::after {
  content: "";
  position: absolute;
  z-index: 1;
  width: 22px;
  height: 22px;
  border: 0 solid var(--amber);
  pointer-events: none;
}

.feed-view::before {
  top: 10px;
  left: 10px;
  border-top-width: 3px;
  border-left-width: 3px;
}

.feed-view::after {
  right: 10px;
  bottom: 10px;
  border-right-width: 3px;
  border-bottom-width: 3px;
}

.feed figcaption {
  padding: 0.7rem 0.75rem;
  border-top: 1px solid var(--rule);
  font-size: 1rem;
  line-height: 1.45;
}

.crop {
  margin: 0;
}

.crop .feed-view {
  aspect-ratio: 4 / 3;
}

.crop .feed-view img {
  position: absolute;
  height: auto;
  max-width: none;
}

.at-creature img {
  width: 388%;
  left: -27.3%;
  top: -159.7%;
}

.at-shotgun img {
  width: 376%;
  left: -141%;
  top: -129.3%;
}

.at-handgun img {
  width: 298%;
  left: -179.3%;
  top: -80.1%;
}

.pair {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-start;
  margin-top: 1.5rem;
}

.pair > * {
  flex: 1 1 15rem;
  max-width: 22rem;
}

.entry {
  display: grid;
  gap: 0.9rem;
  padding-block: 2rem;
  border-top: 1px solid var(--steel);
}

.entry-gap .body {
  padding-left: 1rem;
  border-left: 6px solid var(--amber);
}

@media (min-width: 56rem) {
  .entry {
    grid-template-columns: 12rem minmax(0, 1fr);
    column-gap: 3rem;
    padding-block: 2.5rem;
  }

  .entry > .tag {
    position: sticky;
    top: 7rem;
  }
}

.body {
  min-width: 0;
  max-width: 46rem;
}

.body h2 {
  margin: 0 0 0.75rem;
  font: 600 clamp(1.5rem, 1.2rem + 1.2vw, 2rem) / 1.15 var(--cond);
}

.body p {
  max-width: 38rem;
  margin: 0 0 1rem;
}

.tag {
  justify-self: start;
  align-self: start;
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--steel);
  font: 600 0.8125rem/1.3 var(--mono);
}

.tag-listing {
  background: var(--ice);
}

.tag-frames {
  background: var(--steel);
  color: var(--panel);
}

.tag-gap {
  background: var(--amber);
}

.tag-general {
  border-style: dashed;
}

.tag-site {
  background: var(--panel);
}

.marks {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.marks li {
  position: relative;
  padding: 0.2rem 0 0.2rem 1.25rem;
}

.marks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--steel);
}

.sheet {
  margin: 1rem 0 1.5rem;
  background: var(--panel);
  border: 1px solid var(--steel);
}

.sheet table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  line-height: 1.45;
}

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

.sheet tbody tr:last-child > * {
  border-bottom: 0;
}

.sheet thead th {
  background: var(--steel);
  color: var(--panel);
  font: 600 0.8125rem var(--mono);
}

.sheet tbody th {
  width: 7.5rem;
  font: 600 0.875rem/1.45 var(--mono);
}

@media (min-width: 40rem) {
  .sheet tbody th {
    width: 10rem;
  }
}

.ledger {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--steel);
}

.ledger li {
  border-bottom: 1px solid var(--rule);
}

.ledger a {
  display: grid;
  gap: 0.1rem 1.5rem;
  min-height: 44px;
  padding: 0.75rem 0.75rem;
  color: inherit;
  text-decoration: none;
}

.ledger a:hover {
  background: var(--panel);
  box-shadow: inset 4px 0 0 var(--amber);
}

.ledger strong {
  font: 600 1.2rem/1.25 var(--cond);
}

.ledger span {
  font: 400 0.8125rem/1.5 var(--mono);
  color: var(--steel-soft);
}

@media (min-width: 40rem) {
  .ledger a {
    grid-template-columns: 12rem 1fr;
    align-items: baseline;
  }
}

.cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.6rem 1.1rem;
  background: var(--steel);
  color: var(--panel);
  border-left: 6px solid var(--amber);
  font: 600 0.9375rem var(--mono);
  text-decoration: none;
}

.cta:hover {
  background: var(--steel-soft);
}

.plate {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 1rem;
  align-items: start;
  margin: 1.5rem 0;
  padding: 1rem;
  background: var(--panel);
  border: 1px solid var(--steel);
}

.plate img {
  width: 6rem;
  height: 6rem;
  border: 1px solid var(--steel);
}

.plate figcaption {
  font-size: 1rem;
  line-height: 1.45;
}

.plate p {
  margin: 0 0 0.75rem;
}

.pair .plate {
  margin: 0;
  grid-template-columns: 6rem 1fr;
}

.qa details {
  background: var(--panel);
  border: 1px solid var(--steel);
  border-bottom-width: 0;
}

.qa details:last-child {
  border-bottom-width: 1px;
}

.qa summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  min-height: 44px;
  padding: 0.6rem 1rem;
  font: 600 1.1rem/1.3 var(--cond);
  list-style: none;
  cursor: pointer;
}

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

.qa summary::after {
  content: "+";
  font: 600 1.1rem var(--mono);
}

.qa details[open] summary::after {
  content: "\2212";
}

.qa details p {
  margin: 0;
  padding: 0 1rem 1rem;
}

.foot {
  padding: 2.5rem var(--gutter) 3rem;
  background: var(--steel);
  color: var(--panel);
}

.foot-in {
  display: grid;
  gap: 1.5rem;
  max-width: var(--frame);
  margin-inline: auto;
}

.foot :focus-visible {
  outline-color: var(--amber);
}

.foot-name {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.75rem;
  font: 600 1rem var(--mono);
}

.foot-note {
  max-width: 34rem;
  margin: 0;
  font: 400 0.8125rem/1.7 var(--mono);
  color: var(--ice);
}

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

.foot a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  font: 600 0.875rem var(--mono);
}

.foot a:hover {
  color: var(--amber);
}

.foot-mail {
  margin: 0.75rem 0 0;
  font: 400 0.8125rem/1.7 var(--mono);
  color: var(--ice);
}

.foot-mail a {
  min-height: 44px;
  color: var(--panel);
  font-size: inherit;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

@media (min-width: 48rem) {
  .foot-in {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .foot-links {
    flex-direction: column;
    gap: 0;
  }
}

.index {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--steel);
  color: var(--panel);
}

.index[open] {
  display: flex;
  flex-direction: column;
  opacity: 1;
  transition: opacity 0.2s ease-out;
}

@starting-style {
  .index[open] {
    opacity: 0;
  }
}

.index:modal {
  overscroll-behavior: contain;
}

.index::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
  background: var(--steel);
}

.index-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.25rem var(--gutter);
  border-bottom: 2px solid var(--amber);
}

.index-title {
  margin: 0;
  font: 600 1rem var(--mono);
}

.index nav {
  flex: 1;
  overflow: auto;
  padding: 1rem var(--gutter) 3rem;
}

.index-list {
  max-width: var(--frame);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.index-list a {
  display: grid;
  gap: 0.2rem 2rem;
  padding: 0.9rem 0.25rem 0.9rem 1rem;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--ice) 35%, transparent);
}

.index-list a:hover,
.index-list a[aria-current="page"] {
  background: transparent;
  box-shadow: inset 5px 0 0 var(--amber);
}

.index-list a:hover strong {
  color: var(--amber);
}

.index-list strong {
  font: 600 clamp(1.5rem, 1rem + 2.4vw, 2.5rem) / 1.1 var(--cond);
}

.index-list span {
  font: 400 0.875rem/1.5 var(--mono);
  color: var(--ice);
}

@media (min-width: 40rem) {
  .index-list a {
    grid-template-columns: minmax(14rem, 24rem) 1fr;
    align-items: baseline;
  }
}

.lost {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 1rem;
  min-height: calc(100vh - 6rem);
  max-width: var(--frame);
  margin-inline: auto;
  padding: 3rem var(--gutter);
  border-left: 6px solid var(--amber);
}

.lost h1 {
  margin: 0;
  font: 600 clamp(2.5rem, 1.5rem + 5vw, 5rem) / 1 var(--cond);
}

.lost p {
  max-width: 30rem;
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .lamp,
  .live > div {
    animation: none;
  }

  .index[open] {
    transition: none;
  }
}

.log + p {
  margin-top: 1rem;
}
