/* ═══════════════════════════════════════════════════════
   FORGE — Homepage Styles (index.css)
   Opening hero, problem section, arc section,
   architecture grid, promise, download CTA.
   ═══════════════════════════════════════════════════════ */

/* ── Opening ────────────────────────────────────────── */
.opening {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--side-pad);
  text-align: center;
}

.opening__inner {
  max-width: 600px;
}

.opening__line {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: var(--weight-light);
  font-style: italic;
  line-height: var(--leading-tight);
  color: var(--bone);
  margin: 0 0 var(--space-4);
}

.opening__sub {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  color: var(--n6);
  letter-spacing: var(--tracking-wide);
  margin: 0;
}

/* ── Architecture grid ──────────────────────────────── */
.architecture-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-10);
  margin-top: var(--space-10);
}

@media (max-width: 900px) {
  .architecture-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

.arch-item__mark {
  margin-bottom: var(--space-5);
  min-height: 48px;
  display: flex;
  align-items: flex-end;
}

.arch-item__title {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: var(--weight-regular);
  color: var(--bone);
  margin: 0 0 var(--space-3);
}

.arch-item__body {
  font-family: var(--font-serif);
  font-size: var(--text-base);
  font-weight: var(--weight-light);
  line-height: var(--leading-relaxed);
  color: var(--n7);
  max-width: 36ch;
}

/* ── Promise ────────────────────────────────────────── */
.promise {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: var(--weight-light);
  font-style: italic;
  color: var(--bone);
  line-height: var(--leading-relaxed);
  max-width: 22ch;
  margin: 0 auto;
  text-align: center;
}

/* ── Home / Threshold ─────────────────────────────────────────────── */
.threshold { min-height: 100svh; display: flex; align-items: center; justify-content: center; padding: var(--side-pad); text-align: center; }
.threshold__inner { max-width: 600px; }
.threshold__wordmark { font-family: var(--font-sans); font-size: var(--text-sm); font-weight: var(--weight-medium); letter-spacing: 0.28em; color: var(--amber); margin: 0; }
.threshold__title { font-family: var(--font-serif); font-size: var(--text-display); font-weight: var(--weight-light); font-style: italic; line-height: var(--leading-tight); color: var(--bone); margin: var(--space-8) auto 0; max-width: 15ch; }
.threshold__body { font-family: var(--font-serif); font-size: var(--text-md); font-weight: var(--weight-light); line-height: var(--leading-relaxed); color: var(--n7); margin: var(--space-6) auto 0; max-width: 37ch; }
.threshold__links { display: flex; justify-content: center; align-items: center; gap: var(--space-6); flex-wrap: wrap; margin-top: var(--space-10); }
.home-arc-section .arc-container { margin: var(--space-12) 0 var(--space-6); }
.pathways { margin-top: var(--space-10); border-top: 1px solid var(--n4); }
.pathway { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: var(--space-5); align-items: center; padding: var(--space-6) 0; border-bottom: 1px solid var(--n4); color: inherit; text-decoration: none; }
.pathway:hover .pathway__title, .pathway:focus-visible .pathway__title { color: var(--amber); }
.pathway__index { font-family: var(--font-sans); font-size: var(--text-xs); letter-spacing: var(--tracking-label); color: var(--n6); }
.pathway__content, .pathway__title, .pathway__body { display: block; }
.pathway__title { font-family: var(--font-serif); font-size: var(--text-xl); font-weight: var(--weight-regular); color: var(--bone); transition: color var(--dur-fast) var(--ease-out); }
.pathway__body { font-family: var(--font-serif); font-size: var(--text-base); font-weight: var(--weight-light); color: var(--n7); line-height: var(--leading-relaxed); margin-top: var(--space-1); }
.pathway__arrow { font-family: var(--font-serif); font-size: var(--text-xl); color: var(--n6); }
.home-begin { padding-bottom: var(--space-32); text-align: center; }
.home-begin__quote { font-family: var(--font-serif); font-size: var(--text-xl); font-style: italic; font-weight: var(--weight-light); color: var(--n7); margin: 0 auto; }
.home-begin__title { font-family: var(--font-serif); font-size: var(--text-2xl); font-weight: var(--weight-light); color: var(--bone); margin: var(--space-4) auto 0; }
.home-begin__body { font-family: var(--font-sans); font-size: var(--text-xs); color: var(--n6); margin: var(--space-3) auto var(--space-8); }

@media (max-width: 640px) {
  .threshold__links { flex-direction: column; gap: var(--space-4); }
  .threshold__links .btn-ghost { width: 100%; max-width: 280px; }
  .pathway { grid-template-columns: 32px minmax(0, 1fr) auto; gap: var(--space-3); }
  .pathway__title { font-size: var(--text-lg); }
}
