/*
 * YuIsland typography for OB Room.
 *
 * The font binaries are local static assets. Keep this stylesheet as the
 * single font-face and stack contract for every user-facing OB page.
 */

@font-face {
  font-family: 'Source Serif 4';
  src: url("/fonts/yuisland/source-serif-4-regular-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  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: 'YuIsland Sans';
  src: url("/fonts/yuisland/yuisland-sans.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'YuIsland Serif';
  src: url("/fonts/yuisland/yuisland-serif.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-ui: 'YuIsland Sans', -apple-system, BlinkMacSystemFont, system-ui,
    'Segoe UI', 'PingFang TC', 'PingFang SC', 'Microsoft JhengHei',
    'Microsoft YaHei', 'Noto Sans CJK TC', 'Noto Sans CJK SC', sans-serif;
  --font-display: 'YuIsland Serif', 'Source Serif 4', ui-serif, Georgia,
    'Songti TC', 'Songti SC', 'Noto Serif CJK TC', 'Noto Serif CJK SC',
    'PingFang TC', 'PingFang SC', 'Microsoft JhengHei', 'Microsoft YaHei',
    serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    'Liberation Mono', 'Courier New', monospace;
}

html,
body {
  font-family: var(--font-ui);
}

button,
input,
select,
textarea {
  font-family: inherit;
}

.ob-room-display-title {
  font-family: var(--font-display);
}

code,
pre,
kbd,
samp,
.terminal,
[data-terminal],
.workspace-output-block pre,
.workspace-output-block code,
.phase-technical-label {
  font-family: var(--font-mono);
}
