:root {
  --stone: #e7e2d6;
  --stone-deep: #d9d2c0;
  --ink: #211d1a;
  --ink-soft: #4a453e;
  --malachite: #1f6f54;
  --malachite-deep: #123f30;
  --rust: #a6491f;
  --rust-deep: #6e2f13;
  --gold: #ad8a2e;
  --slate: #2b3a55;
  --line: rgba(33, 29, 26, 0.16);
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --sans: -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}

a { color: inherit; }

img, svg { display: block; max-width: 100%; }

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Header / nav ---------- */

header.site-head {
  border-bottom: 1px solid var(--line);
  background: var(--stone);
  position: sticky;
  top: 0;
  z-index: 20;
}

.head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  max-width: 1040px;
  margin: 0 auto;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  white-space: nowrap;
}

.brand svg { width: 26px; height: 20px; flex: none; }

nav.main-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

nav.main-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 3px;
  transition: color 0.15s ease, background 0.15s ease;
}

nav.main-nav a:hover { color: var(--ink); background: var(--stone-deep); }

nav.main-nav a.active {
  color: var(--malachite-deep);
  font-weight: 600;
}

nav.main-nav a:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ---------- Ridge divider (mountain silhouette) ---------- */

.ridge {
  width: 100%;
  height: 34px;
  display: block;
}
.ridge path { fill: none; stroke: var(--line); stroke-width: 1.5; }

/* ---------- Generic sections ---------- */

main { padding-bottom: 40px; }

section.block {
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}
section.block:last-of-type { border-bottom: none; }

.kicker {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-soft);
  margin: 0 0 6px;
  font-size: 1rem;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 700;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h2 { font-size: 1.9rem; max-width: 22ch; }
h3 { font-size: 1.25rem; }

p { max-width: 66ch; margin: 0 0 1em; color: var(--ink-soft); }
p.lede { font-size: 1.15rem; color: var(--ink); max-width: 60ch; }

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: 48px;
  align-items: start;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
}

.card {
  background: var(--stone);
  padding: 26px 24px;
}

.card h3 { margin-bottom: 8px; }
.card .tag {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--malachite-deep);
  border: 1px solid var(--malachite-deep);
  padding: 2px 8px;
  border-radius: 2px;
  margin-bottom: 12px;
}
.card p { margin: 0; font-size: 0.96rem; }

/* ---------- Timeline (history page: content genuinely sequential) ---------- */

.timeline { position: relative; margin-top: 32px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 74px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--line);
}
.tl-item {
  position: relative;
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 28px;
  padding: 22px 0;
}
.tl-year {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--rust-deep);
  text-align: right;
  padding-top: 2px;
}
.tl-item::after {
  content: "";
  position: absolute;
  left: 70px;
  top: 26px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--stone);
}
.tl-body h3 { margin-bottom: 4px; }
.tl-body p { margin: 0; font-size: 0.96rem; }

/* ---------- Stat strip ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 28px;
  margin-top: 8px;
}
.stat .num {
  font-family: var(--serif);
  font-size: 2.1rem;
  color: var(--malachite-deep);
  line-height: 1;
}
.stat .label { font-size: 0.9rem; color: var(--ink-soft); margin-top: 6px; }

/* ---------- Footer ---------- */

footer.site-foot {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
footer.site-foot .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Hero variants ---------- */

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 62vh;
  position: relative;
}
.hero-half {
  display: flex;
  align-items: flex-end;
  padding: 40px;
  color: #efe9da;
}
.hero-half.europe { background: var(--slate); }
.hero-half.asia { background: var(--rust-deep); }
.hero-half span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  opacity: 0.85;
}
.hero-seam {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gold);
  transform: translateX(-50%);
}
.hero-title {
  position: absolute;
  left: 50%;
  top: 44%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  width: min(90%, 620px);
}
.hero-title h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: 10px;
  text-shadow: 0 2px 18px rgba(0,0,0,0.35);
}
.hero-title p {
  color: #f1ede2;
  margin: 0 auto;
  font-size: 1.05rem;
}

.page-hero {
  padding: 64px 0 20px;
  border-bottom: 1px solid var(--line);
}
.page-hero .kicker { margin-bottom: 10px; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); max-width: 18ch; }
.page-hero p.lede { margin-top: 14px; }

/* ---------- responsive ---------- */

@media (max-width: 760px) {
  .two-col { grid-template-columns: 1fr; gap: 28px; }
  .hero-split { grid-template-columns: 1fr; min-height: 74vh; }
  .head-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .timeline::before { left: 54px; }
  .tl-item { grid-template-columns: 54px 1fr; gap: 18px; }
  .tl-item::after { left: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
