/*
 * THE ASSIST V2 — GLOBAL DESIGN TOKENS
 * File: /assets/css/global.css
 *
 * This is the single source of truth for all design values.
 * Never hardcode a color, font, or spacing value anywhere else.
 * Always reference a variable from this file.
 *
 * Table of Contents:
 *  1. Color Tokens
 *  2. Typography Tokens
 *  3. Spacing Scale
 *  4. Layout Tokens
 *  5. Border Radius
 *  6. Shadows
 *  7. Transitions & Animation
 *  8. Z-Index Scale
 *  9. Base HTML Resets
 * 10. Base Typography Styles
 */


@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&display=swap');

/* 1. COLOR TOKENS */

:root {
  /* ── Brand Core ── */
  --color-teal: #3dbfbf;
  --color-teal-dark: #2a9e9e;
  --color-teal-light: #e8f7f7;
  --color-teal-bg: #d6f0f0;

  --color-pink: #f5607a;
  --color-pink-dark: #d94a63;
  --color-pink-light: #fde8ec;

  --color-yellow: #e8f53d;
  --color-yellow-dark: #c9d900;

  --color-purple: #7b6fd0;
  --color-purple-dark: #5a4fb8;
  --color-purple-light: #f0eef9;

  --color-navy: #1a2b4a;
  --color-navy-light: #2c4172;
  --color-dark-bg: #0f1e35;

  --color-green-light: #f0f7e6;
  --color-green: #6bbf6b;

  --color-orange-light: #fdf3e8;
  --color-orange: #f5a623;

  /* ── Neutrals ── */
  --color-white: #ffffff;
  --color-off-white: #fafafa;
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;

  /* ── Semantic ── */
  --color-text-body: #374151;
  --color-text-muted: #6b7280;
  --color-text-heading: #1a2b4a;
  --color-text-inverse: #ffffff;
  --color-border: #e5e7eb;
  --color-border-dark: #d1d5db;

  /* ── Newsletter Type Colors (card backgrounds) ── */
  --color-og-tuesday-bg: linear-gradient(135deg, rgb(224, 247, 250) 0%, rgb(240, 249, 255) 100%); /* light teal gradient*/
  --color-og-tuesday-accent: #3dbfbf; /* teal */
  --color-wellness-bg: linear-gradient(135deg, rgb(252, 228, 236) 0%, rgb(243, 229, 245) 100%); /* light pink gradient*/
  --color-wellness-accent: #f5607a; /* pink */
  --color-thirsty-bg: linear-gradient(135deg, rgb(255, 248, 225) 0%, rgb(255, 235, 238) 100%); /* light orange gradient*/
  --color-thirsty-accent: #f5a623; /* orange */
  --color-weekender-bg: linear-gradient(135deg, rgb(237, 231, 246) 0%, rgb(232, 234, 246) 100%); /* light purple gradient*/
  --color-weekender-accent: #7b6fd0; /* purple */
}

/* 
   2. TYPOGRAPHY TOKENS
    */

:root {
  /* ── Families ── */
  --font-heading: "League Spartan", sans-serif;
  --font-body: "Open Sans", sans-serif;
  --font-display: "Cormorant Garamond", serif;

  /* ── Type Scale ── */
  --text-xs: 0.75rem; /* 12px — micro labels */
  --text-sm: 0.875rem; /* 14px — captions, meta */
  --text-base: 1rem; /* 16px — body default */
  --text-md: 1.0625rem; /* 17px — slightly larger body */
  --text-lg: 1.125rem; /* 18px — lead text */
  --text-xl: 1.25rem; /* 20px — card headings */
  --text-2xl: 1.5rem; /* 24px — sub-section headings */
  --text-3xl: 2rem; /* 32px — section headings */
  --text-4xl: 2.625rem; /* 42px — page heroes */
  --text-5xl: 3rem; /* 48px — homepage hero */
  --text-6xl: 3.75rem; /* 60px — very large display */

  /* ── Font Weights ── */
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-black: 900;

  /* ── Line Heights ── */
  --leading-none: 1;
  --leading-tight: 1.15;
  --leading-snug: 1.3;
  --leading-normal: 1.6;
  --leading-relaxed: 1.75;
  --leading-loose: 1.9;

  /* ── Letter Spacing ── */
  --tracking-tight: -0.025em;
  --tracking-normal: 0;
  --tracking-wide: 0.05em;
  --tracking-wider: 0.1em;
  --tracking-widest: 0.15em;
}

/* 
   3. SPACING SCALE
   All spacing follows an 8px base grid.
    */

