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

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

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

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

:root {
  --paper: #f3efe6;
  --paper-deep: #e5ded0;
  --paper-light: #faf8f2;
  --carbon: #171714;
  --carbon-soft: #3f3e38;
  --alert: #a93f2d;
  --alert-dark: #7f2c20;
  --recovery: #245c45;
  --verification: #145c9e;
  --administrative: #e6b84a;
  --signal: #b8d96a;
  --rule: #bcb4a5;
  --rule-dark: #68665e;
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;
  --shell: 92rem;
  --page-gutter: 2rem;
  --focus: 3px solid var(--verification);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 1.5rem;
}

body {
  margin: 0;
  color: var(--carbon);
  background-color: var(--paper);
  background-image:
    repeating-linear-gradient(0deg, transparent 0, transparent 7px, rgba(23, 23, 20, 0.018) 8px),
    repeating-linear-gradient(90deg, transparent 0, transparent 11px, rgba(169, 63, 45, 0.012) 12px);
  font-family: var(--font-display);
  font-size: 1.125rem;
  line-height: 1.55;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 100;
  border: 0.5rem solid var(--carbon);
  pointer-events: none;
  content: "";
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  border: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

::selection {
  color: var(--carbon);
  background: var(--administrative);
}

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

button,
input,
summary {
  font: inherit;
}

a {
  color: currentColor;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 0.16em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: var(--focus);
  outline-offset: 4px;
}

code {
  padding: 0.08em 0.28em;
  border: 1px solid currentColor;
  font-family: var(--font-mono);
  font-size: 0.82em;
  overflow-wrap: normal;
  white-space: nowrap;
}

h1,
h2,
h3,
p,
blockquote,
dl,
dd {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: 0;
}

.shell,
main > section > header,
.assessment-form,
#assessment > noscript,
.stage-list,
.protocol-list,
.panic-protocol,
.manifesto-copy,
.records-grid,
.site-footer {
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 200;
  padding: 0.75rem 1rem;
  color: var(--paper-light);
  background: var(--carbon);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  min-height: calc(100svh - 3rem);
  border-bottom: 1px solid var(--carbon);
  overflow: hidden;
}

.site-header::after {
  position: absolute;
  right: 7%;
  bottom: -4.5rem;
  width: 7rem;
  height: 15rem;
  border: 2px solid var(--alert);
  opacity: 0.14;
  transform: rotate(11deg);
  content: "";
}

.docket-nav {
  display: flex;
  min-height: 5rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid var(--carbon);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.wordmark {
  flex: none;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

.wordmark::before {
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  margin-right: 0.55rem;
  border: 2px solid var(--alert);
  vertical-align: -0.08rem;
  content: "";
}

.nav-list,
.footer-nav ul {
  display: flex;
  margin: 0;
  padding: 0;
  gap: 1.75rem;
  list-style: none;
}

.docket-bar {
  display: flex;
  min-height: 3rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--rule);
  color: var(--carbon-soft);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.docket-bar p {
  margin: 0;
}

.docket-bar strong {
  color: var(--alert);
}

.hero-layout {
  display: grid;
  min-height: 38rem;
  grid-template-columns: minmax(0, 3fr) minmax(17rem, 1fr);
  align-items: stretch;
  border-inline: 1px solid var(--rule);
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4.5rem 6vw 4.5rem 0;
  animation: file-open 700ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.eyebrow,
main > section > header > p:first-child,
main > section > header > p:nth-child(2),
.result-panel > p:first-child,
.stage-list > li > p:first-child,
.protocol-list > li > p:first-child {
  color: var(--alert);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 14ch;
  margin: 1rem 0 1.4rem;
  font-size: 6.6rem;
}

.elapsed {
  margin-bottom: 1.25rem;
  color: var(--alert);
  font-family: var(--font-mono);
  font-size: 1rem;
}

.hero-deck {
  max-width: 34rem;
  margin-bottom: 2.5rem;
  color: var(--carbon-soft);
  font-size: 1.35rem;
}

.hero-action {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.hero-action small {
  max-width: 18rem;
  color: var(--carbon-soft);
  font-family: var(--font-mono);
  font-size: 0.67rem;
}

.primary-action,
.result-panel button {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1rem;
  border: 1px solid var(--carbon);
  color: var(--paper-light);
  background: var(--carbon);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.primary-action {
  gap: 2.5rem;
}

.primary-action:hover,
.result-panel button:hover {
  color: var(--carbon);
  background: var(--administrative);
}

.result-panel button:disabled {
  color: var(--rule-dark);
  background: var(--paper-deep);
  cursor: not-allowed;
}

.case-summary {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem 2rem;
  border-left: 1px solid var(--rule);
  background: rgba(250, 248, 242, 0.45);
}

.department-seal {
  width: min(100%, 15rem);
  height: auto;
  margin: 0 auto 3rem;
  transform: rotate(-7deg);
}

.case-summary dl {
  margin-bottom: 1.5rem;
  border-top: 1px solid var(--carbon);
}

.case-summary dl > div {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rule);
}

.case-summary dt,
.case-summary > p {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
}

.case-summary dd {
  margin: 0.15rem 0 0;
  font-size: 1.05rem;
}

.case-summary > p {
  margin: 0;
  color: var(--carbon-soft);
  line-height: 1.7;
}

main > section {
  padding: 7rem 0;
  border-bottom: 1px solid var(--carbon);
}

main > section > header {
  display: grid;
  grid-template-columns: 1fr auto;
  margin-bottom: 4rem;
  column-gap: 2rem;
}

main > section > header > p:first-child,
main > section > header > p:nth-child(2) {
  margin-bottom: 2.25rem;
}

main > section > header > p:nth-child(2) {
  color: var(--carbon-soft);
  text-align: right;
}

main > section > header h2 {
  max-width: 14ch;
  margin-bottom: 1.5rem;
  grid-column: 1 / -1;
  font-size: 4.5rem;
}

main > section > header > p:last-child {
  max-width: 42rem;
  margin: 0;
  grid-column: 1 / -1;
  color: var(--carbon-soft);
  font-size: 1.25rem;
}

#assessment {
  background-color: var(--paper-deep);
  background-image: repeating-linear-gradient(90deg, transparent 0, transparent 3rem, rgba(23, 23, 20, 0.025) calc(3rem + 1px));
}

.assessment-form {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(19rem, 0.85fr);
  border: 1px solid var(--carbon);
  background: var(--paper);
}

.symptoms-list {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.symptoms-list legend {
  width: 100%;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--carbon);
  background: var(--carbon);
  color: var(--paper-light);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.symptoms-list > div {
  position: relative;
  display: grid;
  min-height: 5rem;
  grid-template-columns: 4rem minmax(0, 1fr);
  align-items: center;
  border-bottom: 1px solid var(--rule);
}

.symptoms-list > div:last-child {
  border-bottom: 0;
}

.symptoms-list > div:has(input:checked) {
  background: color-mix(in srgb, var(--administrative) 24%, var(--paper));
}

.symptoms-list input {
  display: grid;
  width: 1.75rem;
  height: 1.75rem;
  margin: 0 auto;
  appearance: none;
  border: 2px solid var(--carbon);
  border-radius: 0;
  background: var(--paper-light);
  place-content: center;
  cursor: pointer;
}

.symptoms-list input::before {
  width: 0.75rem;
  height: 0.75rem;
  background: var(--paper-light);
  transform: scale(0);
  content: "";
}

.symptoms-list input:checked {
  border-color: var(--alert);
  background: var(--alert);
}

.symptoms-list input:checked::before {
  transform: scale(1);
}

.symptoms-list label {
  display: block;
  min-height: 5rem;
  padding: 1.45rem 1.5rem 1rem 0;
  cursor: pointer;
}

.symptoms-list label > span {
  display: inline-block;
  width: 3.5rem;
  color: var(--alert);
  font-family: var(--font-mono);
  font-size: 0.67rem;
  font-weight: 600;
}

.result-panel {
  position: sticky;
  top: 0;
  align-self: start;
  min-height: 100%;
  padding: 2rem;
  border-left: 1px solid var(--carbon);
  background: var(--paper-light);
}

.result-panel h3 {
  max-width: 9ch;
  margin-bottom: 2.5rem;
  font-size: 2.5rem;
}

.result-panel > p:nth-of-type(2) {
  display: flex;
  padding: 1rem 0;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  border-block: 1px solid var(--carbon);
}

.result-panel > p:nth-of-type(2) strong {
  color: var(--alert);
  font-family: var(--font-mono);
  font-size: 2.4rem;
  line-height: 1;
}

#score-label,
.result-panel > label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
}

.result-panel > label {
  display: block;
  margin: 1.5rem 0 0.5rem;
}

.result-panel progress {
  width: 100%;
  height: 0.75rem;
  appearance: none;
  border: 1px solid var(--carbon);
  border-radius: 0;
  background: var(--paper-deep);
}

.result-panel progress::-webkit-progress-bar {
  background: var(--paper-deep);
}

.result-panel progress::-webkit-progress-value {
  background: var(--alert);
}

.result-panel progress::-moz-progress-bar {
  background: var(--alert);
}

#assessment-result {
  min-height: 7rem;
  margin: 2rem 0;
  font-size: 1.25rem;
}

.result-guidance {
  margin: 0 0 2rem;
  padding: 1.5rem 0;
  border-block: 1px solid var(--rule);
}

.result-guidance > p:first-child {
  margin-bottom: 1rem;
  color: var(--recovery);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
}

.result-guidance h4 {
  margin: 0 0 0.75rem;
  color: var(--recovery);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.05;
}

#guidance-action {
  margin-bottom: 1.25rem;
  color: var(--carbon-soft);
  font-size: 1rem;
}

#guidance-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

#guidance-steps li {
  position: relative;
  padding: 0.6rem 0 0.6rem 1.4rem;
  border-top: 1px solid var(--paper-deep);
  color: var(--carbon-soft);
  font-family: var(--font-mono);
  font-size: 0.67rem;
  line-height: 1.55;
}

#guidance-steps li::before {
  position: absolute;
  left: 0;
  color: var(--recovery);
  content: "→";
}

