/* ============================================================
   NativeFoundation · RelayOS — Colors & Type
   Off-white surfaces · navy ink · forest green primary · orange highlight
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500;1,600&display=swap');

:root {
  /* ── Surfaces (off-white layered depth) ─────────────────── */
  --nf-canvas:  #F9F9F9;   /* page background */
  --nf-surface: #F2F2F1;   /* inset / secondary panels */
  --nf-paper:   #FFFFFF;   /* cards */
  --nf-neutral: #E4E4E3;   /* dividers, captions */
  --nf-line:    #E5E5E4;   /* hairline on canvas */
  --nf-line2:   #EDEDEC;   /* fainter hairline */

  /* ── Ink (cool navy, never warm grey) ───────────────────── */
  --nf-ink:     #202A44;   /* primary type */
  --nf-ink2:    #3F4A66;   /* body / secondary */
  --nf-ink3:    #7E8699;   /* captions, mute */

  /* ── Primary (forest green) ─────────────────────────────── */
  --nf-primary:      #143E29;
  --nf-primary-soft: #E2E9E2;
  --nf-primary-ink:  #0A2918;

  /* ── Highlight (orange — emphasis only, never dominant) ─── */
  --nf-highlight:      #FF6B35;
  --nf-highlight-soft: #FFE4D6;

  /* Semantic foreground (alias) */
  --fg1: var(--nf-ink);
  --fg2: var(--nf-ink2);
  --fg3: var(--nf-ink3);
  --bg1: var(--nf-canvas);
  --bg2: var(--nf-surface);
  --bg3: var(--nf-paper);

  /* ── Type families ──────────────────────────────────────── */
  --nf-display: "Playfair Display", "Iowan Old Style", Georgia, serif;
  --nf-sans:    "Inter", -apple-system, "Helvetica Neue", sans-serif;
  --nf-mono:    "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;

  /* ── Radii ──────────────────────────────────────────────── */
  --nf-rad-sm:   8px;
  --nf-rad-md:   14px;
  --nf-rad-lg:   20px;
  --nf-rad-xl:   28px;
  --nf-rad-pill: 999px;

  /* ── Spacing scale (8px grid) ───────────────────────────── */
  --nf-sp-1: 4px;   --nf-sp-2: 8px;   --nf-sp-3: 12px;  --nf-sp-4: 16px;
  --nf-sp-5: 20px;  --nf-sp-6: 24px;  --nf-sp-7: 32px;  --nf-sp-8: 40px;
  --nf-sp-9: 48px;  --nf-sp-10: 64px;

  /* ── Shadows (multi-stop, layered depth) ────────────────── */
  --nf-shadow-xs:    0 1px 2px rgba(32,42,68,0.05);
  --nf-shadow-sm:    0 1px 2px rgba(32,42,68,0.06), 0 3px 8px rgba(32,42,68,0.05);
  --nf-shadow-card:  0 1px 2px rgba(32,42,68,0.05), 0 6px 16px rgba(32,42,68,0.07);
  --nf-shadow-pop:   0 2px 4px rgba(32,42,68,0.08), 0 16px 36px rgba(32,42,68,0.14);
  --nf-shadow-hero:  0 3px 6px rgba(32,42,68,0.09), 0 18px 40px rgba(32,42,68,0.12);
  --nf-shadow-inset: inset 0 2px 3px rgba(32,42,68,0.16), inset 0 -1px 1px rgba(32,42,68,0.04), inset 0 0 0 1px rgba(32,42,68,0.06);

  --nf-hairline: 1px solid rgba(32,42,68,0.06);
}

/* ── Semantic type styles ─────────────────────────────────── */

.nf-eyebrow {
  font-family: var(--nf-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--nf-ink3);
}
.nf-eyebrow--primary   { color: var(--nf-primary);   }
.nf-eyebrow--highlight { color: var(--nf-highlight); }

.nf-h1, h1.nf {
  font-family: var(--nf-display);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -1px;
  color: var(--nf-ink);
}
.nf-h2, h2.nf {
  font-family: var(--nf-display);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--nf-ink);
}
.nf-h3, h3.nf {
  font-family: var(--nf-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.3px;
  color: var(--nf-ink);
}
.nf-display-italic {
  font-family: var(--nf-display);
  font-style: italic;
  color: var(--nf-highlight);
}

.nf-body, p.nf {
  font-family: var(--nf-sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--nf-ink2);
}
.nf-body-sm {
  font-family: var(--nf-sans);
  font-size: 13px;
  line-height: 1.55;
  color: var(--nf-ink2);
}
.nf-caption {
  font-family: var(--nf-mono);
  font-size: 11px;
  letter-spacing: 0.4px;
  color: var(--nf-ink3);
}
.nf-button-text {
  font-family: var(--nf-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1px;
}

/* ── Surface helpers ──────────────────────────────────────── */

.nf-card {
  background: var(--nf-paper);
  border-radius: var(--nf-rad-xl);
  box-shadow: var(--nf-shadow-card);
  outline: var(--nf-hairline);
  outline-offset: -1px;
}
.nf-inset {
  background: var(--nf-surface);
  border-radius: var(--nf-rad-md);
  box-shadow: var(--nf-shadow-inset);
}
