@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@600&family=Newsreader:ital,wght@0,300;0,400;1,300;1,400&family=Open+Sans:ital,wght@0,300;0,400;0,700;1,300;1,400&display=swap');

/* ─── COLOR TOKENS ─────────────────────────────────────────────────────────── */
:root {
  /* Blue scale */
  --color-blue-darkest:  #090937;
  --color-blue-dark:     #0e0e41;
  --color-blue-electric: #0c0d56;
  --color-blue:          #1f204a;
  --color-blue-light:    #3c3c75;
  --color-blue-alpha-80: rgba(12, 13, 86, 0.8);
  --color-blue-alpha-0:  rgba(14, 14, 65, 0);

  /* Red scale */
  --color-red-darkest:  #160a0a;
  --color-red-dark:     #bb3232;
  --color-red:          #dd4444;
  --color-red-light:    #f56b6b;
  --color-red-yelp:     #FD2626;
  --color-red-alpha-0:  rgba(187, 50, 50, 0);

  /* Neutral */
  --color-beige:          #fdf7ef;
  --color-beige-alpha-80: rgba(253, 247, 239, 0.8);
  --color-beige-alpha-0:  rgba(253, 247, 239, 0);
  --color-gray-subtle:    #dadada;
  --color-gray-mid:       #969696;
  --color-white:          #ffffff;
  --color-white-alpha-80: rgba(255, 255, 255, 0.8);
}

/* ─── TYPOGRAPHY TOKENS ─────────────────────────────────────────────────────── */
:root {
  /* Font families */
  --font-serif:      'Newsreader', Georgia, serif;
  --font-sans:       'Open Sans', Helvetica, Arial, sans-serif;

  /* Font weights */
  --fw-light:        300;
  --fw-regular:      400;
  --fw-bold:         700;

  /* Fluid font sizes (min viewport: 25rem / 400px, max: 120rem / 1920px) */
  --text-xs:   clamp(0.6875 * 1rem, ((0.6875 - ((0.8125 - 0.6875) / (120 - 25) * 25)) * 1rem + ((0.8125 - 0.6875) / (120 - 25)) * 100vw), 0.8125 * 1rem);
  --text-sm:   clamp(0.8125 * 1rem, ((0.8125 - ((1 - 0.8125) / (120 - 25) * 25)) * 1rem + ((1 - 0.8125) / (120 - 25)) * 100vw), 1 * 1rem);
  --text-base: clamp(0.9375 * 1rem, ((0.9375 - ((1.3125 - 0.9375) / (120 - 25) * 25)) * 1rem + ((1.3125 - 0.9375) / (120 - 25)) * 100vw), 1.3125 * 1rem);
  --text-h5:   clamp(1 * 1rem, ((1 - ((1.625 - 1) / (120 - 25) * 25)) * 1rem + ((1.625 - 1) / (120 - 25)) * 100vw), 1.625 * 1rem);
  --text-h4:   clamp(1.125 * 1rem, ((1.125 - ((1.9375 - 1.125) / (120 - 25) * 25)) * 1rem + ((1.9375 - 1.125) / (120 - 25)) * 100vw), 1.9375 * 1rem);
  --text-h3:   clamp(1.375 * 1rem, ((1.375 - ((2.625 - 1.375) / (120 - 25) * 25)) * 1rem + ((2.625 - 1.375) / (120 - 25)) * 100vw), 2.625 * 1rem);
  --text-h2:   clamp(1.875 * 1rem, ((1.875 - ((4.5 - 1.875) / (120 - 25) * 25)) * 1rem + ((4.5 - 1.875) / (120 - 25)) * 100vw), 4.5 * 1rem);
  --text-h1:   clamp(2.9 * 1rem, ((2.9 - ((7 - 2.9) / (120 - 25) * 25)) * 1rem + ((7 - 2.9) / (120 - 25)) * 100vw), 7 * 1rem);
}

/* ─── BASE RESET & DEFAULTS ─────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: var(--fw-regular);
  color: var(--color-blue-darkest);
  background-color: var(--color-beige);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-size: var(--text-base);
  line-height: 1.5;
  text-wrap: pretty;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: var(--fw-light);
  line-height: 1.1;
}

h1 { font-size: var(--text-h1); text-wrap: balance; }
h2 { font-size: var(--text-h2); font-weight: var(--fw-regular); text-wrap: balance; }
h3 { font-size: var(--text-h3); }
h4 { font-size: var(--text-h4); font-weight: var(--fw-regular); }
h5 { font-size: var(--text-h5); font-weight: var(--fw-regular); }

small { font-size: var(--text-sm); }

/* ─── ICON TOKENS (Lucide) ──────────────────────────────────────────────────── */
:root {
  --icon-stroke:      1.5;   /* default stroke width */
  --icon-stroke-thin: 1;
  --icon-stroke-bold: 2;
  --icon-size-sm:     1rem;
  --icon-size-md:     1.25rem;
  --icon-size-lg:     1.5rem;
  --icon-size-xl:     2rem;
}

[data-lucide] {
  width:        var(--icon-size-md);
  height:       var(--icon-size-md);
  stroke-width: var(--icon-stroke);
  stroke:       currentColor;  /* inherits text color by default */
  fill:         none;
}
