/* NextEx Girlfriend — neon-boudoir tokens.
 *
 * Drop this into any non-Astro app and delete that page's ad-hoc :root block.
 * Values are canonical, from nextex-root/tailwind.config.mjs. Do not "improve" a
 * hex here — four near-miss pearls and five near-miss muteds already exist across
 * the estate and every one of them started as a small local tweak.
 *
 * nextex-root uses Tailwind and does NOT need this file.
 */

:root {
  color-scheme: dark;

  /* --- Brand ------------------------------------------------------------ */
  --night:     #0B0509;   /* page background */
  --pearl:     #F2F2F2;   /* primary text on night */
  --hotpink:   #FF2DA6;   /* primary accent, CTAs, glow */
  --gold:      #E7C873;   /* secondary accent */
  --goldsoft:  #C9A24B;   /* muted gold */

  /* --- Surfaces --------------------------------------------------------- */
  --panel:     #150A11;
  --panel-2:   #1D0F18;
  --line:      rgba(255, 255, 255, .10);
  --line-2:    rgba(255, 255, 255, .16);

  /* --- Text ------------------------------------------------------------- */
  --muted:     #B3A7B0;   /* secondary text — passes AA on --night */
  --faint:     #8A8090;   /* INCIDENTAL ONLY. Fails 4.5:1. Never body copy. */

  /* --- Semantic (named for meaning so they survive a rebrand) ----------- */
  --ok:        #5FE0A0;
  --warn:      #E8A13A;
  --error:     #FF7A9C;
  --focus:     var(--hotpink);

  /* --- Glow ------------------------------------------------------------- */
  --glow-pink-rgb: 255, 45, 166;
  --shadow-neon:      0 0 20px rgba(255, 45, 166, .45), 0 0 40px rgba(255, 45, 166, .20);
  --shadow-neon-soft: 0 0 14px rgba(255, 45, 166, .30);
  --shadow-gold:      0 0 18px rgba(231, 200, 115, .35);
  --shadow-glass:     0 8px 32px rgba(0, 0, 0, .45);

  /* --- Type ------------------------------------------------------------- */
  --font-display: "Playfair Display", "Hoefler Text", Georgia, serif;
  --font-sans:    Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-script:  "Dancing Script", cursive;   /* wordmark flourish only */

  /* --- Spacing scale (the estate has none — use this) ------------------- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  /* --- Radius (ten distinct values exist in one repo — use these four) -- */
  --radius-sm:   8px;
  --radius:     12px;
  --radius-lg:  16px;
  --radius-pill: 999px;   /* not 99px, not 100px */

  /* --- Container widths (thirteen exist — use these three) -------------- */
  --width-prose: 720px;
  --width-page:  1080px;
  --width-wide:  1400px;
}

/* --- Base ---------------------------------------------------------------- */

body {
  margin: 0;
  background:
    radial-gradient(1100px 620px at 84% -8%, rgba(255, 45, 166, .16), transparent 60%),
    radial-gradient(900px 560px at -8% 108%, rgba(231, 200, 115, .12), transparent 58%),
    var(--night);
  color: var(--pearl);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; }

::selection { background: rgba(var(--glow-pink-rgb), .35); color: #fff; }

/* Visible focus on everything. This is the floor — never remove it without a
   replacement. Currently only one component in the whole estate has it. */
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}

/* --- Components ---------------------------------------------------------- */

.glass {
  background: linear-gradient(135deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .01));
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-glass);
}

/* Same look without backdrop-filter. Use inside anything that transforms:
   Chrome rasterizes the box-shadow once and renders it muted on later hovers. */
.glass-solid {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-glass);
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;               /* touch target floor */
  padding: var(--space-3) var(--space-6);
  border: 0;
  border-radius: var(--radius-pill);
  font: 600 .875rem/1 var(--font-sans);
  letter-spacing: .02em;
  cursor: pointer;
  transition: box-shadow .3s, transform .3s, background .3s;
}
.btn-primary   { background: var(--hotpink); color: #fff; box-shadow: var(--shadow-neon-soft); }
.btn-secondary { background: transparent; color: var(--gold); border: 1px solid rgba(231, 200, 115, .6); }
.btn-ghost     { background: transparent; color: var(--pearl); border: 1px solid var(--line); }
.btn:disabled  { opacity: .5; cursor: not-allowed; }

.neon-text { text-shadow: 0 0 8px rgba(var(--glow-pink-rgb), .55), 0 0 22px rgba(var(--glow-pink-rgb), .35); }
.gold-text { color: var(--gold); text-shadow: 0 0 10px rgba(231, 200, 115, .35); }

/* The cross-property wordmark. Copy-pasted into 18 files across three repos — use this one.
   The image it wraps is one file on the root origin, so a wordmark change is a single re-export. */
.sitemark { display: block; text-align: center; padding: var(--space-4) var(--space-3) var(--space-1); line-height: 0; }
.sitemark img { max-height: 88px; max-width: 88%; filter: drop-shadow(0 0 16px rgba(255, 45, 166, .45)); }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
