:root {
  --color-rail: #7f2d12;
  --color-rail-dark: #60200d;
  --color-green: #187225;
  --color-paper: #fff;
  --color-ink: #1e1e1e;
  --color-muted: #626262;
  --color-border: #d8d1ca;
  --color-soft: #f4f1ed;
  --frame-width: 60rem;
  --sidebar-width: 12.625rem;
  --prose-width: 39rem;
  --space-xs: 0.4rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  color: var(--color-ink);
  background-color: #e6e2dd;
  background-image: url("../images/legacy-background.png");
  background-repeat: repeat-x;
  background-position: center top;
  background-size: auto 100%;
  background-attachment: fixed;
  font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
}

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

a {
  color: #285d2f;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--color-green);
}

:focus-visible {
  outline: 3px solid #f2b632;
  outline-offset: 3px;
}

h1,
h2,
h3 {
  line-height: 1.2;
}

h1 {
  margin: 0;
  color: #54200f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 2.9rem);
  font-weight: 400;
}

h2 {
  margin-top: var(--space-lg);
  color: #652510;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 400;
}

h3 {
  margin-top: var(--space-md);
  color: #652510;
  font-size: 1.05rem;
}

p,
ul,
ol {
  margin-block: 0;
}

.flow > * + * {
  margin-block-start: var(--space-md);
}

.site-frame {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  width: min(calc(100% - 2rem), var(--frame-width));
  min-height: 100vh;
  margin-inline: auto;
  background: var(--color-paper);
  box-shadow: 0 0 1.5rem rgb(0 0 0 / 22%);
}

.site-sidebar {
  position: relative;
  z-index: 10;
  min-width: 0;
  color: white;
  background: var(--color-rail);
}

.sidebar-heading {
  padding: 1rem 1.25rem 0.85rem;
  border-bottom: 1px solid rgb(255 255 255 / 24%);
}

.sidebar-brand {
  display: block;
  color: white;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  line-height: 1.1;
  text-decoration: none;
}

.sidebar-brand:hover {
  color: white;
}

.menu-button {
  display: none;
  padding: 0.45rem 0.7rem;
  color: white;
  font: inherit;
  background: var(--color-rail-dark);
  border: 1px solid rgb(255 255 255 / 50%);
  border-radius: 0;
}

.site-navigation {
  font-size: 0.82rem;
  line-height: 1.25;
}

.site-navigation ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-navigation > ul > li {
  border-bottom: 1px solid rgb(255 255 255 / 20%);
}

.site-navigation a {
  display: block;
  padding: 0.62rem 1.15rem;
  color: white;
  text-decoration: none;
}

.site-navigation a:hover,
.site-navigation a:focus-visible {
  color: white;
  background: var(--color-green);
}

.site-navigation a[aria-current="page"],
.site-navigation a.is-current-section {
  color: white;
  font-weight: 700;
  background: var(--color-green);
}

.site-navigation li ul {
  padding-block: 0.2rem 0.45rem;
  background: rgb(73 22 7 / 32%);
}

.site-navigation li ul a {
  padding: 0.4rem 1rem 0.4rem 2rem;
  color: #f4ded5;
  font-size: 0.76rem;
}

.site-navigation .has-children > a::after {
  content: "›";
  float: right;
  margin-left: 0.5rem;
}

.site-column {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.site-header {
  min-height: 8.4375rem;
  background: #1f120e;
}

.site-banner {
  display: flex;
  align-items: flex-end;
  min-height: 8.4375rem;
  padding: 1.1rem 2.2rem;
  color: white;
  background-image:
    linear-gradient(90deg, rgb(0 0 0 / 5%), rgb(0 0 0 / 20%)),
    url("../images/legacy-header.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  text-decoration: none;
}

.site-banner:hover {
  color: white;
}

.site-banner span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 3.5vw, 2rem);
  line-height: 1.1;
  text-shadow: 0 1px 4px rgb(0 0 0 / 90%);
}

main {
  flex: 1;
  min-width: 0;
  background: var(--color-paper);
}

.content-shell {
  width: 100%;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.75rem);
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.9rem;
  color: white;
  background: #111;
  transform: translateY(-160%);
}

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

.hero {
  border-bottom: 1px solid var(--color-border);
}

.hero-inner {
  padding-block: var(--space-xl);
}

.hero-copy,
.section-heading,
.page-header,
.prose {
  max-width: var(--prose-width);
}