:root {
  --space-0: 0;
  --space-1: 0.25rem; /*  4px */
  --space-2: 0.5rem; /*  8px */
  --space-3: 0.75rem; /* 12px */
  --space-4: 1rem; /* 16px */
  --space-5: 1.25rem; /* 20px */
  --space-6: 1.5rem; /* 24px */
  --space-7: 1.75rem; /* 28px */
  --space-8: 2rem; /* 32px */
  --space-10: 2.5rem; /* 40px */
  --space-12: 3rem; /* 48px */
  --space-14: 3.5rem; /* 56px */
  --space-16: 4rem; /* 64px */
  --space-20: 5rem; /* 80px */
  --space-24: 6rem; /* 96px */
  --space-28: 7rem; /* 112px */
  --space-32: 8rem; /* 128px */

  /* Section vertical rhythm */
  --section-py: var(--space-20); /* 80px — standard sections */
  --section-py-lg: var(--space-28); /* 112px — hero / large sections */
  --section-py-sm: var(--space-12); /* 48px — compact sections */
  --section-px: var(--space-6); /* 24px — horizontal page padding */
}

/* 
   4. LAYOUT TOKENS
    */

:root {
  --max-content: 1440px; /* Standard page container */
  --max-narrow: 980px; /* Newsletter page conatiner */
  --max-wide: 1220px; /* Blog post page container */
  --max-full: 100%;

  /* Grid */
  --grid-gap: var(--space-6); /* 24px gap between grid items */
  --grid-gap-lg: var(--space-8); /* 32px gap for larger grids */
}

/* 
   5. BORDER RADIUS
    */

:root {
  --radius-none: 0;
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 28px;
  --radius-3xl: 36px;
  --radius-pill: 999px; /* Perfect pill for buttons + badges */
  --radius-circle: 50%;
}

/* 
   6. SHADOWS
    */

:root {
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-card: 0 2px 16px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.14);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);

  /* Colored shadows (used on CTA buttons) */
  --shadow-pink: 0 8px 24px rgba(245, 96, 122, 0.35);
  --shadow-teal: 0 8px 24px rgba(61, 191, 191, 0.3);
}

/* 
   7. TRANSITIONS & ANIMATION
    */

:root {
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  --transition-slower: 600ms ease;

  /* Easing curves */
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 
   8. Z-INDEX SCALE
    */

:root {
  --z-below: -1;
  --z-base: 0;
  --z-raised: 10;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-toast: 500;
  --z-top: 9999;
}

/* 
   9. BASE HTML RESETS
    */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  color: var(--color-text-body);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

/* 
  10. BASE TYPOGRAPHY STYLES
    */

/* ── Headings ── */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  color: var(--color-text-heading);
  margin-top: 0;
  margin-bottom: var(--space-4);
}

h1 {
  font-size: var(--text-5xl);
}
h2 {
  font-size: var(--text-4xl);
}
h3 {
  font-size: var(--text-3xl);
}
h4 {
  font-size: var(--text-2xl);
}
h5 {
  font-size: var(--text-xl);
}
h6 {
  font-size: var(--text-lg);
}

/* ── Body ── */
p {
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text-body);
  margin-top: 0;
  margin-bottom: var(--space-4);
}

p:last-child {
  margin-bottom: 0;
}

/* ── Eyebrow Label ── */
/* Usage: <span class="ta-eyebrow">OUR NEWSLETTERS</span> */
.ta-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: var(--space-3);
}

/* ── Display Heading (Fraunces — homepage hero only) ── */
/* Usage: <h1 class="ta-display">Headline</h1> */
.ta-display {
  font-family: var(--font-heading);
  font-weight: var(--weight-black);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}

/* ── Inline Text Highlight (yellow bg on keywords) ── */
/* Usage: <span class="ta-highlight">smart women</span> */
.ta-highlight {
  border-radius: var(--radius-xs);
  padding: 2px 6px;
  display: inline;
  position: relative;
  z-index: 1;
}
.ta-highlight::before {
  content: "";
  position: absolute;
  left: 0px;
  top: 40px;
  width: 100%;
  height: 20px;
  z-index: -1;
  background: var(--color-yellow);
}
/* ── Teal underline style (used on section headings) ── */
.ta-underline {
  text-decoration: underline;
  text-decoration-color: var(--color-teal);
  text-underline-offset: 6px;
  text-decoration-thickness: 3px;
}

/* ── Lead paragraph (larger body text) ── */
.ta-lead {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-text-muted);
}

/* ── Blockquote (used in blog posts) ── */
blockquote.ta-quote {
  border-left: 4px solid var(--color-teal);
  padding-left: var(--space-6);
  margin: var(--space-8) 0;
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--color-gray-600);
  line-height: var(--leading-relaxed);
}

/* ── Page Container ── */
.ta-container {
  width: 100%;
  max-width: var(--max-content);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--section-px);
  padding-right: var(--section-px);
}

.ta-container--narrow {
  max-width: var(--max-narrow);
}

.ta-container--wide {
  max-width: var(--max-wide);
}

/* ── 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;
  }
}
