/* ==========================================================================
   Vimal Builds — design tokens (Option 4: "your site, plus color")
   Drop this file in first. Everything else reads these variables.
   Theme: light by default; dark when <html data-theme="dark">.
   If no data-theme is set, the visitor's OS preference decides.
   ========================================================================== */

/* Fonts: Outfit (headings, logo wordmark) + Inter (body, UI) — both Google Fonts.
   <link href="https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600&family=Inter:wght@400;500;600&display=swap" rel="stylesheet"> */

:root {
  /* ---- Surfaces & text (light) ---- */
  --bg: #FBF8F3;          /* page background: warm off-white */
  --surface: #FFFFFF;     /* cards, panels, inputs */
  --chip: #F1ECE4;        /* chips, quiet fills, hover, disclosure box */
  --line: #ECE5DA;        /* every 1px border and divider */
  --text: #1A1F2B;        /* headings, primary text (deep ink, never pure black) */
  --text2: #3A4050;       /* body copy */
  --muted: #5B6170;       /* captions, meta, labels (4.5:1 on --bg) */
  --link: #2445B8;        /* inline links */

  /* ---- Background glow blobs (blurred circles behind page tops) ---- */
  --blob1: #FFD3BC;       /* peach, top-left */
  --blob2: #CDEEDD;       /* mint, middle */
  --blob3: #D7DFFF;       /* periwinkle, top-right */

  /* ---- Tinted pairs for callouts & stat chips (text on its own tint) ---- */
  --terra: #A3401A;  --terraBg: #FBE7DC;
  --green: #17603F;  --greenBg: #DDEFE5;
  --must:  #7A5808;  --mustBg:  #FBEFD2;

  /* ---- Section accents (same in light & dark; used as solid fills) ---- */
  --accent-travel: #E8603A;   /* terracotta — Travel tiles, "Visited", Rebel step */
  --accent-fire:   #1F8A5F;   /* forest green — FIRE, Commit step, Key numbers */
  --accent-fire-deep: #1F7A55;/* calculator panel */
  --accent-builds: #3B63EE;   /* cobalt — Builds */
  --accent-roadmap:#E3A82B;   /* mustard — Roadmap / how-to posts, Plan step */
  --accent-roadmap-soft: #FFE29A; /* roadmap pill on photo/painting heroes */
  --on-accent: #FFFFFF;       /* text on terracotta/green/cobalt fills */
  --on-mustard: #1A1F2B;      /* text on mustard fills (white fails contrast) */
  --on-terracotta: #1A1F2B;   /* small text on terracotta fills (white is only 3.4:1; ink is 4.8:1) */
  --danger: #D6453D;          /* form errors */
  --stripe-ink: #1A1F2B;      /* Pay button */

  /* ---- Typography ---- */
  --font-head: "Outfit", Inter, system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fw-head: 500;           /* all headings use Outfit 500 */
  --tracking-head: -0.02em; /* all headings */

  --fs-display: clamp(48px, 8vw, 76px);  /* Home hero only */
  --fs-hero:    clamp(36px, 5vw, 56px);  /* post titles over paintings */
  --fs-h1:      56px;  /* page titles (Travel, FIRE, Builds, About) — 40px ≤600px */
  --fs-h2:      34px;  /* section titles — 28px ≤600px */
  --fs-h2-post: 34px;  /* h2 inside articles */
  --fs-h3:      22px;  /* card titles everywhere */
  --fs-lead:    19px;  /* page intro paragraphs */
  --fs-body-post: 18px;/* article body, line-height 1.75 */
  --fs-body:    16px;  /* page body copy, line-height 1.65–1.7 */
  --fs-small:   15px;  /* card descriptions, UI */
  --fs-caption: 14px;  /* captions, meta */
  --fs-label:   13px;  /* legends, small labels */
  --fs-pill:    11px;  /* pills: 700, uppercase, letter-spacing .08em */

  /* ---- Spacing (8px rhythm) ---- */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-8: 32px; --space-10: 40px;
  --space-12: 48px; --space-14: 56px; --space-16: 64px; --space-20: 80px; --space-24: 96px;
  --container: 1180px;          /* .wrap max width, 32px side padding (18px ≤900px) */
  --measure: 720px;             /* article column, 24px side padding */
  --header-h: 72px;

  /* ---- Radii ---- */
  --r-sm: 10px;    /* thumbnails inside callouts */
  --r-md: 14px;    /* inputs, icon tiles, stat chips */
  --r-lg: 16px;    /* photos in posts, callouts, tables */
  --r-xl: 20px;    /* cards, home tiles, chart frames */
  --r-2xl: 24px;   /* big panels (philosophy, Pay card) */
  --r-3xl: 28px;   /* calculator panel, contact banner */
  --r-pill: 999px; /* nav items, pills, buttons, toggles */

  /* ---- Borders / line widths ---- */
  --border: 1px solid var(--line);       /* cards, panels, tables, header bottom */
  --border-dashed: 1.5px dashed var(--line); /* empty states */
  --stroke-chart: 3.5px;   /* main chart lines */
  --stroke-chart-2: 3px;   /* secondary chart line (dashed 6 6) */
  --stroke-guide: 2.5px;   /* dashed reference lines (dash 7 6) */
  --stroke-grid: 1px;      /* chart gridlines, color var(--line) */
  --stroke-icon: 1.8px;    /* UI icons (24px viewBox, round caps/joins) */

  /* ---- Shadows (soft, warm, only on hover or floating things) ---- */
  --shadow-hover: 0 22px 40px -22px rgba(20, 20, 40, 0.45);  /* card/tile hover */
  --shadow-float: 0 30px 60px -30px rgba(0, 0, 0, 0.40);      /* result card on green */
  --shadow-panel: 0 30px 60px -40px rgba(20, 20, 40, 0.35);   /* Pay card */
  --shadow-icon:  0 12px 30px -12px rgba(20, 20, 40, 0.45);   /* app icon on painting */

  /* ---- Overlays on paintings ---- */
  --scrim-hero: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(20,16,30,.55) 100%);
  --scrim-side: linear-gradient(90deg, rgba(20,16,30,.55), rgba(20,16,30,0) 70%);

  /* ---- Motion (subtle only) ---- */
  --ease: ease;
  --dur-hover: .3s;   /* lift 4px + shadow on cards/tiles */
  --dur-theme: .3s;   /* background/color when switching theme */

  color-scheme: light;
}

/* ---- Dark mode: warm navy-slate, NOT near-black; accents stay bright ---- */
:root[data-theme="dark"] {
  --bg: #1D2136; --surface: #272C45; --chip: #323858; --line: #3B4163;
  --text: #F5F3FB; --text2: #DCDDEA; --muted: #B4B9D2; --link: #9DB4FF;
  --blob1: #7A3E5A; --blob2: #1E5F57; --blob3: #3B3F9A;
  --terra: #FFB08F; --terraBg: #4A3043;
  --green: #7FE0B4; --greenBg: #1F4A45;
  --must:  #FFD47A; --mustBg:  #4A4130;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1D2136; --surface: #272C45; --chip: #323858; --line: #3B4163;
    --text: #F5F3FB; --text2: #DCDDEA; --muted: #B4B9D2; --link: #9DB4FF;
    --blob1: #7A3E5A; --blob2: #1E5F57; --blob3: #3B3F9A;
    --terra: #FFB08F; --terraBg: #4A3043;
    --green: #7FE0B4; --greenBg: #1F4A45;
    --must:  #FFD47A; --mustBg:  #4A4130;
    color-scheme: dark;
  }
}
