/* ============================================================
   MADDIE BEE - Colors & Type
   Wardrobe stylist · Editorial · NYC Fashion
   ============================================================ */

/* ---------- Webfonts (provided) ---------- */
@font-face {
  font-family: "Horizon";
  src: url("./fonts/Horizon.woff2") format("woff2"),
       url("./fonts/Horizon.otf") format("opentype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Horizon Outlined";
  src: url("./fonts/Horizon_Outlined.woff2") format("woff2"),
       url("./fonts/Horizon_Outlined.otf") format("opentype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Neue Helvetica";
  src: url("./fonts/NeueHelveticaWorld-45Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Neue Helvetica";
  src: url("./fonts/NeueHelveticaWorld-46LightItalic.otf") format("opentype");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Neue Helvetica";
  src: url("./fonts/NeueHelveticaWorld-55Roman.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Neue Helvetica";
  src: url("./fonts/NeueHelveticaWorld-56Italic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Neue Helvetica";
  src: url("./fonts/NeueHelveticaWorld-75Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Neue Helvetica";
  src: url("./fonts/NeueHelveticaWorld-76BoldItalic.otf") format("opentype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* ---------- Substituted fonts (Google Fonts) ----------
   The logo uses an Old English blackletter and a fine engraver's
   script - neither was provided. Closest free matches below.
   FLAGGED FOR USER: please supply final brand fonts if available.
*/
@import url("https://fonts.googleapis.com/css2?family=Pirata+One&family=UnifrakturCook:wght@700&family=Allura&family=Mrs+Saint+Delafield&family=Italianno&display=swap");

@font-face {
  font-family: "English Towne";
  src: url("./fonts/EnglishTowneMedium.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cloister Black";
  src: url("./fonts/CloisterBlack.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ============== COLOR ================
     Brand palette is severe: paper white, ink black, with one
     hot magazine-pink accent. Greys are warm-neutral so b&w
     editorial photography sits naturally on top.            */

  /* Core neutrals */
  --mb-paper:        #FFFFFF;   /* pure white page bg */
  --mb-bone:         #ECE7DD;   /* secondary cream surface */
  --mb-ink:          #0A0A0A;   /* ink black, text + bg     */
  --mb-soot:         #1C1C1C;   /* deep soft black surface  */
  --mb-charcoal:     #2A2A2A;
  --mb-graphite:     #4A4A4A;
  --mb-stone:        #6B6B6B;
  --mb-fog:          #B8B6B0;
  --mb-mist:         #D8D4CC;
  --mb-white:        #FFFFFF;

  /* Pink accents - single-color brand pop */
  --mb-pink:         #F583D5;   /* primary hot pink         */
  --mb-pink-hot:     #FF4FB6;   /* press / hover deepen     */
  --mb-pink-soft:    #FBC9E7;   /* tint, washes, swatches   */
  --mb-pink-blush:   #FCE5F1;   /* surface tint             */

  /* Editorial extras (used sparingly in references) */
  --mb-olive:        #807748;   /* earthy olive             */
  --mb-teal-soft:    #B8DEDC;   /* light teal wash          */
  --mb-denim:        #1F2733;   /* deep editorial blue       */

  /* ---- Semantic tokens ---- */
  --bg:              var(--mb-paper);
  --bg-2:            var(--mb-bone);
  --bg-inverse:      var(--mb-ink);
  --surface:         var(--mb-white);
  --surface-tint:    var(--mb-pink-blush);

  --fg-1:            var(--mb-ink);     /* primary text */
  --fg-2:            var(--mb-charcoal);/* body text */
  --fg-3:            var(--mb-stone);   /* muted, captions */
  --fg-4:            var(--mb-fog);     /* placeholders */
  --fg-inverse:      var(--mb-paper);

  --accent:          var(--mb-pink);
  --accent-press:    var(--mb-pink-hot);
  --accent-tint:     var(--mb-pink-blush);
  --accent-ink:      var(--mb-ink);     /* foreground on pink */

  --hairline:        #1C1C1C;           /* editorial rules */
  --hairline-soft:   rgba(10,10,10,.18);
  --hairline-paper:  rgba(246,244,239,.30);

  /* ============== TYPE ================
     Three voices, no more:
       • Helvetica - body and most UI (Neue Helvetica World)
       • Horizon - bold geometric display headlines
       • Blackletter - logotype, drop-caps, masthead flourishes
       • Script - cursive overlays, tagline, signature moments
  */
  --font-sans:       "Neue Helvetica", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display:    "Horizon", "Neue Helvetica", Helvetica, sans-serif;
  --font-display-outline: "Horizon Outlined", "Horizon", sans-serif;
  --font-blackletter:"Cloister Black", "English Towne", serif;       /* logotype - supplied */
  --font-script:     "Allura", "Mrs Saint Delafield", "Italianno", "Snell Roundhand", cursive; /* ⚠ google fallback */
  --font-mono:       "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Type scale (modular, editorial - strong jumps) */
  --fs-xxs: 10px;
  --fs-xs:  12px;
  --fs-sm:  14px;
  --fs-md:  16px;
  --fs-lg:  18px;
  --fs-xl:  22px;
  --fs-2xl: 28px;
  --fs-3xl: 40px;
  --fs-4xl: 56px;
  --fs-5xl: 80px;
  --fs-6xl: 120px;
  --fs-7xl: 180px;

  --lh-tight: 0.92;
  --lh-snug:  1.05;
  --lh-body:  1.45;
  --lh-loose: 1.65;

  --tracking-tight:   -0.02em;
  --tracking-normal:  0;
  --tracking-wide:    0.06em;
  --tracking-eyebrow: 0.18em;

  /* ============== SPACING / RADII / SHADOW ============== */
  --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;

  --radius-0: 0px;        /* default - editorial = sharp corners */
  --radius-1: 2px;
  --radius-2: 6px;
  --radius-pill: 999px;

  --rule-thin:  1px;
  --rule-med:   2px;
  --rule-thick: 4px;

  --shadow-soft:   0 2px 14px rgba(10,10,10,.06);
  --shadow-print:  0 1px 0 rgba(10,10,10,.08), 0 14px 32px -12px rgba(10,10,10,.20);
  --shadow-pink:   0 8px 28px -8px rgba(245,131,213,.55);
}

/* ===========================================================
   SEMANTIC ELEMENT STYLES
   These are intended for use on plain HTML; UI components
   override sparingly.
   =========================================================== */

html, body {
  background: var(--bg);
  color: var(--fg-1);
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Display masthead - magazine cover energy */
.h-mast, h1.mast {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(64px, 12vw, 220px);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  text-transform: uppercase;
  margin: 0;
}

h1, .h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-5xl);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  text-transform: uppercase;
  margin: 0 0 var(--space-5);
}

h2, .h2 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--fs-3xl);
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-tight);
  margin: 0 0 var(--space-4);
}

h3, .h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--fs-xl);
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-normal);
  margin: 0 0 var(--space-3);
}

h4, .h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--fs-md);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  margin: 0 0 var(--space-2);
}

.eyebrow {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  color: var(--fg-2);
}

.script, .h-script {
  font-family: var(--font-script);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(48px, 7vw, 120px);
  line-height: 0.9;
  color: var(--accent);
  letter-spacing: 0;
}

.blackletter, .h-blackletter {
  font-family: var(--font-blackletter);
  font-weight: 400;
  font-size: clamp(56px, 10vw, 180px);
  line-height: 0.9;
  letter-spacing: -0.01em;
}

p, .body {
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  color: var(--fg-2);
  margin: 0 0 var(--space-4);
  text-wrap: pretty;
}

.lead {
  font-size: var(--fs-lg);
  line-height: 1.55;
  color: var(--fg-1);
}

.caption {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-wide);
  color: var(--fg-3);
  text-transform: uppercase;
}

.footnote, small {
  font-size: var(--fs-xs);
  color: var(--fg-3);
  line-height: 1.45;
}

a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color .15s ease, opacity .15s ease;
}
a:hover { color: var(--accent-press); }

hr, .rule {
  border: 0;
  border-top: 1px solid var(--hairline);
  margin: var(--space-6) 0;
}

::selection { background: var(--accent); color: var(--accent-ink); }

/* utility - editorial number/date marker */
.tag {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--fg-2);
}
