/*!
 * Bootstrap 6 template kit — shared base
 * For Bootstrap 6.0.0-alpha1 (pinned 59cee6c)
 *
 * IMPORTANT: this file is deliberately NOT inside @layer. Bootstrap 6 wraps all
 * of its own CSS in cascade layers, so unlayered author CSS wins regardless of
 * source order. Consequence: avoid shorthand `margin` / `padding` / `background`
 * on elements that also carry Bootstrap utilities — the shorthand silently beats
 * `.mb-6` and friends. Use longhands.
 */

/* ---------------------------------------------------------------
   Closed <dialog> fix — REQUIRED

   alpha1 ships `.dialog { display: flex }` with no `:not([open])` guard, so a
   closed dialog beats the UA's `dialog:not([open]) { display: none }` and keeps
   ~500px of layout space at the bottom of the page. Scope to `.dialog` only:
   `.drawer` must stay in flow so navbar-expand can inline it on desktop.
   --------------------------------------------------------------- */

dialog.dialog:not([open]) {
  display: none;
}

/* ---------------------------------------------------------------
   Brand retheming

   `.theme-primary` maps --bs-theme-* from the WHOLE --bs-primary-* family, so
   setting --bs-primary-base alone retints your own CSS and leaves every
   Bootstrap button, badge and pill stock blue. Stock values derive from a
   --bs-blue-* scale with the hue inlined at every step, so there is no single
   upstream variable to swap either.

   This block rebuilds the family from one --brand token. A template only needs:

       :root { --brand: oklch(50% 0.14 32); }

   in its own stylesheet — everything below follows.
   --------------------------------------------------------------- */

:root {
  --brand: var(--bs-blue-500);

  --bs-primary-base: var(--brand);
  --bs-primary-bg: var(--brand);
  --bs-primary-contrast: var(--bs-white);
  --bs-primary-fg: light-dark(
    color-mix(in oklab, var(--brand), black 14%),
    color-mix(in oklab, var(--brand), white 34%));
  --bs-primary-fg-emphasis: light-dark(
    color-mix(in oklab, var(--brand), black 38%),
    color-mix(in oklab, var(--brand), white 62%));
  --bs-primary-bg-subtle: light-dark(
    color-mix(in oklab, var(--brand), white 88%),
    color-mix(in oklab, var(--brand), black 64%));
  --bs-primary-bg-muted: light-dark(
    color-mix(in oklab, var(--brand), white 72%),
    color-mix(in oklab, var(--brand), black 46%));
  --bs-primary-border: light-dark(
    color-mix(in oklab, var(--brand), white 56%),
    color-mix(in oklab, var(--brand), black 28%));
  --bs-primary-focus-ring: color-mix(in oklab, var(--brand), transparent 70%);
}

/* ---------------------------------------------------------------
   Layout helpers
   --------------------------------------------------------------- */

:root {
  --kit-section-y: 5rem;
}

@media (width >= 768px) {
  :root {
    --kit-section-y: 7rem;
  }
}

.section {
  padding-block: var(--kit-section-y);
}

:where(section[id], main[id]) {
  scroll-margin-top: 5rem;
}

/* ---------------------------------------------------------------
   Surfaces
   --------------------------------------------------------------- */

.lift {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.lift:hover {
  transform: translateY(-3px);
  border-color: color-mix(in oklab, var(--bs-primary-base), transparent 60%);
  box-shadow: 0 1.5rem 2.5rem -1rem rgb(0 0 0 / 18%);
}

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

.hero {
  position: relative;
  padding-block: 4.5rem 5rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% 0 auto;
  height: 40rem;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(
    60% 60% at 50% 0%,
    color-mix(in oklab, var(--bs-primary-base), transparent 84%) 0%,
    transparent 70%
  );
}

/* ---------------------------------------------------------------
   Avatars (initials placeholders — swap for <img class="avatar-img">)
   --------------------------------------------------------------- */

.stars {
  display: flex;
  gap: 0.125rem;
  color: var(--bs-warning-base);
}

.stars svg {
  width: 1rem;
  height: 1rem;
}

/* ---------------------------------------------------------------
   Motion preferences
   --------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .lift {
    transition: none;
  }

  .lift:hover {
    transform: none;
  }
}
