/* PedalKin colors and fonts. See CLAUDE.md. */
:root {
  --ink: #13241E;
  --spruce: #1E5B45;
  --hi-vis: #E4EC3F;
  --background: #F1F5F3;
  --card: #FFFFFF;
  --muted: #4A5C55;
  --line: #D5DFDA;

  --font-heading: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
}

main,
.site-header,
.site-footer {
  max-width: 60rem;
  margin: 0 auto;
  padding: 0 1rem;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.15;
  margin: 0 0 0.5rem;
}
h1 { font-size: clamp(2rem, 6vw, 3rem); font-weight: 800; }
h2 { font-size: 1.5rem; font-weight: 700; margin-top: 2.5rem; }
h3 { font-size: 1.2rem; font-weight: 700; }

a { color: var(--spruce); }
a:hover { color: var(--ink); }

/* Header */
.site-header { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.brand {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--ink);
  text-decoration: none;
}
.brand span {
  background: var(--hi-vis);
  padding: 0 0.3rem;
  border-radius: 0.25rem;
}

.hero { padding: 1.5rem 0 0.5rem; max-width: 42rem; }
.hero p { font-size: 1.15rem; }
.breadcrumb { margin: 0 0 0.5rem; font-size: 1rem; }

/* City list on the home page */
.city-list { list-style: none; padding: 0; display: grid; gap: 0.75rem; }
.city-list a {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  text-decoration: none;
  color: var(--ink);
}
.city-list a:hover { border-color: var(--spruce); }
.city-name { font-family: var(--font-heading); font-weight: 700; font-size: 1.25rem; }
.city-count { color: var(--muted); }

/* Trail cards */
.trail-list {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
}
.trail {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}
.trail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}
/* Hi-vis yellow is too pale for text, so it sits behind ink-colored text. */
.score {
  flex: none;
  min-width: 2.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 0.5rem;
  background: var(--hi-vis);
  color: var(--ink);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  text-align: center;
}
.trail.unknown .score { background: var(--line); }
.facts { color: var(--muted); margin: 0.25rem 0 0.75rem; }

.nearby { list-style: none; padding: 0; margin: 0 0 1rem; }
.nearby li { padding-left: 1.5rem; position: relative; }
.nearby li::before { position: absolute; left: 0; font-weight: 700; }
.nearby li.yes::before { content: "✓"; color: var(--spruce); }
.nearby li.no { color: var(--muted); }
.nearby li.no::before { content: "–"; }

.map-link { margin-top: auto; font-weight: 700; }

.note { color: var(--muted); max-width: 42rem; }

/* Footer */
.site-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  padding-bottom: 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

/* Trail page map */
.trail-map {
  height: min(70vh, 32rem);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  margin-top: 1rem;
  background: var(--line);
}
.score.unknown { background: var(--line); }
.legend {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}
.legend li { display: flex; align-items: center; gap: 0.4rem; }
.swatch {
  display: inline-block;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  border: 2px solid var(--ink);
}
.swatch.line { width: 1.5rem; height: 0.35rem; border: 0; border-radius: 0.2rem; background: var(--spruce); }
.swatch.playground { background: var(--hi-vis); }
.swatch.restroom { background: #FFFFFF; }
.swatch.parking { background: var(--ink); border-color: #FFFFFF; box-shadow: 0 0 0 1px var(--ink); }
.city-map { height: min(75vh, 36rem); }
.swatch.line.unknown {
  background: repeating-linear-gradient(90deg, #7A8A84 0 0.35rem, transparent 0.35rem 0.6rem);
}

/* Written summaries, questions and the "how we score" page */
.summary { font-size: 1.1rem; max-width: 42rem; }
.faq h3 { margin-top: 1.5rem; }
.faq p, .prose p, .prose ul { max-width: 42rem; }
.faq-links { font-weight: 700; }
.prose h3 { margin-top: 1.5rem; }
.site-footer a { color: var(--spruce); }
.disclaimer { color: var(--muted); font-size: 0.95rem; max-width: 42rem; }

/* Trail page: where to start, amenity lists, nearby trails */
.start p { max-width: 42rem; }
.directions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.button {
  display: inline-block;
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  background: var(--spruce);
  color: #FFFFFF;
  font-weight: 700;
  text-decoration: none;
}
.button:hover { background: var(--ink); color: #FFFFFF; }
.swatch.start { width: 1.1rem; height: 1.1rem; background: var(--spruce); border: 3px solid var(--hi-vis); box-shadow: 0 0 0 1px var(--ink); }
.nearby-trails { padding-left: 1.2rem; margin-top: 0; }
.nearby-trails li { margin-bottom: 0.25rem; }
.park-list { padding-left: 1.2rem; max-width: 42rem; }
.park-list li { margin-bottom: 0.35rem; }
