:root {
  --roman-red: #b84f4b;
  --roman-red-dark: #943c39;
  --ink: #2d2522;
  --body: #4b5563;
  --sea: #5bbceb;
  --cream: #fbe3b6;
  --page: #f7f5f1;
  --card: #ffffff;
  --line: #e7e1d8;
  --muted: #6b7280;
  --shadow: 0 18px 50px rgba(45, 37, 34, 0.10);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--body);
  background: var(--page);
  line-height: 1.7;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}


.topbar-inner {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.top-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.top-nav a {
  text-decoration: none;
  opacity: 0.86;
}

.top-nav a:hover {
  opacity: 1;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
	radial-gradient(circle at 85% 20%, rgba(91, 188, 235, 0.18), transparent 30%),
	linear-gradient(135deg, #fff8ea 0%, var(--cream) 100%);
  border-bottom: 1px solid rgba(148, 60, 57, 0.12);
}

.hero::before {
  content: "";
  position: absolute;
  right: 4vw;
  bottom: -45px;
  font-family: 'Open Sans', Georgia, "Times New Roman", serif;
  font-size: clamp(110px, 18vw, 260px);
  font-weight: 700;
  color: rgba(184, 79, 75, 0.07);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  padding: 28px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(184, 79, 75, 0.10);
  color: var(--roman-red-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  line-height: 1.2;
}

h1 {
  margin: 18px 0 18px;
  font-size: clamp(40px, 6vw, 72px);
  max-width: 900px;
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 44px);
}

h3 {
  font-size: 24px;
  margin: 0 0 10px;
}

.lead {
  font-size: 19px;
  max-width: 720px;
  color: #5d4c43;
  margin: 0 0 26px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  background: rgba(255,255,255,0.68);
  border: 1px solid rgba(148, 60, 57, 0.18);
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 700;
  color: #69413f;
}

.hero-note {
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(148, 60, 57, 0.16);
  backdrop-filter: blur(8px);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: 0 14px 35px rgba(148, 60, 57, 0.10);
}

.hero-note strong {
  display: block;
  color: var(--roman-red-dark);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hero-note p {
  margin: 0;
  font-size: 16px;
}

main {
  padding: 52px 0 80px;
}

.map-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: #fffdf9;
}

.map-toolbar-title {
  font-weight: 800;
  color: var(--ink);
}

.toolbar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #fff;
  background: var(--roman-red);
  box-shadow: 0 8px 20px rgba(184, 79, 75, 0.22);
}

.button-primary:hover {
  background: var(--roman-red-dark);
}

.button-secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.map-stage {
  background: #e7f4fa;
  overflow: auto;
  touch-action: pan-x pan-y;
}

.map-stage img {
  width: 100%;
  min-width: 760px;
  height: auto;
}

.map-caption {
  padding: 16px 20px 20px;
  font-size: 14px;
  color: var(--muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 24px 0 58px;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--roman-red);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 10px 28px rgba(45, 37, 34, 0.06);
}

.stat-label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 800;
  margin-bottom: 6px;
}

.stat-value {
  color: var(--ink);
  font-size: 21px;
  font-weight: 900;
}

.section {
  margin-top: 68px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.two-column {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 28px;
  align-items: start;
}

.content-card,
.side-card,
.legend-card,
.countries-card,
.timeline-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}

.content-card p:first-of-type {
  margin-top: 0;
}

.side-card {
  position: sticky;
  top: 20px;
  background: #fffaf2;
}

.highlight-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}



.highlight-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 12px;
  background: rgba(184, 79, 75, 0.06);
  color: var(--ink);
  font-weight: 700;
}

.highlight-list li::before {
  content: "•";
  color: var(--roman-red);
  font-size: 24px;
  line-height: 0;
}

.legend-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.legend-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: #fff;
}

.swatch {
  width: 38px;
  height: 18px;
  border-radius: 6px;
  margin-bottom: 10px;
  border: 1px solid rgba(0,0,0,0.08);
}

