@font-face {
  font-family: "Shalr Sans SC";
  src: url("fonts/regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Shalr Sans SC";
  src: url("fonts/bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
:root {
  --small: clamp(.75rem, 1.1vw, .9375rem);
  --body: calc(var(--small) * 1.6);
  --heading: calc(var(--body) * 1.6);
  --display: calc(var(--heading) * 1.6);
  --paper: #fafafa;
  --ink: #203026;
  --muted: #66716a;
  --line: #edf0ed;
  --green: #31543e;
  --light-green: #89c598;
  --gutter: clamp(1.25rem, 4.5vw, 5rem);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 0; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 400 var(--body)/1.65 "Shalr Sans SC", "Source Han Sans SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, figure, ol { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 2px solid #598e43; outline-offset: 4px; }
.hero :focus-visible { outline-color: var(--light-green); }
img, video { display: block; max-width: 100%; }
.skip { position: absolute; top: 0; left: var(--gutter); padding: .5rem 1rem; background: var(--paper); z-index: 3; transform: translateY(-150%); }
.skip:focus { transform: none; }
.cover-head, .filter-strip {
  display: flex;
  align-items: center;
}
.hero, .sheet { height: 100dvh; }
.hero {
  --cover-inset: clamp(1.25rem, 5vw, 5.5rem);
  --cover-edge: clamp(.75rem, 2vw, 2rem);
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  isolation: isolate;
  background: #17251e;
  color: #f3f4e9;
}
.hero > * { grid-area: 1 / 1; }
.cover-head {
  align-self: start;
  justify-content: space-between;
  margin: var(--cover-edge) var(--cover-inset) 0;
}
.brand img { width: clamp(7.8rem, 14vw, 11.5rem); height: auto; filter: brightness(0) invert(1); }
.status-label {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: #e6eddf;
  font-size: var(--small);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .025em;
}
.status-label i { width: .76em; height: .76em; border-radius: 50%; background: var(--light-green); }
.status-copy { place-self: center; padding-inline: 1rem; text-align: center; transform: scale(.75); }
.scramble-source { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.scramble-glyph { display: inline-block; position: relative; }
.scramble-glyph::before { content: attr(data-char); }
.scramble-glyph[data-scramble]::before { visibility: hidden; }
.scramble-glyph[data-scramble]::after { content: attr(data-scramble); position: absolute; inset: 0; text-align: center; }
.cover-kicker, .status-note { font-size: var(--small); }
.cover-kicker { text-transform: uppercase; letter-spacing: .055em; color: #e4e8e5; }
h1 { margin-block: .2em .32em; font-size: var(--display); line-height: 1.2; letter-spacing: -.018em; color: #fff; }
.status-note { color: #e1e6e2; }
.archive-link {
  place-self: end;
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  min-height: 2.75rem;
  margin: 0 var(--cover-inset) var(--cover-edge) 0;
  font-size: var(--small);
}
.archive-link span { font-weight: 400; }
.archive-link:is(:hover, :active, :focus-visible) { font-weight: 700; }
.archive-link, .sound { -webkit-tap-highlight-color: transparent; }
.film { position: relative; z-index: -1; }
.film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.film::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(165deg, #0d1210d4, #1119157a 55%, #2b392dcc),
    radial-gradient(ellipse at center, #0c100f9c 8%, #11191520 72%);
}
.sound { place-self: end start; margin: 0 0 var(--cover-edge) var(--cover-inset); border: 0; background: transparent; width: 2.75rem; height: 2.75rem; display: grid; place-items: center; }
.sound svg { width: 1rem; height: 1rem; }

.sheet {
  display: flex;
  flex-direction: column;
  width: 80%;
  margin-inline: auto;
  container-type: inline-size;
  background: var(--paper);
  --small: clamp(.8125rem, 1.1vw, .9375rem);
  --body: calc(var(--small) * 1.6);
  --heading: calc(var(--body) * 1.6);
}
.sheet + .sheet { border-top: 1px solid var(--line); }
.sheet-body { min-height: 0; overflow-y: auto; padding-block: clamp(1.5rem, 8dvh, 5rem); }
.incidents .sheet-body { padding-block-end: .75rem; }
.section-head h2 { font-size: var(--heading); line-height: 1.2; letter-spacing: -.035em; }
.section-head p { margin-top: .35em; color: var(--muted); font-size: var(--small); line-height: 1.6; }
.about h2 { color: #1d4a3b; }
h3 { font-size: var(--body); line-height: 1.4; letter-spacing: -.025em; }
.filter-strip { gap: 1cqw; margin-block: 1.6cqw 1cqw; flex-wrap: wrap; }
.filter-strip button { appearance: none; border: 0; background: none; opacity: 1; color: var(--ink); cursor: default; padding: .55em .9em; font-size: var(--small); line-height: 1.35; font-weight: 700; }
.filter-strip .selected { border-radius: 99px; background: #223129; color: white; }
.filter-strip .more-incidents { margin-left: auto; font-weight: 400; padding-right: 0; }
.filter-strip .more-incidents:enabled { cursor: pointer; }
.filter-strip .more-incidents:enabled:is(:hover, :focus-visible) { font-weight: 700; }
/* React Bits Accordion Gallery, adapted for the local homepage. */
.accordion-gallery {
  --gallery-height: clamp(19rem, 64dvh, 38rem);
  --gallery-gap: 10px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  display: flex;
  height: var(--gallery-height);
  padding: 3px min(.75cqw, .75rem) 6px;
  gap: var(--gallery-gap);
}
.gallery-panel {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: 16px;
  color: white;
  background: #202720;
  box-shadow: 0 10px 30px -18px #0009;
}
.gallery-panel.is-open { flex-grow: var(--open-grow); }
.gallery-panel > img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100%, calc((100cqw - var(--gap-count, 4) * var(--gallery-gap)) * .635));
  max-width: none;
  height: 100%;
  object-fit: cover;
  transform: translate(calc(-50% + var(--drift, 0%)), -50%);
  filter: grayscale(1) brightness(.67);
}
.gallery-panel.is-open > img { filter: none; }
.gallery-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 34%, rgb(9 17 12 / 14%) 53%, rgb(9 17 12 / 88%) 100%);
}
.gallery-toggle { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; padding: 0; border: 0; border-radius: inherit; background: transparent; }
.gallery-toggle:focus-visible { outline: 2px solid white; outline-offset: -4px; }
.gallery-caption {
  position: absolute;
  z-index: 1;
  inset: auto clamp(1rem, 2cqw, 1.75rem) clamp(1rem, 2cqw, 1.75rem);
  padding-inline-start: .85rem;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-14px);
}
.gallery-caption::before { content: ""; position: absolute; top: .2em; left: 0; width: 3px; height: 1.1em; border-radius: 2px; background: #fff; }
.is-open .gallery-caption { opacity: 1; visibility: visible; transform: none; }
.gallery-caption h3 { line-height: 1.3; text-shadow: 0 1px 6px #0006; }
.gallery-caption p, .gallery-meta { font-size: var(--small); }
.gallery-caption h3 + div > p { margin-block: .4em .65em; line-height: 1.55; text-shadow: 0 1px 4px #0009; }
.gallery-meta, .record-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .45em; }
.gallery-meta { justify-content: space-between; color: #f1f4ef; }
.record-meta span { padding: .05em .6em; border: 1px solid #ffffff5c; border-radius: 99px; background: #18221c80; white-space: nowrap; }
.record-stamp { font-variant-numeric: tabular-nums; }
.gallery-pages { display: flex; flex-wrap: wrap; justify-content: center; margin-top: .5rem; }
.gallery-pages button {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: transparent;
}
.gallery-pages button::before {
  content: "";
  width: .45rem;
  height: .45rem;
  border-radius: 99px;
  background: #859088;
}
.gallery-pages [aria-current="page"]::before { width: 1.4rem; background: var(--green); }
@media (prefers-reduced-motion: no-preference) {
  .gallery-pages button::before { transition: width .2s ease, background-color .2s ease; }
  .gallery-panel { transition: flex-grow .6s var(--ease-out); }
  .gallery-panel > img { transition: transform .6s var(--ease-out), filter .6s var(--ease-out); }
  .gallery-caption { transition: opacity .25s, transform .4s var(--ease-out); }
  .is-open .gallery-caption { transition-delay: .12s; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-panel > img { transform: translate(-50%, -50%); }
}
@media (max-width: 40rem) {
  .accordion-gallery { --gallery-height: clamp(24rem, 64dvh, 35rem); flex-direction: column; padding: 0; }
  .gallery-panel > img { width: 100%; height: max(100%, calc((var(--gallery-height) - var(--gap-count, 4) * var(--gallery-gap)) * .635)); transform: translate(-50%, -50%); }
}
.accordion-gallery:not(.is-ready) { display: grid; height: auto; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.accordion-gallery:not(.is-ready) .gallery-panel { min-height: 17rem; }
.accordion-gallery:not(.is-ready) .gallery-caption { opacity: 1; visibility: visible; transform: none; }

.about .sheet-body {
  flex: 1;
  display: grid;
  grid-template-rows: minmax(max-content, 1fr) auto minmax(0, 1fr);
}
.about .section-head { align-self: start; padding-bottom: 1.25rem; }
.about-columns {
  display: grid;
  grid-template-columns: min(25%, 20rem) fit-content(52%);
  justify-content: center;
  gap: min(15cqw, 12rem);
  align-items: center;
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  /* The lead and signature leave slightly more space above their visible glyphs. */
  margin-block-end: .2em;
}
.about-columns > img { width: 100%; height: auto; justify-self: center; }
.about-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 2vw, 2rem);
  color: #505552;
  line-height: 1.8;
}
.about-lead { font-size: clamp(1.3rem, 2.2vw, 2.125rem); font-weight: 700; line-height: 1.45; color: #252b28; }
.about-copy p + p { margin-top: .4em; }
.align-end { anchor-name: --paragraph-end; }
.about-copy p:has(.align-end) { text-wrap: balance; }
.about-closing { padding-bottom: calc(.85em * (1.8 + .4)); } /* Signature line height and paragraph gap. */
.about-closing > p:first-child { padding-top: 1em; }
.about-closing::before, .about-copy .signature {
  position: absolute;
  left: 0;
  right: 0;
  right: anchor(--paragraph-end right, 0px);
}
.about-closing::before { content: ""; height: 1px; background: #d2d7d3; }
.about-copy .signature { bottom: 0; margin: 0; font-size: .85em; font-weight: 700; text-align: right; color: #666e69; }
.about-closing strong { color: #343b37; }

@media (max-width: 43rem) {
  .hero { --cover-inset: var(--gutter); --cover-edge: .35rem; }
  .brand img { width: 6rem; }
  h1 { font-size: var(--heading); }
  .sheet-body { padding-block: clamp(1.25rem, 6dvh, 3rem); }
  .filter-strip { gap: .3rem; margin-block: 1.25rem .45rem; }
  .filter-strip button { padding: .5em .6em; }
  .about-columns { grid-template-columns: 1fr; gap: 1.25rem; margin-block-end: 0; }
  .about-columns > img { width: clamp(6rem, 18dvh, 10rem); }
}
@media (max-width: 23rem) {
  :root { --gutter: .85rem; }
  .about-columns > img { width: 6rem; }
  .about-lead { font-size: 1.125rem; }
}
@media (max-width: 23rem) and (max-height: 42rem) {
  .about .sheet-body { padding-block: 1rem; }
  .about .section-head { padding-bottom: .5rem; }
  .about-columns { gap: .75rem; }
  .about-columns > img { width: 5rem; }
}
