:root {
  --bg: #f8f4ec;
  --paper: #fffdf8;
  --ink: #1f2a2f;
  --muted: #5e6d74;
  --brand: #0f7b7b;
  --brand-soft: #d8efeb;
  --accent: #e08631;
  --line: #dfd7ca;
  --shadow: 0 14px 30px rgba(39, 52, 57, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  background: linear-gradient(160deg, #f8f4ec 0%, #f6fbfb 55%, #fef9f1 100%);
  color: var(--ink);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

.background-blur {
  position: fixed;
  border-radius: 999px;
  filter: blur(60px);
  pointer-events: none;
  z-index: -1;
}

.background-blur-1 {
  width: 320px;
  height: 320px;
  background: rgba(15, 123, 123, 0.17);
  top: -80px;
  left: -60px;
}

.background-blur-2 {
  width: 360px;
  height: 360px;
  background: rgba(224, 134, 49, 0.14);
  right: -90px;
  bottom: -90px;
}

.hero {
  padding: 1.2rem clamp(1rem, 4vw, 3rem) 2.5rem;
}

.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--ink);
}

.hero-content {
  max-width: 860px;
  margin: 2.2rem auto 0;
  padding: 2.2rem;
  background: radial-gradient(circle at top left, #e4f4f4, transparent 55%), var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.badge {
  display: inline-block;
  margin: 0;
  padding: 0.35rem 0.75rem;
  background: var(--brand-soft);
  color: #0d5252;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

h1,
h2,
h3 {
  font-family: "Fraunces", "Georgia", serif;
  line-height: 1.25;
  margin: 0.2rem 0 0.7rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.3rem);
  margin-top: 0.9rem;
}

h2 {
  font-size: clamp(1.35rem, 2.8vw, 1.9rem);
  margin-top: 0.8rem;
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

main {
  width: min(1050px, 94%);
  margin: 0 auto 2.4rem;
  display: grid;
  gap: 1rem;
}

.section.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(1.15rem, 3vw, 2rem);
  box-shadow: 0 8px 20px rgba(42, 42, 42, 0.06);
}

p,
li {
  color: #2f3c43;
}

ul,
ol {
  padding-left: 1.2rem;
}

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

.highlight {
  background: #fff8ee;
  border: 1px solid #f0d5b4;
  border-radius: 14px;
  padding: 0.9rem 1rem;
  margin-top: 0.9rem;
}

.steps {
  margin-top: 0.4rem;
  background: #f2f8f8;
  border: 1px solid #cae1de;
  padding: 0.8rem 1rem;
  border-radius: 14px;
}

.map-shell {
  position: relative;
  margin-top: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  min-height: 420px;
  background: linear-gradient(140deg, #e5f1f1, #f7efe2);
}

#mymaps-frame {
  width: 100%;
  height: 440px;
  border: 0;
  display: block;
}

.map-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.5rem;
  background: rgba(255, 252, 246, 0.86);
}

.map-overlay p {
  max-width: 430px;
  margin: 0;
  color: #3b4a51;
}

code {
  font-family: "SF Mono", "Menlo", monospace;
  background: #eef4f5;
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
}

.city-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.7rem;
  margin-top: 0.8rem;
}

.city-card {
  background: #fbfaf6;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.65rem;
}

.city-card h4 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  color: #193338;
}

.city-card p {
  margin: 0;
  font-size: 0.9rem;
  color: #4d6169;
}

.city-card audio {
  width: 100%;
  margin-top: 0.4rem;
}

.audio-status-damaged {
  margin-top: 0.35rem;
  color: #8f2a2a;
  font-size: 0.84rem;
  font-weight: 700;
}

.references {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.75rem;
}

.references article {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffcf5;
  padding: 0.8rem;
}

.references a {
  color: #0c6b84;
  font-weight: 700;
  text-decoration: none;
}

.references a:hover {
  text-decoration: underline;
}

.footer {
  text-align: center;
  color: #4e6068;
  padding: 0.6rem 1rem 2rem;
  font-size: 0.9rem;
}

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

  .hero-content {
    padding: 1.4rem;
  }

  .map-shell,
  #mymaps-frame {
    min-height: 360px;
    height: 360px;
  }
}
