/* ==========================================================================
   PLUMBLINE design tokens (B4 Reassessment Check, Lane D) - v1, 2026-11-19
   Shared with Lane W (wizard + plugin pipeline). Adopt by linking this file
   or copying the :root blocks. Token names are the contract; values may tune.

   Identity: "Plumbline". A plumb line is the builder's tool for finding what is
   true and vertical, which is the job: check the county's record against the
   house. Signature details: a tape-measure progress strip, a plumb-bob mark,
   graphite ink on a cool, slightly green "survey paper" ground.
   Deliberately NOT: navy/gold civic colours, seals, crests, serif "official"
   headings, or any county / contractor look-alike.

   Layout concept: one question per screen, a tape strip on top shows how far
   along you are, one primary action pinned at the thumb.
   ========================================================================== */

:root {
  /* ---- colour: core ---- */
  --paper:        #EEF0EB;  /* page ground: cool survey paper */
  --surface:      #FFFFFF;  /* cards, sheets */
  --surface-2:    #F6F7F3;  /* inset wells, table stripes */
  --ink:          #1D2124;  /* graphite text */
  --ink-2:        #50585D;  /* secondary text (AA on paper and surface) */
  --line:         #D3D7CF;  /* hairlines */
  --line-strong:  #AEB5AB;  /* input borders, ruler ticks */

  /* ---- colour: brand ---- */
  --spruce:       #1D5B4D;  /* primary action, links, selected state */
  --spruce-ink:   #FFFFFF;  /* text on spruce */
  --spruce-soft:  #DCEAE4;  /* selected fill, info notes */
  --tape:         #F2B705;  /* tape-measure yellow: progress + highlights only */
  --tape-ink:     #1D2124;  /* text on tape (always dark, both themes) */
  --tape-soft:    #FBF0C6;

  /* ---- colour: semantic (not the accent) ---- */
  --ask:          #7A4E00;  /* "question to bring": a record difference */
  --ask-soft:     #FBEBC2;
  --hard:         #A8261D;  /* hard deadline */
  --hard-soft:    #F7DFDA;
  --ok:           #2A7448;  /* matches / done */
  --ok-soft:      #DAEEDF;
  --sample:       #5747A3;  /* "fictional sample" marking */
  --sample-soft:  #E6E2F6;

  --shadow-1: 0 1px 2px rgb(20 30 25 / .06), 0 4px 14px rgb(20 30 25 / .06);
  --shadow-2: 0 2px 4px rgb(20 30 25 / .08), 0 14px 34px rgb(20 30 25 / .12);

  /* ---- type ---- */
  /* Google Fonts: Bricolage Grotesque (display), Atkinson Hyperlegible (body,
     chosen for older owners and low vision), IBM Plex Mono (figures, measures). */
  --f-display: "Bricolage Grotesque", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body:    "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --t-xs:  12px;   /* captions, sources */
  --t-sm:  14px;   /* help text, chips */
  --t-md:  17px;   /* body: one step larger than usual on purpose */
  --t-lg:  20px;   /* card titles */
  --t-xl:  26px;   /* screen question */
  --t-2xl: 34px;   /* hero / big figures */
  --t-3xl: 44px;   /* deadline date */
  --lh-tight: 1.15;
  --lh-body:  1.5;

  /* ---- spacing (4-pt) ---- */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;

  /* ---- shape ---- */
  --r-sm: 6px; --r-md: 12px; --r-lg: 18px; --r-pill: 999px;
  --tap: 48px;           /* minimum touch target */
  --phone: 390px;        /* design width */
  --measure: 62ch;       /* running text width */
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121517; --surface: #1B1F22; --surface-2: #23282B;
    --ink: #E9ECE7; --ink-2: #A9B1AD; --line: #313839; --line-strong: #4E5856;
    --spruce: #6CC3A6; --spruce-ink: #0D1A16; --spruce-soft: #1B3730;
    --tape: #F5C431; --tape-ink: #1D2124; --tape-soft: #3A3113;
    --ask: #F0C064; --ask-soft: #3A2E14;
    --hard: #F28B7F; --hard-soft: #3F201C;
    --ok: #7BCC98; --ok-soft: #1A3424;
    --sample: #B6AAF2; --sample-soft: #2A2547;
    --shadow-1: 0 1px 2px rgb(0 0 0 / .4), 0 4px 14px rgb(0 0 0 / .25);
    --shadow-2: 0 2px 4px rgb(0 0 0 / .45), 0 14px 34px rgb(0 0 0 / .4);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #121517; --surface: #1B1F22; --surface-2: #23282B;
  --ink: #E9ECE7; --ink-2: #A9B1AD; --line: #313839; --line-strong: #4E5856;
  --spruce: #6CC3A6; --spruce-ink: #0D1A16; --spruce-soft: #1B3730;
  --tape: #F5C431; --tape-ink: #1D2124; --tape-soft: #3A3113;
  --ask: #F0C064; --ask-soft: #3A2E14;
  --hard: #F28B7F; --hard-soft: #3F201C;
  --ok: #7BCC98; --ok-soft: #1A3424;
  --sample: #B6AAF2; --sample-soft: #2A2547;
  --shadow-1: 0 1px 2px rgb(0 0 0 / .4), 0 4px 14px rgb(0 0 0 / .25);
  --shadow-2: 0 2px 4px rgb(0 0 0 / .45), 0 14px 34px rgb(0 0 0 / .4);
  color-scheme: dark;
}
:root[data-theme="light"] { color-scheme: light; }
