:root {
  color-scheme: dark;
  --ink: #090d08;
  --field: #172015;
  --field-light: #263223;
  --paper: #e4ddb5;
  --paper-dim: #b8b18c;
  --brass: #c4ad55;
  --brass-bright: #e4d178;
  --rule: rgb(196 173 85 / 38%);
  --shadow: 0 24px 70px rgb(0 0 0 / 28%);
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Courier New", Courier, ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 18rem;
  background:
    linear-gradient(rgb(6 9 6 / 91%), rgb(9 13 8 / 96%)),
    url('/assets/media/images/bg.gif') repeat;
  color: var(--paper);
  font-family: var(--sans);
  font-size: clamp(1rem, .96rem + .16vw, 1.08rem);
  line-height: 1.7;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: repeating-linear-gradient(90deg, transparent 0 7rem, rgb(228 221 181 / 1.5%) 7rem calc(7rem + 1px));
  content: "";
  pointer-events: none;
}

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

a {
  color: var(--brass-bright);
  text-decoration-thickness: .08em;
  text-underline-offset: .2em;
}

a:hover {
  color: #fff3a3;
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #fff3a3;
  outline-offset: 4px;
}

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

h1,
h2,
h3 {
  font-family: var(--mono);
  letter-spacing: -.035em;
  line-height: 1.08;
}

h1 {
  max-width: 15ch;
  margin-bottom: 1.25rem;
  color: #f4ecc4;
  font-size: clamp(2.65rem, 7vw, 6.3rem);
  text-transform: uppercase;
}

h2 {
  color: #f0e5b5;
  font-size: clamp(1.65rem, 3vw, 2.7rem);
}

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

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 10000;
  padding: .75rem 1rem;
  transform: translateY(-180%);
  background: #fff3a3;
  color: var(--ink);
  font-weight: 800;
}

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

.site-header {
  border-bottom: 1px solid var(--rule);
  background: rgb(4 7 4 / 92%);
}

.brand {
  display: block;
  width: min(100%, 50rem);
  padding-top: clamp(1.15rem, 3vw, 2rem);
}

.brand img {
  width: 50rem;
}

.nav-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  padding-block: 1.1rem;
}

