/* ─────────────────────────────────────────────────────────
   DESIGN TOKENS — Matteus da Costa Portfolio
   Source of truth: STYLE_GUIDE.md
   ─────────────────────────────────────────────────────────
   Usage
   -----
   Import once in <head> before any other stylesheet.
   Reference tokens via var(--token-name) in CSS.
   Never hard-code a hex value — always use a token.
   ───────────────────────────────────────────────────────── */

:root {

  /* ── Active palette — Bone ──────────────────────────── */
  /* §2.1 — only these tokens are live in index.html       */

  --color-bg:                  #F4F1EA; /* Page background, hero, about, footer      */
  --color-text:                #1E4D35; /* All primary text, icons, nav links         */
  --color-text-muted:          rgba(30, 77, 53, .65); /* Secondary text, labels       */
  --color-text-soft:           rgba(30, 77, 53, .3);  /* Timeline line, dots, dividers*/
  --color-surface:             #FFFFFF; /* Experience card background                 */
  --color-surface-hover:       #EAE5D7; /* Card hover fill + box-shadow spread       */
  --color-surface-placeholder: #E2DDD0; /* Image placeholders, empty tiles           */
  --color-accent:              #BFE3C8; /* CTA pill on content cards                 */
  --color-accent-icon:         #F4683D; /* About section accent icon                 */


  /* ── About · "say cheese" polaroid ──────────────────── */
  --color-paper:            #FFFEF9; /* Polaroid paper                            */
  --color-photo-backing:    #2F6A5C; /* Behind the photo while it loads           */
  --color-photo-develop:    #FBF6E6; /* Wash that fades as the polaroid develops  */
  --color-accent-cursor:    #8FD3BB; /* Collaborator cursor arrow                 */
  --color-accent-on-dark:   #CDEED8; /* Text on the dark-green "say cheese" pill   */


  /* ── Brand secondaries ──────────────────────────────── */
  /* §2.2 — reference palette, not yet used in index.html  */

  --color-tech-green:     #164732;
  --color-deep-blue:      #09245B;
  --color-celestial-blue: #569FD6;
  --color-harmony-green:  #AFDDB6;
  --color-vibrant-orange: #F4683D; /* Same hue as --color-accent-icon              */
  --color-solar-yellow:   #F5E961;


  /* ── Case study additions ──────────────────────────── */
  /* introduced by the TaDá Delivery case (Figma Website-26) */

  --color-harmony-green-tint: #CFEBD3; /* Status chip ("Shipped") background       */
  --color-shadow:             #2D3439; /* Shadow colour (Figma "Shadows/XLarge")    */

  /* introduced by the Fiserv case (Figma Website-26) */
  --color-danger:      #DD4040; /* "Locked" badge + error feedback icon fill   */
  --color-danger-text: #B91C1C; /* Text next to a danger badge (Figma red/700) */

  /* Fiserv product UI — only for the live FirstVision components
     re-built on the Fiserv case page (dropdown, inputs, modal)      */
  --fiserv-orange:        #FF6600; /* Brand/Primary/Pure — primary button     */
  --fiserv-ink:           #333333; /* Neutral/Dark/Medium — values, titles    */
  --fiserv-ink-muted:     #666666; /* Neutral/Dark/Light — labels, helpers    */
  --fiserv-line:          #AEAEAE; /* Input border, disabled text             */
  --fiserv-line-disabled: #DBDBDB; /* Disabled input border                   */


  /* ── Overlays ───────────────────────────────────────── */
  /* translucent layers used on more than one page          */

  --color-glass:    color-mix(in srgb, var(--color-white) 24%, transparent);       /* Frosted nav            */
  --color-scrim:    color-mix(in srgb, var(--color-black) 32%, transparent);       /* Hover darkening on card images */
  --color-backdrop: color-mix(in srgb, var(--color-neutral-700) 48%, transparent); /* Zoom modal overlay (§9) */


  /* ── Neutral / gray scale ───────────────────────────── */
  /* §2.3 — reference palette, not yet used in index.html  */

  --color-neutral-25:  #FDFDFD;
  --color-neutral-50:  #FAFAFA;
  --color-neutral-100: #F5F5F5;
  --color-neutral-200: #E9EAEB;
  --color-neutral-300: #D5D7DA;
  --color-neutral-400: #A4A7AE;
  --color-neutral-500: #717680;
  --color-neutral-600: #535862;
  --color-neutral-700: #414651;
  --color-neutral-800: #252B37;
  --color-neutral-900: #181D27;
  --color-white:       #FFFFFF;
  --color-black:       #000000;


  /* ── Border radius ──────────────────────────────────── */
  /* §6                                                    */

  --radius-xs:   2px;
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --radius-xl:   28px;    /* Case content cards, notes, zoom modal image  */
  --radius-2xl:  32px;    /* Case sections, phone-screen crops             */
  --radius-pill: 9999px;
  --radius-hover: 14px;   /* Work-card hover backdrop + image (off-scale) */


  /* ── Layout & grid ──────────────────────────────────── */
  /* §4 + §8                                               */

  --grid-columns:  12;
  --grid-gutter:   16px;
  --layout-max:    1440px;
  --layout-margin: 56px;


  /* ── Case pages ─────────────────────────────────────── */
  /* used by cases/* via shared/case.css                   */

  --case-content:     1168px;                 /* Content column */
  --case-gutter:      var(--layout-margin);
  --case-shadow-xl:   0 8px 40px -12px color-mix(in srgb, var(--color-shadow) 20%, transparent);
  --case-shadow-soft: 0 2px 4px 0 color-mix(in srgb, var(--color-neutral-900) 10%, transparent); /* §5 "soft / medium": light edge under screens */
  --case-shadow-sm:   0 2.5px 5px 2.5px color-mix(in srgb, var(--color-shadow) 4%, transparent);
  --case-orange-wash: color-mix(in srgb, var(--color-vibrant-orange) 80%, transparent);
  /* Figma "Shadows/Small" — floating UI pieces (dropdowns, modals) */
  --case-shadow-small: 0 2px 2px 0 color-mix(in srgb, var(--color-shadow) 4%, transparent),
                       0 4px 4px 0 color-mix(in srgb, var(--color-shadow) 8%, transparent);

}