.result-panel button {
  width: 100%;
  border-radius: 0;
}

.report-trigger {
  margin-bottom: 0.75rem;
  gap: 0.65rem;
  color: var(--paper-light) !important;
  border-color: var(--recovery) !important;
  background: var(--recovery) !important;
}

.report-trigger:hover {
  color: var(--recovery) !important;
  background: var(--paper-light) !important;
}

.report-dialog {
  width: min(68rem, calc(100% - 2rem));
  max-width: none;
  max-height: calc(100% - 2rem);
  padding: 0;
  border: 1px solid var(--carbon);
  border-radius: 0;
  color: var(--carbon);
  background: var(--paper);
  box-shadow: 0.75rem 0.75rem 0 var(--alert);
}

.report-dialog[open] {
  animation: terminal-enter 180ms ease-out both;
}

.report-dialog::backdrop {
  background: rgba(23, 23, 20, 0.88);
}

body:has(.report-dialog[open]) {
  overflow: hidden;
}

.report-window {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 17rem;
}

.report-header {
  display: flex;
  min-height: 4.5rem;
  padding-left: 1.5rem;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--carbon);
  gap: 1rem;
}

.report-header p {
  margin: 0 0 0.2rem;
  color: var(--alert);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
}

.report-header h2 {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
  text-transform: uppercase;
}

.report-close {
  width: 4.5rem;
  min-height: 4.5rem;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--carbon);
  border-radius: 0;
  color: var(--carbon);
  background: transparent;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  cursor: pointer;
}

.report-close:hover {
  color: var(--paper-light);
  background: var(--alert);
}

.report-document {
  padding: 2.25rem;
  background-color: var(--paper-light);
  background-image: repeating-linear-gradient(90deg, transparent 0, transparent 3rem, rgba(23, 23, 20, 0.025) calc(3rem + 1px));
}

