/* ============================================================
   CuraMagis — Colors & Type Foundations
   Boutique college admissions consulting. Navy + gold, Garamond serifs.
   Editorial, premium, restrained. Import this file to inherit the system.
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/CormorantGaramond-Light.ttf") format("truetype");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/CormorantGaramond-Regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/CormorantGaramond-Medium.ttf") format("truetype");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/CormorantGaramond-SemiBold.ttf") format("truetype");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/CormorantGaramond-Bold.ttf") format("truetype");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/CormorantGaramond-Italic.ttf") format("truetype");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/CormorantGaramond-MediumItalic.ttf") format("truetype");
  font-weight: 500; font-style: italic; font-display: swap;
}

@font-face {
  font-family: "EB Garamond";
  src: url("fonts/EBGaramond-Regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("fonts/EBGaramond-Medium.ttf") format("truetype");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("fonts/EBGaramond-SemiBold.ttf") format("truetype");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("fonts/EBGaramond-Bold.ttf") format("truetype");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("fonts/EBGaramond-Italic.ttf") format("truetype");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("fonts/EBGaramond-MediumItalic.ttf") format("truetype");
  font-weight: 500; font-style: italic; font-display: swap;
}

:root {
  /* ============ COLOR — RAW PALETTE ============ */
  --navy:            #0C4160;  /* Primary. Backgrounds, headers, body text on light */
  --navy-deep:       #082F47;  /* Darker navy for layered surfaces / footers */
  --navy-tint:       #163C56;  /* Slightly lifted navy for cards on navy */
  --gold:            #CEA22F;  /* Primary accent. CTAs, rules, key phrases — on light only */
  --gold-mid:        #E8B94D;  /* Text/headings on navy (never use --gold as text on navy) */
  --gold-light:      #F2D34A;  /* Gradients & texture ONLY — never as text/fill swap */
  --white:           #FFFFFF;

  /* ============ COLOR — NEUTRALS (warm, paper-leaning) ============ */
  --paper:           #FBF9F4;  /* Warm off-white page background */
  --paper-2:         #F4EFE6;  /* Slightly deeper warm panel */
  --line:            #E6DECF;  /* Hairline borders on light */
  --line-strong:     #D8CCB4;  /* Stronger warm divider */
  --ink:             #0C4160;  /* Default text = navy */
  --ink-soft:        #3C5C72;  /* Secondary text on light */
  --ink-muted:       #6E8597;  /* Tertiary / captions on light */

  /* ============ COLOR — ON-NAVY ============ */
  --on-navy:         #FFFFFF;
  --on-navy-soft:    #C4D2DC;  /* Secondary text on navy */
  --on-navy-muted:   #87A0B0;  /* Tertiary text on navy */
  --navy-line:       rgba(255,255,255,0.16);

  /* ============ SEMANTIC COLOR ROLES ============ */
  --bg:              var(--paper);
  --surface:         var(--white);
  --fg1:             var(--navy);     /* primary text */
  --fg2:             var(--ink-soft); /* secondary text */
  --fg3:             var(--ink-muted);/* muted text */
  --accent:          var(--gold);
  --accent-ink:      #8A6A14;         /* gold-family text on light, AA-legible */
  --focus:           #CEA22F;

  /* ============ GRADIENTS / TEXTURE (gold-light only) ============ */
  --grad-gold:       linear-gradient(135deg, #E8B94D 0%, #F2D34A 100%);
  --grad-navy:       linear-gradient(160deg, #0C4160 0%, #082F47 100%);
  --sheen-gold:      linear-gradient(180deg, rgba(242,211,74,0.16), rgba(242,211,74,0));

  /* ============ TYPE FAMILIES ============ */
  --font-display: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --font-body:    "EB Garamond", Georgia, "Times New Roman", serif;

  /* ============ TYPE SCALE (editorial, generous) ============ */
  --fs-display:  clamp(3.25rem, 6vw, 5.5rem);  /* hero display */
  --fs-h1:       clamp(2.5rem, 4.5vw, 3.75rem);
  --fs-h2:       clamp(2rem, 3.2vw, 2.75rem);
  --fs-h3:       1.75rem;
  --fs-h4:       1.375rem;
  --fs-lead:     1.3125rem;  /* 21px intro paragraphs */
  --fs-body:     1.125rem;   /* 18px base reading */
  --fs-small:    1rem;       /* 16px */
  --fs-caption:  0.875rem;   /* 14px — EB Garamond floor for legibility */
  --fs-eyebrow:  0.8125rem;  /* 13px uppercase label */

  --lh-tight:    1.08;
  --lh-snug:     1.2;
  --lh-body:     1.62;
  --tracking-eyebrow: 0.18em;
  --tracking-caps:    0.06em;

  /* ============ SPACING (8px base) ============ */
  --space-1: 4px;   --space-2: 8px;   --space-3: 12px;  --space-4: 16px;
  --space-5: 24px;  --space-6: 32px;  --space-7: 48px;  --space-8: 64px;
  --space-9: 96px;  --space-10: 128px;

  /* ============ RADII (restrained — editorial, not startup) ============ */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-pill: 999px;

  /* ============ BORDERS ============ */
  --border-hair: 1px solid var(--line);
  --border-rule: 1px solid var(--line-strong);
  --border-gold: 1px solid var(--gold);

  /* ============ SHADOWS (soft, warm, low) ============ */
  --shadow-xs: 0 1px 2px rgba(12,65,96,0.06);
  --shadow-sm: 0 2px 8px rgba(12,65,96,0.07);
  --shadow-md: 0 8px 28px rgba(12,65,96,0.10);
  --shadow-lg: 0 24px 60px rgba(12,65,96,0.14);
  --shadow-gold: 0 8px 24px rgba(206,162,47,0.22);

  /* ============ MOTION ============ */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 140ms;
  --dur: 240ms;
  --dur-slow: 480ms;
}

/* ============================================================
   SEMANTIC ELEMENT DEFAULTS
   ============================================================ */
.cm-display, .cm-h1, .cm-h2, .cm-h3, .cm-h4 {
  font-family: var(--font-display);
  color: var(--fg1);
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: -0.005em;
  margin: 0;
  text-wrap: balance;
}
.cm-display { font-size: var(--fs-display); font-weight: 500; line-height: var(--lh-tight); }
.cm-h1 { font-size: var(--fs-h1); }
.cm-h2 { font-size: var(--fs-h2); }
.cm-h3 { font-size: var(--fs-h3); line-height: var(--lh-snug); }
.cm-h4 { font-size: var(--fs-h4); line-height: var(--lh-snug); font-weight: 600; }

.cm-eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--accent-ink);
  margin: 0;
}

.cm-lead {
  font-family: var(--font-body);
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--fg2);
  margin: 0;
}

.cm-body, .cm-p {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--fg2);
  margin: 0;
  text-wrap: pretty;
}

.cm-caption {
  font-family: var(--font-body);
  font-size: var(--fs-caption);
  line-height: 1.45;
  color: var(--fg3);
  margin: 0;
}

.cm-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: var(--fs-h3);
  line-height: 1.3;
  color: var(--fg1);
}

/* Accent for inline key phrases on light backgrounds */
.cm-accent { color: var(--accent-ink); }
