:root {
  --forest: #173c2b;
  --forest-deep: #0d2b1e;
  --moss: #71845b;
  --fern: #aab999;
  --cream: #f2efe5;
  --paper: #faf8f1;
  --ink: #1a211c;
  --muted: #657068;
  --line: rgba(23, 60, 43, .18);
  --rust: #a44f31;
  --serif: "Newsreader", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.skip-link {
  position: fixed;
  z-index: 100;
  left: 1rem;
  top: -4rem;
  padding: .8rem 1rem;
  background: var(--paper);
  color: var(--forest);
  font-weight: 700;
}
.skip-link:focus { top: 1rem; }

.site-header {
  min-height: 92px;
  padding: 0 clamp(1.5rem, 5vw, 5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  text-decoration: none;
}
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: var(--cream);
  font: 500 1.6rem/1 var(--serif);
}
.brand > span:last-child { display: grid; line-height: 1.1; }
.brand strong { font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; }
.brand small { margin-top: .28rem; color: var(--muted); font-size: .68rem; }
.site-header nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.5rem); }
.site-header nav a {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-decoration: none;
  text-transform: uppercase;
}
.site-header nav a:hover { color: var(--rust); }
.site-header .nav-cta {
  padding: .85rem 1.15rem;
  color: var(--paper);
  background: var(--forest);
}
.site-header .nav-cta:hover { color: white; background: var(--rust); }

.hero {
  min-height: calc(100vh - 92px);
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr);
  background: var(--cream);
}
.hero-copy {
  padding: clamp(4rem, 8vw, 8rem) clamp(2rem, 7vw, 7rem);
  align-self: center;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin: 0 0 1.8rem;
  color: var(--rust);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow span { display: inline-block; width: 32px; height: 1px; background: currentColor; }
.eyebrow.light { color: var(--fern); }
.hero h1,
.archive-intro h2,
.context h2,
.reader-aside h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  line-height: .92;
  letter-spacing: -.04em;
}
.hero h1 { max-width: 800px; font-size: clamp(4rem, 7.3vw, 8.1rem); }
.hero h1 em,
.context h2 em { color: var(--moss); font-weight: 400; }
.hero blockquote {
  max-width: 700px;
  margin: clamp(2.5rem, 5vw, 4.5rem) 0 2.5rem;
  padding: 0 0 0 1.5rem;
  border-left: 1px solid var(--moss);
  color: #39463e;
}
.hero blockquote p { margin: 0 0 1rem; font: 400 clamp(1rem, 1.25vw, 1.18rem)/1.7 var(--serif); }
.hero blockquote footer { display: grid; margin-top: 1.5rem; font-size: .76rem; letter-spacing: .04em; }
.hero blockquote footer span { margin-top: .2rem; color: var(--muted); }
.text-link,
.source-link,
.back-link {
  display: inline-flex;
  gap: .8rem;
  align-items: center;
  color: var(--forest);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}
.text-link { border-bottom: 1px solid currentColor; padding-bottom: .35rem; }
.text-link:hover,
.source-link:hover,
.back-link:hover { color: var(--rust); }
.hero-image {
  position: relative;
  margin: 0;
  min-height: 660px;
  overflow: hidden;
  background: var(--forest-deep);
}
.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 28, 17, .06), rgba(4, 28, 17, .58));
  pointer-events: none;
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.66) contrast(1.03); }
.hero-image figcaption {
  position: absolute;
  z-index: 1;
  left: clamp(1.5rem, 4vw, 3rem);
  right: clamp(1.5rem, 4vw, 3rem);
  bottom: 2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(255,255,255,.85);
  font-size: .68rem;
  letter-spacing: .04em;
}

