/*
  tokens.css — pemboleh ubah reka bentuk + reset asas
  Arena Gamer (Ipoh) — jangan letak gaya komponen di sini, itu tugas text.css
*/

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

:root {
  /* warna */
  --bg: #17191c;
  --surface: #202327;
  --surface-2: #262b30;
  --surface-3: #2c3238;
  --mint: #46e0b1;
  --mint-ink: #10241d;
  --mint-dim: #2d7d61;
  --silver: #c6cbd2;
  --text: #e8eaed;
  --text-dim: #9ba3ad;
  --border: rgba(198, 203, 210, 0.16);
  --border-strong: rgba(198, 203, 210, 0.3);
  --danger: #e0685f;

  /* nota: pemboleh ubah ini disediakan untuk fasa gelap-lanjutan, belum digunakan */
  --shadow-lift: 0 -0.5rem 1.5rem rgba(70, 224, 177, 0.08);

  /* bayang */
  --shadow-1: 0 1rem 2.5rem rgba(0, 0, 0, 0.45);
  --shadow-2: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.35);

  /* fon */
  --ff-head: "Alumni Sans", "Arial Narrow", sans-serif;
  --ff-body: "Bitter", Georgia, serif;

  /* susun atur */
  --container: 75rem;
  --container-narrow: 46rem;
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.75rem;
  --gap: 1.25rem;

  /* pergerakan */
  --dur-1: 0.3s;
  --dur-2: 0.6s;
  --ease: cubic-bezier(0.16, 0.84, 0.44, 1);

  /* z-index (nombor daripada paspot supaya konsisten dengan JS) */
  --z-header: 999;
  --z-menu: 1000;
  --z-consent: 1010;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100svh;
  overflow-x: hidden;
}

img,
picture,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

/* TODO: semak semula kontras --text-dim pada --surface-3 lepas kemasan bento */