.report-docket {
  display: flex;
  padding-bottom: 1rem;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--carbon);
  color: var(--alert);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
}

.report-docket p {
  margin: 0;
}

.report-finding {
  display: grid;
  padding: 2rem 0;
  grid-template-columns: 13rem minmax(0, 1fr);
  gap: 2rem;
  border-bottom: 1px solid var(--rule);
}

.report-finding p,
.report-document h4 {
  margin-bottom: 0.75rem;
  color: var(--carbon-soft);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
}

.report-finding strong {
  color: var(--alert);
  font-family: var(--font-mono);
  font-size: 3.5rem;
  line-height: 1;
}

.report-finding h3 {
  margin: 0;
  font-size: 3rem;
}

.report-document > section {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule);
}

.report-document > section p {
  margin: 0;
  font-size: 1.15rem;
}

.report-document > section:nth-of-type(2) p {
  color: var(--recovery);
  font-size: 1.3rem;
}

.report-document > footer {
  display: flex;
  padding-top: 1.25rem;
  justify-content: space-between;
  gap: 1rem;
  color: var(--carbon-soft);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  text-transform: uppercase;
}

.report-document > footer p {
  margin: 0;
}

.report-actions {
  display: flex;
  padding: 1.5rem;
  flex-direction: column;
  gap: 0.75rem;
  border-left: 1px solid var(--carbon);
  background: var(--paper-deep);
}

.report-actions button {
  display: flex;
  min-height: 3.5rem;
  padding: 0.75rem 1rem;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid var(--carbon);
  border-radius: 0;
  color: var(--carbon);
  background: var(--paper-light);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.report-actions button[hidden] {
  display: none;
}

.report-actions button:hover {
  color: var(--paper-light);
  background: var(--carbon);
}

.report-actions button:disabled {
  color: var(--rule-dark);
  background: var(--paper-deep);
  cursor: wait;
}

.report-actions [data-report-status] {
  margin: auto 0 0;
  color: var(--recovery);
  font-family: var(--font-mono);
  font-size: 0.64rem;
}

.report-actions [data-report-status][data-state="error"] {
  color: var(--alert-dark);
}

#assessment > noscript {
  display: block;
  padding: 1rem;
  border: 1px solid var(--alert);
  border-top: 0;
  color: var(--alert-dark);
  background: var(--paper-light);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

#assessment > noscript p {
  margin: 0;
}

#stages {
  color: var(--paper);
  background: var(--carbon);
}

#stages > header > p:nth-child(2),
#stages > header > p:last-child {
  color: #c7c0b4;
}

.stage-list {
  display: grid;
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--rule-dark);
  border-left: 1px solid var(--rule-dark);
  list-style: none;
}

.stage-list > li {
  min-height: 21rem;
  padding: 2rem;
  border-right: 1px solid var(--rule-dark);
  border-bottom: 1px solid var(--rule-dark);
}

.stage-list > li > p:first-child {
  color: var(--signal);
}

.stage-list h3 {
  max-width: 11ch;
  min-height: 4.6rem;
  margin: 3rem 0 1.25rem;
  font-size: 2.2rem;
}

.stage-list li > p:not(:first-child) {
  color: #c7c0b4;
}

.stage-list li > p:last-child {
  padding-top: 1rem;
  border-top: 1px solid var(--rule-dark);
  font-family: var(--font-mono);
  font-size: 0.67rem;
  line-height: 1.6;
}

.stage-list li[aria-current="step"] {
  color: var(--carbon);
  background: var(--administrative);
}

.stage-list li[aria-current="step"] p,
.stage-list li[aria-current="step"] > p:first-child {
  color: var(--carbon);
}

.field-report {
  display: grid;
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--shell));
  margin: 4rem auto 0;
  padding-top: 2rem;
  grid-template-columns: minmax(0, 2fr) minmax(16rem, 0.7fr);
  align-items: end;
  gap: 4rem;
  border-top: 1px solid var(--rule-dark);
}

.field-report > div > p {
  margin-bottom: 2rem;
  color: var(--signal);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.field-report blockquote {
  margin: 0;
}

.field-report blockquote p {
  max-width: 23ch;
  margin: 0;
  color: var(--paper-light);
  font-size: 3.4rem;
  line-height: 1.02;
}

.field-report figcaption {
  padding-left: 1.5rem;
  border-left: 1px solid var(--rule-dark);
  color: #c7c0b4;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1.7;
}

.field-report abbr {
  text-decoration: none;
}

.protocol-list {
  display: grid;
  margin-top: 0;
  margin-bottom: 4rem;
  padding: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--carbon);
  list-style: none;
}

.protocol-list > li {
  min-height: 15rem;
  padding: 2rem 2rem 2rem 0;
  border-bottom: 1px solid var(--rule);
}

.protocol-list > li:nth-child(odd) {
  padding-right: 4rem;
  border-right: 1px solid var(--rule);
}

.protocol-list > li:nth-child(even) {
  padding-left: 4rem;
}

.protocol-list h3 {
  margin: 2.5rem 0 1rem;
  font-size: 2.6rem;
}

.protocol-list li > p:last-child {
  max-width: 34rem;
  color: var(--carbon-soft);
}

.prescription {
  display: grid;
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--shell));
  margin: -1.5rem auto 4rem;
  padding: 1.5rem;
  grid-template-columns: minmax(14rem, 0.7fr) minmax(0, 1.3fr);
  align-items: center;
  gap: 2rem;
  border: 1px solid var(--recovery);
  background: var(--paper-light);
}

.prescription h3 {
  margin: 0 0 0.35rem;
  color: var(--recovery);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.prescription p {
  margin: 0;
}

.prescription button {
  min-height: 3.25rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--recovery);
  border-radius: 0;
  color: var(--paper-light);
  background: var(--recovery);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
}

.prescription button:hover {
  color: var(--recovery);
  background: var(--paper-light);
}

