/* ============================================================
   Happy Lobster — Colors & Type
   The single source of truth for Happy Lobster visual tokens.
   Import this file everywhere.
   ============================================================ */

/* ---------- Fonts ---------- */

@font-face {
  font-family: "Hammersmith One";
  src: url("fonts/HammersmithOne-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant";
  src: url("fonts/Cormorant-VariableFont_wght.ttf") format("truetype-variations");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant";
  src: url("fonts/Cormorant-Italic-VariableFont_wght.ttf") format("truetype-variations");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Wonderful Sunset";
  src: url("fonts/Wonderful_Sunset.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   CSS VARIABLES
   ============================================================ */

:root {
  /* ---------- Brand color tokens ---------- */
  --hl-coral:        #E8716A;   /* Lobster coral — primary accent, "Chicago" script, CTAs */
  --hl-coral-hover:  #D85F58;   /* Darker coral for hover */
  --hl-coral-soft:   #F4A9A4;   /* Soft coral for subtle accents */

  --hl-navy:         #0F1A2E;   /* Primary dark background, wordmark, badges */
  --hl-navy-2:       #1A2235;   /* Deep navy — deeper fills */
  --hl-navy-3:       #2D3561;   /* Mid navy — pairs with cream text */

  --hl-cream:        #F5F0DC;   /* Off-white — default light background, text on dark */
  --hl-cream-2:      #EDE6C9;   /* Slightly warmer cream — alternate surface */

  --hl-charcoal:     #1F1F1F;   /* Body text on light */
  --hl-charcoal-2:   #3A3A3A;   /* Secondary body text */
  --hl-stone:        #6B6B66;   /* Muted meta text */
  --hl-hairline:     rgba(15, 26, 46, 0.10); /* Thin divider lines */

  --hl-burgundy:     #8B1A2B;   /* Lobster claw fills — the deep red in logos */
  --hl-burgundy-2:   #6E1422;   /* Deeper burgundy for depth */

  --hl-forest:       #1F5C4A;   /* Seasonal / "fresh" accent */
  --hl-gold:         #C9A84C;   /* Premium highlights, badge script */

  /* ---------- Semantic color tokens ---------- */
  --bg:              var(--hl-cream);
  --bg-dark:         var(--hl-navy);
  --surface:         #FFFFFF;              /* Cards on cream */
  --surface-dark:    var(--hl-navy-2);
  --fg1:             var(--hl-charcoal);    /* Primary text on light */
  --fg2:             var(--hl-charcoal-2);  /* Secondary text */
  --fg3:             var(--hl-stone);       /* Tertiary / meta */
  --fg-on-dark:      var(--hl-cream);       /* Primary text on dark */
  --fg-on-dark-2:    rgba(245, 240, 220, 0.72);
  --accent:          var(--hl-coral);
  --accent-hover:    var(--hl-coral-hover);
  --border:          var(--hl-hairline);
  --border-strong:   rgba(15, 26, 46, 0.25);

  /* ---------- Spacing scale (4px base) ---------- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* ---------- Corner radii ---------- */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-xl: 22px;
  --radius-pill: 999px;

  /* ---------- Shadow / elevation ---------- */
  --shadow-sm:  0 1px 2px rgba(15, 26, 46, 0.08);
  --shadow-md:  0 6px 18px rgba(15, 26, 46, 0.12);
  --shadow-lg:  0 18px 42px rgba(15, 26, 46, 0.18);
  --shadow-coral: 0 10px 28px rgba(232, 113, 106, 0.30);
  --shadow-inner-cream: inset 0 1px 0 rgba(255,255,255,0.4), inset 0 -1px 0 rgba(15,26,46,0.06);

  /* ---------- Type families ---------- */
  --font-display: "Hammersmith One", "Bebas Neue", Impact, "Arial Black", sans-serif;
  --font-serif:   "Cormorant", "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --font-script:  "Wonderful Sunset", "Great Vibes", cursive;
  --font-system:  -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* ---------- Type scale ---------- */
  --fs-display-xl: clamp(56px, 9vw, 128px);  /* Monumental display */
  --fs-display-lg: clamp(44px, 7vw, 88px);   /* Hero headlines */
  --fs-display-md: clamp(36px, 5.5vw, 64px); /* Section headlines */
  --fs-h1: 48px;
  --fs-h2: 36px;
  --fs-h3: 26px;
  --fs-h4: 20px;
  --fs-body-lg: 20px;
  --fs-body: 17px;
  --fs-body-sm: 15px;
  --fs-caption: 13px;
  --fs-micro: 11px;

  /* ---------- Tracking / leading ---------- */
  --tracking-display: 0.02em;
  --tracking-hammer:  0.015em;
  --tracking-caps:    0.14em;   /* For small labels in all-caps */
  --leading-tight:    1.05;
  --leading-snug:     1.2;
  --leading-normal:   1.45;
  --leading-loose:    1.65;

  /* ---------- Motion ---------- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-snap: cubic-bezier(0.34, 1.4, 0.64, 1);
  --dur-fast: 120ms;
  --dur-med:  220ms;
  --dur-slow: 420ms;
}

/* ============================================================
   SEMANTIC / ELEMENT STYLES
   Not required base styles — available as utility-ish classes
   and element defaults so prototypes feel on-brand instantly.
   ============================================================ */

.hl-display-xl,
.hl-display-lg,
.hl-display-md,
.hl-h1, .hl-h2, .hl-h3, .hl-h4,
.hl-eyebrow {
  font-family: var(--font-display);
  color: var(--fg1);
  letter-spacing: var(--tracking-hammer);
  line-height: var(--leading-tight);
  font-weight: 400;
}

.hl-display-xl { font-size: var(--fs-display-xl); text-transform: uppercase; letter-spacing: var(--tracking-display); }
.hl-display-lg { font-size: var(--fs-display-lg); text-transform: uppercase; letter-spacing: var(--tracking-display); }
.hl-display-md { font-size: var(--fs-display-md); text-transform: uppercase; }
.hl-h1 { font-size: var(--fs-h1); text-transform: uppercase; }
.hl-h2 { font-size: var(--fs-h2); text-transform: uppercase; }
.hl-h3 { font-size: var(--fs-h3); }
.hl-h4 { font-size: var(--fs-h4); text-transform: uppercase; letter-spacing: var(--tracking-caps); }

.hl-eyebrow {
  font-family: var(--font-display);
  font-size: var(--fs-caption);
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  color: var(--hl-coral);
}

.hl-script {
  font-family: var(--font-script);
  font-weight: 400;
  font-style: normal;
  color: var(--hl-coral);
  line-height: 0.9;
}

.hl-serif,
.hl-body,
.hl-body-lg,
.hl-body-sm {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: var(--leading-normal);
  color: var(--fg1);
}

.hl-body-lg { font-size: var(--fs-body-lg); line-height: var(--leading-loose); }
.hl-body    { font-size: var(--fs-body);    line-height: var(--leading-normal); }
.hl-body-sm { font-size: var(--fs-body-sm); line-height: var(--leading-normal); }

.hl-pull-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.3;
  color: var(--fg1);
}

.hl-caption {
  font-family: var(--font-serif);
  font-size: var(--fs-caption);
  color: var(--fg3);
  font-style: italic;
}

.hl-mono-num {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

/* ---------- Page defaults (opt-in via body.hl-base) ---------- */
body.hl-base {
  background: var(--bg);
  color: var(--fg1);
  font-family: var(--font-serif);
  font-size: var(--fs-body);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.hl-base-dark {
  background: var(--bg-dark);
  color: var(--fg-on-dark);
  font-family: var(--font-serif);
  font-size: var(--fs-body);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
}
