@import url("fonts.css");

:root {
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --link: #0066cc;
  --bg: #ffffff;
  --hairline: rgba(0, 0, 0, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #f5f5f7;
    --text-secondary: #a1a1a6;
    --link: #2997ff;
    --bg: #000000;
    --hairline: rgba(255, 255, 255, 0.12);
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "SF Pro Text", "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
  font-size: 17px;
  line-height: 1.47;
  -webkit-font-smoothing: antialiased;
}

.map-top {
  border-bottom: 1px solid var(--hairline);
}

.map-top-inner,
.map-main,
.map-footer-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 22px;
}

.map-top-inner {
  height: 52px;
  display: flex;
  align-items: center;
}

.map-brand {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}

.map-main {
  padding-top: 48px;
  padding-bottom: 72px;
}

.map-main h1 {
  margin: 0 0 12px;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.map-section {
  margin-top: 48px;
}

.map-section h2 {
  margin: 0 0 20px;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.map-groups {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 28px 32px;
}

.map-group h3 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.map-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.map-group li + li {
  margin-top: 6px;
}

.map-group a {
  color: var(--link);
  text-decoration: none;
}

.map-group a:hover {
  text-decoration: underline;
}

.map-footer {
  border-top: 1px solid var(--hairline);
  color: var(--text-secondary);
  font-size: 12px;
}

.map-footer-inner {
  padding: 22px 22px 36px;
}

.map-footer-links a,
.map-locales a {
  color: inherit;
  text-decoration: none;
}

.map-footer-links a:hover,
.map-locales a:hover {
  text-decoration: underline;
}

.map-footer .sep {
  margin: 0 0.4em;
  opacity: 0.55;
}

.map-locales {
  margin: 10px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.map-locales a.is-current {
  color: var(--text);
  font-weight: 600;
}

.map-footer p {
  margin: 8px 0 0;
}

.map-footer .footer-whereami {
  margin-top: 6px;
  opacity: 0.85;
}