.prescription output {
  display: block;
  min-height: 3.25rem;
  padding-left: 2rem;
  border-left: 1px solid var(--rule);
  font-size: 1.15rem;
}

.panic-protocol {
  border: 1px solid var(--alert);
  background: var(--paper-light);
}

.panic-protocol summary {
  position: relative;
  padding: 2rem 5rem 2rem 2rem;
  color: var(--paper-light);
  background: var(--alert);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  list-style: none;
  text-transform: uppercase;
  cursor: pointer;
}

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

.panic-protocol summary::after {
  position: absolute;
  top: 50%;
  right: 2rem;
  font-size: 1.5rem;
  transform: translateY(-50%);
  content: "+";
}

.panic-protocol[open] summary::after {
  content: "−";
}

.panic-protocol > div {
  padding: 3rem;
}

.panic-protocol > div > p:first-child {
  font-size: 1.5rem;
}

.panic-protocol ol {
  max-width: 40rem;
  margin: 2rem 0;
  padding-left: 1.25rem;
}

.panic-protocol li {
  padding: 0.45rem 0 0.45rem 0.75rem;
  border-bottom: 1px solid var(--rule);
}

.panic-loader {
  padding: 3rem;
  color: var(--paper-light);
  background: var(--carbon);
}

.panic-loader p {
  display: flex;
  margin-bottom: 1rem;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.panic-loader progress {
  width: 100%;
  height: 2rem;
  appearance: none;
  border: 1px solid var(--paper-light);
  border-radius: 0;
  background: var(--carbon);
}

.panic-loader progress::-webkit-progress-bar {
  background: var(--carbon);
}

.panic-loader progress::-webkit-progress-value {
  background: var(--signal);
  transition: width 280ms linear;
}

.panic-loader progress::-moz-progress-bar {
  background: var(--signal);
  transition: width 280ms linear;
}

#manifesto {
  color: var(--paper-light);
  background: var(--recovery);
}

#manifesto > header > p:first-child {
  color: var(--administrative);
}

#manifesto > header > p:nth-child(2) {
  color: #d4e1d9;
}

#manifesto > header h2 {
  max-width: 11ch;
  font-size: 5rem;
}

.manifesto-copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 5rem;
}

.manifesto-copy > p {
  max-width: 36rem;
  font-size: 1.3rem;
}

.manifesto-copy blockquote {
  margin: 2rem 0 3rem;
  padding: 2.5rem 0;
  grid-column: 1 / -1;
  border-block: 1px solid rgba(250, 248, 242, 0.45);
}

.manifesto-copy blockquote p {
  max-width: 20ch;
  margin: 0;
  font-size: 4rem;
  line-height: 1;
}

.manifesto-copy > p:last-child {
  color: var(--administrative);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
}

#bulletins {
  background: var(--paper-light);
}

.bulletin-register {
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--shell));
  margin-inline: auto;
  border-top: 3px solid var(--carbon);
}

.bulletin-register article {
  display: grid;
  padding: 2rem 0;
  grid-template-columns: 11rem minmax(0, 1fr) 10rem;
  align-items: center;
  gap: 2rem;
  border-bottom: 1px solid var(--rule);
}

.bulletin-meta {
  align-self: start;
  color: var(--carbon-soft);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  line-height: 1.7;
  text-transform: uppercase;
}

.bulletin-meta time,
.bulletin-meta span {
  display: block;
}

.bulletin-register article > div:nth-child(2) > p:first-child {
  margin-bottom: 0.6rem;
  color: var(--alert);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
}

.bulletin-register h2,
.bulletin-register h3 {
  max-width: 27ch;
  margin-bottom: 0.75rem;
  font-size: 2.2rem;
  line-height: 1.04;
}

.bulletin-register h2 a,
.bulletin-register h3 a {
  text-decoration: none;
}

.bulletin-register h2 a:hover,
.bulletin-register h3 a:hover {
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
}

.bulletin-register article > div:nth-child(2) > p:last-child {
  max-width: 42rem;
  margin: 0;
  color: var(--carbon-soft);
}

.bulletin-read {
  font-family: var(--font-mono);
  font-size: 0.67rem;
  font-weight: 600;
  text-transform: uppercase;
}

.bulletin-index-action {
  display: flex;
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--shell));
  margin: 2rem auto 0;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.bulletin-index-action p {
  margin: 0;
  color: var(--carbon-soft);
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.publication-page {
  min-height: 100svh;
}

.publication-masthead {
  border-bottom: 1px solid var(--carbon);
}

.publication-nav {
  display: flex;
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--shell));
  min-height: 5rem;
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.publication-nav ul {
  display: flex;
  margin: 0;
  padding: 0;
  gap: 1.75rem;
  list-style: none;
}

.publication-hero {
  display: grid;
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--shell));
  min-height: 34rem;
  margin-inline: auto;
  padding: 5rem 0;
  grid-template-columns: minmax(0, 1.8fr) minmax(17rem, 0.55fr);
  align-items: end;
  gap: 5rem;
}

.publication-kicker,
.article-kicker {
  margin-bottom: 1.5rem;
  color: var(--alert);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
}

.publication-hero h1 {
  max-width: 13ch;
  margin-bottom: 2rem;
  font-size: 5.5rem;
}

.publication-hero-copy > p:last-child {
  max-width: 42rem;
  margin: 0;
  color: var(--carbon-soft);
  font-size: 1.3rem;
}

.publication-seal {
  width: 13rem;
  height: auto;
  margin-inline: auto;
  opacity: 0.8;
  transform: rotate(-6deg);
}

.publication-main {
  border-bottom: 1px solid var(--carbon);
}

.publication-main .bulletin-register {
  padding: 5rem 0;
  border-top: 0;
}

.publication-note {
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--shell));
  margin: 0 auto 5rem;
  padding: 2rem 0;
  border-block: 1px solid var(--carbon);
  color: var(--carbon-soft);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.publication-note p {
  max-width: 70rem;
  margin: 0;
}

