/* dasar: token warna, font, reset, latar WebGL */
:root {
  color-scheme: dark;
  --bg: #0c0c10;
  --s1: #16161c;
  --s2: #1e1e27;
  --garis: #2a2a36;
  --teks: #f4f4f8;
  --redup: #a6a6ba;
  --ungu: #6a4cf5;
  --ungu2: #5a3de8;
  --merah: #d4134a;
  --tepi: #050507;
  --kuning: #ffd23f;
  --galat: #ff9a9a;
  --f: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: .9rem;
  box-sizing: border-box;
}
*, *::before, *::after { box-sizing: inherit; }
html { scroll-padding-top: 7rem; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--teks);
  font: 400 1rem/1.55 var(--f);
  overflow-x: hidden;
}
body.booting { overflow: hidden; }
h1, h2, h3, p { margin: 0; }
svg { width: 1.3rem; height: 1.3rem; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--kuning); outline-offset: 3px; }

/* judul miring lebar, dipakai di mana-mana */
.dp { font-stretch: 125%; font-style: italic; font-weight: 900; letter-spacing: -.01em; line-height: .95; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--kuning); color: #1a1200; padding: .5rem 1rem; border-radius: .5rem; z-index: 200; }
.skip:focus { top: .5rem; }
.wrap { width: min(100% - 1.6rem, 72rem); margin-inline: auto; }

/* latar: canvas WebGL, kalau mati pakai gambar biasa */
#gl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; display: block; }
#tirai { position: fixed; inset: 0; z-index: -1; background: linear-gradient(rgba(12,12,16,.5), rgba(12,12,16,.8)); }
.no-gl #gl { display: none; }
.no-gl body::before { content: ""; position: fixed; inset: 0; z-index: -2; background: #0c0c10 url("/img/bg-chess.jpg") center / cover no-repeat; }
.no-gl #tirai { background: linear-gradient(rgba(12,12,16,.8), rgba(12,12,16,.92)); }
main:focus { outline: none; }
