/* =========================================================================
   EIGIER — Foundations: Color & Type
   A heraldic family-holding brand. Navy + gold over parchment, with
   heraldic accents drawn from the four quarters of the crest.
   Fonts are loaded from Google Fonts (open-source). See README "VISUAL
   FOUNDATIONS" for the rationale and any substitution notes.
   ========================================================================= */

@import url('fonts.css');

:root {
  /* ---- BRAND CORE -------------------------------------------------- */
  --navy-900: #060F1C;   /* ink navy — deepest, near-black backdrops      */
  --navy-800: #0B1B2E;   /* Eigier Navy — primary brand dark / app icon   */
  --navy-700: #122740;   /* raised navy surface                           */
  --navy-600: #1B3553;   /* hairline / border on dark                     */
  --navy-500: #2C4A6E;   /* lifted navy for selected/active states         */

  --gold-700: #8A6A2C;   /* antique gold — deep engraving / pressed state  */
  --gold-600: #A9842F;   /* bronze gold                                    */
  --gold-500: #C7A24C;   /* Eigier Gold — primary accent                   */
  --gold-400: #D8B85F;   /* polished gold                                  */
  --gold-300: #E7CD84;   /* gold highlight / hover sheen                   */
  --gold-100: #F3E6C2;   /* faint gold wash                                */

  /* ---- PARCHMENT / NEUTRALS (light surfaces) ----------------------- */
  --parchment-50:  #FBF6EA;  /* lightest paper                            */
  --parchment-100: #F4EAD3;  /* primary parchment surface                 */
  --parchment-200: #E9DABB;  /* aged parchment / card on parchment        */
  --parchment-300: #D9C49B;  /* parchment border                          */
  --ink-700:       #3A3322;  /* warm ink text on parchment                */
  --ink-500:       #6B6049;  /* secondary ink on parchment                */

  /* ---- HERALDIC ACCENTS (from the shield quarters) ----------------- */
  --heraldic-blue:   #1E3A66;  /* upper-left quarter (Matterhorn azure)   */
  --heraldic-green:  #3E5A33;  /* olive-tree quarter                      */
  --heraldic-purple: #46305A;  /* Star-of-David quarter                   */
  --heraldic-claret: #5E2A2A;  /* reserved deep red for alerts/seals      */

  /* ---- SEMANTIC: foreground / background --------------------------- */
  --fg-1: var(--parchment-50);   /* primary text on dark                  */
  --fg-2: #B9C2CE;               /* secondary text on dark (cool slate)   */
  --fg-3: #74808F;               /* muted text on dark                    */
  --fg-on-light-1: var(--ink-700);
  --fg-on-light-2: var(--ink-500);

  --bg-1: var(--navy-800);       /* default app backdrop                  */
  --bg-2: var(--navy-700);       /* raised surface                        */
  --bg-3: var(--navy-600);       /* higher surface / input                */
  --accent: var(--gold-500);
  --accent-hover: var(--gold-300);
  --accent-press: var(--gold-700);
  --hairline: rgba(199,162,76,0.28);  /* gold hairline on dark           */
  --hairline-soft: rgba(199,162,76,0.14);

  /* ---- SEMANTIC STATUS --------------------------------------------- */
  --positive: #5C8A52;
  --warning:  #C7A24C;
  --danger:   #A84B3C;

  /* ---- TYPE FAMILIES ----------------------------------------------- */
  --font-display: 'Cinzel', 'Trajan Pro', Georgia, serif;       /* engraved Roman caps — wordmark & display */
  --font-serif:   'Spectral', 'Spectral SC', Georgia, 'Times New Roman', serif; /* literary serif — lede & prose */
  --font-body:    'Spectral', Georgia, 'Times New Roman', serif; /* readable body & UI text */
  --font-mono:    'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* ---- TYPE SCALE (semantic) --------------------------------------- */
  --display-size: clamp(48px, 7vw, 88px);
  --display-tracking: 0.14em;
  --h1-size: clamp(34px, 4.4vw, 52px);
  --h2-size: clamp(26px, 3vw, 36px);
  --h3-size: 22px;
  --eyebrow-size: 13px;
  --eyebrow-tracking: 0.34em;
  --body-lg: 21px;
  --body: 18px;
  --body-sm: 16px;
  --caption: 13px;

  /* ---- SPACING (8px base, with heritage half-steps) ---------------- */
  --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;

  /* ---- RADII (restrained; heraldry favors crisp edges) ------------- */
  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 12px;
  --radius-pill: 999px;

  /* ---- ELEVATION --------------------------------------------------- */
  --shadow-1: 0 1px 2px rgba(0,0,0,0.35);
  --shadow-2: 0 6px 20px rgba(0,0,0,0.40);
  --shadow-3: 0 18px 48px rgba(0,0,0,0.50);
  /* "Engraved" inset used on gold seals / pressed surfaces */
  --shadow-engrave: inset 0 1px 1px rgba(255,255,255,0.18), inset 0 -2px 4px rgba(0,0,0,0.45);
  /* Gold ring focus */
  --ring-gold: 0 0 0 2px var(--navy-800), 0 0 0 4px var(--gold-500);

  /* ---- MOTION ------------------------------------------------------ */
  --ease-standard: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-emphasis: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 140ms;
  --dur-med: 260ms;
  --dur-slow: 460ms;
}

/* =========================================================================
   SEMANTIC ELEMENT STYLES — apply with .e-* classes or as a base layer
   ========================================================================= */

.e-display {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--display-size);
  letter-spacing: var(--display-tracking);
  line-height: 1.0;
  text-transform: uppercase;
  color: var(--gold-500);
}

.e-h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--h1-size);
  letter-spacing: 0.06em;
  line-height: 1.08;
  text-transform: uppercase;
  color: var(--fg-1);
}

.e-h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: var(--h2-size);
  letter-spacing: 0.01em;
  line-height: 1.15;
  color: var(--fg-1);
}

.e-h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: var(--h3-size);
  line-height: 1.25;
  color: var(--fg-1);
}

/* Eyebrow / label — letter-spaced Cinzel caps, the brand's signature label */
.e-eyebrow {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--eyebrow-size);
  letter-spacing: var(--eyebrow-tracking);
  text-transform: uppercase;
  color: var(--gold-500);
}

.e-body-lg {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--body-lg);
  line-height: 1.55;
  color: var(--fg-2);
}

.e-body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--body);
  line-height: 1.6;
  color: var(--fg-2);
}

.e-body-sm {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--body-sm);
  line-height: 1.55;
  color: var(--fg-2);
}

.e-caption {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--caption);
  letter-spacing: 0.02em;
  color: var(--fg-3);
}

/* Motto style — used for the FORTITUDO · FIDES · FAMILIA line */
.e-motto {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: var(--gold-400);
}
