@font-face {
  font-family: Nunito;
  src: url("/fonts/nunito-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/fonts/jakarta-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

/*
 * PandaiHitung visual foundation.
 * Soft blue and green surfaces keep learning calm; orange marks primary actions.
 * Pixel edges belong to Jardul, not to every PandaiHitung surface.
 * Palette: soft blue + light green + neutral ink, with one warm action accent.
 */
:root {
  --ph-font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --ph-font-display: Nunito, system-ui, sans-serif;
  --ph-font-game: "Press Start 2P", monospace;

  --ph-bg: #edf6f5;
  --ph-surface: #fffefa;
  --ph-blue-soft: #e5f2fb;
  --ph-green-soft: #e8f4e9;
  --ph-ink: #213b45;
  --ph-muted: #516b73;
  --ph-line: #779aa2;
  --ph-blue: #2b6d88;
  --ph-green: #2f7351;
  --ph-action: #ffb54a;
  --ph-action-hover: #f39a28;
  --ph-action-active: #d97e19;
  --ph-danger: #a83832;
  --ph-focus: #2b6d88;
  --ph-shadow: #213b45;

  --ph-radius-small: 8px;
  --ph-radius-medium: 12px;
  --ph-radius-large: 18px;
  --ph-space-1: 4px;
  --ph-space-2: 8px;
  --ph-space-3: 12px;
  --ph-space-4: 16px;
  --ph-space-5: 24px;
  --ph-space-6: 32px;
  --ph-space-7: 48px;
}

a,
button,
summary,
select,
label[for],
input[type="checkbox"],
input[type="radio"],
[role="button"],
[role="tab"],
[role="switch"] {
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled,
[aria-disabled="true"] {
  cursor: not-allowed;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[role="button"]:focus-visible,
[role="tab"]:focus-visible,
[role="switch"]:focus-visible {
  outline: 3px solid var(--ph-focus);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
