/* =====================================================================
   TOKENS – the only place raw design values live.
   Every other stylesheet uses var(--token) only (enforced by
   `npm run check`). The palette is closed: see CLAUDE.md before adding
   a colour. Hex values are uppercase 6-digit; each raw hex is defined
   once and role tokens point at it with var().
   One fixed look: no light/dark variants, OS dark mode is ignored.
   ===================================================================== */
:root {
  color-scheme: only light;

  /* -------------------------------------------------------------------
     COLOUR · core brand
     ------------------------------------------------------------------- */
  --matcha-900: #1F3209;   /* deepest text green                        */
  --matcha-700: #3B5D14;   /* links, strong UI                          */
  --matcha-500: #6E9A2E;   /* brand matcha                              */
  --matcha-300: #A9CF57;   /* gel highlight                             */
  --matcha-100: #EEF6D8;   /* soft panel                                */
  --yolk: #F4C430;         /* the single warm accent (main CTA)         */
  --yolk-dark: #B88A0C;    /* CTA edge and shadow                       */
  --paper: #FFFFFF;        /* window surface                            */
  --ink-soft: #4B5A3A;     /* secondary text                            */
  --hinomaru: #C8372D;     /* the red dot: origin marker, tin label     */
  --selection: #3B6FB6;    /* classic desktop selection blue            */
  --black: #000000;        /* outlines, masks, shadow base              */
  --white: var(--paper);   /* glyphs and highlights on gel surfaces     */

  /* -------------------------------------------------------------------
     COLOUR · text
     ------------------------------------------------------------------- */
  --text-status: #4A5A38;          /* status bar, splash messages, photo tag */
  --text-muted: #5F6B52;           /* notes, definition terms, fine print    */
  --text-partner: #6A735F;         /* "Store and checkout by"                */
  --text-partner-strong: #33392C;  /* the KINTI LABS name in the Buy window  */
  --text-on-yolk: #3A2B00;         /* text on yellow gel buttons             */
  --text-toast: #2B2B1A;           /* balloon notice text                    */

  /* -------------------------------------------------------------------
     COLOUR · surfaces and panels
     ------------------------------------------------------------------- */
  --surface-glow: #FBFDF4;          /* top glow of the launcher body          */
  --surface-status: #F4F7EC;        /* status bar panel behind the logo       */
  --line-status: #CBD7B0;           /* status bar top border                  */
  --line-soft: #E1EBCB;             /* card borders, splash credit divider    */
  --line-panel: #D7E6B4;            /* sidebar and photo dividers             */
  --line-tab-selected: #C9DC9E;     /* selected tab border                    */
  --photo-top: #F2F8E2;             /* product photo placeholder, top         */
  --photo-bottom: #E2EFC4;          /* product photo placeholder, bottom      */
  --photo-tag-line: #9DB86A;        /* dashed border of the photo tag         */
  --progress-line: #8AA866;         /* splash progress bar border             */

  /* -------------------------------------------------------------------
     COLOUR · window chrome (gel title bar and controls)
     ------------------------------------------------------------------- */
  --chrome-border: #5E8A22;   /* window and splash card border            */
  --chrome-gel-1: #9CC94A;    /* title bar top (also progress highlight)  */
  --chrome-gel-2: #7DB034;
  --chrome-gel-3: #5E8F1F;    /* hard stop (also the book cover base)     */
  --chrome-gel-4: #6FA02A;
  --chrome-bar-edge: #4A7316; /* title bar bottom border                  */
  --ctl-gel-1: #B9DD76;       /* minimise / maximise controls             */
  --ctl-gel-2: #8BBE3E;
  --ctl-gel-3: #77AB2E;
  --ctl-gel-4: #8EC046;
  --ctl-close-1: #F2A27F;     /* close control                            */
  --ctl-close-2: #E2673A;
  --ctl-close-3: #CF5326;
  --ctl-close-4: #E06A3C;

  /* -------------------------------------------------------------------
     COLOUR · taskbar and tray
     ------------------------------------------------------------------- */
  --taskbar-1: #8CBF3F;
  --taskbar-2: #6E9F28;
  --taskbar-3: #5C8A1E;
  --taskbar-4: #476E14;
  --taskbar-edge: #B3DB6C;   /* taskbar top highlight                     */
  --tray-top: #5E9A2A;
  --tray-bottom: #3F6B12;
  --tray-edge: #33560C;      /* tray left border                          */

  /* -------------------------------------------------------------------
     COLOUR · CTA yellow gel (primary action and Show desktop only)
     ------------------------------------------------------------------- */
  --cta-gel-1: #FFF3B8;
  --cta-gel-2: #F9DC62;
  --cta-gel-3: var(--yolk);
  --cta-gel-4: #F7D04C;
  --home-gel-1: #F7D866;
  --home-gel-2: #E9B620;
  --home-gel-3: #D9A10F;
  --home-gel-4: #EDBE2C;

  /* -------------------------------------------------------------------
     COLOUR · desktop scene and illustration
     ------------------------------------------------------------------- */
  --sky: #CFE9F2;               /* reference sky tone                       */
  --sky-top: #BFE2EF;
  --sky-mid: #E4F2EC;
  --sky-bottom: #F4F8E6;
  --scene-sun: #F7E7A6;
  --scene-mountain: #B8D4D9;
  --scene-hill-back: #B7D77A;
  --scene-hill-front: #8DBA45;
  --scene-tea-rows: #7AA83A;
  --scene-field: var(--matcha-500);
  --art-page: #E7F0D2;          /* book pages, shaded side                  */
  --art-cover: #93C24A;         /* book cover, top                          */
  --art-line: #B9CF8A;          /* book spine and text lines                */
  --art-wood: #D9B77A;          /* whisk handle                             */
  --art-wood-edge: #A9864B;     /* whisk outlines                           */
  --art-bamboo: #F3E3BE;        /* whisk tines                              */
  --art-tin-dark: #4F7D18;      /* tea tin body                             */
  --art-tin-light: #8DC043;     /* tea tin highlight                        */
  --art-tin-shadow: #3F6512;    /* tea tin edge                             */
  --art-lid-light: #FBE38A;     /* tin lid highlight                        */
  --art-lid-dark: #C99A16;      /* tin lid edge                             */
  --art-lid: #E2B21E;           /* tin lid in the product illustration      */
  --art-globe-light: #E9F6FF;
  --art-globe-sea: #5FA6D6;
  --art-globe-land: #3E8B3A;
  --art-bolt: #E0A800;          /* caffeine icon                            */
  --art-bolt-bg: #FFF3C4;
  --swatch-ceremonial: #7DBA2E; /* also the matcha surface in bowls         */
  --swatch-premium: #8FAF3A;
  --swatch-culinary: #9A9A3E;

  /* Route map in the shipping wizard (aliases of palette colours only) */
  --map-sea: var(--sky);
  --map-edge: var(--scene-mountain);
  --map-land: var(--line-panel);
  --map-coast: var(--progress-line);
  --map-origin: var(--hinomaru);           /* Japan: the origin marker  */
  --map-dest: var(--matcha-500);           /* countries we ship to      */
  --map-dest-active: var(--matcha-700);    /* the chosen destination    */
  --map-route: var(--art-line);            /* idle route                */
  --map-route-active: var(--matcha-700);   /* the streaming route       */

  /* -------------------------------------------------------------------
     COLOUR · feedback (toast, selection)
     ------------------------------------------------------------------- */
  --toast-bg: #FFFFE1;
  --toast-line: #8A8A5C;
  --toast-icon: var(--selection);

  /* -------------------------------------------------------------------
     COLOUR · overlays and shadows (allowed rgba() bases only)
     ------------------------------------------------------------------- */
  --overlay-white-14: rgba(255,255,255,.14);
  --overlay-white-20: rgba(255,255,255,.2);
  --overlay-white-24: rgba(255,255,255,.24);
  --overlay-white-35: rgba(255,255,255,.35);
  --overlay-white-40: rgba(255,255,255,.4);
  --overlay-white-60: rgba(255,255,255,.6);
  --overlay-white-70: rgba(255,255,255,.7);
  --overlay-white-75: rgba(255,255,255,.75);
  --overlay-white-85: rgba(255,255,255,.85);
  --overlay-white-90: rgba(255,255,255,.9);
  --shade-black-14: rgba(0,0,0,.14);
  --shade-black-15: rgba(0,0,0,.15);
  --shade-black-18: rgba(0,0,0,.18);
  --shade-black-20: rgba(0,0,0,.2);
  --shade-black-25: rgba(0,0,0,.25);
  --shade-black-30: rgba(0,0,0,.3);
  --shade-black-35: rgba(0,0,0,.35);
  --shade-black-40: rgba(0,0,0,.4);
  --ink-alpha-08: rgba(31,50,9,.08);
  --ink-alpha-20: rgba(31,50,9,.2);
  --ink-alpha-22: rgba(31,50,9,.22);
  --ink-alpha-28: rgba(31,50,9,.28);
  --matcha-alpha-06: rgba(110,154,46,.06);
  --matcha-alpha-10: rgba(110,154,46,.10);
  --matcha-alpha-35: rgba(110,154,46,.35);
  --yolk-dark-alpha-25: rgba(184,138,12,.25);

  /* -------------------------------------------------------------------
     GEL SURFACES – two-tone gradient, hard midpoint stop
     ------------------------------------------------------------------- */
  --gel-titlebar: linear-gradient(180deg, var(--chrome-gel-1) 0%, var(--chrome-gel-2) 45%, var(--chrome-gel-3) 50%, var(--chrome-gel-4) 100%);
  --gel-ctl: linear-gradient(180deg, var(--ctl-gel-1) 0%, var(--ctl-gel-2) 50%, var(--ctl-gel-3) 51%, var(--ctl-gel-4) 100%);
  --gel-ctl-close: linear-gradient(180deg, var(--ctl-close-1) 0%, var(--ctl-close-2) 50%, var(--ctl-close-3) 51%, var(--ctl-close-4) 100%);
  --gel-home: linear-gradient(180deg, var(--home-gel-1) 0%, var(--home-gel-2) 50%, var(--home-gel-3) 51%, var(--home-gel-4) 100%);
  --gel-cta: linear-gradient(180deg, var(--cta-gel-1) 0%, var(--cta-gel-2) 48%, var(--cta-gel-3) 50%, var(--cta-gel-4) 100%);
  --gel-classic: linear-gradient(180deg, var(--paper) 0%, var(--surface-status) 50%, var(--art-page) 51%, var(--matcha-100) 100%);   /* secondary dialog buttons */

  /* Other backgrounds */
  --bg-taskbar: linear-gradient(180deg, var(--taskbar-1) 0%, var(--taskbar-2) 8%, var(--taskbar-3) 92%, var(--taskbar-4) 100%);
  --bg-tray: linear-gradient(180deg, var(--tray-top), var(--tray-bottom));
  --bg-sky: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 55%, var(--sky-bottom) 100%);
  --bg-seigaiha: radial-gradient(circle at 50% 100%, transparent 14px, var(--white) 15px, var(--white) 16px, transparent 17px, transparent 22px, var(--white) 23px, var(--white) 24px, transparent 25px) 0 0/48px 24px;
  --mask-sky-fade: linear-gradient(180deg, var(--black) 0%, transparent 45%);
  --bg-launcher: radial-gradient(120% 80% at 50% 0%, var(--surface-glow) 0%, var(--paper) 60%);
  --bg-progress: repeating-linear-gradient(90deg, var(--matcha-500) 0 8px, var(--chrome-gel-1) 8px 9px, transparent 9px 11px);
  --bg-photo:
    repeating-linear-gradient(45deg, var(--matcha-alpha-06) 0 10px, transparent 10px 20px),
    linear-gradient(180deg, var(--photo-top), var(--photo-bottom));

  /* -------------------------------------------------------------------
     SHADOWS
     ------------------------------------------------------------------- */
  --shadow-float: 0 18px 50px var(--ink-alpha-28), 0 2px 6px var(--ink-alpha-20);
  --shadow-window: 0 1px 0 var(--overlay-white-60) inset, var(--shadow-float);
  --shadow-ctl: 0 1px 1px var(--shade-black-25);
  --shadow-home: inset 0 1px 0 var(--overlay-white-60), 1px 0 3px var(--shade-black-25);
  --shadow-task-active: inset 0 1px 3px var(--shade-black-35);
  --shadow-lang-pressed: inset 0 1px 3px var(--shade-black-40);
  --shadow-well: inset 0 1px 2px var(--shade-black-15);
  --shadow-tab: 0 1px 2px var(--ink-alpha-08);
  --shadow-gel-btn: inset 0 1px 0 var(--overlay-white-90), 0 2px 0 var(--yolk-dark), 0 4px 10px var(--yolk-dark-alpha-25);
  --shadow-gel-btn-pressed: inset 0 1px 0 var(--overlay-white-70), 0 0 0 var(--yolk-dark);
  --shadow-toast: 0 6px 18px var(--shade-black-20);
  --shadow-choice-selected: 0 0 0 1px var(--selection) inset;
  --text-shadow-chrome: 0 1px 0 var(--shade-black-35);
  --text-shadow-task: 0 1px 0 var(--shade-black-30);
  --text-shadow-on-yolk: 0 1px 0 var(--overlay-white-40);
  --drop-glyph: drop-shadow(0 1px 0 var(--shade-black-35));
  --drop-icon: drop-shadow(0 6px 6px var(--ink-alpha-22));

  /* -------------------------------------------------------------------
     TYPOGRAPHY
     ------------------------------------------------------------------- */
  --chrome-font: Tahoma, Verdana, "Meiryo UI", Meiryo, "Hiragino Kaku Gothic ProN", "Segoe UI", system-ui, sans-serif;  /* era-appropriate window chrome */
  --content-font: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Arial Rounded MT Bold", system-ui, sans-serif;     /* calm, rounded window content */
  --fs-11: 11px;
  --fs-11-5: 11.5px;
  --fs-12: 12px;
  --fs-12-5: 12.5px;
  --fs-13: 13px;
  --fs-13-5: 13.5px;
  --fs-14: 14px;
  --fs-14-5: 14.5px;
  --fs-15: 15px;
  --fs-15-5: 15.5px;
  --fs-16: 16px;
  --fs-18: 18px;
  --fs-26: 26px;
  --fs-28: 28px;
  --fs-brand: clamp(28px, 4.4vw, 38px);
  --fs-buy-title: clamp(26px, 3.4vw, 32px);

  /* -------------------------------------------------------------------
     RADII
     ------------------------------------------------------------------- */
  --radius-window: 10px 10px 6px 6px;
  --radius-control: 4px;
  --radius-card: 12px;
  --radius-panel: 16px;
  --radius-pill: 999px;
  --radius-small: 3px;      /* labels, tray button, progress bar, photo tag */
  --radius-toast: 6px;
  --radius-medium: 8px;     /* shortcuts, tabs, splash card, swatches       */
  --radius-home: 0 17px 17px 0;
  --radius-round: 50%;

  /* -------------------------------------------------------------------
     MOTION
     ------------------------------------------------------------------- */
  --dur-open: 220ms;
  --dur-open-fade: 180ms;
  --dur-close: 140ms;
  --dur-toast: 180ms;
  --dur-hover: 150ms;
  --dur-press: 60ms;
  --dur-press-filter: 120ms;
  --dur-splash-fade: 250ms;
  --dur-reduced: .01ms;
  --dur-stream: 900ms;          /* one cycle of the route's flowing dashes   */
  --dur-travel: 2400ms;         /* the parcel's trip Japan → destination (js/wizard.js) */
  --ease-open: cubic-bezier(.2, .9, .3, 1.2);
  --splash-ms: 2500ms;          /* read by js/splash.js                     */
  --splash-ms-reduced: 500ms;   /* read by js/splash.js (reduced motion)    */

  /* -------------------------------------------------------------------
     LAYOUT AND STACKING
     ------------------------------------------------------------------- */
  --taskbar-h: 44px;
  --titlebar-h: 34px;
  --z-window-base: 100;         /* read by js/windows.js                    */
  --z-taskbar: 9000;
  --z-toast: 9500;
  --z-splash: 9800;

  /* -------------------------------------------------------------------
     CURSORS – original classic arrow (white fill, black outline)
     ------------------------------------------------------------------- */
  --cursor-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='28' viewBox='0 0 20 28'%3E%3Cpath d='M1.5 1.5v21.5l5.2-5 3.6 8.2 3.4-1.5-3.6-8h7.2z' fill='%23fff' stroke='%23000' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") 1 1, default;
  /* Same arrow while dragging a window (with a tiny move badge). */
  --cursor-move: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath d='M1.5 1.5v21.5l5.2-5 3.6 8.2 3.4-1.5-3.6-8h7.2z' fill='%23fff' stroke='%23000' stroke-width='1.5' stroke-linejoin='round'/%3E%3Cpath d='M22 15v10M17 20h10' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") 1 1, move;
}