.bulletin-article-header {
  border-bottom: 1px solid var(--carbon);
}

.bulletin-article-hero {
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--shell));
  margin-inline: auto;
  padding: 5rem 0;
}

.bulletin-article-hero h1 {
  max-width: 15ch;
  margin-bottom: 2rem;
  font-size: 5.2rem;
}

.bulletin-article-hero .article-deck {
  max-width: 50rem;
  margin-bottom: 2rem;
  color: var(--carbon-soft);
  font-size: 1.4rem;
}

.article-byline {
  display: flex;
  margin: 0;
  gap: 2rem;
  color: var(--carbon-soft);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
}

.bulletin-article-layout {
  display: grid;
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--shell));
  margin-inline: auto;
  padding: 5rem 0;
  grid-template-columns: minmax(0, 2fr) minmax(17rem, 0.65fr);
  gap: 6rem;
}

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

.bulletin-body > p:first-child {
  font-size: 1.55rem;
  line-height: 1.45;
}

.bulletin-body h2 {
  margin: 4rem 0 1.5rem;
  font-size: 3rem;
}

.bulletin-body h3 {
  margin: 2.5rem 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
  text-transform: uppercase;
}

.bulletin-body p,
.bulletin-body li {
  color: var(--carbon-soft);
}

.bulletin-body blockquote {
  margin: 3rem 0;
  padding: 2rem 0 2rem 2rem;
  border-left: 4px solid var(--alert);
}

.bulletin-body blockquote p {
  max-width: 26ch;
  margin: 0;
  color: var(--carbon);
  font-size: 2.3rem;
  line-height: 1.1;
}

.bulletin-body ol,
.bulletin-body ul {
  padding-left: 1.4rem;
}

.bulletin-body li {
  padding: 0.55rem 0 0.55rem 0.5rem;
  border-bottom: 1px solid var(--rule);
}

.bulletin-table-wrap {
  margin: 3rem 0;
  overflow-x: auto;
}

.bulletin-body table {
  width: 100%;
  min-width: 42rem;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.bulletin-body caption {
  padding-bottom: 1rem;
  color: var(--alert);
  font-weight: 600;
  text-align: left;
  text-transform: uppercase;
}

.bulletin-body th,
.bulletin-body td {
  padding: 1rem;
  border: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
  overflow-wrap: normal;
  word-break: normal;
}

.bulletin-body th {
  background: var(--paper-deep);
}

.bulletin-sidebar {
  align-self: start;
  padding-left: 2rem;
  border-left: 1px solid var(--rule);
}

.bulletin-sidebar h2 {
  margin-bottom: 2rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
}

.bulletin-sidebar dl {
  margin-bottom: 2rem;
}

.bulletin-sidebar dl > div {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rule);
}

.bulletin-sidebar dt {
  color: var(--carbon-soft);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
}

.bulletin-sidebar dd {
  margin: 0.25rem 0 0;
}

.bulletin-sidebar > p {
  color: var(--carbon-soft);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1.7;
}

.publication-footer {
  display: flex;
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--shell));
  min-height: 12rem;
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  color: var(--paper);
  background: var(--carbon);
  box-shadow: 0 0 0 100vmax var(--carbon);
  clip-path: inset(0 -100vmax);
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.publication-footer p {
  max-width: 34rem;
  margin: 0;
  color: #c7c0b4;
}

.publication-footer nav {
  display: flex;
  gap: 1.5rem;
}

#records {
  background-color: var(--administrative);
  background-image: repeating-linear-gradient(135deg, transparent 0, transparent 3rem, rgba(23, 23, 20, 0.035) calc(3rem + 1px));
}

.records-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4rem;
}

.records-grid > section {
  padding-top: 1.5rem;
  border-top: 3px solid var(--carbon);
}

.records-grid h3 {
  margin-bottom: 2rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.records-grid ul,
.records-grid ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.records-grid li {
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(23, 23, 20, 0.35);
}

.records-grid li strong,
.records-grid li span {
  display: block;
}

.records-grid li strong {
  font-size: 1.35rem;
}

.records-grid li span,
.records-grid ol li {
  color: var(--carbon-soft);
  font-size: 1rem;
}

.js .records-grid li[data-achievement] {
  position: relative;
  padding-right: 6.5rem;
}

.js .records-grid li[data-state="locked"] {
  opacity: 0.52;
}

.achievement-state {
  position: absolute;
  top: 1.35rem;
  right: 0;
  color: var(--alert-dark);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
}

[data-state="unlocked"] .achievement-state {
  color: var(--recovery);
}

.achievement-region {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 150;
  display: grid;
  width: min(25rem, calc(100% - 2.5rem));
  gap: 0.75rem;
  pointer-events: none;
}

.achievement-toast {
  padding: 1.25rem;
  border: 1px solid var(--administrative);
  color: var(--paper-light);
  background: var(--carbon);
  box-shadow: 0.5rem 0.5rem 0 var(--alert);
  animation: achievement-filed 280ms ease-out both;
  pointer-events: auto;
}

.achievement-toast > span {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--signal);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
}

.achievement-toast strong,
.achievement-toast p {
  display: block;
}

.achievement-toast strong {
  font-size: 1.3rem;
}

.achievement-toast p {
  margin: 0.35rem 0 0;
  color: #c7c0b4;
  font-size: 0.9rem;
}

.achievement-toast a {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--administrative);
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

/* The Ministry insists this is an overlay, not another open tab. */
.terminal-dialog {
  width: min(64rem, calc(100% - 2rem));
  height: min(44rem, calc(100% - 2rem));
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  border: 1px solid var(--signal);
  border-radius: 0;
  color: var(--paper-light);
  background: var(--carbon);
  box-shadow: 0.75rem 0.75rem 0 var(--alert);
}

.terminal-dialog[open] {
  display: block;
  animation: terminal-enter 180ms ease-out both;
}

.terminal-dialog::backdrop {
  background: rgba(23, 23, 20, 0.88);
}

