/* =====================================================================
   CHERUB WAITLIST · TOKENS
   ---------------------------------------------------------------------
   Change the look here. Colours, type, spacing and radii come from the
   Cherub Design System Figma file (Foundations page); the names in the
   comments match its variables.

   Scroll and load animations (reveal, line drawing, parallax) are set
   in js/config.js. Hover, looping float and transitions are set in the
   MOTION block at the bottom of this file.
   ===================================================================== */

:root {
  color-scheme: light;

  /* ---------- Colour ------------------------------------------------ */
  --color-paper: #f4f5f4;          /* neutral-25 · page background            */
  --color-surface: #ffffff;        /* white · cards, form, photo borders      */
  --color-field: #f4f5f4;          /* background/secondary · select fills     */
  --color-ink: #17181b;            /* neutral-900 · text                      */
  --color-ink-muted: #565c61;      /* neutral-500 · secondary text            */
  --color-line: #d6d8d7;           /* neutral-100 · border/strong             */
  --color-line-soft: #ebeceb;      /* neutral-50 · border/default             */
  --color-cobalt: #2438ff;         /* blue-500 · buttons, links, line art     */
  --color-cobalt-deep: #1a2ad1;    /* blue-600 · hover and pressed            */
  --color-cobalt-soft: #d6dbff;    /* blue-100 · tints on cobalt              */
  --color-cobalt-mist: #e8eafe;    /* blue-50 · selected option rows          */
  --color-on-cobalt: #ffffff;
  --color-error: #b42318;          /* red-600                                 */
  --color-success: #13773a;        /* green-700                               */

  /* Every line drawing and hand-written note uses these two.
     Try #001d9b (blue-700) for a darker, more ink-like line. */
  --color-line-art: var(--color-cobalt);
  --color-hand: var(--color-cobalt);

  /* ---------- Type -------------------------------------------------- */
  --font-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* Placeholder for the hand-written notes. Replace with hand-lettered
     SVGs when the illustrations are drawn (see README). */
  --font-hand: "Reenie Beanie", "Bradley Hand", cursive;

  /* Fluid sizes grow from phone to laptop, then stop: each one reaches its cap by
     about 1280px wide, so text is no bigger on a large monitor than on a laptop. */
  --text-hero: clamp(2.5rem, 1.5rem + 4.2vw, 4.5rem);    /* 40px phone → 72px laptop and up */
  --text-h2: clamp(1.875rem, 1.4rem + 2vw, 2.75rem);
  --text-h3: 1.125rem;
  --text-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.125rem);  /* 17 → 18px */
  --text-body: 1rem;                                        /* body/medium 16/24 */
  --text-small: 0.875rem;                                   /* body/small 14/20 */
  --text-label: 0.75rem;                                    /* data/label 12/16 */
  --text-hand: clamp(1.5rem, 1.2rem + 0.9vw, 1.875rem);

  --weight-hero: 800;              /* Unbounded ExtraBold (display/large) */
  --weight-heading: 700;           /* Unbounded Bold (display/small)      */
  --tracking-display: -0.03em;
  --tracking-body: -0.01em;
  --tracking-label: 0.08em;

  /* ---------- Space and shape -------------------------------------- */
  --space-2xs: 4px;   /* spacing-xs   */
  --space-xs: 8px;    /* spacing-sm   */
  --space-sm: 12px;   /* spacing-md   */
  --space-md: 16px;   /* spacing-lg   */
  --space-lg: 24px;   /* spacing-xl   */
  --space-xl: 32px;   /* spacing-xxl  */
  --space-2xl: 48px;  /* spacing-xxxl */
  --space-section: clamp(72px, 9vw, 128px);

  --gutter: clamp(16px, 4vw, 32px);   /* layout/gutter 16 → expanded margin 32 */
  --content-max: 1200px;

  /* Base grid: column lines behind the whole page, which the layout snaps to.
     12 columns across the content width (100px each at 1200px), 8 on tablets, 4 on phones. */
  --grid-cols: 12;
  --grid-line: rgba(23, 24, 27, 0.07);   /* column lines */
  --grid-edge: rgba(23, 24, 27, 0.15);   /* the two outer edges and the rules between sections */
  --text-max: 62ch;

  --radius-card: 8px;      /* radius-card   */
  --radius-panel: 12px;    /* radius-panel  */
  --radius-sheet: 24px;    /* radius-sheet  */
  --radius-pill: 9999px;   /* radius-pill, radius-input, buttons render as pills */

  --border: 1px;           /* border-width-default */
  --border-strong: 1.5px;  /* border-width-strong, also the line-art weight */

  --shadow-strength: 0.6;   /* how dark every cast shadow on the page is: 1 = the original look, 0 = none */
  --shadow-print: 0 1px 2px rgba(23, 24, 27, calc(0.08 * var(--shadow-strength))), 0 14px 28px -14px rgba(23, 24, 27, calc(0.32 * var(--shadow-strength)));
  --shadow-phone: 0 1px 0 rgba(23, 24, 27, calc(0.04 * var(--shadow-strength))), 0 30px 60px -30px rgba(23, 24, 27, calc(0.45 * var(--shadow-strength)));

  /* ---------- Texture ---------------------------------------------- */
  /* Grain: a still noise tile laid over the whole page. */
  --grain-image: url("../img/texture/grain.png");
  --grain-size: 200px;
  --grain-opacity: 0.16;           /* whole page                        */
  --grain-opacity-band: 0.1;       /* extra grain on the invitation card */

  /* Invitation card (closing sign-up): blind emboss from img/texture/emboss.webp.
     The emboss has white highlights and deep-blue shadows baked in for cobalt stock. */
  --emboss-image: url("../img/texture/emboss.webp");
  --emboss-opacity: 0.42;          /* strength of the emboss              */
  --emboss-centre: 0.3;            /* strength behind the text, 0 to 1    */
  --emboss-size: 125%;             /* motif height relative to the card   */
  --invite-radius: 6px;            /* card corners                        */
  --invite-frame: rgba(255, 255, 255, 0.32); /* thin inner border line    */

  /* Photos: a light grade so catalogue shots sit on paper. */
  --photo-filter: saturate(0.9) contrast(0.96) brightness(1.02);
  --photo-border: 6px;             /* white print border                */
  --tape-color: rgba(255, 255, 255, 0.62);

  /* ---------- Motion (hover, loops, transitions) -------------------- */
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-in-out: cubic-bezier(0.6, 0, 0.3, 1);
  --dur-fast: 160ms;
  --dur-base: 320ms;

  --float-distance: 7px;           /* how far the hero photos bob       */
  --float-duration: 7s;            /* one full bob                      */
  --print-hover-lift: -8px;        /* hero photo hover lift             */
  --print-hover-straighten: 0.5;   /* 0 = keep tilt on hover, 1 = straighten fully */

  /* Wardrobe (hero): navy-painted oak, brass, photographed pieces. */
  --wd-wood: url("../img/texture/wood-navy.jpg");     /* upright panels (vertical grain) */
  --wd-wood-h: url("../img/texture/wood-navy-h.jpg"); /* shelves and top (horizontal)    */
  --wd-velvet: url("../img/texture/velvet.jpg");      /* jewellery display board         */
  --wd-wash: rgba(20, 32, 90, 0);      /* tint over the wood: raise alpha for deeper navy, or use a lighter blue to brighten */
  --wd-brass: linear-gradient(180deg, #f4dfa5 0%, #c9a24f 38%, #8f6b26 62%, #e6c77c 100%);
  --wd-rail: linear-gradient(180deg, #fbfbf9 0%, #c9ccce 35%, #8d9195 55%, #e7e8e9 80%, #a9acaf 100%);
  --wd-picked-glow: rgba(255, 238, 200, 0.55); /* glow on pieces in your look      */
  --wd-w: 480px;                       /* wardrobe width                      */
  --wd-h: 530px;                       /* wardrobe height (inner heights: --y-shelf, --y-floor in css/wardrobe.css) */
  --wd-d: 190px;                       /* wardrobe depth                      */

  /* Frosted glass for the "Your look" panel */
  --glass-fill: linear-gradient(150deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.30));
  --glass-fill-sheet: linear-gradient(150deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.58));
  --glass-blur: 22px;
  --glass-edge: rgba(255, 255, 255, 0.7);

  /* Stacked feature cards (desktop) */
  --card-h: min(600px, calc(100vh - 160px));                 /* card height              */
  --feature-radius: 0px;   /* corner rounding of the feature panels (square, as a grid) */
  --feature-rule: var(--grid-edge);         /* frame and divider lines of the feature panels */
  /* Background of each feature's visual half: a different pale blue for each feature, all
     from the brand's cobalt family and at the same softness. */
  --feature-bg-closet: var(--color-cobalt-mist);  /* #e8eafe pale periwinkle */
  --feature-bg-wallet: var(--color-cobalt-soft);  /* #d6dbff deeper cobalt tint */
  --feature-bg-explore: #e1ecf8;                  /* cooler ice blue */
  --feature-bg-extension: #e4e1fb;                /* blue-violet tint */
  --feature-visual-bg: var(--color-cobalt-mist);  /* fallback for any new panel */

  /* Scroll-filled headline above the feature cards */
  --scroll-text-from: #c4c8cb;               /* word colour before it fills          */
  --scroll-text-to: var(--color-ink);        /* filled colour                        */
  --scroll-text-accent: var(--color-cobalt); /* filled colour for data-accent words  */
}
