/* ==========================================================================
   Homepage composition. Loaded only by index.html.
   Structure comes from hairline rules and vertical rhythm, not from
   stacking bordered, shadowed cards.
   ========================================================================== */

/* ---- Section rhythm ------------------------------------------------------ */

.section {
  padding-block: var(--space-7);
  border-top: 1px solid var(--rule);
}

.section:first-of-type {
  border-top: 0;
}

/* ---- Hero ---------------------------------------------------------------- */

.hero {
  padding-block: var(--space-8) var(--space-7);
}

.hero-eyebrow {
  margin-bottom: var(--space-4);
}

.hero h1 {
  max-width: 20ch;
}

.hero-lede {
  margin-top: var(--space-5);
  max-width: 58ch;
  font-family: var(--font-serif);
  font-size: var(--text-md);
  line-height: var(--leading-snug);
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

/* ---- Tool spotlight ------------------------------------------------------
   The one live tool, given real estate rather than a card in a row of
   mostly-empty cards. */

.spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: var(--space-5) var(--space-7);
  align-items: start;
  padding: var(--space-6);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.spotlight-head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.spotlight h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.spotlight-desc {
  color: var(--muted);
  max-width: 52ch;
}

.spotlight-actions {
  margin-top: var(--space-5);
}

/* Key facts, set in mono so they read as data. */
.spotlight-facts {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--rule);
}

.spotlight-facts div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--rule);
}

.spotlight-facts dt {
  margin: 0;
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--muted);
}

.spotlight-facts dd {
  margin: 0;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--text-sm);
  color: var(--ink);
  text-align: right;
}

/* The quiet "what's next" line under the spotlight. */
.upcoming {
  margin-top: var(--space-5);
  color: var(--muted);
  font-size: var(--text-sm);
}

/* ---- Two-column prose sections ------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: var(--space-5) var(--space-7);
  align-items: start;
}

.split-body p + p {
  margin-top: var(--space-4);
}

.split-body p {
  color: var(--muted);
  max-width: var(--measure);
}

.split-actions {
  margin-top: var(--space-5);
}

/* ---- Marker list --------------------------------------------------------- */

.marker-list {
  margin: var(--space-5) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--space-3);
  max-width: var(--measure);
}

.marker-list li {
  position: relative;
  padding-left: var(--space-5);
  color: var(--muted);
  font-size: var(--text-sm);
}

.marker-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--accent);
}

/* ---- Contact ------------------------------------------------------------- */

.contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.contact-row p {
  color: var(--muted);
  max-width: var(--measure);
}

/* ---- Responsive ----------------------------------------------------------
   Same two breakpoints as components.css: 900px and 600px. */

@media (max-width: 900px) {
  .spotlight,
  .split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-block: var(--space-6) var(--space-5);
  }

  .section {
    padding-block: var(--space-6);
  }

  .spotlight {
    padding: var(--space-5);
  }

  .hero-actions .btn {
    width: 100%;
  }
}
