/* PedalKin colors and fonts. See CLAUDE.md. */
:root {
  --ink: #13241E;
  --spruce: #1E5B45;
  --hi-vis: #E4EC3F;
  --background: #F1F5F3;
  --card: #FFFFFF;
  --muted: #4A5C55;
  --line: #D5DFDA;
  /* Extra tints for the home page drawing */
  --sky: #DCE9E3;
  --hill-light: #8FB8A5;
  --path: #FFFFFF;

  --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 {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1.45rem;
  color: var(--ink);
  text-decoration: none;
}
.logo-mark { width: 2.3rem; height: auto; flex: none; }

/* The name, with the owner's signature green dot over the "i". */
.wordmark {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.wordmark-i { position: relative; display: inline-block; }
.wordmark-i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0.2em;
  width: 0.22em;
  height: 0.22em;
  border-radius: 50%;
  background: var(--spruce);
  transform: translateX(-50%);
}

.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; }

/* Home page */
.home-map { height: min(60vh, 30rem); }
.state-list {
  display: grid;
  gap: 0 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
}
.state-list h3 { margin-top: 1.25rem; }

/* Site menu */
.site-header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1.5rem; }
.site-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 0.9rem; }
.site-nav a { color: var(--ink); font-weight: 700; text-decoration: none; }
.site-nav a:hover { color: var(--spruce); text-decoration: underline; }

/* Kids' bike guide */
.table-wrap { overflow-x: auto; max-width: 42rem; }
.size-chart { border-collapse: collapse; width: 100%; background: var(--card); }
.size-chart th, .size-chart td { padding: 0.5rem 0.45rem; font-size: 0.95rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.size-chart thead th { background: var(--spruce); color: #FFFFFF; font-family: var(--font-heading); }
.prose ol { max-width: 42rem; }

/* PedalKin home: the three guides */
.lead { font-size: 1.2rem; }
.guide-cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  margin-top: 1rem;
}
.guide-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  color: var(--ink);
  text-decoration: none;
}
.guide-card h2 { margin-top: 0; }
a.guide-card:hover { border-color: var(--spruce); }
.guide-go {
  margin-top: auto;
  align-self: flex-start;
  padding: 0.4rem 0.9rem;
  border-radius: 0.5rem;
  background: var(--hi-vis);
  font-weight: 700;
}

/* Home page drawing: beside the headline on wide screens, below it on phones. */
.home-hero {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem 0 1rem;
}
.hero-graphic { display: block; width: 100%; height: auto; max-width: 34rem; }
@media (min-width: 48rem) {
  .home-hero { grid-template-columns: 1fr 1fr; }
}

/* About page: "before kids / after kids" photos, side by side on wide screens. */
.about-photos {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  max-width: 52rem;
  margin: 0.5rem 0 1rem;
}
.about-photos figure { margin: 0; }
.about-photos img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0.75rem;
}
.about-photos figcaption { margin-top: 0.4rem; color: var(--muted); }

/* Product picks ("Our favorites") */
.picks { margin-top: 2.5rem; }
.disclosure {
  max-width: 42rem;
  padding: 0.75rem 1rem;
  background: var(--card);
  border-left: 4px solid var(--hi-vis);
  border-radius: 0.25rem;
}
.pick-list {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
}
.pick {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
}
.pick-photo {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  margin-bottom: 0.75rem;
  background: var(--sky);
  border-radius: 0.5rem;
  color: var(--spruce);
}
.pick-photo svg { width: 50%; overflow: visible; }
.pick-type { margin: 0; color: var(--muted); font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
.pick h3 { margin: 0.15rem 0 0.25rem; }
.pick-fits { margin: 0 0 0.5rem; }
.pick ul { padding-left: 1.1rem; margin: 0 0 0.75rem; }
.pick-price { margin: auto 0 0.75rem; font-weight: 700; }
.pick-price span { color: var(--muted); font-weight: 400; }
.pick-button { text-align: center; background: var(--hi-vis); color: var(--ink); }
.pick-button:hover { background: var(--ink); color: #FFFFFF; }

/* Bike Gear Guide */
.gear-index { display: flex; flex-wrap: wrap; gap: 0.4rem 0.6rem; padding: 0; list-style: none; }
.gear-index a {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}
.gear-index a:hover { border-color: var(--spruce); }
.gear-section { scroll-margin-top: 1rem; }
.we-use {
  align-self: flex-start;
  margin: 0 0 0.4rem;
  padding: 0.15rem 0.6rem;
  background: var(--spruce);
  color: #FFFFFF;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}
.heads-up {
  margin: 0 0 0.75rem;
  padding: 0.5rem 0.7rem;
  background: var(--sky);
  border-radius: 0.4rem;
  font-size: 0.95rem;
}
.picks-jump { background: var(--hi-vis); color: var(--ink); font-size: 1.05rem; }
.picks-jump:hover { background: var(--ink); color: #FFFFFF; }
.picks, .picks-overview { scroll-margin-top: 1rem; }

/* Holiday gift guide */
.gift-tips { margin-top: 1rem; }
.tip-list {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
}
.tip {
  padding: 1rem 1.1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--hi-vis);
  border-radius: 0.5rem;
}
.tip h3 { margin: 0 0 0.3rem; font-size: 1.1rem; }
.tip p { margin: 0; }
.gift-note { font-weight: 700; }
.gift-card { border-color: var(--hi-vis); border-width: 2px; }
/* Seasonal "Gifts" menu link: a hi-vis highlight behind ink text. */
.site-nav a.nav-gifts { background: var(--hi-vis); padding: 0 0.4rem; border-radius: 0.3rem; }
.site-nav a.nav-gifts:hover { background: var(--ink); color: #FFFFFF; text-decoration: none; }
