/* ============================================================
   Davina Duerr for State Representative — Colors & Type
   Colors extracted directly from the campaign logo.
   ============================================================ */

/* ---------- Fonts ----------
   Nunito Sans approximates the rounded humanist sans used in
   the "Davina" wordmark. Fraunces is used for editorial quotes
   and large display moments (endorsement pull quotes, policy
   callouts). Source Serif 4 is a fallback for long-form reading.

   NOTE TO MAINTAINER: the exact wordmark typeface was not
   provided. Nunito Sans is the nearest Google Fonts match.
   If you have the original font file (Museo Sans / Gotham
   Rounded / similar), drop it in /fonts and update these vars.
------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,300;0,6..12,400;0,6..12,600;0,6..12,700;0,6..12,800;0,6..12,900;1,6..12,400&family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,400&display=swap');

:root {
  /* ---------- Brand Colors (from logo) ---------- */
  --duerr-purple:        #61489C;  /* "Davina" block */
  --duerr-purple-700:    #4B356F;  /* darker hover */
  --duerr-purple-600:    #573F8A;
  --duerr-purple-500:    #61489C;  /* base */
  --duerr-purple-400:    #7B64B4;
  --duerr-purple-300:    #9B88C7;
  --duerr-purple-200:    #C6B9DE;
  --duerr-purple-100:    #E4DDF0;
  --duerr-purple-050:    #F3EFF8;

  --duerr-cyan:          #03AFF0;  /* "elect" + banner */
  --duerr-cyan-700:      #0281B3;
  --duerr-cyan-600:      #0296CE;
  --duerr-cyan-500:      #03AFF0;  /* base */
  --duerr-cyan-400:      #3BC1F2;
  --duerr-cyan-300:      #7DD5F5;
  --duerr-cyan-200:      #B5E6F9;
  --duerr-cyan-100:      #DEF3FC;
  --duerr-cyan-050:      #EEF9FE;

  /* Washington State accent (reserved for state-issue moments) */
  --wa-evergreen:        #2E5E3C;   /* evergreen — sparingly */
  --wa-evergreen-100:    #DFE9E2;

  /* Campaign warm accent — for community / people moments */
  --warm-sand:           #F4EDE1;
  --warm-clay:           #C99A6B;

  /* ---------- Neutrals (warm gray, not cool) ---------- */
  --ink-900:             #1A1724;   /* primary text, warm purple-black */
  --ink-800:             #2E2A3D;
  --ink-700:             #4A4558;
  --ink-600:             #6B6578;
  --ink-500:             #8E8A9A;
  --ink-400:             #B2AEBE;
  --ink-300:             #D4D1DC;
  --ink-200:             #E8E6ED;
  --ink-100:             #F3F1F6;
  --ink-050:             #FAF9FC;

  /* ---------- Semantic ---------- */
  --bg:                  #FFFFFF;
  --bg-alt:              var(--ink-050);
  --bg-tinted:           var(--duerr-purple-050);

  --fg:                  var(--ink-900);
  --fg-muted:            var(--ink-700);
  --fg-subtle:           var(--ink-500);
  --fg-on-purple:        #FFFFFF;
  --fg-on-cyan:          #FFFFFF;

  --brand-primary:       var(--duerr-purple);
  --brand-primary-hover: var(--duerr-purple-700);
  --brand-accent:        var(--duerr-cyan);
  --brand-accent-hover:  var(--duerr-cyan-700);

  --border:              var(--ink-200);
  --border-strong:       var(--ink-300);
  --focus-ring:          var(--duerr-cyan-500);

  --success:             #2E7D4F;
  --warning:             #C98A12;
  --danger:              #B42A3D;

  /* ---------- Type families ---------- */
  --font-sans:   "Nunito Sans", "Helvetica Neue", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-serif:  "Fraunces", "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-mono:   "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* ---------- Type scale ---------- */
  --fs-xs:   12px;
  --fs-sm:   14px;
  --fs-base: 16px;
  --fs-md:   18px;
  --fs-lg:   20px;
  --fs-xl:   24px;
  --fs-2xl:  32px;
  --fs-3xl:  44px;
  --fs-4xl:  60px;
  --fs-5xl:  80px;

  --lh-tight:  1.08;
  --lh-snug:   1.22;
  --lh-normal: 1.5;
  --lh-loose:  1.65;

  --tracking-tight:    -0.02em;
  --tracking-normal:    0em;
  --tracking-wide:      0.04em;
  --tracking-allcaps:   0.12em;

  /* ---------- Spacing (4px base) ---------- */
  --s-1:  4px;
  --s-2:  8px;
  --s-3:  12px;
  --s-4:  16px;
  --s-5:  20px;
  --s-6:  24px;
  --s-8:  32px;
  --s-10: 40px;
  --s-12: 48px;
  --s-16: 64px;
  --s-20: 80px;
  --s-24: 96px;

  /* ---------- Radii ---------- */
  --r-none: 0;
  --r-sm:   4px;
  --r-md:   8px;
  --r-lg:   14px;
  --r-xl:   20px;
  --r-pill: 999px;

  /* ---------- Shadows ---------- */
  --shadow-xs: 0 1px 2px rgba(26, 23, 36, 0.06);
  --shadow-sm: 0 2px 6px rgba(26, 23, 36, 0.08);
  --shadow-md: 0 6px 16px rgba(26, 23, 36, 0.10);
  --shadow-lg: 0 18px 36px rgba(26, 23, 36, 0.14);
  --shadow-purple: 0 10px 28px rgba(97, 72, 156, 0.22);

  /* ---------- Motion ---------- */
  --ease-out:  cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 120ms;
  --dur-base: 220ms;
  --dur-slow: 420ms;
}

/* ---------- Base element styles ---------- */
html, body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, .h1 {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: var(--fs-4xl);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--fg);
  margin: 0;
}
h2, .h2 {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: var(--fs-3xl);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  margin: 0;
}
h3, .h3 {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: var(--fs-2xl);
  line-height: var(--lh-snug);
  margin: 0;
}
h4, .h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--fs-xl);
  line-height: var(--lh-snug);
  margin: 0;
}
h5, .h5 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--fs-lg);
  line-height: var(--lh-snug);
  margin: 0;
}

p { font-size: var(--fs-base); line-height: var(--lh-loose); margin: 0; text-wrap: pretty; }

.eyebrow {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-allcaps);
  text-transform: uppercase;
  color: var(--duerr-cyan-700);
}

.display {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: var(--fs-5xl);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: var(--fs-2xl);
  line-height: 1.3;
  color: var(--fg);
}

.label {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: 0.02em;
}

.mono {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
}

a {
  color: var(--duerr-cyan-700);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color var(--dur-fast) var(--ease-out);
}
a:hover { color: var(--duerr-purple); }

::selection { background: var(--duerr-cyan-200); color: var(--ink-900); }
