/* =============================================================
   NM Beauty & Fragrance — Brand stylesheet
   Single source of truth for tokens and editorial primitives.
   Spec: Brandbook v01 / 2026.
   Load order: this file LAST (after Tailwind CDN), so .eyebrow,
   .display, .lede etc. win over any Tailwind utility resets.
============================================================= */

:root {
  /* Colour palette — names match the brandbook */
  --paper:         #F6F3EE;  /* main canvas (lightest) */
  --ivory:         #EFECE9;  /* secondary canvas */
  --stone:         #DDD9CE;  /* surfaces, borders */
  --blush:         #E3C1B4;  /* soft accent */
  --taupe:         #AC9C8D;  /* neutral accent */
  --bordeaux:      #610C27;  /* signature / primary */
  --bordeaux-deep: #4A0A1F;  /* primary hover, deeper moments */
  --onyx:          #050505;  /* contrast extremes */
  --ink:           #191512;  /* body text — warm dark, NOT pure black */

  /* Soft text variants used in body / captions */
  --ink-soft:      #2A2521;
  --ink-mute:      #5A5249;
  --ink-faint:     #8A7D70;

  /* Hairlines & rules */
  --rule:          rgba(25, 21, 18, 0.10);
  --rule-soft:     rgba(25, 21, 18, 0.05);

  /* Type families */
  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans:  "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

/* =============================================================
   GLOBAL DEFAULTS
   Apply to body so any page gets the brand foundations even if
   the Tailwind config in that page lags behind.
============================================================= */
html, body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* =============================================================
   EDITORIAL PRIMITIVES
   Helper classes used across every page. Lightweight; never
   override Tailwind utilities the user passes alongside.
============================================================= */

/* Eyebrow — the small mono label sitting above a headline.
   Bordeaux by default, switch to .eyebrow.muted on dark grounds. */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bordeaux);
  font-weight: 400;
}
.eyebrow.muted   { color: var(--ink); opacity: 0.55; }
.eyebrow.on-dark { color: var(--blush); }

/* Display — italic Cormorant for headlines.
   Pattern: italic body + roman emphasis (use <em> for the
   highlighted word; emphasis is roman + bordeaux, NOT italic). */
.display {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  letter-spacing: -0.012em;
  line-height: 0.95;
  color: var(--ink);
}
.display em {
  font-style: normal;
  font-weight: 400;
  color: var(--bordeaux);
}
.display.on-dark    { color: var(--ivory); }
.display.on-dark em { color: var(--blush); }

/* Lede — slightly larger introduction paragraph. Serif but upright. */
.lede {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 300;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.35;
  letter-spacing: -0.005em;
  color: var(--ink);
}

/* Body — the working text. */
.body-copy {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.body-copy.lg { font-size: 17px; }
.body-copy.sm { font-size: 13.5px; line-height: 1.55; color: var(--ink-mute); }

/* Mono small — captions, prices, sizes, technical labels */
.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 400;
}
.mono.brand { color: var(--bordeaux); }
.mono.size  { letter-spacing: 0.1em; text-transform: none; }

/* Section title — used at the top of a page section.
   Italic Cormorant 300 large. */
.section-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 0.98;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.section-title em {
  font-style: normal;
  font-weight: 400;
  color: var(--bordeaux);
}

/* =============================================================
   BRAND MARK (logo) — the N&M wordmark in headers/footers.
   Two variants: .brand-mark (full italic) and .brand-mark-mg
   (monogram, just NM with the M in bordeaux).
============================================================= */
.brand-mark {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 0.85;
  color: var(--ink);
}
.brand-mark .amp {
  font-style: normal;
  font-weight: 400;
  color: var(--bordeaux);
  font-size: 0.55em;
  vertical-align: 0.18em;
  margin: 0 0.04em;
}
/* On dark grounds (bordeaux/onyx hero, footer), invert. */
.brand-mark.on-dark         { color: var(--ivory); }
.brand-mark.on-dark .amp    { color: var(--blush); }

/* Sub-line under the wordmark: "Beauty & Fragrance" */
.brand-sub {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.brand-sub.on-dark { color: var(--ivory); opacity: 0.85; }

/* =============================================================
   BUTTONS — bordeaux primary, outline secondary. Squared corners
   per brandbook (2px radius, never pill). Mono uppercase label.
============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
  line-height: 1;
}
.btn-primary {
  background: var(--bordeaux);
  color: var(--ivory);
  border-color: var(--bordeaux);
}
.btn-primary:hover  { background: var(--bordeaux-deep); border-color: var(--bordeaux-deep); }
.btn-primary:active { transform: scale(0.98); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover  { background: var(--ink); color: var(--ivory); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: transparent;
}
.btn-ghost:hover { color: var(--bordeaux); }

/* Inline arrow used in CTAs */
.btn .arrow { display: inline-block; transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* =============================================================
   SPECIFIC CONTEXTS
============================================================= */

/* Editorial divider — fine bordeaux rule, used between sections */
.rule {
  height: 1px;
  background: var(--rule);
  border: 0;
  margin: 0;
}
.rule.bordeaux { background: var(--bordeaux); opacity: 0.5; }

/* Selection colour */
::selection {
  background: var(--blush);
  color: var(--bordeaux);
}

/* Focus ring — accessible, brand-coloured */
:focus-visible {
  outline: 2px solid var(--bordeaux);
  outline-offset: 2px;
}

/* Smooth scrolling for in-page anchors */
html { scroll-behavior: smooth; }
