/* ============================================
   STROUD FAMILY — Colors & Type
   Bold minimalism. Cobalt-led. Cream ground.
   ============================================ */

/* ---- Fonts (Google Fonts) ---- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght,SOFT,WONK@0,9..144,400..900,0..100,0..1;1,9..144,400..900,0..100,0..1&family=Space+Grotesk:wght@300..700&family=Archivo+Black&display=swap');

/* Fraunces — identity, warmth, display + headlines + italic accents.
   Space Grotesk — structure, body, UI, captions.
   Archivo Black — optional poster moments / short campaign lines.
   JetBrains Mono — reserved for monospaced numerals only (legacy). */

:root {
  /* ============ COLORS ============ */

  /* Grounds — warm, paper-like */
  --cream: #FBF8F0;          /* primary background — nearly white, faint warmth */
  --cream-deep: #F4EFE2;     /* hover/divider variant */
  --paper: #FFFCF5;          /* lighter card surface */
  --ink: #141414;            /* near-black, not pure */
  --ink-soft: #2A2A28;       /* for body text */
  --ash: #5C5A55;            /* secondary text */
  --stone: #A8A39A;          /* tertiary, dividers */

  /* Primary accent — Cobalt (lead) */
  --cobalt: #1F4FB8;
  --cobalt-deep: #163A8A;
  --cobalt-bright: #2E6BE0;

  /* Supporting palette — pulled from house */
  --magenta: #D6246A;        /* hot pink hairpin legs / wallpaper */
  --magenta-deep: #A81550;
  --marigold: #FFD60A;       /* sunnier yellow — brighter, more saturated */
  --marigold-deep: #E8B800;
  --leaf: #4F8A3D;           /* wallpaper greenery */
  --leaf-deep: #2F5D24;
  --rust: #E55A1F;           /* small accent / wallpaper highlights */
  --blush: #F4B7C9;          /* soft tertiary */

  /* Semantic */
  --bg: var(--cream);
  --bg-card: var(--paper);
  --fg: var(--ink);
  --fg-soft: var(--ink-soft);
  --fg-muted: var(--ash);
  --fg-faint: var(--stone);
  --rule: rgba(20, 20, 20, 0.12);
  --rule-strong: var(--ink);
  --accent: var(--cobalt);
  --accent-fg: #FFFFFF;
  --hot: var(--magenta);
  --highlight: var(--marigold);

  /* ============ TYPE ============ */
  --ff-display: 'Fraunces', 'Times New Roman', serif;
  --ff-poster: 'Archivo Black', 'Fraunces', serif;     /* short campaign lines */
  --ff-body: 'Space Grotesk', system-ui, sans-serif;
  --ff-mono: 'Space Grotesk', ui-monospace, monospace;  /* labels/eyebrows use Space Grotesk uppercase tracking */

  /* Type scale — bold, generous */
  --fs-mega: clamp(64px, 12vw, 220px);
  --fs-display: clamp(48px, 8vw, 128px);
  --fs-h1: clamp(40px, 5vw, 80px);
  --fs-h2: clamp(32px, 4vw, 56px);
  --fs-h3: clamp(24px, 2.6vw, 36px);
  --fs-h4: 22px;
  --fs-body: 17px;
  --fs-small: 14px;
  --fs-caption: 12px;

  /* ============ SPACING (4pt) ============ */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  /* ============ RADII ============ */
  --r-0: 0;            /* default — sharp, confident */
  --r-1: 2px;
  --r-2: 6px;
  --r-pill: 999px;

  /* ============ SHADOWS ============ */
  --shadow-soft: 0 1px 2px rgba(20,20,20,0.06), 0 8px 24px rgba(20,20,20,0.06);
  --shadow-lift: 0 2px 4px rgba(20,20,20,0.08), 0 16px 40px rgba(20,20,20,0.10);
  --shadow-flat: 6px 6px 0 var(--ink);   /* hard offset shadow — letterpress feel */
  --shadow-flat-cobalt: 6px 6px 0 var(--cobalt);
  --shadow-flat-magenta: 6px 6px 0 var(--magenta);
}

/* ============ BASE ============ */
html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ============ DISPLAY / HEADINGS ============ */
.t-mega {
  font-family: var(--ff-poster);
  font-size: var(--fs-mega);
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.t-display {
  font-family: var(--ff-display);
  font-variation-settings: "opsz" 144, "wght" 600, "SOFT" 0, "WONK" 1;
  font-size: var(--fs-display);
  line-height: 0.95;
  letter-spacing: -0.025em;
}
.t-display-soft {
  font-family: var(--ff-display);
  font-variation-settings: "opsz" 144, "wght" 500, "SOFT" 100, "WONK" 1;
  font-size: var(--fs-display);
  line-height: 0.98;
  letter-spacing: -0.02em;
  font-style: italic;
}
.t-h1 {
  font-family: var(--ff-display);
  font-variation-settings: "opsz" 100, "wght" 700, "SOFT" 0, "WONK" 0;
  font-size: var(--fs-h1);
  line-height: 1.0;
  letter-spacing: -0.02em;
}
.t-h2 {
  font-family: var(--ff-display);
  font-variation-settings: "opsz" 60, "wght" 600, "SOFT" 30, "WONK" 0;
  font-size: var(--fs-h2);
  line-height: 1.05;
  letter-spacing: -0.015em;
}
.t-h3 {
  font-family: var(--ff-display);
  font-variation-settings: "opsz" 36, "wght" 600;
  font-size: var(--fs-h3);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.t-eyebrow {
  font-family: var(--ff-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.t-body {
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--fg-soft);
  text-wrap: pretty;
}
.t-lead {
  font-family: var(--ff-display);
  font-variation-settings: "opsz" 24, "wght" 400, "SOFT" 50;
  font-size: 22px;
  line-height: 1.4;
  color: var(--fg-soft);
  text-wrap: pretty;
}
.t-small {
  font-family: var(--ff-body);
  font-size: var(--fs-small);
  line-height: 1.5;
}
.t-caption {
  font-family: var(--ff-mono);
  font-size: var(--fs-caption);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.t-num {
  font-family: var(--ff-mono);
  font-feature-settings: "tnum" 1;
}

/* ============ UTILITIES ============ */
.bg-cream { background: var(--cream); }
.bg-paper { background: var(--paper); }
.bg-ink { background: var(--ink); color: var(--cream); }
.bg-cobalt { background: var(--cobalt); color: #fff; }
.bg-magenta { background: var(--magenta); color: #fff; }
.bg-marigold { background: var(--marigold); color: var(--ink); }
.bg-leaf { background: var(--leaf); color: #fff; }

.rule { border: 0; border-top: 2px solid var(--ink); margin: var(--s-5) 0; }
.rule-thin { border: 0; border-top: 1px solid var(--rule); margin: var(--s-4) 0; }

/* Selection */
::selection { background: var(--marigold); color: var(--ink); }