.archive-label,
.eyebrow,
.document-stamp {
  color: var(--brass);
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.archive-label {
  flex: 0 0 auto;
  margin: 0;
}

.archive-label span {
  margin-right: .45rem;
  font-size: .65rem;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-row nav a {
  display: block;
  border: 1px solid transparent;
  padding: .48rem .7rem;
  color: var(--paper-dim);
  font-family: var(--mono);
  font-size: .79rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-row nav a:hover {
  border-color: var(--rule);
  color: var(--paper);
}

.nav-row nav a[aria-current="page"] {
  border-color: var(--brass);
  background: var(--brass);
  color: var(--ink);
}

.main-content {
  min-height: 60vh;
  padding-block: clamp(3rem, 7vw, 7rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(18rem, .8fr);
  align-items: end;
  gap: 3rem;
  padding-bottom: clamp(3rem, 7vw, 7rem);
}

.hero-copy h1 {
  margin-bottom: 1rem;
}

.lede {
  max-width: 43rem;
  color: var(--paper-dim);
  font-size: clamp(1.12rem, 1rem + .55vw, 1.42rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.4rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  padding: .8rem 1rem;
  border: 1px solid var(--brass);
  background: var(--brass);
  color: var(--ink);
  font-family: var(--mono);
  font-size: .84rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
}

.button:hover {
  background: var(--brass-bright);
  color: var(--ink);
}

.text-link {
  font-family: var(--mono);
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.slogan-art {
  margin: 0;
  border-block: 1px solid var(--rule);
  padding-block: 1rem;
}

.slogan-art img {
  width: 30.3125rem;
}

.document-grid {
  display: grid;
  grid-template-columns: minmax(16rem, .65fr) minmax(0, 1.35fr);
  align-items: start;
  gap: clamp(1.25rem, 4vw, 3rem);
}

.document-card {
  position: relative;
  border: 1px solid var(--rule);
  padding: clamp(1.25rem, 4vw, 2.5rem);
  background: linear-gradient(145deg, rgb(38 50 35 / 82%), rgb(18 25 17 / 94%));
  box-shadow: var(--shadow);
}

.document-card::before,
.record-figure::before {
  position: absolute;
  top: .45rem;
  right: .45rem;
  bottom: .45rem;
  left: .45rem;
  border: 1px solid rgb(228 221 181 / 8%);
  content: "";
  pointer-events: none;
}

.archive-notice {
  border-top: 4px solid var(--brass);
  padding-top: 1rem;
  color: var(--paper-dim);
  font-family: var(--mono);
  font-size: .93rem;
}

.archive-notice strong {
  color: var(--paper);
}

.archive-notice small,
.archive-context,
.source-note {
  color: var(--paper-dim);
  font-size: .82rem;
}

.recruitment-art {
  width: min(100%, 8.375rem);
  margin: 2rem 0 0;
}

.recruitment-art img {
  width: 8.375rem;
}

.recruitment-art figcaption {
  margin-top: .65rem;
  color: var(--paper-dim);
  font-family: var(--mono);
  font-size: .67rem;
  letter-spacing: .04em;
  line-height: 1.45;
  text-transform: uppercase;
}

.document-heading {
  margin-bottom: 2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px dashed var(--rule);
}

.document-heading h2 {
  margin-bottom: 0;
}

.prose {
  max-width: 68ch;
  overflow-wrap: anywhere;
}

.prose p,
.prose ul {
  margin-bottom: 1.4rem;
}

.prose ul {
  padding-left: 1.4rem;
  list-style-type: square;
}

.prose b,
.prose strong {
  color: #fff4c9;
}

.prose a,
.source-note a {
  overflow-wrap: anywhere;
}

.archive-copy bodycontent {
  display: contents;
}

.page-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 2rem;
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--rule);
}

.page-heading > * {
  min-width: 0;
}

.page-heading h1 {
  margin-bottom: .8rem;
}

.classification {
  min-width: 10rem;
  margin: .25rem 0 0;
  padding: .8rem 1rem;
  transform: rotate(1deg);
  border: 2px solid var(--brass);
  color: var(--brass);
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .12em;
  line-height: 1.45;
  text-align: center;
  text-transform: uppercase;
}

.classification strong {
  color: var(--paper);
  font-size: .95rem;
}

.reading-layout {
  display: grid;
  grid-template-columns: minmax(13rem, .45fr) minmax(0, 1.15fr);
  align-items: start;
  gap: clamp(1.5rem, 5vw, 4rem);
}

.margin-note {
  padding-top: 1rem;
  border-top: 3px solid var(--brass);
  color: var(--paper-dim);
  font-size: .94rem;
}

.margin-note a {
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.section-nav,
.photo-pagination {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: .84rem;
  font-weight: 700;
  text-transform: uppercase;
}

.briefing-jump,
.album-switch {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
}

.briefing-jump a,
.album-switch a {
  border: 1px solid var(--rule);
  padding: .65rem .8rem;
  font-family: var(--mono);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  text-transform: uppercase;
}

.album-switch a {
  flex: 1 1 15rem;
}

.album-switch a[aria-current="page"] {
  border-color: var(--brass);
  background: var(--brass);
  color: var(--ink);
}

.album-switch span {
  display: block;
  margin-top: .2rem;
  font-size: .68rem;
  font-weight: 400;
}

.briefing-section,
#chronology,
#field-notes {
  margin-top: clamp(3rem, 7vw, 6rem);
  scroll-margin-top: 2rem;
}

.briefing-grid,
.history-list {
  display: grid;
  max-width: 68rem;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.briefing-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}

.briefing-grid .document-card {
  box-shadow: none;
}

.briefing-grid h3 {
  font-size: 1.35rem;
}

.briefing-art {
  width: min(100%, 30.3125rem);
  margin: 0 0 2rem;
  border-block: 1px solid var(--rule);
  padding-block: .75rem;
}

.profile-list {
  margin: 0;
}

.profile-list div {
  display: grid;
  grid-template-columns: minmax(9rem, .8fr) minmax(0, 1.2fr);
  gap: 1rem;
  padding-block: .65rem;
  border-bottom: 1px dashed var(--rule);
}

.profile-list dt {
  color: var(--paper-dim);
}

.profile-list dd {
  margin: 0;
  color: #fff4c9;
  font-weight: 700;
}

.weather-resources {
  margin-block: 2rem;
}

.weather-provider-labels,
.weather-resources li {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.weather-provider-labels {
  margin: 0;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--brass);
}

.weather-resources ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.weather-resources li {
  padding-block: .45rem;
  border-bottom: 1px dashed var(--rule);
}

.historical-action {
  border-bottom: 1px dotted var(--paper-dim);
  color: var(--paper-dim);
}

.historical-download::after {
  content: " [historical Word download]";
  color: var(--paper-dim);
  font-family: var(--mono);
  font-size: .72rem;
}

.gallery-heading h1 {
  max-width: 18ch;
}

.context-line {
  max-width: 48rem;
  color: var(--paper-dim);
  font-size: .91rem;
}

.context-line span {
  margin-right: .5rem;
  color: var(--brass);
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.gallery-jump {
  display: inline-block;
}

#recon-gallery {
  scroll-margin-top: 1rem;
}

.no-script {
  margin-bottom: 2rem;
  box-shadow: none;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.photo-card {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--rule);
  background: #11170f;
  transition: border-color 160ms ease, transform 160ms ease;
}

.photo-card:hover {
  border-color: var(--brass);
  transform: translateY(-3px);
}

.photo-link {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #050805;
}

.photo-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 280ms ease;
}

.photo-link:hover img {
  transform: scale(1.025);
}

.photo-number {
  position: absolute;
  top: .7rem;
  left: .7rem;
  z-index: 1;
  min-width: 2.1rem;
  padding: .2rem .38rem;
  background: rgb(5 8 5 / 86%);
  color: var(--brass-bright);
  font-family: var(--mono);
  font-size: .69rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-align: center;
}

.expand-cue {
  position: absolute;
  right: .65rem;
  bottom: .65rem;
  display: flex;
  align-items: center;
  gap: .35rem;
  padding: .25rem .45rem;
  background: rgb(5 8 5 / 86%);
  color: var(--paper);
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.expand-cue svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.photo-card figcaption {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 7.7rem;
  gap: 1rem;
  padding: 1rem;
  color: var(--paper);
  font-size: .9rem;
  line-height: 1.45;
}

.photo-card figcaption a {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.photo-card figcaption small {
  display: block;
  margin-bottom: .35rem;
  color: var(--brass);
  font-family: var(--mono);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.album-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  color: var(--paper-dim);
  font-size: .88rem;
}

.album-footer p {
  margin: 0;
}

.pswp__fort-jordan-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
  padding: 1rem max(1rem, calc((100vw - 52rem) / 2));
  background: linear-gradient(transparent, rgb(0 0 0 / 86%) 40%);
  color: #fff7d4;
  font-family: var(--mono);
  font-size: clamp(.82rem, 1.5vw, 1rem);
  line-height: 1.45;
  text-align: center;
  pointer-events: none;
}

.pswp__button--arrow {
  color: white;
}

.photo-record {
  max-width: 70rem;
  margin-inline: auto;
}

.photo-record-heading h1 {
  max-width: 20ch;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
}

.record-figure {
  position: relative;
  margin: 0;
  border: 1px solid var(--rule);
  padding: clamp(.7rem, 2vw, 1.25rem);
  background: #0c110b;
  box-shadow: var(--shadow);
}

.record-figure > a {
  display: grid;
  min-height: min(68vh, 46rem);
  place-items: center;
  background: #030503;
}

.record-figure img {
  width: auto;
  max-height: min(68vh, 46rem);
}

.record-figure figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem .35rem .1rem;
}

.record-figure figcaption p {
  margin: 0;
}

.album-return {
  text-align: center;
}

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

.site-footer {
  border-top: 1px solid var(--rule);
  background: #050705;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 2rem;
  color: var(--paper-dim);
  font-family: var(--mono);
  font-size: .75rem;
  line-height: 1.55;
}

.footer-grid p {
  margin: 0;
}

.footer-grid strong {
  color: var(--paper);
  letter-spacing: .05em;
  text-transform: uppercase;
}

@media (max-width: 52rem) {
  .nav-row,
  .album-footer,
  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }

  nav ul {
    justify-content: flex-start;
  }

  .hero-grid,
  .document-grid,
  .reading-layout {
    grid-template-columns: 1fr;
  }

  .profile-list div {
    grid-template-columns: 1fr;
    gap: .2rem;
  }

  .slogan-art {
    width: min(100%, 30.3125rem);
  }

  .margin-note {
    max-width: 38rem;
  }
}

@media (max-width: 36rem) {
  .shell {
    width: min(100% - 1.25rem, 76rem);
  }

  .page-heading {
    grid-template-columns: 1fr;
  }

  h1,
  h2,
  h3 {
    overflow-wrap: anywhere;
  }

  .classification {
    justify-self: start;
  }

  .gallery-heading {
    gap: .75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
  }

  .gallery-heading h1 {
    margin-bottom: .6rem;
    font-size: clamp(2rem, 11vw, 3.2rem);
    line-height: 1;
  }

  .gallery-heading .lede {
    margin-bottom: .75rem;
    font-size: 1rem;
    line-height: 1.45;
  }

  .gallery-heading .context-line {
    margin-bottom: .65rem;
    font-size: .84rem;
    line-height: 1.5;
  }

  .gallery-heading .classification {
    padding: .55rem .75rem;
  }

  .album-switch {
    gap: .5rem;
    margin-bottom: 1.5rem;
  }

  .album-switch a {
    padding: .5rem .7rem;
  }

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

  .photo-card figcaption {
    min-height: 8.5rem;
    padding: .75rem;
    font-size: .8rem;
  }

  .expand-cue {
    font-size: 0;
  }

  .section-nav,
  .photo-pagination {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .photo-pagination .album-return {
    grid-row: 2;
    grid-column: 1 / -1;
    margin-top: .5rem;
  }

  .section-nav a:last-child,
  .photo-pagination a:last-child {
    text-align: right;
  }

  .record-figure figcaption {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

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