/* Frontier Dusk palette — converted from Tailwind/OKLCH design tokens */
:root {
  --background: #000;
  --foreground: #ece2cd;
  --card: #251f17;
  --card-foreground: #ece2cd;
  --muted: #2c241a;
  --muted-foreground: #b3a78f;
  --border: #3a3024;
  --gold: #e6ac45;
  --gold-soft: rgba(214, 177, 84, 0.6);
  --ember: #b25538;
  --parchment: #f2e3c7;
  --rule: #5a4a35;
  --antique-gold: #aa8d2f;
  --secondary: #3a2f22;
  --shadow-deep: 0 30px 60px -20px rgba(0,0,0,0.6);
  --grad-vignette: radial-gradient(ellipse at center, transparent 40%, rgba(15,12,8,0.85) 100%);
  --font-display: "Cormorant Garamond","Playfair Display",Georgia,serif;
  --font-serif: "Lora",Georgia,serif;
  --font-sans: "Inter",system-ui,sans-serif;
  --font-mono: "JetBrains Mono",ui-monospace,monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; border-color: var(--border); }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-serif);
  font-feature-settings: "liga","kern";
  line-height: 1.5;
  min-height: 100vh;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; }
.italic { font-style: italic; }
.gold { color: var(--gold); }
.center { text-align: center; }
.rel { position: relative; }
.order-1 { order: 1; }
.order-2 { order: 2; }
.mt-24 { margin-top: 6rem; }
.mb-12 { margin-bottom: 3rem; }
.my-16 { margin: 4rem auto; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

.rule-gold {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.rule-wide { width: 8rem; margin: 2rem auto 0; }
.rule-sm { width: 6rem; margin: 0.75rem auto 3rem; }

/* Containers */
.container-wide { max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; }
.container-normal { max-width: 64rem; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 48rem; margin: 0 auto; padding: 0 1.5rem; }

/* Topbar */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(28,24,19,0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(58,48,36,0.6);
}
.topbar-inner {
  max-width: 80rem; margin: 0 auto; padding: 1rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.logo-link { display: inline-flex; align-items: center; transition: opacity .2s; }
.logo-link:hover { opacity: 0.8; }
.logo {
  height: 2.5rem; width: auto;
  /* Approximate antique-gold tint */
  filter: brightness(0) saturate(100%) invert(91%) sepia(15%) saturate(450%) hue-rotate(8deg) brightness(98%) contrast(92%);
}
@media (min-width: 768px) { .logo { height: 2.75rem; } }
.nav { display: none; gap: 1.75rem; }
@media (min-width: 768px) { .nav { display: flex; } }
.nav a {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted-foreground);
  transition: color .2s;
}
.nav a:hover { color: var(--foreground); }
.nav a.active { color: var(--gold); }

/* Hero */
.hero {
  position: relative; width: 100%;
  height: 100vh; min-height: 720px;
  overflow: hidden;
}
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 60% 30%;
}
.hero-scrim-multiply { position: absolute; inset: 0; background: rgba(28,24,19,0.2); mix-blend-mode: multiply; }
.hero-scrim-vignette { position: absolute; inset: 0; background: var(--grad-vignette); }
.hero-scrim-h { position: absolute; inset: 0; background: linear-gradient(90deg, var(--background) 0%, rgba(28,24,19,0.85) 30%, transparent 100%); }
.hero-scrim-v { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28,24,19,0.6) 0%, transparent 50%, var(--background) 100%); }
.hero-content {
  position: relative; z-index: 10;
  max-width: 80rem; margin: 0 auto; padding: 0 1.5rem;
  height: 100%; display: flex; flex-direction: column; justify-content: flex-end;
  padding-bottom: 6rem;
}
.hero-inner { max-width: 48rem; }
.hero-title {
  font-family: var(--font-display);
  font-size: 3rem; line-height: 0.95;
  color: var(--parchment); margin: 1.5rem 0;
}
@media (min-width: 768px) { .hero-title { font-size: 4.5rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 6rem; } }
.hero-sub {
  font-family: var(--font-serif);
  font-size: 1.25rem; line-height: 1.6;
  color: rgba(240,230,210,0.85);
  max-width: 36rem;
}
@media (min-width: 768px) { .hero-sub { font-size: 1.5rem; } }
.hero-scroll {
  margin-top: 2.5rem;
  display: flex; align-items: center; gap: 1rem;
  font-family: var(--font-sans);
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.3em;
  color: rgba(214,177,84,0.9);
}
.hero-line { display: block; width: 3rem; height: 1px; background: rgba(214,177,84,0.6); }

