/* Kelfast FC — dasar: font, warna identitas (lime + arang), tombol, formulir. */
@font-face { font-family: "Chakra Petch"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/chakra-petch-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Chakra Petch"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/chakra-petch-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Chakra Petch"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/chakra-petch-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Chakra Petch"; font-weight: 600; font-style: italic; font-display: swap; src: url("../fonts/chakra-petch-latin-600-italic.woff2") format("woff2"); }
@font-face { font-family: "Chakra Petch"; font-weight: 700; font-style: italic; font-display: swap; src: url("../fonts/chakra-petch-latin-700-italic.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url("../fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 700; font-display: swap; src: url("../fonts/barlow-latin-700-normal.woff2") format("woff2"); }

:root {
  --latar: #141913;
  --panel: #1d241b;
  --panel-2: #273024;
  --garis: #37432f;
  --teks: #f2f6ea;
  --redup: #a9b49f;
  --lime: #c6fd02;
  --hijau: #78db00;
  --arang: #141913;
  --bahaya: #ff7a6b;
  --warn: #ffc94d;
  --judul: "Chakra Petch", "Arial Narrow", Arial, sans-serif;
  --badan: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 10px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--latar); color: var(--teks); font-family: var(--badan); font-size: 16px; line-height: 1.5; }
h1, h2, h3 { font-family: var(--judul); line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0; }
img { max-width: 100%; height: auto; }
a { color: var(--lime); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.redup { color: var(--redup); }
.kecil { font-size: .875rem; }
.pusat { text-align: center; }

/* Tombol */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; padding: .55rem 1rem; border-radius: 8px; border: 1px solid var(--garis); background: var(--panel-2); color: var(--teks); font: 600 1rem var(--badan); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .05s; }
.btn:hover { border-color: var(--lime); }
.btn:active { transform: translateY(1px); }
.btn.utama { background: var(--lime); border-color: var(--lime); color: var(--arang); font-family: var(--judul); font-weight: 700; letter-spacing: .01em; }
.btn.utama:hover { background: #d6ff45; }
.btn.bahaya { background: var(--bahaya); border-color: var(--bahaya); color: #2a0b07; }
.btn.bahaya-halus { color: var(--bahaya); }
.btn.bahaya-halus:hover { border-color: var(--bahaya); }
.btn.kecil { min-height: 38px; padding: .35rem .75rem; font-size: .9375rem; }
.btn.lebar { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; }
.tautan { background: none; border: 0; padding: .35rem 0; color: var(--lime); font: 600 1rem var(--badan); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; text-align: left; }

/* Formulir */
label { display: block; font-weight: 600; font-size: .9375rem; margin: 0 0 .9rem; }
input:not([type=radio]):not([type=checkbox]):not([type=file]), select, textarea { display: block; width: 100%; min-height: 46px; margin-top: .3rem; padding: .6rem .75rem; border-radius: 8px; border: 1px solid var(--garis); background: #10140f; color: var(--teks); font: 400 1rem var(--badan); }
textarea { resize: vertical; min-height: 110px; }
input::placeholder, textarea::placeholder { color: #7f8a76; }
input:disabled, select:disabled { opacity: .6; }
fieldset { border: 1px solid var(--garis); border-radius: 8px; margin: 0 0 .9rem; padding: .6rem .85rem .8rem; }
legend { font-weight: 600; font-size: .9375rem; padding: 0 .35rem; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* Kolom yang dirapikan otomatis: sudah tampak berhuruf kapital sejak diketik. */
input[data-rapi="nama"], input[data-rapi="judul"] { text-transform: capitalize; }
input[data-rapi="kapital"] { text-transform: uppercase; }
input[data-rapi]::placeholder { text-transform: none; }
.versi { font-size: .75rem; color: var(--redup); text-align: center; }
