/* sitrep design tokens - from the sitrep Design System (claude.ai, version 9). Base values were copied from its tokens; the block at the end adds the December 2026 tokens and contrast fixes are applied in place. Do not edit here; update the design system and re-copy. */
/* ============================================================================
   sitrep — FONTS
   ----------------------------------------------------------------------------
   The locked type pairing (Phase 2):
     • Fraunces          — display serif accent (editorial warmth)
     • Plus Jakarta Sans — UI + body workhorse (humanist, rounded, friendly)
     • IBM Plex Mono     — status labels & data (used sparingly)

   All three are Google Fonts. We load them from the Google Fonts CDN so the
   exact weights/optical-sizes used across the product are always available.
   If you need self-hosted binaries, drop .woff2 files in assets/fonts/ and
   replace this @import with local @font-face rules.
   ============================================================================ */

@import url("https://fonts.googleapis.com/css2?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;1,9..144,500&family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500&family=IBM+Plex+Mono:wght@400;500;600&display=swap");

/* ============================================================================
   sitrep — COLOR
   ----------------------------------------------------------------------------
   A warm, trust-forward palette:
     • SAGE GREEN spine  — "Trusted Neighbor" (brand primary)
     • AMBER accent      — humanity, the "all clear" dot, the wordmark period
     • PAPER neutrals    — Quiet-Premium craft (warm, never cold grey)
     • SIGNAL-LIGHT set  — restrained, reserved for in-product live status only

   Section 1 = raw pigment ramps. Section 2 = SEMANTIC ROLES — product code
   should reference THESE so renaming a pigment never breaks components.
   ============================================================================ */

:root {

  /* ========================================================================
     1. RAW PALETTE (scales)
     ======================================================================== */

  /* --- Sage green (brand spine — "Trusted Neighbor") --- */
  --green-50:  #eef5f0;
  --green-100: #d8e8de;
  --green-200: #b3d2bf;
  --green-300: #84b79b;
  --green-400: #4f8e6e;
  --green-500: #2f6b4f;   /* brand primary */
  --green-600: #245540;   /* primary hover / pressed-dark */
  --green-700: #1c4232;
  --green-800: #143026;   /* deep ink-green */
  --green-900: #0e2019;

  /* --- Amber (warm accent — humanity, the "all clear" dot) --- */
  --amber-50:  #fdf6e9;
  --amber-100: #f9e7c2;
  --amber-200: #f3d091;
  --amber-300: #eeba5f;
  --amber-400: #e8a13a;   /* brand accent */
  --amber-500: #cf8a22;   /* accent hover / accessible text-on-light variant */
  --amber-600: #a86d16;

  /* --- Warm neutrals (paper / ink — Quiet Premium craft) --- */
  --sand-50:  #fbf7ef;    /* app background (warm paper) */
  --sand-100: #f3ecde;    /* raised surface / subtle fill */
  --sand-200: #e9e0cd;
  --line-100: #e4dccb;    /* hairline borders */
  --line-200: #d6ccb6;

  --ink-900: #243027;     /* primary text (warm near-black green) */
  --ink-700: #44504a;     /* strong secondary text */
  --ink-500: #636d60;     /* muted text */
  --ink-300: #9aa499;     /* disabled text / placeholders */

  /* --- Signal-light system (Direction C accent — in-product status only) --- */
  --signal-clear:    #2f9e6e;  /* GREEN  — "All clear" / completed   */
  --signal-active:   #e8a13a;  /* AMBER  — "On the job" / in progress */
  --signal-checkin:  #3b82c4;  /* BLUE   — "Checked in"               */
  --signal-pending:  #8c9a8e;  /* GREY   — "Scheduled" / not started  */
  --signal-alert:    #c2503a;  /* RED    — "Needs attention" (rare)   */

  /* --- Feedback hues (forms, toasts) --- */
  --hue-success: #2f9e6e;
  --hue-warning: #cf8a22;
  --hue-danger:  #c2503a;
  --hue-info:    #3b82c4;

  --white: #ffffff;


  /* ========================================================================
     2. SEMANTIC ROLES  — >>> product code should use THESE <<<
     ======================================================================== */

  /* Brand */
  --color-primary:        var(--green-500);   /* #2F6B4F  buttons, brand, links */
  --color-primary-hover:  var(--green-600);   /* #245540  hover / pressed        */
  --color-primary-soft:   var(--green-50);    /* #EEF5F0  tinted fills, chips     */
  --color-on-primary:     var(--white);       /* text/icons ON primary (6.7:1)    */

  --color-accent:         var(--amber-400);   /* #E8A13A  warm highlight, the dot */
  --color-accent-hover:   var(--amber-500);   /* #CF8A22                          */
  --color-accent-strong: var(--amber-600);   /* #CF8A22  accent as TEXT on light */
  --color-on-accent:      var(--ink-900);     /* dark text on amber (never white) */

  /* Surfaces & background */
  --color-background:     var(--sand-50);     /* #FBF7EF  page canvas (warm paper) */
  --color-surface:        var(--white);       /* #FFFFFF  cards, sheets, inputs    */
  --color-surface-raised: var(--sand-100);    /* #F3ECDE  subtle raised fill       */
  --color-surface-sunken: var(--sand-100);    /* recessed wells / track fills      */

  /* Text */
  --color-text:           var(--ink-900);     /* #243027  primary copy             */
  --color-text-strong:    var(--green-800);   /* #143026  headings, max emphasis   */
  --color-text-muted:     var(--ink-500);     /* #6C7669  secondary / captions     */
  --color-text-subtle:    var(--ink-300);     /* #9AA499  placeholder / hints      */
  --color-text-on-dark:   var(--sand-50);     /* copy on dark green surfaces       */
  --color-link:           var(--green-600);   /* #245540  inline links (AA on paper)*/

  /* Borders & dividers */
  --color-border:         var(--line-100);    /* #E4DCCB  default hairline         */
  --color-border-strong:  var(--line-200);    /* #D6CCB6  emphasized divider       */
  --color-border-focus:   var(--green-500);   /* focus ring color                  */

  /* Status — the signal-light roles (live-status UI) */
  --color-status-clear:    var(--signal-clear);   /* "All clear"  */
  --color-status-active:   var(--signal-active);   /* "On the job" */
  --color-status-checkin:  var(--signal-checkin);  /* "Checked in" */
  --color-status-pending:  var(--signal-pending);  /* "Scheduled"  */
  --color-status-alert:    var(--signal-alert);    /* "Attention"  */

  /* Semantic feedback */
  --color-success:        var(--hue-success);  /* also the canonical "all-clear" */
  --color-success-soft:   #e4f3ec;
  --color-warning:        var(--hue-warning);
  --color-warning-soft:   #fbf0d8;
  --color-danger:         var(--hue-danger);
  --color-danger-soft:    #f7e3df;
  --color-info:           var(--hue-info);
  --color-info-soft:      #e2eef7;
}