/* Sections */
.section { position: relative; padding: 8rem 1.5rem; }
.section-narrow { padding-left: 1.5rem; padding-right: 1.5rem; }
.section-header { text-align: center; margin-bottom: 5rem; }
.section-numeral {
  font-family: var(--font-display);
  font-size: 4.5rem;
  line-height: 1;
  color: color-mix(in oklab,var(--gold) 30%,transparent);
  margin-bottom: 1rem;
}
@media (min-width: 768px) { .section-numeral { font-size: 6rem; } }
.section-title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  color: var(--parchment);
  margin-top: 0.75rem;
}
@media (min-width: 768px) { .section-title { font-size: 3.75rem; } }

/* Prose */
.prose p {
  font-size: 1.125rem; line-height: 1.85;
  color: #ded6c9;
}
.prose p + p { margin-top: 1.25rem; }
.dropcap::first-letter {
  font-family: var(--font-display);
  font-size: 4.5rem; line-height: 0.85;
  float: left; padding: 0.35rem 0.75rem 0 0;
  color: var(--gold); font-weight: 500;
}


/* Video */
.video-block { margin-top: 5rem; }
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--secondary);
  border: 1px solid rgba(214,177,84,0.3);
  box-shadow: var(--shadow-deep);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-caption {
  text-align: center; margin-top: 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ede3d2;
}

/* Divider */
.divider { padding: 0; }
.divider-inner { display: flex; align-items: center; gap: 1.5rem; padding: 1rem 0; }
.divider-line { flex: 1; height: 1px; background: var(--rule); }
.diamond { color: var(--gold); font-size: 1.25rem; }

/* Two-column layouts */
.two-col {
  display: grid; gap: 4rem; align-items: start;
  margin-bottom: 6rem;
}
@media (min-width: 1024px) {
  .two-col-westward { grid-template-columns: 1fr 1.4fr; }
  .two-col-soldiers { grid-template-columns: 1.4fr 1fr; align-items: center; }
}
.two-col figure { margin: 0; }
.bordered-img { border: 2px solid var(--antique-gold); box-shadow: var(--shadow-deep); width: 100%; }
.shadow-deep { box-shadow: var(--shadow-deep); width: 100%; }
figcaption {
  margin-top: 1rem;
  font-size: 0.875rem;
  font-style: italic;
  color: rgba(236,226,205,0.8);
  font-family: var(--font-serif);
}

/* Manuscript grid */
.ms-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .ms-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ms-grid { grid-template-columns: repeat(4, 1fr); } }
.ms-grid-3col { gap: 2rem 2rem; }
@media (min-width: 1024px) { .ms-grid-3col { grid-template-columns: repeat(3, 1fr); gap: 3.5rem 2rem; } }

.ms-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  transition: all .5s;
  color: inherit;
}
.ms-card.has-url:hover {
  border-color: var(--antique-gold);
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.7);
}
.ms-card.no-url { opacity: 0.9; }
.ms-thumb {
  position: relative; overflow: hidden;
  background: #fff; aspect-ratio: 4/5; padding: 0.375rem;
}
.ms-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  opacity: 0.95;
  filter: sepia(10%);
  transition: transform .7s, opacity .7s;
}
.ms-card:hover .ms-thumb img { opacity: 1; transform: scale(1.02); }
.ms-thumb::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(28,24,19,0.7), transparent);
}
.ms-tag {
  position: absolute; top: 0.75rem; left: 0.75rem;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.3em;
  color: rgba(214,177,84,0.85);
  background: rgba(28,24,19,0.6);
  backdrop-filter: blur(4px);
  padding: 0.25rem 0.5rem;
  border: 1px solid rgba(214,177,84,0.3);
  z-index: 1;
}
.ms-body { padding: 1.25rem; border-top: 1px solid var(--border); }
.ms-meta { display: flex; align-items: baseline; gap: 0.75rem; margin-bottom: 0.5rem; }
.ms-num { font-family: var(--font-mono); color: var(--gold); font-size: 0.75rem; }
.ms-eyebrow { font-size: 0.6rem; }
.ms-title {
  font-family: var(--font-display);
  font-size: 1.125rem; line-height: 1.35;
  color: var(--foreground);
  transition: color .2s;
}
.ms-card:hover .ms-title { color: var(--antique-gold); }
.ms-caption { margin-top: 0.75rem; font-size: 0.875rem; font-style: italic; color: var(--muted-foreground); line-height: 1.5; }
.ms-cta {
  margin-top: 1rem;
  font-family: var(--font-sans);
  font-size: 0.75rem; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--antique-gold);
  display: flex; align-items: center; gap: 0.5rem;
}
.ms-cta .arrow { transition: transform .2s; }
.ms-card:hover .ms-cta .arrow { transform: translateX(4px); }
.ms-forthcoming { margin-top: 1rem; font-family: var(--font-sans); font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(179,167,143,0.6); }

