@font-face {
  font-family: 'LPMQ Isep Misbah'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/wp-content/uploads/sambung-ayat/fonts/lpmq-isep-misbah.woff2) format('woff2');
}

/* Token desain "lembar hafalan". Rasio kontras dihitung dengan rumus WCAG 2.1 (lihat PRD bagian 6.3). */

@font-face {
  font-family: 'Amiri Quran'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/wp-content/uploads/sambung-ayat/fonts/amiri-quran-arabic.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 100 700; font-display: swap;
  src: url(/wp-content/uploads/sambung-ayat/fonts/plex-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 100 700; font-display: swap;
  src: url(/wp-content/uploads/sambung-ayat/fonts/plex-sans-latin.woff2) format('woff2');
  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: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/wp-content/uploads/sambung-ayat/fonts/plex-mono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/wp-content/uploads/sambung-ayat/fonts/plex-mono-latin.woff2) format('woff2');
  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;
}

:root {
  /* Tema Kertas (terang) */
  --kertas: #F5EFE0;
  --permukaan: #FBF8EF;
  --tinta: #1C1B18;
  --tinta-lembut: #55524A;
  --hijau: #1E4D3B;
  --emas: #7A5A16;
  --benar: #2A6B45;
  --salah: #A33B2B;
  --garis: #8C826A;
  --garis-lembut: #D9D0BB;
  --tint-benar: #E3EBDD;
  --tint-salah: #F1DDD6;
  --scrim: rgba(28, 27, 24, .55);
  color-scheme: light;

  --f-ayat: 'LPMQ Isep Misbah', 'Amiri Quran', 'Scheherazade New', 'Noto Naskh Arabic', serif;
  --f-ui: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;

  --r1: 8px; --r2: 16px; --r3: 24px; --r4: 32px; --r5: 48px;
  --ayat-soal: clamp(32px, 7vw, 52px);
  --ayat-opsi: clamp(24px, 5vw, 32px);
  --skala: 1;
  --ease: cubic-bezier(.2, 0, 0, 1);
}

/* Tema Malam (gelap): otomatis mengikuti perangkat kecuali dipaksa Kertas */
@media (prefers-color-scheme: dark) {
  :root:not([data-tema="kertas"]) {
    --kertas: #14150F; --permukaan: #1B1D15; --tinta: #EDE6D3; --tinta-lembut: #B4AD98;
    --hijau: #7FBF9A; --emas: #D2AE5E; --benar: #7FBF9A; --salah: #E08A78;
    --garis: #7B7662; --garis-lembut: #33352A; --tint-benar: #1F2D24; --tint-salah: #34201C;
    --scrim: rgba(0, 0, 0, .65); color-scheme: dark;
  }
}
:root[data-tema="malam"] {
  --kertas: #14150F; --permukaan: #1B1D15; --tinta: #EDE6D3; --tinta-lembut: #B4AD98;
  --hijau: #7FBF9A; --emas: #D2AE5E; --benar: #7FBF9A; --salah: #E08A78;
  --garis: #7B7662; --garis-lembut: #33352A; --tint-benar: #1F2D24; --tint-salah: #34201C;
  --scrim: rgba(0, 0, 0, .65); color-scheme: dark;
}
:root[data-ukuran="kecil"] { --skala: .88; }
:root[data-ukuran="besar"] { --skala: 1.2; }
