:root {
  --navy: #0b1829;
  --navy-2: #12263d;
  --raf: #1e4d8c;
  --gold: #b8953a;
  --gold-soft: #e6d5a3;
  --paper: #f4efe6;
  --paper-2: #ebe4d6;
  --surface: #fffbf4;
  --ink: #161410;
  --muted: #5c564c;
  --line: #d9d0c0;
  --max: 1120px;
  --wide: 1240px;
  --display: "EB Garamond", "Times New Roman", serif;
  --sans: "IBM Plex Sans", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background:
    linear-gradient(180deg, #ece6d8 0%, var(--paper) 18%, var(--paper-2) 100%);
  line-height: 1.7;
}

a { color: var(--raf); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }

.wrap { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }
.wrap-wide { width: min(var(--wide), calc(100% - 2rem)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  overflow: visible;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 24, 41, 0.96);
  border-bottom: 1px solid rgba(184, 149, 58, 0.35);
  backdrop-filter: blur(10px);
  pointer-events: none;
}
.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: #f4efe6;
}
.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 4px;
  display: block;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  font-family: var(--display);
}
.brand-text strong {
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.brand-text span {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
  font-weight: 500;
}

.nav { display: flex; gap: 0.35rem 1.05rem; align-items: center; flex-wrap: wrap; }
.nav a, .nav-parent {
  font-family: var(--sans);
  color: #c9d3df;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.nav a:hover, .nav a[aria-current="page"], .nav-parent:hover, .nav-parent[aria-current="page"] { color: #fff; }
.nav-toggle {
  display: none;
  border: 1px solid rgba(184, 149, 58, 0.45);
  background: transparent;
  color: var(--gold-soft);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-weight: 600;
}
.has-sub {
  position: relative;
  display: flex;
  align-items: center;
  align-self: stretch;
}
.has-sub > .nav-parent {
  display: inline-flex;
  align-items: center;
  align-self: stretch;
}
.subnav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 16rem;
  padding: 0.55rem 0 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  z-index: 50;
}
.subnav a {
  display: block;
  padding: 0.4rem 0.95rem;
  color: #d7e0ea;
  white-space: nowrap;
  background: #12263d;
  border-left: 1px solid rgba(184, 149, 58, 0.28);
  border-right: 1px solid rgba(184, 149, 58, 0.28);
}
.subnav a:first-child { border-top: 1px solid rgba(184, 149, 58, 0.28); }
.subnav a:last-child {
  border-bottom: 1px solid rgba(184, 149, 58, 0.28);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}
.subnav a:hover { background: #1a3354; color: #fff; }
.has-sub:hover .subnav,
.has-sub:focus-within .subnav,
.has-sub.is-open .subnav { display: block; }

.hero {
  position: relative;
  color: #f7f2e7;
  min-height: 34rem;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #0b1829;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11,24,41,0.88) 0%, rgba(11,24,41,0.55) 48%, rgba(11,24,41,0.25) 100%),
    linear-gradient(180deg, rgba(11,24,41,0.15) 0%, rgba(11,24,41,0.72) 100%);
}
.hero-copy {
  position: relative;
  z-index: 1;
  padding: 5.5rem 0 3.4rem;
  max-width: 40rem;
}
.eyebrow {
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
  font-weight: 600;
  margin: 0 0 0.85rem;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5.4vw, 4.1rem);
  line-height: 1.05;
  font-weight: 600;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}
.hero p { margin: 0 0 1.6rem; color: #d9e0e8; font-size: 1.08rem; max-width: 48ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.photo-credit {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0.35rem 0 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.25rem;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: #d0ae55; color: var(--navy); }
.btn-ghost {
  background: transparent;
  color: #f4efe6;
  border-color: rgba(244, 239, 230, 0.35);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); color: #fff; }
.btn-navy { background: var(--navy); color: #f4efe6; }
.btn-navy:hover { background: var(--navy-2); color: #fff; }

.section { padding: 3.6rem 0; }
.section h2 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  margin: 0 0 0.7rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.kicker {
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 0.45rem;
}
.lead { color: var(--muted); max-width: 66ch; margin: 0 0 1.6rem; font-size: 1.05rem; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 28px rgba(11, 24, 41, 0.04);
}
.card:hover { border-color: #c9b57a; box-shadow: 0 14px 32px rgba(11, 24, 41, 0.08); }
.card img {
  width: 100%;
  height: 11rem;
  object-fit: cover;
  display: block;
  background: var(--navy);
}
.card-body { padding: 1.15rem 1.2rem 1.3rem; }
.card h3 {
  font-family: var(--display);
  font-size: 1.35rem;
  margin: 0 0 0.4rem;
  font-weight: 600;
  color: var(--navy);
}
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  background: var(--navy);
  color: #f4efe6;
  padding: 1.8rem 1.5rem;
}
.stat dt {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin: 0 0 0.25rem;
}
.stat dd {
  margin: 0;
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 600;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  padding: 1.5rem 1.55rem;
}
.note {
  margin-top: 1.6rem;
  padding: 1.1rem 1.2rem;
  background: #eef2f7;
  border-left: 3px solid var(--raf);
  color: #334155;
  font-size: 0.95rem;
}
.note p { margin: 0; }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.timeline strong { color: var(--raf); font-variant-numeric: tabular-nums; }

.topic-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.topic-list a {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.05rem 1.2rem;
  text-decoration: none;
  color: inherit;
}
.topic-list a:hover { border-color: #c9b57a; }
.topic-list strong {
  display: block;
  font-family: var(--display);
  font-size: 1.22rem;
  color: var(--navy);
  margin-bottom: 0.15rem;
}
.topic-list span { color: var(--muted); font-size: 0.95rem; }

.prose { max-width: 72ch; }
.prose h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.12;
  margin: 0 0 0.55rem;
  font-weight: 600;
}
.prose h2 {
  font-family: var(--display);
  margin-top: 2.2rem;
  font-size: 1.55rem;
}
.prose h3 {
  font-family: var(--display);
  margin-top: 1.6rem;
  font-size: 1.22rem;
}
.prose .meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 1.4rem;
}
.breadcrumb {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.85rem;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--raf); }
.prose figure {
  margin: 1.35rem 0 1.5rem;
}
.prose figure img,
.inline-media img,
.media-band img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 420px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--navy-2);
}
.prose figcaption, .media-band + .photo-credit {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.4rem;
}
.media-band { margin: 0 0 0.4rem; }
.spec {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0 1.6rem;
  font-size: 0.95rem;
}
.spec th, .spec td {
  text-align: left;
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.spec th { width: 38%; color: var(--navy); font-weight: 600; background: rgba(11,24,41,0.03); }

.related {
  margin-top: 2.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
.related h2 { margin-top: 0; }
.related ul { padding-left: 1.15rem; }

.page-hero {
  background: var(--navy);
  color: #f4efe6;
  padding: 2.6rem 0 2.2rem;
}
.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 2.9rem);
  margin: 0 0 0.6rem;
  font-weight: 600;
}
.page-hero p { margin: 0; max-width: 62ch; color: #c9d3df; }

.site-footer {
  background: var(--navy);
  color: #b7c2cf;
  padding: 2.4rem 0 2.2rem;
  font-size: 0.9rem;
  margin-top: 1rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.4rem;
  margin-bottom: 1.4rem;
}
.site-footer strong { color: #f4efe6; font-family: var(--display); font-size: 1.15rem; }
.site-footer a { color: var(--gold-soft); }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0.4rem 0 0; }
.site-footer li { margin: 0.2rem 0; }
.disclaimer { max-width: 85ch; margin: 0; color: #8b97a6; font-size: 0.82rem; }

@media (max-width: 920px) {
  .card-grid, .stat-row, .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 1rem;
  }
  .nav.is-open { display: flex; }
  .header-inner { flex-wrap: wrap; }
  .has-sub { width: 100%; display: block; align-self: auto; }
  .subnav {
    position: static;
    display: none;
    padding: 0.2rem 0 0.2rem 0.8rem;
    background: transparent;
    box-shadow: none;
    border: 0;
  }
  .subnav a,
  .subnav a:first-child,
  .subnav a:last-child {
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .has-sub.is-open .subnav { display: block; }
  .hero { min-height: 28rem; }
}
@media (max-width: 640px) {
  .card-grid, .stat-row, .footer-grid { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 0.15rem; }
}