body:has(.terminal-dialog[open]) {
  overflow: hidden;
}

.terminal-window {
  display: flex;
  height: 100%;
  flex-direction: column;
  font-family: var(--font-mono);
}

.terminal-header {
  display: flex;
  min-height: 4rem;
  padding-left: 1.25rem;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--rule-dark);
  gap: 1rem;
}

.terminal-header p,
.terminal-header h2 {
  display: inline;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.4;
}

.terminal-header p {
  margin-right: 1rem;
  color: var(--signal);
  text-transform: uppercase;
}

.terminal-close {
  width: 4rem;
  min-height: 4rem;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--rule-dark);
  border-radius: 0;
  color: var(--paper-light);
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
}

.terminal-close:hover {
  color: var(--carbon);
  background: var(--signal);
}

.terminal-log {
  flex: 1;
  padding: 1.5rem;
  background-image: repeating-linear-gradient(0deg, transparent 0, transparent 1.65rem, rgba(184, 217, 106, 0.035) calc(1.65rem + 1px));
  overflow-y: auto;
  scrollbar-color: var(--rule-dark) var(--carbon);
}

.terminal-line {
  min-height: 1.65rem;
  margin: 0;
  color: #c7c0b4;
  font-size: 0.76rem;
  line-height: 1.65;
  white-space: pre-wrap;
}

.terminal-line[data-kind="system"] {
  color: var(--signal);
}

.terminal-line[data-kind="command"] {
  color: var(--paper-light);
}

.terminal-line[data-kind="error"] {
  color: #e58c78;
}

.terminal-line a {
  color: var(--administrative);
}

.typing-cursor::after {
  display: inline-block;
  width: 0.6em;
  height: 1em;
  margin-left: 0.35em;
  vertical-align: -0.15em;
  background: var(--signal);
  animation: cursor-blink 900ms steps(1, end) infinite;
  content: "";
}

.terminal-form {
  display: grid;
  min-height: 4.25rem;
  padding: 0 1.5rem;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid var(--rule-dark);
}

.terminal-form label {
  color: var(--signal);
  font-size: 0.72rem;
}

.terminal-form input {
  width: 100%;
  min-width: 0;
  padding: 0.75rem 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  color: var(--paper-light);
  background: transparent;
  caret-color: var(--signal);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.terminal-form:focus-within {
  box-shadow: inset 3px 0 0 var(--signal);
}

.terminal-hint {
  margin: 0;
  padding: 0.65rem 1.5rem;
  border-top: 1px solid var(--rule-dark);
  color: var(--rule);
  font-size: 0.62rem;
}

.error-page {
  min-height: 100svh;
}

.error-page::after {
  position: fixed;
  right: 7vw;
  bottom: -2rem;
  z-index: -1;
  color: var(--alert);
  font-family: var(--font-mono);
  font-size: 28rem;
  font-weight: 600;
  line-height: 0.75;
  opacity: 0.06;
  content: "404";
  pointer-events: none;
}

.error-docket {
  display: flex;
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--shell));
  min-height: 5rem;
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--carbon);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.error-docket p {
  margin: 0;
  color: var(--alert);
}

.error-case {
  display: grid;
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--shell));
  min-height: calc(100svh - 5rem);
  margin-inline: auto;
  padding: 5rem 0;
  grid-template-columns: minmax(0, 1.8fr) minmax(18rem, 0.7fr);
  align-items: center;
  gap: 5rem;
}

.error-code {
  margin-bottom: 1rem;
  color: var(--alert);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
}

.error-case h1 {
  max-width: 11ch;
  margin-bottom: 2rem;
  font-size: 6rem;
}

.error-summary {
  max-width: 38rem;
  margin-bottom: 2.5rem;
  color: var(--carbon-soft);
  font-size: 1.3rem;
}

.error-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.error-diagnostics {
  padding: 2rem;
  border: 1px solid var(--carbon);
  background: var(--paper-light);
}

.error-diagnostics h2 {
  margin-bottom: 2rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.error-diagnostics dl {
  margin-bottom: 2rem;
}

.error-diagnostics dl > div {
  display: grid;
  padding: 0.65rem 0;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  border-bottom: 1px solid var(--rule);
}

.error-diagnostics dt {
  color: var(--carbon-soft);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
}

.error-diagnostics dd {
  margin: 0;
  text-align: right;
  overflow-wrap: normal;
  word-break: normal;
}

.error-diagnostics > p {
  margin: 0;
  color: var(--carbon-soft);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  line-height: 1.7;
}

.records-grid ol {
  counter-reset: footnote;
}

.records-grid ol li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 1rem;
  counter-increment: footnote;
}

.records-grid ol li::before {
  color: var(--alert-dark);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  content: counter(footnote, decimal-leading-zero);
}

.field-note-callout {
  display: grid;
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--shell));
  margin: 4rem auto 0;
  padding-top: 2rem;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 3rem;
  border-top: 3px solid var(--carbon);
}

.field-note-callout > div > p:first-child,
.field-note-main > header > p:first-child,
.field-note-policy > div:first-child > p {
  margin-bottom: 1rem;
  color: var(--alert-dark);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
}

.field-note-callout h3 {
  margin-bottom: 0.75rem;
  font-size: 2.5rem;
}

.field-note-callout > div > p:last-child {
  max-width: 42rem;
  margin: 0;
  color: var(--carbon-soft);
}

.field-note-main {
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--shell));
  margin-inline: auto;
  padding: 6rem 0;
}

.field-note-main > header {
  margin-bottom: 4rem;
}

.field-note-main > header h2 {
  margin-bottom: 1rem;
  font-size: 4rem;
}

.field-note-main > header > p:last-child {
  max-width: 44rem;
  color: var(--carbon-soft);
}

.field-note-list {
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--carbon);
  border-left: 1px solid var(--carbon);
  list-style: none;
}

.field-note-list > li {
  min-height: 22rem;
  padding: 2rem;
  border-right: 1px solid var(--carbon);
  border-bottom: 1px solid var(--carbon);
}

