/* Variable Japanese UI font, shared with the app stylesheet. */
@import url('/fonts/noto-sans-jp/ui-variable-v2.css');

/* Self-hosted OFL font, requested only when Korean is selected. */
@font-face {
  font-family: 'Noto Sans KR';
  src: url('/fonts/noto-sans-kr/NotoSansKR-wght.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

/* App interface only. Public LP (.mk-page) and editable artwork keep their own fonts. */
html:root[lang] body:not(:has(.mk-page)) {
  --app-ui-font-family: "Noto Sans JP", sans-serif;
}

html:root[lang] body:not(:has(.mk-page)),
html:root[lang] body:not(:has(.mk-page)) :where(*):not(:where(svg,svg *,.font-live-preview,.font-live-preview *)) {
  font-family: var(--app-ui-font-family) !important;
}

/* The existing language switch exposes its effective state; no translation/state changes. */
html:root[lang] body:not(:has(.mk-page)):has(.admin-language-root[data-admin-language="ko"]) {
  --app-ui-font-family: "Noto Sans KR", sans-serif;
}

/* Only the large greeting on /studio retains its existing display face. */
html:root[lang] body:not(:has(.mk-page)) .yoruno-studio .ys-greeting h1,
html:root[lang] body:not(:has(.mk-page)) .yoruno-studio .ys-greeting h1 :where(*) {
  font-family: "Yoruno Noto Serif JP", serif !important;
}

/* STUDIO-HEADER-1: preserve the pre-FONT-1 logo faces; body UI keeps FONT-1. */
html:root[lang] body:not(:has(.mk-page)) :is(.ys-wordmark, .login-wordmark, .header-wordmark-text, .help-brand-lockup strong, .consult-brand strong, .legal-wordmark, .lp-wordmark),
html:root[lang] body:not(:has(.mk-page)) :is(.ys-wordmark, .login-wordmark, .header-wordmark-text, .help-brand-lockup strong, .consult-brand strong, .legal-wordmark, .lp-wordmark) :where(*) {
  font-family: 'DM Serif Display', 'Times New Roman', serif !important;
}
html:root[lang] body:not(:has(.mk-page)) .ys-logo small {
  font-family: 'MJ Legacy Noto Sans JP', sans-serif !important;
}
html:root[lang] body:not(:has(.mk-page)) .login-header-lockup small {
  font-family: var(--studio-font-sans) !important;
}
html:root[lang] body:not(:has(.mk-page)) .help-brand-lockup small {
  font-family: 'MJ Public Sans JP', 'Hiragino Sans', 'Yu Gothic', system-ui, sans-serif !important;
}
html:root[lang] body:not(:has(.mk-page)) :is(.signed-in-boot-brand, .signed-in-boot-brand em) {
  font-family: Georgia, 'Times New Roman', serif !important;
}
html:root[lang] body:not(:has(.mk-page)) .signed-in-boot-brand small {
  font-family: -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Yu Gothic UI', 'Yu Gothic', Meiryo, system-ui, sans-serif !important;
}
