:root {
  --bg: #f4efe4;
  --panel: rgba(252, 249, 242, 0.92);
  --ink: #1d2d2a;
  --muted: #5d6e69;
  --accent: #d2552d;
  --accent-soft: #f3c3a8;
  --line: rgba(29, 45, 42, 0.16);
  --sea: #d8e8ea;
  --land: #355b52;
  --grid: rgba(53, 91, 82, 0.24);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(210, 85, 45, 0.18), transparent 28%),
    radial-gradient(circle at right 20%, rgba(53, 91, 82, 0.15), transparent 24%),
    linear-gradient(180deg, #fbf7ef 0%, var(--bg) 100%);
}

.layout {
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 56px;
}

.hero,
.map-card,
.notes {
  backdrop-filter: blur(10px);
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 18px 60px rgba(44, 55, 51, 0.12);
}

.hero {
  padding: 28px;
  border-radius: 28px;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font: 600 0.74rem/1.2 "Trebuchet MS", sans-serif;
  color: var(--accent);
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 3.2vw, 4rem);
  line-height: 0.98;
  max-width: 14ch;
  margin-bottom: 16px;
}

.intro,
.notes p,
.map-header p {
  color: var(--muted);
  line-height: 1.6;
  max-width: 72ch;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 20px;
}

.animation-controls {
  align-items: center;
  margin-top: -4px;
}

.animation-controls label {
  font: 600 0.9rem/1 "Trebuchet MS", sans-serif;
  color: var(--muted);
}

.animation-controls input[type="range"] {
  flex: 1 1 280px;
  accent-color: var(--accent);
}

#speed-control {
  flex: 0 1 160px;
}

.animation-controls select {
  border: 1px solid rgba(29, 45, 42, 0.16);
  border-radius: 999px;
  padding: 10px 14px;
  font: 600 0.9rem/1 "Trebuchet MS", sans-serif;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
}

button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font: 600 0.95rem/1 "Trebuchet MS", sans-serif;
  background: var(--accent);
  color: #fff8f2;
  cursor: pointer;
  transition: transform 180ms ease, opacity 180ms ease;
}

button:hover {
  transform: translateY(-1px);
}

button.secondary {
  color: var(--ink);
  background: var(--accent-soft);
}

.point-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.point-summary > div {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(29, 45, 42, 0.08);
}

.label {
  display: block;
  margin-bottom: 6px;
  font: 600 0.78rem/1.2 "Trebuchet MS", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.maps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.map-card {
  border-radius: 28px;
  overflow: hidden;
}

.map-header {
  padding: 22px 24px 8px;
}

svg {
  display: block;
  width: 100%;
  height: auto;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.54) 0%, rgba(255, 255, 255, 0.24) 100%),
    var(--sea);
}

.notes {
  margin-top: 24px;
  padding: 22px 28px;
  border-radius: 28px;
}

.graticule {
  fill: none;
  stroke: var(--grid);
  stroke-width: 1.2;
}

.land {
  fill: var(--land);
  stroke: rgba(255, 255, 255, 0.42);
  stroke-width: 0.8;
}

.outline {
  fill: none;
  stroke: rgba(29, 45, 42, 0.3);
  stroke-width: 1.4;
}

.route {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 10 10;
}

.equator {
  fill: none;
  stroke: rgba(210, 85, 45, 0.35);
  stroke-width: 2;
}

.point {
  fill: #fff6ef;
  stroke: var(--accent);
  stroke-width: 3;
}

.caption {
  font: 600 0.85rem/1 "Trebuchet MS", sans-serif;
  fill: var(--ink);
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 4px;
  stroke-linejoin: round;
}

@media (max-width: 980px) {
  .maps {
    grid-template-columns: 1fr;
  }

  .layout {
    width: min(100% - 20px, 1320px);
    padding-top: 18px;
    padding-bottom: 24px;
  }

  .hero,
  .notes,
  .map-card {
    border-radius: 22px;
  }
}
