/* ============================================================================
   guide.css — long-form guide / article pages (/guides/*)
   Page-only styles. Built ENTIRELY on the shared design tokens in style.css
   (--bg, --amber, --font-display, --glass-*, …) so every Theme Studio palette
   themes it automatically — no hardcoded hex. Prefix: .guide-
   Priority is READABILITY: comfortable measure, generous line-height, clear
   heading hierarchy. Nothing loud competes with the reading experience.
   ========================================================================== */

/* ── Article hero ─────────────────────────────────────────────────────────
   Reuses the site's .hero + .hero__line/.amber-line classes (so main.js gives
   the identical wipe-in + accent-line draw), but overrides .hero's full-height
   so the article starts near the top instead of a 100vh splash. */
.guide-hero {
  min-height: auto;
  display: block;
  overflow: visible;
  padding: 9.5rem 0 3rem;            /* top clears the fixed nav */
}
.guide-hero__inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}
/* Big Bebas headline — consistent with the site's hero, sized for an article */
.guide-hero__headline {
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  line-height: 0.98;
  letter-spacing: 0.015em;
  margin: 1rem 0 0;
}
.guide-hero__headline .guide-accent { color: var(--amber); }

/* Sub / lede under the headline (the meta-description sentence) */
.guide-hero__lede {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.7;
  color: color-mix(in srgb, var(--text) 72%, transparent);
  max-width: 620px;
  margin: 1.75rem auto 0;
}
/* Tiny meta row (read time) — quiet, uppercase, muted */
.guide-hero__meta {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 1.75rem;
}

/* ── Article body ─────────────────────────────────────────────────────────
   Constrained measure (~680px) + generous leading = easy long-form reading.
   Text always visible (no opacity-0 reveals) so it never depends on GSAP. */
.guide-article {
  max-width: 680px;
  margin: 0 auto;
  padding: 1.5rem 2rem 4rem;
}
.guide-article p {
  font-family: var(--font-body);
  font-size: 1.075rem;
  line-height: 1.85;
  color: color-mix(in srgb, var(--text) 80%, transparent);
  margin: 0 0 1.5rem;
}
/* Opening paragraph reads a touch larger + brighter, like a lede */
.guide-article .guide-lede {
  font-size: 1.2rem;
  line-height: 1.75;
  color: color-mix(in srgb, var(--text) 90%, transparent);
  margin-bottom: 1.75rem;
}
.guide-article strong {
  color: var(--text);
  font-weight: 600;
}

/* Section headings — Bebas, with a short accent tick + a hairline divider
   above so the reader gets clear visual chapters without heavy rules. */
.guide-article h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text);
  margin: 3.25rem 0 1.15rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--border);
}
.guide-article h2::before {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: var(--amber);
  margin-bottom: 1.1rem;
}
/* First heading sits closer to the intro (no giant gap) */
.guide-article > h2:first-of-type { margin-top: 2.5rem; }

/* Lists — custom amber dot markers instead of default bullets */
.guide-article ul {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
}
.guide-article li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.9rem;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: color-mix(in srgb, var(--text) 78%, transparent);
}
.guide-article li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
}
.guide-article li strong { color: var(--text); }

/* ── End CTA card (glass) ──────────────────────────────────────────────────
   Frosted card matching the site's STRONG glass tier, with a clear primary
   button (not a plain text link). Always visible — no scroll dependency. */
.guide-cta {
  width: min(680px, calc(100% - 3rem));
  margin: 0 auto 6rem;
  padding: 2.75rem 2rem;
  text-align: center;
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  box-shadow: var(--glass-highlight), var(--glass-shadow);
}
.guide-cta__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.guide-cta__body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: color-mix(in srgb, var(--text) 70%, transparent);
  max-width: 460px;
  margin: 0 auto 1.85rem;
}

/* ── Related guide (cross-link between guides = topic cluster) ─────────────*/
.guide-related {
  width: min(680px, calc(100% - 3rem));
  margin: -2.5rem auto 6rem;
  text-align: center;
}
.guide-related__label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

/* ── Responsive ───────────────────────────────────────────────────────────*/
@media (max-width: 768px) {
  .guide-hero { padding: 8rem 0 2.25rem; }
  .guide-hero__inner { padding: 0 1.5rem; }
  .guide-article { padding: 1rem 1.5rem 3.5rem; }
  .guide-article p { font-size: 1.03rem; }
  .guide-cta { padding: 2.25rem 1.5rem; margin-bottom: 4rem; }
  .guide-related { margin: -2rem auto 4rem; }
}

/* Glass fallback where backdrop-filter is unsupported (mirrors style.css guard) */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .guide-cta { background: var(--bg-raised); }
}
