/* =========================================================
   NullVulpine - Material for MkDocs "Creator Homepage" skin
   Drop into: docs/styles/extra.css
   ========================================================= */

/* ---- Imports ---- */
@import url('https://fonts.googleapis.com/css2?family=Audiowide&family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap');

/* ---- Global knobs ---- */
:root {
  --nv-radius: 18px;
  --nv-radius-sm: 12px;
  --nv-gap: 1.1rem;
  --nv-space: #05060a;

  /* Soft “glass” surfaces that respect theme colors */
  --nv-surface: color-mix(in srgb, var(--md-default-bg-color) 86%, transparent);
  --nv-surface-2: color-mix(in srgb, var(--md-default-bg-color) 76%, transparent);

  /* Borders/shadows that don't scream */
  --nv-border: color-mix(in srgb, var(--md-default-fg-color) 14%, transparent);
  --nv-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  --nv-shadow-hover: 0 16px 42px rgba(0, 0, 0, 0.30);

  /* Link button styling */
  --nv-btn-bg: color-mix(in srgb, var(--md-primary-fg-color) 82%, transparent);
  --nv-btn-fg: var(--md-primary-bg-color);
}

/* Apply to the whole page */
/* ---- Dense star field (layer 1) ---- */
body {
  background-color: var(--nv-space);
  background-image:
    radial-gradient(1px 1px at 10px 20px, rgba(255,255,255,.65) 50%, transparent 51%),
    radial-gradient(1px 1px at 90px 80px, rgba(255,255,255,.30) 50%, transparent 51%),
    radial-gradient(1px 1px at 160px 40px, rgba(255,255,255,.45) 50%, transparent 51%),
    radial-gradient(2px 2px at 210px 110px, rgba(255,255,255,.18) 50%, transparent 51%),
    radial-gradient(1px 1px at 240px 10px, rgba(255,255,255,.28) 50%, transparent 51%),
    radial-gradient(1px 1px at 40px 140px, rgba(255,255,255,.40) 50%, transparent 51%),
    radial-gradient(2px 2px at 120px 160px, rgba(255,255,255,.14) 50%, transparent 51%),
    radial-gradient(1px 1px at 200px 170px, rgba(255,255,255,.22) 50%, transparent 51%),
    radial-gradient(1px 1px at 280px 130px, rgba(255,255,255,.38) 50%, transparent 51%),
    radial-gradient(2px 2px at 300px 60px, rgba(255,255,255,.12) 50%, transparent 51%),
    radial-gradient(1px 1px at 330px 190px, rgba(255,255,255,.26) 50%, transparent 51%),
    radial-gradient(1px 1px at 70px 200px, rgba(255,255,255,.34) 50%, transparent 51%);
  background-size: 360px 220px; /* smaller tile = denser stars */
  background-repeat: repeat;
}


/* ---- Dense star field (layer 2: faint dust + big parallax tile) ---- */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.55;
  background-image:
    radial-gradient(1px 1px at 60px 70px, rgba(255,255,255,.22) 50%, transparent 51%),
    radial-gradient(1px 1px at 180px 120px, rgba(255,255,255,.18) 50%, transparent 51%),
    radial-gradient(2px 2px at 420px 260px, rgba(255,255,255,.10) 50%, transparent 51%),
    radial-gradient(1px 1px at 520px 40px, rgba(255,255,255,.20) 50%, transparent 51%),
    radial-gradient(2px 2px at 700px 380px, rgba(255,255,255,.08) 50%, transparent 51%),
    radial-gradient(1px 1px at 820px 210px, rgba(255,255,255,.16) 50%, transparent 51%);
  background-size: 980px 640px; /* huge tile = different “depth” */
  background-repeat: repeat;
  animation: nv-drift 140s linear infinite;
}

@keyframes nv-drift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-180px, -120px, 0); }
}

/* Procedural star canvas behind everything */
#nv-stars {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
}

/* Visually hidden, still accessible */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Center the hero block */
.md-typeset .nv-hero {
  text-align: center;
  margin: 1rem 0 1.25rem 0;
}

/* If glightbox wraps the image in an <a>, center that too */
.md-typeset .nv-hero a,
.md-typeset .nv-hero img {
  display: inline-block;
}

/* Responsive sizing */
.md-typeset .nv-hero img.nv-hero-logo {
  max-width: min(900px, 90vw);
  height: auto;
}

/* Hero logo sizing */
.md-typeset img.nv-hero-logo {
  display: block;
  max-width: min(520px, 80vw);
  height: auto;
  margin: 0.8rem auto 1.2rem auto;
}

/* Keep Material containers transparent so the stars show through */
.md-container,
.md-main,
.md-main__inner,
.md-content {
  background: transparent !important;
}

/* ---- Make pages feel less "narrow docs column" ---- */
.md-grid {
  max-width: 1120px; /* wider than default docs feel */
}

.md-main__inner {
  padding-top: 1.25rem;
}

/* Slightly more generous content spacing */
.md-content__inner {
  padding-bottom: 2.5rem;
}

/* ---- Header polish: subtle blur so it feels "app/site" ---- */
.md-header {
  background: color-mix(in srgb, var(--md-default-bg-color) 65%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--nv-border);
}

/* ---- Footer: quieter presence ---- */
.md-footer {
  border-top: 1px solid var(--nv-border);
}
.md-footer-meta {
  background: transparent;
}

/* =========================================================
   HOMEPAGE HERO (works best on pages where you hide nav/toc)
   In index.md add:
   ---
   hide:
     - navigation
     - toc
   ---
   ========================================================= */

