/* Guide Me static site styles */

:root {
  --text: #1c1c1e;
  --text-muted: #555;
  --text-faint: #888;
  --bg: #fafaf7;
  --surface: #ffffff;
  --border: #e2e0d8;
  --accent: #5a3d2b;
  --link: #235a8f;
  --link-hover: #143052;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans CN", sans-serif;
  line-height: 1.75;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }

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

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.site-header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
}
.site-title {
  font-weight: 600;
  font-size: 17px;
  color: var(--text);
  letter-spacing: 0.02em;
}
.breadcrumb { color: var(--text-faint); font-size: 14px; }
.breadcrumb a { color: var(--text-faint); }
.breadcrumb a:hover { color: var(--link); }
.breadcrumb .sep { margin: 0 6px; }
.breadcrumb .current { color: var(--text); }

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.hero, .city-hero {
  margin-bottom: 32px;
}
.hero h1, .city-hero h1 {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.hero-tagline { font-size: 18px; color: var(--text); margin: 0 0 16px; }
.hero-intro { color: var(--text-muted); margin: 0; }

h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 40px 0 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}
h3 { font-size: 18px; font-weight: 600; margin: 0 0 8px; }
h4 { font-size: 17px; font-weight: 600; margin: 0 0 6px; }
.section-hint { color: var(--text-muted); margin: -8px 0 16px; font-size: 15px; }

/* Homepage city list */
.city-list ul { list-style: none; padding: 0; margin: 0; }
.city-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 16px;
  background: var(--surface);
  transition: border-color 0.15s;
}
.city-card:hover { border-color: var(--accent); }
.city-card a { display: block; color: var(--text); }
.city-card a:hover { text-decoration: none; }
.city-card h3 { color: var(--accent); margin-bottom: 8px; }
.city-card .count { font-weight: normal; color: var(--text-faint); font-size: 14px; }
.city-card p { margin: 0; color: var(--text-muted); }

.usage p { color: var(--text-muted); }

/* City page */

.city-approach { margin-bottom: 48px; }
.approach-intro { color: var(--text-muted); margin: -8px 0 20px; font-size: 15px; }
.approach-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.approach-list li {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  background: var(--surface);
  transition: border-color 0.15s, transform 0.15s;
}
.approach-list li:hover { border-color: var(--accent); }
.approach-list li > a {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  color: var(--text);
  font-weight: 600;
  font-size: 16px;
}
.approach-list li > a:hover { text-decoration: none; color: var(--link); }
.approach-list .approach-label { flex: 1; }
.approach-list .approach-count {
  color: var(--text-faint);
  font-size: 13px;
  font-weight: normal;
}
.approach-blurb {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* Anchor offset so links from approach list don't hide under sticky-ish header */
.city-groups-section .group {
  scroll-margin-top: 24px;
}

.city-map-section { margin-bottom: 48px; }
#city-map {
  height: 480px;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.map-legend {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  font-size: 14px;
  color: var(--text-muted);
}
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
}
.map-pop { font-size: 14px; max-width: 220px; }
.map-pop h4 { margin: 0 0 4px; font-size: 15px; }
.map-pop .subtitle { color: var(--text-muted); margin: 0 0 6px; font-size: 13px; }
.map-pop p { margin: 0 0 8px; color: var(--text); }
.map-pop a { font-weight: 600; }

.city-groups-section .group {
  margin-bottom: 32px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.group-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.group-header h3 { margin: 0; }
.group-intro { color: var(--text-muted); margin: 0 0 14px; font-size: 15px; }
.group-list { list-style: none; padding: 0; margin: 0; }
.group-list li {
  border-top: 1px solid var(--border);
  padding: 12px 0;
}
.group-list li:first-child { border-top: none; }
.group-list a { display: block; color: var(--text); }
.group-list a:hover { text-decoration: none; color: var(--link); }
.group-list a:hover h4 { color: var(--link); }
.group-list h4 { margin: 0; }
.group-list .subtitle { color: var(--text-muted); margin: 2px 0 4px; font-size: 14px; }
.group-list .summary { color: var(--text-muted); margin: 0; font-size: 14px; }

/* Article */
.article-header {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.article-locmap-wrap {
  margin: 0 0 32px;
}
#article-locmap {
  height: 240px;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 6px;
}
.article-locmap-hint {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--text-faint);
  text-align: right;
}
.article-locmap-hint a { color: var(--text-faint); text-decoration: underline; }
.article-locmap-hint a:hover { color: var(--link); }
@media (max-width: 640px) {
  #article-locmap { height: 200px; }
}
.article-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.article-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.article-subtitle { color: var(--text-muted); margin: 8px 0 0; font-size: 16px; }

.article-body h2 { font-size: 21px; margin-top: 36px; }
.article-body p { margin: 16px 0; }
.article-body figure { margin: 24px 0; }
.article-body figure img {
  width: 100%;
  border-radius: 4px;
  border: 1px solid var(--border);
}
.article-body figcaption {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 8px;
  font-style: italic;
  line-height: 1.65;
}
.article-body figcaption a { color: var(--text-muted); text-decoration: underline; }
.article-body blockquote {
  border-left: 3px solid var(--border);
  margin: 16px 0;
  padding: 4px 16px;
  color: var(--text-muted);
}
.article-body code {
  background: rgba(0,0,0,0.05);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.9em;
}

.article-foot-nav {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 14px;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  margin-top: 60px;
  padding: 20px 0;
}
.site-footer-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  font-size: 13px;
  color: var(--text-faint);
}

/* Mobile */
@media (max-width: 640px) {
  body { font-size: 16px; }
  main { padding: 24px 18px 48px; }
  .hero h1, .city-hero h1 { font-size: 26px; }
  h2 { font-size: 19px; }
  #city-map { height: 60vh; max-height: 420px; }
  .site-header-inner { padding: 12px 18px; gap: 12px; }
  .city-card, .city-groups-section .group { padding: 16px 18px; }
}