.field-note-list > li > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--alert);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
}

.field-note-list blockquote {
  margin: 3rem 0;
}

.field-note-list blockquote p {
  max-width: 21ch;
  margin: 0;
  color: var(--carbon);
  font-size: 2rem;
  line-height: 1.08;
}

.field-note-list > li > p:last-child {
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  color: var(--carbon-soft);
  font-size: 1rem;
}

.field-note-policy {
  display: grid;
  margin-top: 5rem;
  padding: 3rem 0;
  grid-template-columns: minmax(15rem, 0.7fr) minmax(0, 1.3fr);
  gap: 5rem;
  border-block: 1px solid var(--carbon);
}

.field-note-policy h2 {
  max-width: 11ch;
  margin: 0;
  font-size: 3rem;
}

.field-note-policy > div:last-child > p {
  max-width: 44rem;
  margin-bottom: 2rem;
  color: var(--carbon-soft);
  font-size: 1.2rem;
}

.site-footer {
  display: grid;
  padding-top: 5rem;
  padding-bottom: 3rem;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem 5rem;
  color: var(--paper);
  background: var(--carbon);
}

body:has(.site-footer)::after {
  position: absolute;
  right: 0;
  left: 0;
  z-index: -1;
  height: 45rem;
  background: var(--carbon);
  transform: translateY(-45rem);
  content: "";
}

.footer-brand > a {
  font-size: 2.7rem;
  text-decoration: none;
}

.footer-brand > p {
  max-width: 28rem;
  color: #c7c0b4;
}

.footer-nav ul {
  flex-direction: column;
  gap: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.footer-nav li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rule-dark);
}

.site-footer > div[id] {
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule-dark);
}