.swatch.red { background: var(--roman-red); }
.swatch.cream { background: var(--cream); }
.swatch.blue { background: var(--sea); }
.swatch.black { background: #111827; width: 18px; border-radius: 50%; }

.legend-item strong {
  display: block;
  color: var(--ink);
  margin-bottom: 4px;
}

.legend-item span {
  font-size: 14px;
  color: var(--muted);
}

.accordion {
  display: grid;
  gap: 12px;
}

details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 22px;
  color: var(--ink);
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(184, 79, 75, 0.10);
  color: var(--roman-red-dark);
  font-size: 20px;
}

details[open] summary::after {
  content: "-";
}

.accordion-content {
  padding: 0 22px 22px;
  color: var(--body);
}

.country-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.country-tag {
  padding: 9px 12px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  font-size: 14px;
  font-weight: 700;
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 10px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 6%;
  right: 6%;
  height: 3px;
  background: linear-gradient(90deg, var(--roman-red), #d69b68);
  z-index: 0;
}

.timeline-item {
  position: relative;
  z-index: 1;
  text-align: center;
}

.timeline-dot {
  width: 38px;
  height: 38px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--roman-red);
  border: 6px solid #f8eceb;
  box-shadow: 0 0 0 1px rgba(184,79,75,.25);
}

.timeline-year {
  color: var(--roman-red-dark);
  font-weight: 900;
  margin-bottom: 5px;
}

.timeline-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.related-card {
  display: block;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(45,37,34,.10);
}

.related-image {
  aspect-ratio: 16/10;
  display: grid;
  place-items: center;
  background:
	linear-gradient(135deg, rgba(91,188,235,.80), rgba(251,227,182,.92));
  color: var(--roman-red-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  font-weight: 700;
}

.related-content {
  padding: 18px;
}

.related-content strong {
  display: block;
  color: var(--ink);
  margin-bottom: 6px;
}

.related-content span {
  font-size: 14px;
  color: var(--muted);
}

footer {
  background: var(--ink);
  color: rgba(255,255,255,.78);
  padding: 34px 0;
  margin-top: 80px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-inner a {
  color: #fff;
  text-decoration: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(17,24,39,.88);
}

.modal.is-open {
  display: grid;
}

.modal-panel {
  position: relative;
  width: min(1500px, 100%);
  max-height: 94vh;
  overflow: auto;
  border-radius: 16px;
  background: #fff;
}

.modal-panel img {
  width: 100%;
  min-width: 900px;
}

.modal-close {
  position: sticky;
  top: 14px;
  float: right;
  z-index: 2;
  margin: 14px 14px -58px 0;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(17,24,39,.90);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

@media (max-width: 980px) {
  .hero-grid,
  .two-column {
	grid-template-columns: 1fr;
  }

  .stats,
  .legend-grid {
	grid-template-columns: repeat(2, 1fr);
  }

  .related-grid {
	grid-template-columns: repeat(2, 1fr);
  }

  .side-card {
	position: static;
  }

  .timeline {
	grid-template-columns: repeat(3, 1fr);
	gap: 28px 16px;
  }

  .timeline::before {
	display: none;
  }
}

@media (max-width: 680px) {
  .top-nav {
	display: none;
  }

  .hero-inner {
	padding-bottom: 44px;
  }

  h1 {
	font-size: 42px;
  }

  .lead {
	font-size: 17px;
  }

  .map-toolbar {
	align-items: flex-start;
	flex-direction: column;
  }

  .toolbar-actions,
  .button {
	width: 100%;
  }

  .stats,
  .legend-grid,
  .related-grid,
  .timeline {
	grid-template-columns: 1fr;
  }

  .content-card,
  .side-card,
  .legend-card,
  .countries-card,
  .timeline-card {
	padding: 22px;
  }

  .map-stage img {
	min-width: 720px;
  }

  .footer-inner {
	align-items: flex-start;
	flex-direction: column;
  }
}