/* Visual tokens from json/tokens.json.
   Traditional Chinese: Noto Sans TC. English: Inter.
   Desktop H2 is 40/50. The canvas label 40/56 is not used.
   Font variables have Desktop and Mobile only. Type changes at 768.
   1024 and 768 are derived layout breakpoints: no Figma page frames exist there.
   Padding: Desktop 64, small desktop 64, tablet 40, mobile 20. */

@font-face {
  font-family: "Noto Sans TC";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/noto-sans-tc-latin-400.woff2") format("woff2");
  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: "Noto Sans TC";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/noto-sans-tc-400.woff2") format("woff2");
  unicode-range: U+0100-10FFFF;
}

@font-face {
  font-family: "Noto Sans TC";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/noto-sans-tc-latin-500.woff2") format("woff2");
  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: "Noto Sans TC";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/noto-sans-tc-500.woff2") format("woff2");
  unicode-range: U+0100-10FFFF;
}

@font-face {
  font-family: "Noto Sans TC";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/noto-sans-tc-latin-600.woff2") format("woff2");
  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: "Noto Sans TC";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/noto-sans-tc-600.woff2") format("woff2");
  unicode-range: U+0100-10FFFF;
}

@font-face {
  font-family: "Noto Sans TC";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/noto-sans-tc-latin-700.woff2") format("woff2");
  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: "Noto Sans TC";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/noto-sans-tc-700.woff2") format("woff2");
  unicode-range: U+0100-10FFFF;
}

@font-face {
  font-family: "Noto Sans TC";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("../assets/fonts/noto-sans-tc-latin-900.woff2") format("woff2");
  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: "Noto Sans TC";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("../assets/fonts/noto-sans-tc-900.woff2") format("woff2");
  unicode-range: U+0100-10FFFF;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/inter-400.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/inter-500.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/inter-600.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/inter-700.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("../assets/fonts/inter-900.woff2") format("woff2");
}

:root {
  --color-black: #333333;
  --color-white: #ffffff;
  --color-dark-red: #c20012;
  --color-red: #ed1b2e;
  --color-light-red: #eb4d4d;
  --color-pale-red: #ff5e5e;
  --color-pink: #fff3f3;
  --color-gray: #aaaaaa;
  --color-light-gray: #e0e0e0;
  --color-pale-gray: #ededed;
  --color-cikg-1: #0042c3;
  --color-cikg-2: #2b4fab;
  --color-cikg-3: #30acef;
  --color-cikg-4: #93d9ff;
  --color-cikg-5: #b6edff;
  --color-cikg-6: #d1f4ff;
  --color-cikg-7: #e9faff;

  --font-tc: "Noto Sans TC", "Inter", sans-serif;
  --font-en: "Inter", "Noto Sans TC", sans-serif;

  /* Desktop type. 1rem = 16px before the A+ / A- control. */
  --h1-size: 3rem;
  --h1-lh: 3.375rem;
  --h2-size: 2.5rem;
  --h2-lh: 3.125rem;
  --h3-size: 2rem;
  --h3-lh: 2.75rem;
  --p1-size: 1.5rem;
  --p1-lh: 2.125rem;
  --p3-size: 1.25rem;
  --p3-lh: 2rem;
  --p6-size: 1rem;
  --p6-lh: 1.625rem;
  --p9-size: 0.875rem;
  --p9-lh: 1.25rem;
  --p10-size: 0.625rem;
  --p10-lh: 1rem;

  --bp-desktop: 1440px;
  --bp-small-desktop: 1024px;
  --bp-tablet: 768px;
  --bp-mobile: 390px;
  --pad: 20px;
  --page: #f3f3f3;
  --header-z: 30;
  --dialog-z: 60;
  --door-z: 80;
  --focus: 2px solid var(--color-dark-red);
  --measure: 68ch;
}

@media (max-width: 767.98px) {
  :root {
    --h1-size: 2.5rem;
    --h1-lh: 2.875rem;
    --h2-size: 2rem;
    --h2-lh: 2.75rem;
    --h3-size: 1.5rem;
    --h3-lh: 2.125rem;
    --p1-size: 1.25rem;
    --p1-lh: 1.875rem;
    --p3-size: 1rem;
    --p3-lh: 1.625rem;
  }
}

@media (min-width: 768px) {
  :root { --pad: 40px; }
}

@media (min-width: 1024px) {
  :root { --pad: 64px; }
}

html[data-text-scale="sm"] { font-size: 87.5%; }
html[data-text-scale="lg"] { font-size: 112.5%; }
