/* Shared base for the Pointini pages: the app's tokens (app/src/speech_tutor_app/static/app.css, mock v3) and the
 * self-hosted BIZ UD fonts (OFL-1.1, Latin subset, see fonts/OFL.txt). No third-party requests. */
@font-face { font-family: "BIZ UDPGothic"; src: url("fonts/BIZUDPGothic-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "BIZ UDPGothic"; src: url("fonts/BIZUDPGothic-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "BIZ UDGothic"; src: url("fonts/BIZUDGothic-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "BIZ UDGothic"; src: url("fonts/BIZUDGothic-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --paper: #f6f5f1;
  --sheet: #ffffff;
  --ink: #1b1b19;
  --rule: #dcd9d1;
  --rule-strong: #1b1b19;
  --mute: #625f57; /* the app's #77746c darkened for AA contrast (4.5:1) on kraft-soft */
  --kraft: #a87d55;
  --kraft-soft: #efe4d7;
  --red: #e60012;
  --yellow: #ffd400;
  --green: #00a650;
  --blue: #0068b7;
  --font: "BIZ UDPGothic", "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
  --mono: "BIZ UDGothic", "SF Mono", Menlo, ui-monospace, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--font); }
h1, h2, h3 { margin: 0; line-height: 1.2; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
.lab { font: 700 0.72rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.note { font-size: 0.85rem; color: var(--mute); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.btn { font: 700 0.95rem var(--font); color: var(--ink); background: var(--sheet); border: 1px solid var(--rule-strong); border-radius: 0;
  padding: 10px 16px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; text-decoration: none; }
.btn:hover { background: var(--paper); }
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.primary:hover { background: #33322e; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