/* Big hero title (the first H1 on the page) */
.md-content__inner > h1:first-child {
  font-size: clamp(2.6rem, 4.5vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-top: 0.4rem;
  margin-bottom: 0.65rem;
}

/* Subhead = first paragraph immediately after H1 */
.md-content__inner > h1:first-child + p {
  font-size: clamp(1.05rem, 1.35vw, 1.35rem);
  line-height: 1.55;
  opacity: 0.92;
  max-width: 62ch;
  margin-bottom: 1.35rem;
}

/* Optional: make the first horizontal rule look like a section divider */
.md-content__inner hr {
  margin: 1.75rem 0;
  border: none;
  height: 1px;
  background: var(--nv-border);
}

/* =========================================================
   GRID CARDS (Material pattern: <div class="grid cards">)
   ========================================================= */

/* Give the whole grid some breathing room */
.grid.cards {
  margin-top: 1.15rem;
  margin-bottom: 1.35rem;
}

/* Card styling */
/* ---- Dark glass cards (override) ---- */
.grid.cards > ul > li {
  background: rgba(8, 10, 14, 0.25) !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  border-radius: var(--nv-radius);
  box-shadow: var(--nv-shadow);
  overflow: hidden;
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.grid.cards > ul > li:hover {
  border-color: rgba(255, 255, 255, 0.18) !important;
}

/* Card content padding */
.grid.cards > ul > li > :is(p, div, blockquote, ul, ol) {
  padding-left: 1.1rem;
  padding-right: 1.1rem;
}

/* Card title block */
/* Card headings use Audiowide */
.md-typeset .grid.cards > ul > li > p:first-child {
  font-family: "Audiowide", var(--md-text-font);
  font-weight: 400;          /* Audiowide looks better not “bolded” */
  letter-spacing: 0.02em;
}

/* Make the icon align nicely with the new heading font */
.md-typeset .grid.cards > ul > li > p:first-child .twemoji,
.md-typeset .grid.cards > ul > li > p:first-child .twemoji svg {
  vertical-align: -0.15em;
}
/* Card divider line (Material inserts <hr>) */
.grid.cards > ul > li hr {
  margin: 0.7rem 0 0.85rem 0;
  height: 1px;
  background: var(--nv-border);
}

/* Make "call-to-action" links look like buttons inside cards */
.grid.cards a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.85rem 0 1.2rem 0;
  padding: 0.55rem 0.85rem;
  border-radius: var(--nv-radius-sm);
  background: var(--nv-btn-bg);
  color: var(--nv-btn-fg);
  font-weight: 700;
  text-decoration: none !important;
  transition: filter 140ms ease, transform 140ms ease;
}

.grid.cards a:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

/* =========================================================
   OPTIONAL: make normal page headings feel less "docs"
   ========================================================= */

.md-content__inner h2 {
  margin-top: 2.2rem;
  letter-spacing: -0.01em;
}

.md-content__inner h3 {
  margin-top: 1.6rem;
  letter-spacing: -0.01em;
}

/* ===========================
   HOMEPAGE FLOW POLISH
   =========================== */

/* Tighten hero spacing */
.md-typeset .nv-hero {
  text-align: center;
  margin: 0.6rem 0 0.35rem 0;
}

.md-typeset img.nv-hero-logo {
  display: inline-block;
  max-width: min(980px, 92vw);
  height: auto;
  margin: 0 auto;
}

/* Make the “Pardon our dust” note feel like part of the hero */
.md-typeset .admonition.note {
  background: rgba(10, 12, 18, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  margin: 0.55rem 0 1.05rem 0;
}

/* Tagline block: slightly larger, less “docs” */
.md-content__inner > p strong {
  font-weight: 700;
  letter-spacing: -0.01em;
}
/* .md-content__inner > p {
  max-width: 72ch;
} */

/* Doors header: more “section title” */
.md-typeset h2#doors {
  margin-top: 1.6rem;
  margin-bottom: 0.85rem;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
}

.md-tabs {
  background: transparent;
}

.nv-tagline {
  font-size: clamp(1.05rem, 1.35vw, 1.35rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-top: 0.4rem;
  margin-bottom: 0.65rem;
  text-align: center;
  font-family: "Audiowide", var(--md-text-font);
}

/* ===========================
   GRID CARD ALIGNMENT
   =========================== */

/* Make each card a flex column so CTAs align at the bottom */
.md-typeset .grid.cards > ul > li {
  display: flex;
  flex-direction: column;
  min-height: 220px;
}

/* Reduce weird spacing inside cards from Markdown paragraphs */
.md-typeset .grid.cards > ul > li > p {
  margin: 0.25rem 0;
}

/* Push the last link (“Go live →”) to the bottom consistently */
.md-typeset .grid.cards > ul > li > p:last-child {
  margin-top: auto;
  padding-bottom: 1.05rem;
}

/* Keep the “button” link width sane */
.md-typeset .grid.cards a {
  width: fit-content;
}

/* Header logo sizing */
.md-header__button.md-logo img,
.md-header__button.md-logo svg {
  height: 34px;
  width: auto;
}

/* Optional: make site title feel less “docs site” */
.md-header__title .md-header__topic .md-ellipsis {
  font-weight: 800;
  font-family: "Audiowide", var(--md-text-font);
}

/* --- Apply Audiowide to headings and header title --- */
.md-typeset h1,
.md-typeset h2,
.md-typeset h3,
.md-typeset h4,
.md-typeset h5,
.md-typeset h6,
.md-header__title .md-ellipsis {
  font-family: "Audiowide", var(--md-text-font);
  letter-spacing: 0.02em;
}

.audiowide_font {
  font-family: "Audiowide", var(--md-text-font);
}

/* =========================================================
   OPTIONAL: remove the “Edit on GitHub” link area if you use it
   (uncomment if you want)
   ========================================================= */
/*
.md-content__button {
  display: none;
}
*/
