/* ==========================================================================
   YT Digital Power — Design Tokens
   Single source of truth for colour, type, spacing, layout, motion, layers.
   No component rules belong in this file.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Variable-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Variable-latin-ext.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

:root {
  /* ---------------------------------------------------------------------
     Brand palette
     --------------------------------------------------------------------- */
  --yt-red: #C7000B;
  --yt-red-dark: #A50009;
  --yt-black: #000000;
  --yt-ink: #191919;
  --yt-gray: #999999;
  --yt-gray-60: rgba(0, 0, 0, 0.6);
  --yt-bg-soft: #F5F5F7;
  --yt-line: #E6E6E6;
  --yt-white: #FFFFFF;
  --yt-overlay-dark: rgba(0, 0, 0, 0.55);
  --yt-overlay-deep: rgba(0, 0, 0, 0.88);
  --yt-success: #1E7B34;
  --yt-error: #C7000B;

  /* ---------------------------------------------------------------------
     Typography
     --------------------------------------------------------------------- */
  --yt-font-sans: "Huawei Sans", "HarmonyOS Sans", "Inter", "Microsoft YaHei",
    Arial, Helvetica, sans-serif;
  --yt-font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

  --yt-fs-12: 12px;
  --yt-fs-13: 13px;
  --yt-fs-14: 14px;
  --yt-fs-15: 15px;
  --yt-fs-16: 16px;
  --yt-fs-18: 18px;
  --yt-fs-20: 20px;
  --yt-fs-24: 24px;
  --yt-fs-28: 28px;
  --yt-fs-32: 32px;
  --yt-fs-40: 40px;
  --yt-fs-48: 48px;
  --yt-fs-56: 56px;

  --yt-lh-16: 16px;
  --yt-lh-21: 21px;
  --yt-lh-24: 24px;
  --yt-lh-28: 28px;
  --yt-lh-32: 32px;
  --yt-lh-40: 40px;
  --yt-lh-48: 48px;
  --yt-lh-56: 56px;

  --yt-fw-regular: 400;
  --yt-fw-medium: 500;
  --yt-fw-bold: 700;
  --yt-tracking-wide: 0.08em;
  --yt-tracking-wider: 0.12em;

  /* ---------------------------------------------------------------------
     Spacing scale (4px base)
     --------------------------------------------------------------------- */
  --yt-space-1: 4px;
  --yt-space-2: 8px;
  --yt-space-3: 12px;
  --yt-space-4: 16px;
  --yt-space-5: 20px;
  --yt-space-6: 24px;
  --yt-space-7: 32px;
  --yt-space-8: 40px;
  --yt-space-9: 48px;
  --yt-space-10: 56px;
  --yt-space-11: 64px;
  --yt-space-12: 80px;
  --yt-space-13: 100px;

  /* ---------------------------------------------------------------------
     Layout
     --------------------------------------------------------------------- */
  --yt-container: 1200px;
  --yt-container-wide: 1440px;
  --yt-gutter: 24px;
  --yt-gutter-mobile: 20px;
  --yt-header-h: 72px;
  --yt-section-space: 100px;
  --yt-heading-gap: 56px;
  --yt-radius: 0;
  --yt-btn-h: 40px;
  --yt-prose-max: 720px;

  /* ---------------------------------------------------------------------
     Motion — restrained, 200–400ms
     --------------------------------------------------------------------- */
  --yt-dur-fast: 200ms;
  --yt-dur: 300ms;
  --yt-dur-slow: 600ms;
  --yt-ease: cubic-bezier(.2, .6, .2, 1);
  --yt-ease-out: cubic-bezier(.16, 1, .3, 1);

  /* ---------------------------------------------------------------------
     Layer order
     --------------------------------------------------------------------- */
  --yt-z-header: 100;
  --yt-z-mega: 110;
  --yt-z-mobile: 120;
  --yt-z-search: 130;
  --yt-z-modal: 140;
  --yt-z-cookie: 150;
  --yt-z-skip: 200;
}

/* The header, section rhythm and gutter tighten on phones. */
@media (max-width: 767px) {
  :root {
    --yt-gutter: var(--yt-gutter-mobile);
    --yt-header-h: 56px;
    --yt-section-space: 56px;
    --yt-heading-gap: 32px;
  }
}