/* ============================================================================
   OPTIONAL DARK / "COMMAND" SURFACE
   The live-status product surfaces (Direction C) may sit on a deep ground.
   Apply [data-surface="dark"] to a container to remap the relevant roles.
   Kept minimal & opt-in so the master brand stays warm/light by default.
   ============================================================================ */
[data-surface="dark"] {
  --color-background:    #0e2019;            /* deep green-black */
  --color-surface:       #143026;            /* raised dark card */
  --color-surface-raised:#1c4232;
  --color-text:          #eaf2ec;
  --color-text-strong:   #ffffff;
  --color-text-muted:    #9bb3a6;
  --color-border:        rgba(255, 255, 255, 0.10);
  --color-border-strong: rgba(255, 255, 255, 0.16);
  --color-link:          #84b79b;
  --color-on-primary:    #ffffff;
}

/* ============================================================================
   sitrep — TYPOGRAPHY
   ----------------------------------------------------------------------------
   Pairing (locked):
     • Fraunces          — display serif accent. Headlines, hero, big moments.
     • Plus Jakarta Sans — UI + body workhorse. Everything readable.
     • IBM Plex Mono     — status labels & data. Used lightly, never a costume.

   Display steps default to --font-display; text steps to --font-sans.
   Type scale is a named, hand-tuned ~1.2–1.25 modular scale.
   ============================================================================ */

:root {

  /* --- Font families --- */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans:    "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI",
                  Roboto, Helvetica, Arial, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo,
                  Consolas, monospace;
  --font-body:    var(--font-sans);   /* default UI font alias */

  /* --- Font weights --- */
  --weight-regular:   400;
  --weight-medium:    500;
  --weight-semibold:  600;
  --weight-bold:      700;
  --weight-extrabold: 800;   /* wordmark, hero display */

  /* --- Type scale (named steps) --- */
  --text-display: 3.5rem;    /* 56px  hero display            */
  --text-h1:      2.5rem;    /* 40px  page title              */
  --text-h2:      2rem;      /* 32px  section title           */
  --text-h3:      1.5rem;    /* 24px  subsection / card title */
  --text-h4:      1.25rem;   /* 20px  small heading           */
  --text-lg:      1.125rem;  /* 18px  lead / large body       */
  --text-base:    1rem;      /* 16px  body (base)             */
  --text-sm:      0.875rem;  /* 14px  secondary / dense UI    */
  --text-xs:      0.75rem;   /* 12px  captions, labels        */
  --text-2xs:     0.6875rem; /* 11px  micro-labels inside UI  */

  /* Feature label above a section headline (Section header pattern):
     Jakarta 700, 18px, line-height 1.2, letter-spacing -0.01em. Replaces the
     11px mono eyebrow there; the eyebrow is for micro-labels inside UI only. */
  --text-type-feature: 700 1.125rem/1.2 var(--font-sans);

  /* --- Line heights --- */
  --leading-tight:   1.05;   /* display / large headings */
  --leading-snug:    1.2;    /* headings                 */
  --leading-normal:  1.5;    /* body                     */
  --leading-relaxed: 1.65;   /* long-form reading        */

  /* --- Letter spacing --- */
  --tracking-tight:  -0.02em; /* large display                      */
  --tracking-snug:   -0.01em; /* headings                           */
  --tracking-normal: 0;       /* body                               */
  --tracking-wide:   0.04em;  /* small UI labels                    */
  --tracking-caps:   0.14em;  /* uppercase eyebrows / status labels */
}

