/* ============================================================
   NORTH OF EDEN — Design Tokens
   Colors, typography, spacing, radii, shadows.
   Import this file from any HTML artifact built against this brand.
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Playfair Display";
  src: url("fonts/PlayfairDisplay-VariableFont_wght.ttf") format("truetype-variations");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("fonts/PlayfairDisplay-Italic-VariableFont_wght.ttf") format("truetype-variations");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Quicksand";
  src: url("fonts/Quicksand-VariableFont_wght.ttf") format("truetype-variations");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Typewriter";
  src: url("fonts/Typewriter.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ----------------------------------------------------------
     COLORS — the canonical palette from the brand board.
     Naming follows the brand board labels (BONE, CLAY, etc.)
     ---------------------------------------------------------- */

  /* Core neutrals (warm, earthy) */
  --noe-bone:   #F7F3EC;   /* cream / primary surface */
  --noe-clay:   #DCD2C3;   /* warm tan / secondary surface */
  --noe-sage:   #7B8271;   /* muted olive / subdued text + dividers */
  --noe-deep:   #1F2821;   /* near-black forest / primary ink */

  /* Brand accents */
  --noe-terra:  #BA5E30;   /* burnt terracotta — for warmth, never primary CTA */
  --noe-gold:   #B99055;   /* warm gold ochre — primary accent (rules, sparkles, links) */

  /* Slight tints/tones derived (use sparingly) */
  --noe-bone-soft:   #FBF9F4;   /* even softer cream — page bg variant */
  --noe-clay-soft:   #ECE5D9;   /* hairline rule, panel bg */
  --noe-deep-soft:   #2A3429;   /* lighter forest, hover on deep surfaces */
  --noe-gold-soft:   #D9B07A;   /* hover/lighter gold */
  --noe-sage-soft:   #A9AD9F;

  /* Semantic */
  --fg-1: var(--noe-deep);             /* primary ink */
  --fg-2: var(--noe-sage);             /* secondary ink (captions, meta) */
  --fg-3: #99998C;                     /* tertiary / placeholder */
  --fg-on-deep: var(--noe-bone);       /* light text on dark forest surfaces */
  --fg-on-deep-muted: #B7BBAE;
  --fg-accent: var(--noe-gold);
  --fg-accent-warm: var(--noe-terra);

  --bg-1: var(--noe-bone);             /* primary page bg */
  --bg-2: var(--noe-bone-soft);
  --bg-3: var(--noe-clay-soft);
  --bg-inverted: var(--noe-deep);
  --bg-inverted-soft: var(--noe-deep-soft);
  --bg-warm: var(--noe-clay);

  --rule-1: rgba(31, 40, 33, 0.12);    /* hairline divider on light bg */
  --rule-2: rgba(31, 40, 33, 0.25);
  --rule-on-deep: rgba(247, 243, 236, 0.16);

  /* ----------------------------------------------------------
     TYPOGRAPHY
     ----------------------------------------------------------
     Three families:
       Playfair Display — serif display + editorial italics
       Quicksand        — sans-serif body and UI
       Typewriter       — monospace-feel accent (small caps style stamps)
  */

  --font-display: "Playfair Display", "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --font-body:    "Quicksand", "Helvetica Neue", "Inter", system-ui, sans-serif;
  --font-accent:  "Typewriter", "JetBrains Mono", ui-monospace, "Courier New", monospace;

  /* Tracking (letter-spacing) presets — the brand leans on wide-set caps */
  --tracking-tight:  -0.01em;
  --tracking-normal:  0;
  --tracking-wide:    0.08em;     /* lockup spacing in all-caps */
  --tracking-wider:   0.16em;     /* generous, for "STRATEGY · DESIGN · GROWTH"-style stamps */
  --tracking-widest:  0.28em;     /* monogram seal text */

  /* Line heights */
  --leading-tight:  1.08;
  --leading-snug:   1.2;
  --leading-normal: 1.5;
  --leading-relaxed: 1.65;

  /* ----------------------------------------------------------
     SPACING — 4px base, ascending Fibonacci-ish
     ---------------------------------------------------------- */
  --space-0:  0;
  --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 — small.  This brand favors squared/lightly-rounded edges
     and circular seals.  Avoid pill radii on rectangles.
     ---------------------------------------------------------- */
  --radius-0: 0;
  --radius-1: 2px;
  --radius-2: 4px;
  --radius-3: 8px;
  --radius-4: 14px;
  --radius-circle: 999px;   /* badges, seals only */

  /* ----------------------------------------------------------
     SHADOWS — soft, warm, low-elevation.  Editorial, not material.
     ---------------------------------------------------------- */
  --shadow-1: 0 1px 2px rgba(31, 40, 33, 0.05);
  --shadow-2: 0 6px 20px -10px rgba(31, 40, 33, 0.18);
  --shadow-3: 0 22px 60px -30px rgba(31, 40, 33, 0.32);
  --shadow-inset: inset 0 0 0 1px var(--rule-1);

  /* Layout */
  --max-content:  1240px;
  --max-prose:    640px;
  --header-h:     88px;

  /* Horizontal page padding — gutter to viewport edge */
  --page-x:       clamp(24px, 5vw, 88px); /* @kind spacing */
}

/* ============================================================
   SEMANTIC TYPE SCALE — apply by class or override directly
   ============================================================ */

.noe-display, h1.noe {
  font-family: var(--font-display);
  font-weight: 500;             /* Playfair @ 500 = elegant, not heavy */
  font-size: clamp(40px, 6.4vw, 88px);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--fg-1);
}

.noe-display em, .noe-display .accent {
  font-style: italic;
  font-weight: 500;
  color: var(--fg-accent);     /* the signature "highest expression." treatment */
}

.noe-h1, h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 4vw, 56px);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  color: var(--fg-1);
}

.noe-h2, h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(26px, 2.8vw, 40px);
  line-height: var(--leading-snug);
  color: var(--fg-1);
}

.noe-h3, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  line-height: var(--leading-snug);
  color: var(--fg-1);
}

/* Eyebrow / kicker / nav — wide tracked caps in Quicksand */
.noe-eyebrow, .noe-kicker {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  line-height: 1;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--fg-2);
}

.noe-stamp {
  /* For "STRATEGY · DESIGN · GROWTH" / "REFINING PRODUCTS. ELEVATING BRANDS." */
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--fg-accent);
}

/* Body */
.noe-body, p, li {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: var(--leading-relaxed);
  color: var(--fg-1);
}

.noe-lead {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 19px;
  line-height: var(--leading-relaxed);
  color: var(--fg-1);
}

.noe-caption, small {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  line-height: var(--leading-normal);
  color: var(--fg-2);
}

/* Accent typewriter — for tag stamps, callouts, "EST. 2024", labels */
.noe-accent, code.noe {
  font-family: var(--font-accent);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--fg-1);
}

/* Editorial italic — Playfair italic for the signature phrase treatment */
.noe-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--fg-accent);
}

/* Decorative gold rule — used flanking small caps (see brand board) */
.noe-rule {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--fg-accent);
}
.noe-rule::before, .noe-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: currentColor;
  min-width: 28px;
}

/* Page reset helpers (opt-in) */
.noe-page {
  margin: 0;
  background: var(--bg-1);
  color: var(--fg-1);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
