/* Phase 2 typography, 2026-09-09.
   Shared by every route in the 9.9 entry. Keep this after component styles.
   The scoped family override intentionally covers legacy font shorthands,
   inline fragments, dialogs and dynamically rendered product/account text.
   Icons are SVG; no icon-font exception is needed. */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../assets/fonts/manrope/manrope-latin-ext-wght.woff2") format("woff2");
  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;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../assets/fonts/manrope/manrope-latin-wght.woff2") format("woff2");
  unicode-range: U+000D,U+02C6,U+02DA,U+02DC;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../assets/fonts/manrope/manrope-ui-9d9370dff8f489d7.woff2") format("woff2");
  unicode-range: U+0020-007E,U+00A0-00FF,U+0131,U+0152-0153,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215;
}

:root,
body#typewriterWorkshop {
  --cw-font-sans: "Manrope", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Segoe UI", Arial, sans-serif;
  /* Retain old token names so existing fragments and synchronizers still work. */
  --sans: var(--cw-font-sans);
  --serif: var(--cw-font-sans);
  --typewriter: var(--cw-font-sans);
  --home-display: var(--cw-font-sans);
  --home-body: var(--cw-font-sans);
  --home-mono: var(--cw-font-sans);
  --cw-community-font-ui: var(--cw-font-sans);
  --cw-community-font-display: var(--cw-font-sans);
  --cw-community-font-prompt: var(--cw-font-sans);
}

body#typewriterWorkshop,
#typewriterWorkshop :where(*) {
  font-family: var(--cw-font-sans) !important;
}

body#typewriterWorkshop {
  font-weight: 400;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Let the rounded letterforms breathe instead of using the former serif tracking. */
#typewriterWorkshop :is(h1, h2) {
  font-weight: 500 !important;
  line-height: 1.18 !important;
  letter-spacing: -.025em !important;
}

#typewriterWorkshop :is(h3, h4, h5, h6) {
  letter-spacing: -.012em !important;
}

#typewriterWorkshop :is(h1, h2, h3) em {
  font-style: normal;
}

#typewriterWorkshop :is(input, textarea, select) {
  letter-spacing: normal;
}

#typewriterWorkshop ::placeholder {
  font-family: var(--cw-font-sans);
}

/* The wider family needs a little more room beside Updates on small phones. */
@media (max-width: 360px) {
  #typewriterWorkshop .nav .cw-brand-wordmark {
    font-size: 16px;
  }
}
