/* =============================================================
   Cosmic Nisi — colors_and_type.css
   Re-skinned to the NISIVERSUM Design System (Pink / Deep Burgundy-Rose).
   Dark cosmic ground, one luminous rosé-gold accent, dusty-rose for
   emotional moments. Cormorant Garamond (300) · Inter · Caveat.
   The page's original token NAMES are preserved as aliases so every
   existing rule + inline style re-skins to the new palette.
   ============================================================= */

:root {
  /* ===== DESIGN-SYSTEM BASE PALETTE (Pink) ===== */
  --night:      #160611;  /* page ground — deep burgundy-rose */
  --midnight-deep: #0C0309; /* deepest ground — hero, footer, dark bands */
  --surface:    #210A1A;  /* raised cards / sections */
  --surface-2:  #2B0F23;  /* slightly lifted surface / hover */

  --gold:       #F26E9A;  /* THE accent — glowing rose */
  --gold-soft:  #F79CBC;  /* hover / soft highlight */
  --gold-deep:  #E0568A;  /* deeper rose for small emphasis */
  --rose:       #D6447E;  /* deep berry-rose — emotional moments, sparingly */
  --rose-glow:  #F26E9A;  /* glowing rose — rare accents */

  --cream:      #FBEDEB;  /* primary text — creamy blush */
  --cream-90:   rgba(251, 237, 235, 0.90);
  --cream-70:   rgba(251, 237, 235, 0.68);
  --cream-50:   rgba(251, 237, 235, 0.46);
  --cream-30:   rgba(251, 237, 235, 0.26);
  --cream-12:   rgba(251, 237, 235, 0.12);
  --cream-06:   rgba(251, 237, 235, 0.06);
  --text-sec:   #C39B95;  /* secondary text, captions, meta */
  --text-muted: #7E5C58;  /* footer-small, disclaimer */
  --border:     #3A1A2D;  /* subtle dividers, card outlines */

  /* ===== BACK-COMPAT ALIASES (old page names → pink values) =====
     Everything dark now, so "ink" = dark fills, and the ink-alpha
     scale becomes a CREAM-on-dark scale (text + hairlines). */
  --ink:        var(--midnight-deep);      /* solid dark fill */
  --ink-90:     var(--cream-90);           /* near-solid text */
  --ink-70:     var(--cream-70);           /* secondary text */
  --ink-50:     var(--cream-50);           /* tertiary text / captions */
  --ink-30:     var(--cream-30);           /* input borders */
  --ink-12:     var(--cream-12);           /* hairline rules */
  --ink-06:     var(--cream-06);

  --midnight:   var(--surface);            /* lifted surface / hover */

  --parchment:    var(--cream);            /* light text on dark */
  --parchment-90: var(--cream-90);
  --parchment-70: var(--cream-70);
  --parchment-50: var(--cream-50);
  --parchment-20: var(--cream-12);

  --vellum:     var(--surface);            /* card / band surface */

  --bronze:       var(--gold);             /* accent */
  --bronze-deep:  var(--gold-deep);        /* emphasis accent */
  --bronze-soft:  var(--gold);             /* accent text on dark */

  --rose-dust:  var(--rose);
  --moonstone:  var(--text-sec);
  --sage-deep:  var(--text-sec);

  /* ===== SEMANTIC COLOR ===== */
  --bg:                var(--night);
  --bg-alt:            var(--surface);
  --bg-dark:           var(--midnight-deep);
  --bg-dark-alt:       var(--surface);

  --fg:                var(--cream);
  --fg-muted:          var(--cream-70);
  --fg-subtle:         var(--cream-50);

  --fg-on-dark:        var(--cream);
  --fg-on-dark-muted:  var(--cream-70);
  --fg-on-dark-subtle: var(--cream-50);

  --accent:            var(--gold);
  --accent-deep:       var(--gold-deep);
  --accent-on-dark:    var(--gold);

  --rule:              var(--cream-12);
  --rule-on-dark:      var(--cream-12);

  --link:              var(--cream);
  --link-hover:        var(--gold);

  --accent-wash:       rgba(242, 110, 154, 0.12);
  --nav-veil:          rgba(22, 6, 17, 0.82);

  /* ===== TYPE ===== */
  --font-display:  'Cormorant Garamond', 'Cormorant', Garamond, 'EB Garamond', Georgia, serif;
  --font-body:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-signature:'Caveat', cursive;
  --font-mono:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  /* Fluid type ramp */
  --text-display:   clamp(48px, 6vw + 18px, 88px);
  --text-h1:        clamp(36px, 3.5vw + 18px, 56px);
  --text-h2:        clamp(28px, 1.5vw + 20px, 36px);
  --text-h3:        clamp(20px, 0.5vw + 18px, 24px);
  --text-eyebrow:   14px;
  --text-body-lg:   19px;
  --text-body:      17px;
  --text-small:     14px;
  --text-tiny:      12px;
  --text-quote:     clamp(22px, 1.5vw + 14px, 32px);

  /* Line heights */
  --lh-display:    1.05;
  --lh-heading:    1.12;
  --lh-quote:      1.4;
  --lh-body:       1.65;
  --lh-tight:      1.3;

  /* Tracking */
  --tracking-tight:    -0.01em;
  --tracking-normal:   0;
  --tracking-wide:     0.04em;
  --tracking-eyebrow:  0.12em;

  /* Weights */
  --weight-light:    300;
  --weight-regular:  400;
  --weight-medium:   500;
  --weight-semi:     600;

  /* ===== SPACING ===== */
  --space-1:   4px;
  --space-2:   8px;
  --space-3:   12px;
  --space-4:   16px;
  --space-5:   24px;
  --space-6:   32px;
  --space-8:   48px;
  --space-10:  64px;
  --space-12:  96px;
  --space-16:  144px;

  --section-y:        clamp(64px, 8vw, 128px);
  --section-y-tight:  clamp(48px, 5vw, 96px);

  --content-max:      1200px;
  --content-narrow:   720px;
  --gutter:           clamp(20px, 4vw, 48px);

  /* ===== RADII (DS) ===== */
  --radius-sm:    4px;
  --radius-md:    8px;
  --radius-lg:    16px;
  --radius-xl:    24px;
  --radius-pill:  999px;

  /* ===== BORDERS ===== */
  --border-hairline:   1px solid var(--cream-12);
  --border-on-dark:    1px solid var(--cream-12);

  /* ===== SHADOWS (DS — soft, low-opacity) ===== */
  --shadow-soft:   0 4px 24px rgba(0, 0, 0, 0.30);
  --shadow-modal:  0 12px 48px rgba(0, 0, 0, 0.45);
  --shadow-glow-gold: 0 0 36px rgba(242, 110, 154, 0.42);

  /* ===== MOTION ===== */
  --ease:          cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 200ms;
  --duration-mid:  400ms;
  --duration-slow: 600ms;
}