/* ============================================================================
   sitrep — SPACING, LAYOUT & RADII
   ----------------------------------------------------------------------------
   4px base grid, t-shirt steps. Generous by default (Quiet-Premium air).
   Radii are soft — rounded geometry is part of the brand's warmth.
   ============================================================================ */

:root {

  /* --- Spacing (4px base grid) — use for padding, margin, gap --- */
  --space-0:  0;
  --space-1:  0.25rem;  /* 4px  */
  --space-2:  0.5rem;   /* 8px  */
  --space-3:  0.75rem;  /* 12px */
  --space-4:  1rem;     /* 16px */
  --space-5:  1.25rem;  /* 20px */
  --space-6:  1.5rem;   /* 24px */
  --space-8:  2rem;     /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */

  /* --- Layout helpers --- */
  --container-max: 1120px;       /* max content width */
  --gutter:        var(--space-6);

  /* --- Radii (rounded = warm) --- */
  --radius-xs:   4px;    /* tags, tiny chips            */
  --radius-sm:   8px;    /* inputs, small buttons       */
  --radius-md:   12px;   /* buttons, chips, list rows   */
  --radius-lg:   16px;   /* cards, sheets               */
  --radius-xl:   20px;   /* feature cards, profile card */
  --radius-2xl:  28px;   /* hero panels, modals         */
  --radius-pill: 999px;  /* badges, status pills, avatars */
}

/* ============================================================================
   sitrep — ELEVATION & SHADOWS
   ----------------------------------------------------------------------------
   Soft, warm-tinted depth (green-black, never pure black) so elevation feels
   humane. Brand-tinted lifts exist for primary buttons / hero cards.
   ============================================================================ */

:root {
  --shadow-xs: 0 1px 2px rgba(20, 32, 25, 0.06);
  --shadow-sm: 0 2px 6px rgba(20, 32, 25, 0.08);
  --shadow-md: 0 8px 20px -8px rgba(20, 32, 25, 0.18);
  --shadow-lg: 0 24px 50px -30px rgba(20, 32, 25, 0.35);
  --shadow-xl: 0 40px 80px -40px rgba(20, 32, 25, 0.45);

  /* Brand-tinted lift (for primary buttons / hero cards) */
  --shadow-primary: 0 10px 22px -10px rgba(47, 107, 79, 0.55);
  --shadow-accent:  0 10px 22px -10px rgba(232, 161, 58, 0.45);

  /* Focus ring (accessibility — pair with :focus-visible) */
  --focus-ring: 0 0 0 3px rgba(47, 107, 79, 0.35);
}

/* ============================================================================
   sitrep — MOTION & LAYERING
   ----------------------------------------------------------------------------
   Calm, quick, never bouncy — composure is part of the brand. Fades and short
   translateY rises; no spring/overshoot. A single Z-index scale keeps layering
   predictable.
   ============================================================================ */

:root {

  /* --- Easing & duration --- */
  --ease-standard: cubic-bezier(0.2, 0.6, 0.2, 1); /* @kind other */
  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);  /* @kind other */
  --duration-fast: 120ms; /* @kind other */
  --duration-base: 180ms; /* @kind other */
  --duration-slow: 280ms; /* @kind other */

  /* --- Z-index scale --- */
  --z-base:    0;    /* @kind other */
  --z-raised:  10;   /* @kind other */
  --z-sticky:  100;  /* @kind other */
  --z-overlay: 500;  /* @kind other */
  --z-modal:   1000; /* @kind other */
  --z-toast:   1500; /* @kind other */
}


/* sitrep Design System v9 (Dec 2026) additions */
:root {
  --color-success-ink: #1c6647;
  --color-info-ink: #235a86;
  --color-pro-ink: #744a0f;
  --color-scrim: rgba(14, 32, 25, 0.48);
  --color-surface-translucent: rgba(251, 247, 239, 0.86);
  --color-photo-overlay: rgba(20, 32, 25, 0.84);
  --color-on-photo: rgba(255, 255, 255, 0.94);
  --color-on-dark-fill: rgba(255, 255, 255, 0.06);
  --color-on-dark-border: rgba(255, 255, 255, 0.12);
  --color-wash-amber: rgba(232, 161, 58, 0.14);
}
