/* =============================================================
   HOUSEWIVES & CO. — Design Tokens
   Colors, typography, spacing, radii, shadows
   ============================================================= */

/* ---- Webfonts ------------------------------------------------
   Montserrat (display/headlines) — Google Fonts
   Mont (body) — substituted with Manrope (closest geometric
   sans-serif on Google Fonts). FLAG: replace with licensed
   Mont files in /fonts/ when available.
   Dancing Script — stand-in for the handwritten "Housewives &
   Co." wordmark when the PNG logo cannot be used.
   ------------------------------------------------------------ */
/* Google Fonts moved to <link> tags in index.html for non-blocking parallel
   load. Trimmed to just the weights actually used on the live site. */

:root {
  /* --------- COLORS --------- */
  /* Primary palette */
  --hc-blue:            #004ead;   /* Primary brand blue — headlines, CTAs, large surfaces */
  --hc-blue-900:        #00265a;   /* Deepest blue — overlays, shadow-blue */
  --hc-blue-700:        #003a82;   /* Hover/press for primary blue */
  --hc-blue-500:        #004ead;   /* alias */
  --hc-blue-300:        #5a93d8;   /* Duotone midtone */
  --hc-blue-200:        #b1e5ff;   /* Light blue — backgrounds, secondary shapes */
  --hc-blue-100:        #dcf2ff;   /* Wash — subtle backgrounds */
  --hc-blue-50:         #eff8ff;   /* Faintest wash */

  --hc-orange:          #eb5017;   /* Accent — sparingly. Stamps, highlights, RUSH callouts */
  --hc-orange-600:      #c23d0a;   /* Hover */
  --hc-orange-100:      #fde4da;   /* Tinted background */

  /* Neutrals (slightly warm, diner-paper feel) */
  --hc-white:           #ffffff;
  --hc-cream:           #fbf7f1;   /* Off-white paper */
  --hc-ink:             #0b1020;   /* Near-black text, used only when blue is too heavy */
  --hc-ink-700:         #2a3040;
  --hc-ink-500:         #5a6075;
  --hc-ink-300:         #a8adbd;
  --hc-ink-100:         #e6e8ef;
  --hc-ink-50:          #f3f4f8;

  /* Semantic */
  --hc-success:         #2a8f47;
  --hc-warning:         #d99a15;
  --hc-danger:          #c43427;

  /* Semantic tokens (prefer these in components) */
  --bg:                 var(--hc-white);
  --bg-alt:             var(--hc-cream);
  --bg-sunken:          var(--hc-ink-50);
  --bg-invert:          var(--hc-blue);
  --fg:                 var(--hc-ink);
  --fg-muted:           var(--hc-ink-500);
  --fg-subtle:          var(--hc-ink-300);
  --fg-on-blue:         var(--hc-white);
  --brand:              var(--hc-blue);
  --brand-soft:         var(--hc-blue-200);
  --accent:             var(--hc-orange);
  --border:             var(--hc-ink-100);
  --border-strong:      var(--hc-blue);
  --focus-ring:         0 0 0 3px rgba(0, 78, 173, 0.35);

  /* --------- TYPOGRAPHY --------- */
  --font-display:       'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --font-body:          'Manrope', 'Helvetica Neue', Arial, sans-serif; /* stand-in for Mont */
  --font-script:        'Dancing Script', cursive;                       /* stand-in for logo script */
  --font-mono:          ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, monospace;

  /* Scale — modular, tuned for 1920 desktop + 1280 slides */
  --fs-display-xl:      clamp(3.5rem, 6vw, 5.5rem);   /* Hero titles */
  --fs-display:         clamp(2.5rem, 4.5vw, 4rem);   /* Slide titles */
  --fs-h1:              2.25rem;                      /* 36 */
  --fs-h2:              1.75rem;                      /* 28 */
  --fs-h3:              1.375rem;                     /* 22 */
  --fs-h4:              1.125rem;                     /* 18 */
  --fs-lead:            1.125rem;                     /* 18 */
  --fs-body:            1rem;                         /* 16 */
  --fs-small:           0.875rem;                     /* 14 */
  --fs-caption:         0.75rem;                      /* 12 */
  --fs-overline:        0.6875rem;                    /* 11 tracked */

  --lh-tight:           1.1;
  --lh-snug:            1.25;
  --lh-body:            1.55;
  --lh-loose:           1.7;

  --tracking-tight:     -0.02em;
  --tracking-normal:    0;
  --tracking-wide:      0.04em;
  --tracking-overline:  0.14em;

  /* --------- SPACING (8pt grid) --------- */
  --sp-0:   0;
  --sp-1:   0.25rem;   /* 4  */
  --sp-2:   0.5rem;    /* 8  */
  --sp-3:   0.75rem;   /* 12 */
  --sp-4:   1rem;      /* 16 */
  --sp-5:   1.5rem;    /* 24 */
  --sp-6:   2rem;      /* 32 */
  --sp-7:   3rem;      /* 48 */
  --sp-8:   4rem;      /* 64 */
  --sp-9:   6rem;      /* 96 */

  /* --------- RADII --------- */
  --radius-0:   0;
  --radius-1:   4px;
  --radius-2:   8px;
  --radius-3:   14px;
  --radius-4:   20px;
  --radius-pill: 999px;
  --radius-circle: 50%;

  /* --------- BORDERS --------- */
  --bw-hair:    1px;
  --bw-card:    2px;   /* signature crisp blue outline */
  --bw-strong:  3px;

  /* --------- SHADOWS --------- */
  /* The brand favors flat color + crisp outlines over soft UI shadows.
     Use sparingly; prefer outline-as-shadow for hi-fi feel. */
  --shadow-0: none;
  --shadow-1: 0 1px 2px rgba(0, 38, 90, 0.08);
  --shadow-2: 0 6px 20px rgba(0, 38, 90, 0.12);
  --shadow-3: 0 18px 40px rgba(0, 38, 90, 0.18);
  /* "Pressed card" — hard-offset shadow that reads as letterpress */
  --shadow-press: 4px 4px 0 var(--hc-blue);
  --shadow-press-orange: 4px 4px 0 var(--hc-orange);

  /* --------- LAYOUT --------- */
  --page-max: 1200px;
  --gutter:   var(--sp-5);
}

