/* Local OFL font files and their notices are bundled by vendor-assets.mjs. */
:root {
  --font-ui: 'Noto Sans SC Variable', 'Inter Variable', sans-serif;
  --font-code: ui-monospace, 'SFMono-Regular', Consolas, monospace;
  --type-body: 1rem;
  --type-control: 0.875rem;
  --type-caption: 0.75rem;
  --type-title: clamp(1.5rem, 2.2vw, 2rem);
  --type-section: 1.25rem;
  font-family: var(--font-ui);
  font-size: 100%;
  font-synthesis: none;
}

body,
button,
input,
textarea,
select {
  font-family: var(--font-ui);
}

code,
pre {
  font-family: var(--font-code);
}

/* Approved interface hierarchy and responsive controls, 2026-10-22. */
:root {
  --ui-page-title: 28px;
  --ui-section-title: 21px;
  --ui-subsection-title: 17px;
}
:is(#app, #modal)
  .workspace-main
  h1:not(.course-document *, .ql-editor *, .d-authored-text *, .certificate-paper *, .site-page *) {
  font-size: var(--ui-page-title);
  font-weight: 650;
  line-height: 1.45;
  color: #1c3b72;
  letter-spacing: -0.02em;
}
:is(#app, #modal)
  .workspace-main
  h2:not(.course-document *, .ql-editor *, .d-authored-text *, .certificate-paper *, .site-page *) {
  font-size: var(--ui-section-title);
  font-weight: 600;
  line-height: 1.55;
  color: #203b5a;
  letter-spacing: -0.01em;
}
:is(#app, #modal)
  .workspace-main
  h3:not(.course-document *, .ql-editor *, .d-authored-text *, .certificate-paper *, .site-page *) {
  font-size: var(--ui-subsection-title);
  font-weight: 550;
  line-height: 1.6;
  color: #29435e;
}
@media (max-width: 760px) {
  :root {
    --ui-page-title: 24px;
    --ui-section-title: 20px;
    --ui-subsection-title: 17px;
  }
}
