/* ============================================================
   HERRICK DESIGN — Foundations: Color + Type
   Dave Herrick, graphic designer · Seattle, WA · est. ~2000
   ------------------------------------------------------------
   Black + white + a single warm yellow. Geometric Futura-style
   wordmark, generous negative space, mid-century sensibility.
   ============================================================ */

/* ----- Webfonts -------------------------------------------------
   The HERRiCK DESiGN wordmark is custom/hand-finished geometric
   lettering — always use the logo IMAGE (assets/logo-lockup.png),
   never reset it in a system font.
   Real identity faces (self-hosted from fonts/):
   FUTURA → display/UI/labels · MIXAGE → stylistic heads + bold emphasis
   ADOBE GARAMOND PRO → legible body. See README "Type system". --------*/
/* Space Mono (CDN) is kept only for literal monospace bits (URLs, specs). */
@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&display=swap');

/* ===== Self-hosted brand fonts (the real identity faces) ===========
   Futura T → display / UI / labels   ·   Mixage → body / metadata
   Adobe Garamond Pro → editorial serif (leads, quotes)
   =================================================================== */
@font-face{font-family:'Futura';src:url('fonts/FuturTBoo.otf') format('opentype');font-weight:400;font-style:normal;font-display:swap;}
@font-face{font-family:'Futura';src:url('fonts/FuturTMed.otf') format('opentype');font-weight:500;font-style:normal;font-display:swap;}
@font-face{font-family:'Futura';src:url('fonts/FuturTDem.otf') format('opentype');font-weight:600;font-style:normal;font-display:swap;}
@font-face{font-family:'Futura';src:url('fonts/FuturTBol.otf') format('opentype');font-weight:700;font-style:normal;font-display:swap;}

@font-face{font-family:'Mixage';src:url('fonts/MixagBoo.otf') format('opentype');font-weight:400;font-style:normal;font-display:swap;}
@font-face{font-family:'Mixage';src:url('fonts/MixagBol.otf') format('opentype');font-weight:700;font-style:normal;font-display:swap;}
@font-face{font-family:'Mixage';src:url('fonts/MixagBla.otf') format('opentype');font-weight:900;font-style:normal;font-display:swap;}

@font-face{font-family:'Adobe Garamond Pro';src:url('fonts/AGaramondPro-Regular.otf') format('opentype');font-weight:400;font-style:normal;font-display:swap;}
@font-face{font-family:'Adobe Garamond Pro';src:url('fonts/AGarSem.otf') format('opentype');font-weight:600;font-style:normal;font-display:swap;}
@font-face{font-family:'Adobe Garamond Pro';src:url('fonts/AGarBol.otf') format('opentype');font-weight:700;font-style:normal;font-display:swap;}