.site-footer > div[id] h2 {
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.site-footer > div[id] p,
.site-footer > p {
  color: #c7c0b4;
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.site-footer > p {
  margin: 0;
}

.site-footer > p:last-child {
  color: var(--signal);
  text-align: right;
  text-transform: uppercase;
}

@keyframes file-open {
  from {
    opacity: 0;
    transform: translateY(1.5rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes achievement-filed {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes terminal-enter {
  from {
    opacity: 0;
    transform: translateY(1rem) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes cursor-blink {
  0%,
  48% {
    opacity: 1;
  }

  49%,
  100% {
    opacity: 0;
  }
}

@media (max-width: 70rem) {
  .hero-copy h1 {
    font-size: 5rem;
  }

  .hero-layout {
    grid-template-columns: minmax(0, 2fr) minmax(16rem, 1fr);
  }

  .stage-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 52rem) {
  :root {
    --page-gutter: 1.25rem;
  }

  body::before {
    border-width: 0.3rem;
  }

  .docket-nav {
    min-height: 4.5rem;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
  }

  .nav-list {
    width: 100%;
    padding-bottom: 0.65rem;
    gap: 1.15rem;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav-list::-webkit-scrollbar {
    display: none;
  }

  .nav-list a {
    white-space: nowrap;
  }

  .docket-bar p:first-child {
    display: none;
  }

  .hero-layout {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: 32rem;
    padding: 3rem 0;
  }

  .hero-copy h1 {
    font-size: 4.2rem;
  }

  .case-summary {
    display: grid;
    min-height: 6.5rem;
    padding: 1rem 0;
    grid-template-columns: 5rem minmax(0, 1fr);
    align-items: center;
    gap: 1.25rem;
    border-top: 1px solid var(--rule);
    border-left: 0;
    background: transparent;
  }

  .department-seal {
    width: 5rem;
    margin: 0;
  }

  .case-summary dl {
    display: none;
  }

  .case-summary > p {
    font-size: 0.6rem;
  }

  main > section {
    padding: 5rem 0;
  }

  main > section > header {
    margin-bottom: 3rem;
  }

  main > section > header h2,
  #manifesto > header h2 {
    font-size: 3.6rem;
  }

  .assessment-form {
    grid-template-columns: 1fr;
  }

  .result-panel {
    position: static;
    min-height: auto;
    border-top: 1px solid var(--carbon);
    border-left: 0;
  }

  .report-window {
    grid-template-columns: 1fr;
  }

  .report-actions {
    border-top: 1px solid var(--carbon);
    border-left: 0;
  }

  .report-actions [data-report-status] {
    min-height: 2.5rem;
    margin-top: 0.5rem;
  }

  #assessment-result {
    min-height: 0;
  }

  .protocol-list,
  .manifesto-copy,
  .records-grid,
  .field-report,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .bulletin-register article {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .field-note-callout,
  .field-note-policy {
    grid-template-columns: 1fr;
  }

  .field-note-list {
    grid-template-columns: 1fr;
  }

  .bulletin-read {
    justify-self: start;
  }

  .bulletin-index-action,
  .publication-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .publication-hero,
  .bulletin-article-layout {
    grid-template-columns: 1fr;
  }

  .publication-hero {
    gap: 3rem;
  }

  .publication-seal {
    width: 9rem;
    margin-inline: 0;
  }

  .bulletin-sidebar {
    padding: 2rem 0 0;
    border-top: 1px solid var(--rule);
    border-left: 0;
  }

  .publication-footer {
    padding: 3rem 0;
  }

  .field-report {
    gap: 2rem;
  }

  .field-report figcaption {
    padding: 1.5rem 0 0;
    border-top: 1px solid var(--rule-dark);
    border-left: 0;
  }

  .prescription {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .prescription output {
    padding: 1rem 0 0;
    border-top: 1px solid var(--rule);
    border-left: 0;
  }

  .protocol-list > li:nth-child(odd),
  .protocol-list > li:nth-child(even) {
    padding-right: 0;
    padding-left: 0;
    border-right: 0;
  }

  .manifesto-copy {
    column-gap: 0;
  }

  .manifesto-copy blockquote {
    grid-column: 1;
  }

  .manifesto-copy blockquote p {
    font-size: 3.2rem;
  }

  .site-footer > p:last-child {
    text-align: left;
  }
}

@media (max-width: 35rem) {
  body {
    font-size: 1rem;
  }

  .docket-bar {
    font-size: 0.6rem;
  }

  .hero-copy {
    min-height: auto;
    padding: 1.5rem 0;
  }

  .hero-copy h1 {
    font-size: 3.25rem;
  }

  .hero-deck {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
  }

  .hero-action {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-action {
    justify-content: space-between;
  }

  main > section > header h2,
  #manifesto > header h2 {
    font-size: 2.8rem;
  }

  .result-panel h3 {
    max-width: none;
    font-size: 2.25rem;
    overflow-wrap: normal;
  }

  main > section > header > p:last-child {
    font-size: 1.05rem;
  }

  .symptoms-list > div {
    grid-template-columns: 3.25rem minmax(0, 1fr);
  }

  .symptoms-list label > span {
    width: 2.5rem;
  }

  .stage-list {
    grid-template-columns: 1fr;
  }

  .stage-list > li {
    min-height: 0;
  }

  .stage-list h3 {
    max-width: none;
    font-size: 1.9rem;
    overflow-wrap: normal;
  }

  .protocol-list > li {
    min-height: 0;
  }

  .protocol-list h3 {
    font-size: 2.2rem;
  }

  .field-report blockquote p {
    font-size: 2.5rem;
  }

  .panic-protocol > div {
    padding: 2rem 1.25rem;
  }

  .report-dialog {
    width: calc(100% - 1rem);
    max-height: calc(100% - 1rem);
    box-shadow: 0.35rem 0.35rem 0 var(--alert);
  }

  .report-header {
    padding-left: 0.85rem;
  }

  .report-header p {
    display: none;
  }

  .report-document {
    padding: 1.25rem;
  }

  .report-docket {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }

  .report-finding {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .report-finding h3 {
    font-size: 2.4rem;
  }

  .report-document > footer {
    flex-direction: column;
  }

  .panic-loader {
    padding: 2rem 1.25rem;
  }

  .terminal-dialog {
    width: calc(100% - 1rem);
    height: calc(100% - 1rem);
    box-shadow: 0.35rem 0.35rem 0 var(--alert);
  }

  .terminal-header {
    padding-left: 0.85rem;
  }

  .terminal-header p {
    display: none;
  }

  .terminal-log {
    padding: 1rem;
  }

  .terminal-form {
    padding: 0 1rem;
  }

  .terminal-form label span[aria-hidden="true"] {
    font-size: 0;
  }

  .terminal-form label span[aria-hidden="true"]::after {
    font-size: 0.72rem;
    content: ">$";
  }

  .terminal-hint {
    padding-inline: 1rem;
  }

  .error-docket {
    min-height: 4rem;
  }

  .error-docket p {
    display: none;
  }

  .error-case {
    min-height: calc(100svh - 4rem);
    padding: 3rem 0;
    grid-template-columns: 1fr;
    align-content: center;
    gap: 3rem;
  }

  .error-case h1 {
    font-size: 3.5rem;
  }

  .error-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .manifesto-copy > p {
    font-size: 1.1rem;
  }

  .manifesto-copy blockquote p {
    font-size: 2.5rem;
  }

  .footer-brand > a {
    font-size: 2rem;
  }

  .publication-nav {
    min-height: 6rem;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 0.4rem;
  }

  .publication-nav ul {
    width: 100%;
    padding-bottom: 0.4rem;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .publication-nav li {
    flex: none;
  }

  .publication-nav a {
    white-space: nowrap;
  }

  .publication-nav ul::-webkit-scrollbar {
    display: none;
  }

  .publication-hero {
    min-height: auto;
    padding: 3.5rem 0;
  }

  .publication-hero h1,
  .bulletin-article-hero h1 {
    font-size: 3.1rem;
  }

  .error-case h1 {
    max-width: none;
    font-size: 2.65rem;
    overflow-wrap: normal;
  }

  .bulletin-article-hero {
    padding: 3.5rem 0;
  }

  .article-byline {
    flex-direction: column;
    gap: 0.4rem;
  }

  .bulletin-article-layout {
    padding: 3.5rem 0;
    gap: 3rem;
  }

  .bulletin-body > p:first-child {
    font-size: 1.25rem;
  }

  .bulletin-body h2 {
    font-size: 2.4rem;
  }

  .bulletin-body blockquote p {
    font-size: 1.9rem;
  }

  .publication-footer nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
  }

  .field-note-main {
    padding: 4rem 0;
  }

  .field-note-main > header h2 {
    font-size: 3rem;
  }

  .field-note-list > li {
    min-height: 0;
  }

  .field-note-list blockquote p {
    font-size: 1.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-contrast: more) {
  :root {
    --rule: #4e4b43;
  }

  .case-summary,
  .result-panel {
    background: var(--paper-light);
  }
}

@media print {
  :root {
    --page-gutter: 0;
  }

  body {
    color: #000;
    background: #fff;
    font-size: 10pt;
  }

  body::before,
  body::after,
  .skip-link,
  .docket-nav,
  .hero-action,
  .department-seal,
  .result-panel button,
  .panic-protocol,
  .footer-nav {
    display: none;
  }

  .site-header,
  main > section,
  #stages,
  #manifesto,
  #records,
  .site-footer {
    padding: 1.5rem 0;
    border-color: #000;
    color: #000;
    background: #fff;
    break-inside: avoid;
  }

  .hero-layout,
  .assessment-form,
  .stage-list,
  .protocol-list,
  .manifesto-copy,
  .records-grid,
  .site-footer {
    display: block;
    width: 100%;
  }

  .hero-copy h1,
  main > section > header h2,
  #manifesto > header h2 {
    font-size: 30pt;
  }

  .case-summary,
  .result-panel,
  .stage-list > li,
  .protocol-list > li {
    min-height: 0;
    padding: 1rem 0;
    border: 0;
    border-bottom: 1px solid #777;
    color: #000;
    background: #fff;
  }
}