:root {
  --ink: #12161c;
  --muted: #4a5560;
  --paper: #f7f6f2;
  --white: #ffffff;
  --sea: #1a3a4a;
  --sea-soft: #2a5568;
  --accent: #c45c26;
  --line: #d5d2cb;
  --max: 1120px;
  --header-h: 4rem;
  --font-display: "Fraunces", "Iowan Old Style", Palatino, serif;
  --font-body: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(42, 85, 104, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(196, 92, 38, 0.08), transparent),
    var(--paper);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--sea-soft);
  text-underline-offset: 0.12em;
}

a:hover {
  color: var(--accent);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--sea);
  color: white;
  padding: 0.5rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--sea);
  color: white;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
}

.header-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0.75rem clamp(1rem, 4vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: white;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.brand:hover {
  color: white;
  opacity: 0.88;
}

.menu-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 0.35rem;
}

.menu-toggle span {
  display: block;
  width: 1.35rem;
  height: 1.5px;
  background: white;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.nav-list a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: white;
  text-decoration: underline;
}

@media (max-width: 800px) {
  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--sea-soft);
    padding: 0.75rem 1.25rem 1.25rem;
  }

  .site-nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    gap: 0.85rem;
  }
}

.site-main {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 2rem) 4rem;
  flex: 1;
}

.hero {
  max-width: 40rem;
  margin-bottom: 3rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.85rem);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 1rem;
  color: var(--sea);
}

.hero p {
  margin: 0 0 1.5rem;
  font-size: 1.12rem;
  color: var(--muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.65rem 1.15rem;
  cursor: pointer;
  background: var(--sea);
  color: white;
}

.btn:hover {
  background: var(--sea-soft);
  color: white;
}

.btn--ghost {
  background: transparent;
  color: var(--sea);
  border: 1px solid var(--sea);
}

.btn--ghost:hover {
  background: var(--sea);
  color: white;
}

.btn--small {
  font-size: 0.88rem;
  padding: 0.45rem 0.85rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 600;
  color: var(--sea);
  margin: 0 0 1.5rem;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.4rem);
  font-weight: 600;
  color: var(--sea);
  margin: 0 0 1.5rem;
}

.maps-list {
  display: grid;
  gap: 2.5rem;
}

.map-card {
  display: grid;
  gap: 1.25rem;
  align-items: start;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}

.map-card:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

@media (min-width: 720px) {
  .map-card {
    grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
    gap: 1.75rem;
  }
}

.map-card__media img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #1a1a1a;
}

.map-card__body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  font-weight: 600;
  margin: 0 0 0.65rem;
  line-height: 1.25;
  color: var(--ink);
}

.map-card__meta {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.map-card__summary {
  margin: 0 0 1rem;
}

.map-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.prose p {
  margin: 0 0 1.1rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.faq {
  display: grid;
  gap: 1.75rem;
  max-width: 44rem;
}

.faq h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
  color: var(--sea);
}

.guide-links {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.5rem;
  max-width: 28rem;
}

.guide-links a {
  display: block;
  padding: 0.85rem 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}

.guide-links a:hover {
  border-color: var(--sea);
  color: var(--sea);
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.detail-hero {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 720px) {
  .detail-hero {
    grid-template-columns: minmax(0, 18rem) minmax(0, 1fr);
    align-items: start;
  }
}

.site-footer {
  background: #84aac1;
  color: rgba(255, 255, 255, 0.9);
  padding: 2rem clamp(1.25rem, 4vw, 2rem);
  margin-top: auto;
}

.footer-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
}

.footer-credits {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
}

.footer-credits a {
  color: white;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-nav a:hover {
  text-decoration: underline;
  color: white;
}

.maps-empty {
  color: var(--muted);
  font-style: italic;
}

.footer-logo {
  display: block;
  width: 15rem;
  max-width: 100%;
  padding: 0;
  background: transparent;
}

.footer-logo img {
  width: 100%;
  height: auto;
}

@media (min-width: 700px) {
  .footer-inner {
    grid-template-columns: minmax(0, 1fr) 15rem;
    align-items: center;
  }

  .footer-brand {
    grid-column: 1;
    grid-row: 1;
  }

  .footer-credits {
    grid-column: 1;
    grid-row: 2;
  }

  .footer-logo {
    grid-column: 2;
    grid-row: 1 / span 2;
    justify-self: end;
  }
}

.more-maps {
  margin-top: 2rem;
}
