/* ── Homepage-specific styles ── */

/* Hero */
.home-hero {
  background: var(--paper);
  padding: 5.5rem 0 4rem;
}
.home-hero__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--page-pad);
}
.home-hero__eyebrow {
  font-family: var(--font-text);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--rubric);
  margin-bottom: 0.6rem;
}
.home-hero__title {
  font-family: var(--font-text);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.06;
  letter-spacing: -0.005em;
  max-width: 13em;
  margin-bottom: 1.4rem;
}
.home-hero__title em {
  font-style: italic;
  color: inherit;
}
.home-hero__desc {
  font-family: var(--font-text);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--ink-2);
  max-width: 30em;
  line-height: 1.5;
  font-variant-numeric: oldstyle-nums;
}
/* The site's scope in one sentence, built from the timeline data. */
.home-hero__facts {
  font-family: var(--font-text);
  font-size: 19px;
  color: var(--slate);
  max-width: 34em;
  line-height: 1.6;
  margin-top: 1rem;
  font-variant-numeric: oldstyle-nums;
}
.home-hero__facts a {
  color: var(--lapis);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: color-mix(in srgb, var(--lapis) 45%, transparent);
  transition: color 120ms, text-decoration-color 120ms;
}
.home-hero__facts a:hover { color: var(--lapis-deep); text-decoration-color: currentColor; }
.home-hero__actions {
  display: flex;
  gap: 0.75rem 1.5rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 2.25rem;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.7rem 1.2rem;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: background 120ms;
}
.btn-primary:hover { background: var(--ink-2); }
/* Secondary action: a plain text link, not a box. */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 0.25rem;
  background: transparent;
  color: var(--lapis);
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  border: 0;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: color-mix(in srgb, var(--lapis) 45%, transparent);
  transition: color 120ms, text-decoration-color 120ms;
}
.btn-ghost:hover { color: var(--lapis-deep); text-decoration-color: currentColor; }

/* What you'll find: four open blocks, separated by space alone. */
.home-sections {
  padding: 2rem 0 4.5rem;
}
.home-sections__header {
  margin-bottom: 2.25rem;
}
.home-sections__lead { max-width: 36em; margin-top: 0.5rem; color: var(--ink-2); font-size: 19px; }
.home-sections__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 2.5rem 2.25rem;
  list-style: none;
}
.home-section-card__num {
  margin-bottom: 0.3rem;
  font-family: var(--font-text);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--rubric);
}
.home-section-card {
  display: block;
  color: inherit;
  text-decoration: none;
}
.home-section-card__title {
  font-family: var(--font-text);
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.home-section-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 120ms;
}
.home-section-card__title a:hover { color: var(--lapis); }
.home-section-card__desc {
  font-family: var(--font-text);
  font-size: 17px;
  color: var(--ink-2);
  line-height: 1.55;
  margin-bottom: 0.9rem;
  font-variant-numeric: oldstyle-nums;
}
.home-section-card__pages {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
}
.home-section-card__page {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  font-family: var(--font-ui);
  font-size: 16px;
  color: var(--lapis);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: color-mix(in srgb, var(--lapis) 45%, transparent);
  transition: color 120ms, text-decoration-color 120ms;
}
.home-section-card__page:hover { color: var(--lapis-deep); text-decoration-color: currentColor; }

/* Next steps: three open blocks on a quiet wash band. */
.home-next {
  background: var(--wash);
  padding: 4.5rem 0;
}
.home-next__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 3rem;
  margin-top: 2.25rem;
}
.home-next__card {
  display: block;
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}
.home-next__card--button { align-self: start; }
.home-next__card:focus-visible { outline: 2px solid var(--rubric); outline-offset: 6px; border-radius: 4px; }
.home-next__card h3 {
  font-family: var(--font-text);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.4rem;
  line-height: 1.25;
  transition: color 120ms;
}
.home-next__card:hover h3 { color: var(--lapis); }
.home-next__card p {
  font-family: var(--font-text);
  font-size: 17px;
  color: var(--ink-2);
  line-height: 1.6;
  margin-bottom: 0.75rem;
  font-variant-numeric: oldstyle-nums;
}
.home-next__card span {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 500;
  color: var(--lapis);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: color-mix(in srgb, var(--lapis) 45%, transparent);
  transition: color 120ms, text-decoration-color 120ms;
}
.home-next__card:hover span { color: var(--lapis-deep); text-decoration-color: currentColor; }

/* Verse: a quiet typographic quotation. */
.home-verse {
  padding: 5rem 0 1rem;
  text-align: center;
}
.home-verse__quote {
  font-family: var(--font-text);
  font-size: clamp(1.4rem, 2.8vw, 1.85rem);
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
  max-width: 28em;
  margin: 0 auto 0.75rem;
  line-height: 1.45;
  text-wrap: balance;
}
.home-verse__ref {
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--slate);
}

/* The footer grid lives in pistizo.css. Restating it here re-declared the
   desktop columns after the responsive rules, so the homepage footer never
   collapsed and pushed the page into horizontal scroll on phones. */

/* Phones: single-column layout, plus the readability sizes described in pistizo.css. */
@media (max-width: 768px) {
  .home-hero { padding: 3.25rem 0 2.5rem; }
  .home-next { padding: 3.25rem 0; }
  .home-next__grid { grid-template-columns: 1fr; gap: 2rem; }
  .home-verse { padding-top: 3.5rem; }

  .home-hero__desc { font-size: 1.2rem; }
  .home-hero__facts { font-size: 18px; }
  .home-section-card__desc,
  .home-next__card p { font-size: 16px; }
  .btn-primary,
  .btn-ghost { font-size: 16px; min-height: 44px; }
  .home-section-card__page { font-size: 16px; min-height: 44px; }
  .home-next__card span { font-size: 16px; }
  .home-verse__ref { font-size: 14px; }
  .home-hero__eyebrow { font-size: 1.1rem; }
}
