/* Product home. Icon plus a name. Not a state page.
   Same full-width wrap as every other page — the doors grid grows to fill it.

   Readability pass (matches the answers articles): the tagline is a real
   display headline, each section opens with a Fraunces heading a clear step
   above body text, and sections separate with a hairline plus generous
   clamp() space — the same idiom as the help page — so the page reads as
   rooms, not a wall of same-size text. */

/* The tagline h1 uses the shared desk headline rule in feature.css —
   no override here, so home and the desks line up pixel-for-pixel. */

/* One heading voice for every home section. */
.home-cams h2,
.home-answers h2,
.home-about h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 560;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--paper);
  margin: 0 0 0.4rem;
}

/* One rhythm between sections: hairline plus breathing room. */
.home-cams,
.home-answers,
.home-about,
.states {
  border-top: 1px solid var(--line);
  padding-top: clamp(1.2rem, 2.5vw, 1.8rem);
  margin: 0 0 clamp(1.8rem, 4vw, 3rem);
}

/* Section heads: heading and lede on the left, a canonical pill on the
   right that opens the section's full page. Every section hands you its
   door — the CTA is in the header, not a footnote under the grid. */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.7rem 1.5rem;
  margin: 0 0 1rem;
}
.section-head .head-copy { min-width: 0; flex: 1 1 22rem; }
.section-head .head-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  max-width: 65ch;
}
.section-head .tools { margin: 0; flex: 0 0 auto; }
.section-head .tools .material-symbols-outlined { font-size: 1.25rem; color: var(--amber); }

.doors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin: 0 0 clamp(1.8rem, 4vw, 3rem);
}
@media (max-width: 560px) {
  /* One door per row on phones — two 165px columns read as clutter. */
  .doors { grid-template-columns: 1fr; }
}
@media (min-width: 1100px) {
  /* Wide desktop: the map door spans, the four tools sit in one row. */
  .doors { grid-template-columns: repeat(4, 1fr); gap: 0.85rem; }
  .door { padding: 1rem 1.1rem; }
}

/* Top asks, one tap each. Labels mirror the questions people actually type.
   Pills themselves come from the canonical chip system in app.css. */
.quick-asks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.8rem 0 0.2rem;
}
.quick-asks .kicker {
  flex: 0 0 auto;
  align-self: center;
  font-family: var(--font-clock);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  margin-right: 0.2rem;
}
@media (max-width: 720px) {
  /* Phone: one swipeable line, not five stacked rows. */
  .quick-asks {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.25rem;
    mask-image: linear-gradient(90deg, #000 calc(100% - 2.25rem), transparent);
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 2.25rem), transparent);
  }
  .quick-asks::-webkit-scrollbar { display: none; }
  .quick-asks a { flex: 0 0 auto; white-space: nowrap; }
}
.door {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.75rem;
  min-height: var(--target);
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--paper);
  text-decoration: none;
}
.door {
  transition: border-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}
.door:hover {
  border-color: var(--amber);
  color: var(--paper);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
@media (prefers-reduced-motion: reduce) {
  .door { transition: none; }
  .door:hover { transform: none; }
}
.door .material-symbols-outlined {
  font-size: 28px;
  line-height: 1;
  color: var(--amber);
  margin-top: 0.15rem;
}
.door-copy { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.door strong { font-size: 1.15rem; font-weight: 650; }
.door-copy > span { color: var(--muted); font-size: 0.95rem; line-height: 1.35; }
.door:hover .door-copy > span { color: var(--paper); }
.door-map {
  grid-column: 1 / -1;
  background: var(--surface-2);
  border-color: var(--amber-dim);
}
.door-map .material-symbols-outlined { font-size: 32px; }
.door-map strong { font-size: 1.3rem; }

/* Popular cameras: the pictures people come for. Figures reuse the
   .answer-cams frame/stamp pattern from answers.css; tapping one opens
   the gallery modal (js/haze.js). Ledes and prose cap at 65ch like the
   articles. */
.home-cams .answer-cams {
  /* Eight tiles (seven cameras + the browse-all door) in columns that
     divide evenly at every width — never a ragged last row. */
  grid-template-columns: 1fr;
  margin: 0 0 0.4rem;
}
@media (min-width: 560px) { .home-cams .answer-cams { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .home-cams .answer-cams { grid-template-columns: repeat(4, 1fr); } }
.home-cams .fig-note { margin-bottom: 0; }

/* Same even-row discipline for the eight answer cards. */
.home-answers .answer-cards { grid-template-columns: 1fr; }
@media (min-width: 560px) { .home-answers .answer-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .home-answers .answer-cards { grid-template-columns: repeat(4, 1fr); } }

/* The grid's last tile is a door to the full Cameras page. */
.answer-cams .cam-more {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.4rem;
  aspect-ratio: 8 / 5;
  padding: 1rem;
  text-align: center;
  text-decoration: none;
  color: var(--paper);
  background: var(--surface-2);
}
.answer-cams .cam-more .material-symbols-outlined {
  font-size: 34px;
  color: var(--amber);
}
.answer-cams .cam-more strong { font-size: 1.1rem; line-height: 1.3; }
.answer-cams .cam-more span:not(.material-symbols-outlined) {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}
.answer-cams figure:has(.cam-more):hover { border-color: var(--amber); }

/* Answers grid: the tail card opens the hub. */
.answer-cards .more-card {
  background: var(--surface-2);
  border-color: var(--amber-dim);
}

.home-about p {
  margin: 0 0 0.8rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 65ch;
}
@media (min-width: 900px) {
  /* Two readable columns instead of one narrow strip on a wide screen. */
  .home-about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 2.5rem;
  }
  .home-about .section-head { grid-column: 1 / -1; }
}
.home-page .site-head .lede {
  margin: 0.55rem 0 0;
  color: var(--muted);
  line-height: 1.55;
  max-width: 65ch;
}

/* Bottom nav row: canonical .tools pills, not a whisper of text links. */
.states {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0;
}

.door[href="map.html"] .material-symbols-outlined { color: var(--amber); }
.door[href="fire.html"] .material-symbols-outlined { color: #e35b2a; }
.door[href="weather.html"] .material-symbols-outlined { color: #7aa2ff; }
.door[href="traffic.html"] .material-symbols-outlined { color: var(--amber); }
.door[href="cameras.html"] .material-symbols-outlined { color: #d8c9a3; }