.eyebrow {
  color: var(--color-green);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.introduction {
  color: #474747;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: var(--space-lg);
}

.button {
  display: inline-block;
  padding: 0.6rem 0.85rem;
  color: white;
  font-weight: 700;
  background: var(--color-rail);
  border: 1px solid var(--color-rail-dark);
  border-radius: 0;
  text-decoration: none;
}

.button:hover {
  color: white;
  background: var(--color-green);
  border-color: #10581a;
}

.button-secondary {
  color: var(--color-rail);
  background: white;
}

.button-secondary:hover {
  color: white;
}

.section {
  padding-block: var(--space-xl);
}

.section-heading {
  margin-bottom: var(--space-lg);
}

.card-grid {
  display: grid;
  gap: 0;
  max-width: var(--prose-width);
  border-top: 1px solid var(--color-border);
}

.card {
  min-width: 0;
  padding: 1.15rem 0;
  color: inherit;
  border-bottom: 1px solid var(--color-border);
  text-decoration: none;
}

.card:hover h2 {
  color: var(--color-green);
}

.card h2 {
  margin: 0;
  font-size: 1.35rem;
  overflow-wrap: anywhere;
}

.card p {
  margin-top: 0.4rem;
  color: var(--color-muted);
}

.breadcrumbs {
  padding-top: 1rem;
  color: var(--color-muted);
  font-size: 0.75rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0;
  list-style: none;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 0.35rem;
  color: #999;
}

.page-header {
  padding-top: var(--space-lg);
}

.prose {
  padding-bottom: var(--space-xl);
}

.prose li + li {
  margin-top: 0.45rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  padding-block: var(--space-lg) var(--space-xl);
}

.gallery figure {
  margin: 0;
  background: var(--color-soft);
  border: 1px solid var(--color-border);
}

.gallery figure > a,
.figure-grid figure > a,
.prose > figure > a {
  display: block;
}

.gallery img {
  width: 100%;
  background: #e5e1dc;
}

.gallery figcaption {
  padding: 0.55rem;
  color: var(--color-muted);
  font-size: 0.75rem;
}

.lightbox {
  width: min(96vw, 90rem);
  max-width: none;
  height: min(94vh, 70rem);
  max-height: none;
  padding: 0;
  color: white;
  background: #1d1714;
  border: 1px solid rgb(255 255 255 / 30%);
}

.lightbox::backdrop {
  background: rgb(0 0 0 / 82%);
}

.lightbox-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0.75rem;
  height: 100%;
  padding: 0.75rem;
}

.lightbox-close {
  grid-column: 1 / -1;
  justify-self: end;
}

.lightbox-previous,
.lightbox-next {
  align-self: center;
}

.lightbox button {
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  color: white;
  font: inherit;
  background: rgb(255 255 255 / 12%);
  border: 1px solid rgb(255 255 255 / 55%);
  border-radius: 0;
}

.lightbox figure {
  min-width: 0;
  min-height: 0;
  margin: 0;
}

.lightbox-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.document-image {
  border: 1px solid var(--color-border);
}

.document-button {
  color: white;
  background: var(--color-rail);
  border-color: var(--color-rail-dark);
}

.figure-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-block: var(--space-lg);
}

.figure-grid figure,
.prose > figure {
  margin: 0;
}

.figure-grid img,
.prose > figure img {
  width: 100%;
  background: var(--color-soft);
  border: 1px solid var(--color-border);
}

.figure-grid figcaption,
.prose > figure figcaption {
  margin-top: 0.4rem;
  color: var(--color-muted);
  font-size: 0.75rem;
}

.source-note {
  padding-top: var(--space-md);
  color: var(--color-muted);
  font-size: 0.72rem;
  border-top: 1px solid var(--color-border);
}

.notice {
  padding: var(--space-md);
  background: #edf3e9;
  border-left: 0.3rem solid var(--color-green);
}

.notice h2 {
  margin-top: 0;
  font-size: 1.25rem;
}

.notice-warning {
  background: #f8ecd2;
  border-left-color: #a56316;
}

.people-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--color-border);
}

.people-list section {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border);
}

.people-list h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0;
  font-size: 1.2rem;
}

.role-badge {
  display: inline-block;
  padding: 0.18rem 0.4rem;
  color: var(--color-green);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #edf3e9;
  border: 1px solid #bdcdb9;
}

.link-list {
  display: grid;
  gap: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--color-border);
}

.link-list li {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border);
}

.link-list a {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
}

.link-list p {
  margin-top: 0.3rem;
  color: var(--color-muted);
}

.site-footer {
  padding: 1.4rem clamp(1.25rem, 5vw, 2.75rem);
  color: #6e625d;
  font-size: 0.75rem;
  background: #f3f0ec;
  border-top: 1px solid var(--color-border);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-md);
}

.site-footer a {
  color: #5c301f;
}

@media (min-width: 48rem) {
  .site-navigation > ul > li {
    position: relative;
  }

  .site-navigation li ul {
    position: absolute;
    z-index: 20;
    top: -1px;
    left: 100%;
    display: none;
    width: 13rem;
    padding-block: 0.25rem;
    background: var(--color-green);
    border: 1px solid #10581a;
  }

  .site-navigation li:hover > ul,
  .site-navigation li:focus-within > ul {
    display: block;
  }

  .site-navigation li ul a {
    padding: 0.48rem 0.8rem;
    color: white;
  }

  .site-navigation li ul a:hover,
  .site-navigation li ul a:focus-visible,
  .site-navigation li ul a[aria-current="page"] {
    background: #10581a;
  }
}

@media (max-width: 47.99rem) {
  :root {
    background-image: none;
  }

  .site-frame {
    display: block;
    width: 100%;
    box-shadow: none;
  }

  .sidebar-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 1rem;
  }

  .menu-button {
    display: block;
  }

  .site-navigation {
    display: none;
  }

  .site-navigation.is-open {
    display: block;
  }

  .site-navigation li ul {
    padding-bottom: 0.35rem;
  }

  .site-header,
  .site-banner {
    min-height: 7rem;
  }

  .site-banner {
    padding: 1rem 1.25rem;
  }
}

@media (max-width: 34rem) {
  .gallery,
  .figure-grid {
    grid-template-columns: 1fr;
  }

  .lightbox-inner {
    grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem;
  }
}

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