:root {
  /* ---------- Brand color ---------- */
  --hd-ink:        #141414;  /* brand black — text, logo, rules        */
  --hd-ink-soft:   #2A2A28;  /* slightly lifted ink for large fills    */
  --hd-paper:      #FFFFFF;  /* primary canvas — lots of it            */
  --hd-paper-warm: #F7F6F1;  /* warm off-white section band            */
  --hd-yellow:     #FFCD03;  /* THE accent — taxi yellow, sampled logo */
  --hd-yellow-ink: #E0B200;  /* yellow pressed / underline state        */
  --hd-orange:     #E85C2B;  /* secondary accent (from poster dot)     */

  /* ---------- Neutral scale (warm-leaning) ---------- */
  --hd-n-900: #141414;
  --hd-n-800: #2B2B29;
  --hd-n-700: #444441;
  --hd-n-600: #5F5F5B;
  --hd-n-500: #807F79;
  --hd-n-400: #A8A7A0;
  --hd-n-300: #CBCAC3;
  --hd-n-200: #E4E3DD;
  --hd-n-100: #F1F0EB;
  --hd-n-050: #F8F7F3;

  /* ---------- Semantic foreground / background ---------- */
  --fg1: var(--hd-ink);       /* primary text            */
  --fg2: var(--hd-n-600);     /* secondary / captions    */
  --fg3: var(--hd-n-500);     /* muted / metadata        */
  --fg-on-dark: #FFFFFF;
  --fg-on-yellow: var(--hd-ink);

  --bg1: var(--hd-paper);     /* default canvas          */
  --bg2: var(--hd-paper-warm);/* alternating band        */
  --bg-dark: var(--hd-ink);   /* footer / inverse blocks */
  --bg-accent: var(--hd-yellow);

  --line: var(--hd-ink);      /* hairline rules are INK, full-strength */
  --line-soft: var(--hd-n-200);

  /* ---------- Type families ---------- */
  --font-display: 'Futura', 'Century Gothic', system-ui, sans-serif;        /* geometric — display, labels, UI */
  --font-head:    'Mixage', 'Futura', system-ui, sans-serif;                 /* stylistic headings & bold emphasis */
  --font-body:    'Adobe Garamond Pro', Georgia, 'Times New Roman', serif;   /* legible reading copy */
  --font-mono:    'Space Mono', ui-monospace, 'SFMono-Regular', monospace;

  /* ---------- Type scale (1.5rem base, modular ~1.28) ---------- */
  --t-display: 700 clamp(3rem, 7vw, 6.5rem)/0.98 var(--font-display);
  --t-h1:      600 clamp(2.2rem, 4.5vw, 3.75rem)/1.04 var(--font-display);
  --t-h2:      600 clamp(1.6rem, 2.8vw, 2.5rem)/1.1 var(--font-display);
  --t-h3:      600 1.5rem/1.2 var(--font-head);
  --t-lead:    400 clamp(1.25rem, 1.7vw, 1.6rem)/1.5 var(--font-body);
  --t-body:    400 1.1875rem/1.62 var(--font-body);
  --t-small:   400 0.95rem/1.5 var(--font-head);
  --t-label:   600 0.75rem/1 var(--font-display);   /* + letter-spacing */
  --t-mono:    400 0.8125rem/1.5 var(--font-mono);

  /* ---------- Letter-spacing ---------- */
  --ls-label: 0.22em;   /* the signature spaced-cap label        */
  --ls-display: -0.01em;
  --ls-tight: -0.02em;

  /* ---------- Spacing scale (8pt) ---------- */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;
  --sp-9: 96px; --sp-10: 128px; --sp-11: 192px;

  /* ---------- Radii — nearly square, this brand is hard-edged ---------- */
  --r-0: 0px;     /* default: NO radius. Mid-century = crisp corners */
  --r-1: 2px;
  --r-2: 4px;
  --r-pill: 999px; /* only for the spaced-cap "tag" chips           */

  /* ---------- Borders ---------- */
  --bw-hair: 1px;
  --bw-rule: 2px;   /* the confident 2px rule under headers          */
  --bw-bold: 4px;

  /* ---------- Shadows — used SPARINGLY; this is a flat brand ---------- */
  --shadow-none: none;
  --shadow-card: 0 1px 0 var(--hd-n-200);          /* just a seam     */
  --shadow-lift: 0 18px 40px -24px rgba(20,20,20,0.45); /* hover only */
  --shadow-frame: 0 24px 60px -28px rgba(20,20,20,0.55); /* poster frame */

  /* ---------- Motion ---------- */
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 140ms;
  --dur: 240ms;
  --dur-slow: 520ms;
}

/* ============================================================
   Semantic element styles — apply with the .hd- scope or bare
   ============================================================ */
.hd-display { font: var(--t-display); letter-spacing: var(--ls-display); color: var(--fg1); text-wrap: balance; }
.hd-h1 { font: var(--t-h1); letter-spacing: var(--ls-display); color: var(--fg1); text-wrap: balance; }
.hd-h2 { font: var(--t-h2); letter-spacing: var(--ls-display); color: var(--fg1); text-wrap: balance; }
.hd-h3 { font: var(--t-h3); color: var(--fg1); }
.hd-lead { font: var(--t-lead); color: var(--fg2); text-wrap: pretty; }
.hd-body { font: var(--t-body); color: var(--fg1); text-wrap: pretty; }
.hd-small { font: var(--t-small); color: var(--fg2); }
.hd-mono { font: var(--t-mono); color: var(--fg2); }

/* The signature: a small uppercase, wide-tracked label.
   Used for nav, section eyebrows, metadata, captions.          */
.hd-label {
  font: var(--t-label);
  text-transform: uppercase;
  letter-spacing: var(--ls-label);
  color: var(--fg1);
}

/* A "tag" chip — pill with spaced caps (the only rounded thing) */
.hd-tag {
  display: inline-flex; align-items: center;
  font: var(--t-label);
  text-transform: uppercase; letter-spacing: 0.16em;
  padding: 7px 14px 6px;
  border: var(--bw-hair) solid var(--line);
  border-radius: var(--r-pill);
  color: var(--fg1); background: transparent;
}