.archive-intro {
  padding: clamp(5rem, 10vw, 9rem) clamp(2rem, 7vw, 7rem);
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(3rem, 8vw, 8rem);
  color: var(--cream);
  background: var(--forest-deep);
}
.archive-intro h2 { font-size: clamp(3rem, 5.5vw, 6rem); }
.archive-intro > p {
  max-width: 560px;
  margin: auto 0 0;
  color: rgba(242,239,229,.68);
  font: 400 clamp(1.1rem, 1.5vw, 1.35rem)/1.7 var(--serif);
}
.collection-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  background: var(--forest-deep);
  border-top: 1px solid rgba(255,255,255,.16);
}
.collection-card {
  min-height: 470px;
  padding: clamp(2rem, 4vw, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--cream);
  text-decoration: none;
  border-right: 1px solid rgba(255,255,255,.16);
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.collection-card:last-child { border-right: 0; }
.collection-card:hover { color: var(--forest-deep); background: var(--fern); }
.card-featured { background: var(--forest); }
.card-number { font: 400 1rem/1 var(--serif); opacity: .55; }
.card-kicker { margin: 0 0 1.1rem; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .65; }
.collection-card h3 { margin: 0 0 1.25rem; font: 500 clamp(2.3rem, 3.6vw, 4rem)/.98 var(--serif); letter-spacing: -.03em; }
.collection-card p:last-child { max-width: 420px; margin: 0; font-size: .88rem; line-height: 1.65; opacity: .68; }
.card-arrow { align-self: flex-end; font-size: 1.6rem; font-weight: 300; }

.context {
  padding: clamp(6rem, 11vw, 10rem) clamp(2rem, 7vw, 7rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 9vw, 9rem);
}
.context h2 { font-size: clamp(3rem, 5.5vw, 6rem); }
.context-body > p { max-width: 600px; margin: 0; color: var(--muted); font: 400 clamp(1.1rem, 1.6vw, 1.35rem)/1.75 var(--serif); }
.context-facts { margin-top: 4rem; padding-top: 2rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; border-top: 1px solid var(--line); }
.context-facts div { display: grid; gap: .45rem; }
.context-facts strong { color: var(--forest); font: 500 1.5rem/1 var(--serif); }
.context-facts span { color: var(--muted); font-size: .68rem; letter-spacing: .05em; text-transform: uppercase; }

.site-footer {
  min-height: 180px;
  padding: 3rem clamp(2rem, 7vw, 7rem);
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 3rem;
  color: rgba(242,239,229,.7);
  background: var(--forest-deep);
  font-size: .72rem;
}
.site-footer strong { color: var(--cream); font-size: .84rem; letter-spacing: .08em; text-transform: uppercase; }
.site-footer p { margin: .4rem 0 0; }
.site-footer > p { margin: 0; }
.site-footer a { text-underline-offset: .25rem; }
.site-footer a:hover { color: white; }

/* Archive reader */
.reader-page { background: var(--cream); }
.reader-header { position: sticky; z-index: 20; top: 0; box-shadow: 0 8px 30px rgba(13,43,30,.06); }
.reader-header nav a[aria-current="page"] { color: var(--rust); }
.reader-shell {
  display: grid;
  grid-template-columns: minmax(280px, 32vw) minmax(0, 1fr);
  align-items: start;
}
.reader-aside {
  position: sticky;
  top: 92px;
  min-height: calc(100vh - 92px);
  padding: clamp(3rem, 6vw, 6rem) clamp(2rem, 5vw, 5rem);
  color: var(--cream);
  background: var(--forest-deep);
}
.reader-aside .back-link { margin-bottom: clamp(4rem, 8vh, 7rem); color: var(--fern); }
.reader-aside .eyebrow { color: var(--fern); }
.reader-aside h1 { font-size: clamp(1rem, 3vw, 3.7rem); }
.reader-aside > p:not(.eyebrow) { margin: 2rem 0; color: rgba(242,239,229,.65); font: 400 1.08rem/1.6 var(--serif); }
.reader-meta { margin: 3rem 0; padding: 1.3rem 0; display: grid; grid-template-columns: 1fr auto; gap: .75rem 1rem; border-block: 1px solid rgba(255,255,255,.15); font-size: .7rem; letter-spacing: .05em; text-transform: uppercase; }
.reader-meta span { color: rgba(242,239,229,.5); }
.reader-meta strong { color: var(--fern); }
.reader-aside .source-link { color: var(--cream); }
.archive-document {
  width: min(100%, 980px);
  min-height: 100vh;
  padding: clamp(3rem, 8vw, 8rem) clamp(2rem, 8vw, 7rem);
  color: #252c27;
  background: var(--paper);
}
.archive-document > .archive-notice {
  margin: 0 0 3.5rem;
  padding: 1rem 1.2rem;
  color: #536058;
  background: #eeeadc;
  border-left: 3px solid var(--moss);
  font-size: .75rem;
  line-height: 1.6;
}
.archive-document .legacy-content {
  font: 400 1.08rem/1.74 var(--serif);
  overflow-wrap: anywhere;
}
.archive-document .legacy-content > center:first-child,
.archive-document .legacy-content > div:first-child { margin-top: 0; }
.archive-document h1,
.archive-document h2,
.archive-document h3,
.archive-document h4,
.archive-document font[size="5"] {
  color: var(--forest);
  font-family: var(--serif);
  line-height: 1.08;
  letter-spacing: -.02em;
}
.archive-document h1 { font-size: 3.3rem; }
.archive-document h2,
.archive-document font[size="5"] { font-size: 2.35rem !important; }
.archive-document h3 { margin-top: 3rem; font-size: 1.65rem; }
.archive-document p { margin: 0 0 1.3rem; }
.archive-document a { color: #526a42; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.archive-document a:hover { color: var(--rust); }
.archive-document img { display: inline-block; width: auto; height: auto; max-width: 100%; margin: .5rem; }
.archive-document table { max-width: 100% !important; height: auto !important; border-collapse: collapse; }
.archive-document td { max-width: 100%; padding: .45rem; vertical-align: top; }
.archive-document font { color: inherit !important; font-family: inherit; font-size: inherit; }
.archive-document hr { margin: 3rem 0; border: 0; border-top: 1px solid var(--line); }
.loading-state { min-height: 50vh; display: flex; justify-content: center; align-items: center; gap: .4rem; color: var(--muted); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.loading-state span { width: 6px; height: 6px; border-radius: 50%; background: var(--moss); animation: pulse 1s infinite alternate; }
.loading-state span:nth-child(2) { animation-delay: .2s; }
.loading-state span:nth-child(3) { margin-right: .5rem; animation-delay: .4s; }
.error-state { padding: 2rem; color: #7a2d20; background: #f4dfd7; }
.compact { min-height: 120px; }

@keyframes pulse { to { opacity: .2; transform: translateY(-4px); } }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .site-header { min-height: 78px; }
  .site-header nav a:not(.nav-cta) { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-image { min-height: 70vh; order: -1; }
  .hero-copy { padding-block: 5rem; }
  .archive-intro,
  .context { grid-template-columns: 1fr; }
  .collection-grid { grid-template-columns: 1fr; }
  .collection-card { min-height: 390px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.16); }
  .site-footer { grid-template-columns: 1fr; gap: 1.3rem; }
  .reader-header nav { display: none; }
  .reader-shell { grid-template-columns: 1fr; }
  .reader-aside { position: relative; top: auto; min-height: auto; }
  .reader-aside .back-link { margin-bottom: 3rem; }
  .archive-document { width: 100%; }
}

@media (max-width: 560px) {
  .brand small { display: none; }
  .site-header .nav-cta { padding: .72rem .8rem; font-size: .66rem; }
  .hero h1 { font-size: clamp(2.35rem, 12vw, 4rem); }
  .hero-image { min-height: 58vh; }
  .hero-image figcaption { display: grid; }
  .context-facts { grid-template-columns: 1fr; gap: 1.5rem; }
  .archive-document { padding: 3rem 1.2rem; }
  .archive-document .legacy-content { font-size: 1rem; }
  .archive-document table,
  .archive-document tbody,
  .archive-document tr,
  .archive-document td { display: block; width: 100% !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .loading-state span { animation: none; }
}

@media print {
  .site-header,
  .reader-aside,
  .site-footer,
  .archive-notice { display: none !important; }
  .reader-shell { display: block; }
  .archive-document { width: 100%; max-width: none; padding: 0; }
}

/* Self-contained static collection and direct photo links. */
.photo-details { display: block; margin: .25rem 0 1rem; font: .75rem/1.4 var(--sans); }
.photo-enlarge { cursor: zoom-in; }
.archive-document img { max-width: calc(100% - 1rem); }
.archive-document .legacy-content { min-width: 0; }
.reader-aside h1 { overflow-wrap: anywhere; }
.reveal { opacity: 1; transform: none; }
@media (max-width: 560px) { .archive-document th { display:block; width:100% !important; } }