/* =============================================================
   BASE element styles — dark ground, cream text, rosé-gold accent.
   ============================================================= */
html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--lh-body);
  font-weight: var(--weight-regular);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Headings — Cormorant, light by default (edel) */
h1, .h1, .display {
  font-family: var(--font-display);
  font-weight: var(--weight-light);
  font-size: var(--text-h1);
  line-height: var(--lh-heading);
  letter-spacing: var(--tracking-tight);
  color: var(--fg);
  margin: 0;
}
.display {
  font-size: var(--text-display);
  line-height: var(--lh-display);
}
h2, .h2 {
  font-family: var(--font-display);
  font-weight: var(--weight-light);
  font-size: var(--text-h2);
  line-height: var(--lh-heading);
  letter-spacing: var(--tracking-tight);
  color: var(--fg);
  margin: 0;
}
h3, .h3 {
  font-family: var(--font-body);
  font-weight: var(--weight-medium);
  font-size: var(--text-h3);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-normal);
  color: var(--fg);
  margin: 0;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: var(--weight-medium);
  font-size: var(--text-eyebrow);
  line-height: 1;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--gold);
  /* harmonious standard breathing room between eyebrow and its heading, site-wide */
  margin-bottom: var(--space-4);
}

.quote, blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: var(--weight-regular);
  font-size: var(--text-quote);
  line-height: var(--lh-quote);
  color: var(--fg);
  margin: 0;
}

p, .body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--lh-body);
  color: var(--fg);
  margin: 0;
  text-wrap: pretty;
}
.body-lg { font-size: var(--text-body-lg); }
.small   { font-size: var(--text-small); }
.tiny    { font-size: var(--text-tiny); }

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: var(--cream-30);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
  transition: text-decoration-color var(--duration-fast) var(--ease),
              color var(--duration-fast) var(--ease);
}
a:hover {
  text-decoration-color: currentColor;
  color: var(--link-hover);
}

hr, .rule {
  border: 0;
  border-top: var(--border-hairline);
  margin: 0;
}

/* ===== Buttons — DS gold pill family ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: var(--weight-medium);
  font-size: var(--text-small);
  letter-spacing: 0.02em;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--duration-fast) var(--ease),
              border-color var(--duration-fast) var(--ease),
              box-shadow var(--duration-fast) var(--ease),
              color var(--duration-fast) var(--ease),
              transform var(--duration-fast) var(--ease),
              opacity var(--duration-fast) var(--ease);
}
.btn-primary {
  background: var(--gold);
  color: var(--midnight-deep);
}
.btn-primary:hover  { background: var(--gold-soft); box-shadow: var(--shadow-glow-gold); }
.btn-primary:active { transform: translateY(1px); }

.btn-ghost {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-ghost:hover  { background: var(--accent-wash); }
.btn-ghost:active { transform: translateY(1px); }

.btn-on-dark {
  background: var(--gold);
  color: var(--midnight-deep);
}
.btn-on-dark:hover { background: var(--gold-soft); box-shadow: var(--shadow-glow-gold); }

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