/* Pullquote */
.pullquote { max-width: 48rem; margin: 3rem auto; text-align: center; }
.pullquote p {
  font-family: var(--font-display); font-style: italic;
  font-size: 1.875rem; line-height: 1.1; color: var(--gold);
}
@media (min-width: 768px) { .pullquote p { font-size: 3rem; } }
.pullquote footer { margin-top: 1.5rem; font-family: var(--font-sans); font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.25em; color: var(--muted-foreground); }

/* Ill-fated block */
.ill-fated {
  border-left: 2px solid var(--gold);
  padding-left: 1.5rem;
  max-width: 48rem;
  margin: 0 auto 4rem;
}
.ill-fated .eyebrow { margin-bottom: 0.5rem; }
.ill-fated-quote {
  font-family: var(--font-display); font-style: italic;
  font-size: 1.5rem; color: var(--parchment); line-height: 1.4;
}

/* Soldiers section paper texture */
.section-tex { overflow: hidden; }
.paper-tex {
  position: absolute; inset: 0; opacity: 0.3; pointer-events: none;
  background-image:
    radial-gradient(rgba(214,177,84,0.05) 1px, transparent 1px),
    radial-gradient(rgba(178,85,56,0.04) 1px, transparent 1px);
  background-size: 24px 24px, 32px 32px;
  background-position: 0 0, 12px 16px;
}

/* Soldiers two-col image ordering on mobile */
.two-col-soldiers .order-1 { order: 1; }
.two-col-soldiers .order-2 { order: 2; }
@media (min-width: 1024px) {
  .two-col-soldiers .order-1 { order: 2; }
  .two-col-soldiers .order-2 { order: 1; }
}

/* Map figure */
.map-figure { margin: 5rem auto 1rem; max-width: 56rem; }
.map-mount {
  background: #f5efe3;
  padding: 1.5rem;
  border: 1px solid rgba(214,177,84,0.3);
  box-shadow: var(--shadow-deep);
}
@media (min-width: 768px) { .map-mount { padding: 2.5rem; } }
.map-caption {
  margin-top: 1rem;
  text-align: center;
  max-width: 36rem;
  margin-left: auto; margin-right: auto;
}
.map-credit {
  display: block; margin-top: 0.5rem;
  font-style: normal;
  font-family: var(--font-sans);
  letter-spacing: 0.06em;
  font-size: 10px; text-transform: uppercase;
  color: rgba(214,177,84,0.9);
}

/* Legacy poster */
.legacy-poster { margin-bottom: 4rem; }
.legacy-poster img { width: 100%; border: 1px solid rgba(214,177,84,0.2); box-shadow: var(--shadow-deep); }
.legacy-poster figcaption { text-align: center; }

/* CTA cards */
.cta-grid {
  margin-top: 6rem;
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .cta-grid { grid-template-columns: repeat(2, 1fr); } }
.cta-card {
  display: flex; align-items: flex-start; gap: 1.5rem;
  border: 1px solid rgba(214,177,84,0.4);
  background: var(--card);
  padding: 1.5rem;
  transition: all .3s;
}
.cta-card:hover {
  background: var(--secondary);
  border-color: var(--gold);
  box-shadow: var(--shadow-deep);
}
.cta-thumb { flex-shrink: 0; width: 120px; }
.cta-thumb img { width: 100%; height: auto; object-fit: contain; transition: transform .7s; }
.cta-card:hover .cta-thumb img { transform: scale(1.05); }
.cta-body { flex: 1; min-width: 0; }
.cta-body h3 {
  font-family: var(--font-display);
  font-size: 1.5rem; margin-bottom: 0.5rem;
  color: var(--parchment); transition: color .2s;
}
.cta-card:hover .cta-body h3 { color: var(--gold); }
.cta-body .eyebrow { margin-bottom: 0.75rem; }
.cta-desc { color: var(--muted-foreground); margin-bottom: 1rem; line-height: 1.5; font-size: 0.875rem; }
.cta-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--gold);
}
.cta-link .arrow { transition: transform .2s; }
.cta-card:hover .cta-link .arrow { transform: translateX(4px); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); margin-top: 5rem; padding: 3rem 1.5rem; }
.footer-inner {
  display: flex; flex-direction: column; align-items: center; gap: 1.5rem;
  justify-content: space-between;
}
@media (min-width: 768px) { .footer-inner { flex-direction: row; } }
.footer-title { font-family: var(--font-display); font-size: 1.125rem; color: var(--parchment); }
.footer-sub {
  font-family: var(--font-sans); font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--muted-foreground); margin-top: 0.5rem;
}
.footer-link {
  font-family: var(--font-sans); font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--gold); transition: color .2s;
}
.footer-link:hover { color: var(--parchment); }

/* Fade-in animation */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s ease; }
.fade-in.visible { opacity: 1; transform: none; }

.cc-1 {
  margin-bottom: 16px;
}

.cc-2 {
  margin-top: 4rem;
  max-width: 44.6rem;
}