/* =============================================================
   Base element styles (semantic defaults)
   ============================================================= */
html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--fg);
  background: var(--bg);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--brand);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  font-weight: 800;
  margin: 0 0 var(--sp-4);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 700; }
h4 { font-size: var(--fs-h4); font-weight: 700; }

.display-xl { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-display-xl); line-height: var(--lh-tight); color: var(--brand); letter-spacing: var(--tracking-tight); }
.display    { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-display);    line-height: var(--lh-tight); color: var(--brand); letter-spacing: var(--tracking-tight); }

.lead { font-size: var(--fs-lead); color: var(--fg-muted); line-height: var(--lh-body); }
.small { font-size: var(--fs-small); }
.caption { font-size: var(--fs-caption); color: var(--fg-muted); }
.overline {
  font-family: var(--font-display);
  font-size: var(--fs-overline);
  font-weight: 700;
  letter-spacing: var(--tracking-overline);
  text-transform: uppercase;
  color: var(--brand);
}

.eyebrow {
  font-family: var(--font-display);
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--brand);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

p { margin: 0 0 var(--sp-4); color: var(--fg); }
a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--hc-blue-700); }

code, pre, kbd, samp {
  font-family: var(--font-mono);
  font-size: 0.95em;
  background: var(--hc-ink-50);
  padding: 0.12em 0.35em;
  border-radius: var(--radius-1);
}

/* =============================================================
   Signature motif — blue/white checkered top border
   Usage: <div class="hc-checker" aria-hidden="true"></div>
   ============================================================= */
.hc-checker {
  --sq: 14px;
  height: calc(var(--sq) * 2);
  background-image:
    conic-gradient(var(--hc-blue) 25%, transparent 0 50%, var(--hc-blue) 0 75%, transparent 0);
  background-size: calc(var(--sq) * 2) calc(var(--sq) * 2);
  background-position: 0 0;
}
.hc-checker--sm { --sq: 10px; }
.hc-checker--lg { --sq: 18px; }

/* Orange variant for accents */
.hc-checker--orange {
  background-image:
    conic-gradient(var(--hc-orange) 25%, transparent 0 50%, var(--hc-orange) 0 75%, transparent 0);
}
