/* ==========================================================================
   nwsangadji.my.id — gaya dasar bersama
   Gaya visual: "sticker / hand-drawn flat", garis tebal, bayangan padat.
   Seluruh ilustrasi digambar manual (SVG & Canvas), tanpa gambar generatif.
   ========================================================================== */

:root {
  --ink: #15303f;
  --ink-soft: #46606f;
  --cream: #fff8ec;
  --paper: #ffffff;

  --sky: #38bdf8;
  --sky-soft: #bae6fd;
  --leaf: #34d399;
  --leaf-soft: #bbf7d0;
  --sun: #fbbf24;
  --sun-soft: #fde68a;
  --coral: #f87171;
  --coral-soft: #fecaca;
  --grape: #a78bfa;
  --grape-soft: #ddd6fe;

  --line: 3px;
  --radius: 20px;
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);
  --font: "Avenir Next", "Nunito", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background-color: var(--cream);
  /* titik-titik halus: pola kertas, dibuat dengan gradient (bukan gambar) */
  background-image: radial-gradient(var(--sky-soft) 1.5px, transparent 1.6px);
  background-size: 26px 26px;
  line-height: 1.55;
}

a { color: #0c6fa8; }
a:focus-visible,
button:focus-visible,
summary:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }

.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }

/* ------------------------------------------------------------------ topbar */
.topbar {
  background: var(--ink);
  color: #fff;
  border-bottom: var(--line) solid var(--ink);
}
.topbar__inner {
  display: flex; align-items: center; gap: 1rem;
  justify-content: space-between;
  padding: 0.7rem 0;
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: #fff; }
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__text { font-weight: 800; letter-spacing: 0.02em; font-size: 1.02rem; }
.brand__text span { display: block; font-weight: 500; font-size: 0.74rem; color: #9fd2ef; letter-spacing: 0.06em; text-transform: uppercase; }

.navlinks { display: flex; gap: 0.4rem; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.navlinks a {
  display: inline-block; padding: 0.4rem 0.8rem; border-radius: 999px;
  color: #e6f4fd; text-decoration: none; font-weight: 700; font-size: 0.92rem;
}
.navlinks a:hover { background: #22485c; }
.navlinks a[aria-current="page"] { background: var(--sky); color: var(--ink); }

/* ------------------------------------------------------------------ pieces */
.card {
  background: var(--paper);
  border: var(--line) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font: inherit; font-weight: 800;
  padding: 0.72rem 1.3rem;
  border: var(--line) solid var(--ink);
  border-radius: 999px;
  background: var(--sun);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn--play { background: var(--leaf); font-size: 1.06rem; }
.btn--ghost { background: var(--paper); }
.btn--sky { background: var(--sky); }

.tag {
  display: inline-block;
  font-size: 0.73rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.22rem 0.6rem;
  border: 2px solid var(--ink); border-radius: 999px;
  background: var(--sun-soft);
}
.tag--leaf { background: var(--leaf-soft); }
.tag--sky { background: var(--sky-soft); }
.tag--grape { background: var(--grape-soft); }
.tag--coral { background: var(--coral-soft); }
.tag--abu { background: #e2e8f0; }

/* ------------------------------------------------------------------ footer */
.foot {
  margin-top: 3.5rem;
  background: var(--ink);
  color: #cfe6f4;
  border-top: var(--line) solid var(--ink);
  padding: 1.6rem 0;
  font-size: 0.86rem;
}
.foot a { color: #9fd2ef; }
.foot__grid { display: grid; gap: 1rem 2rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.foot strong { color: #fff; display: block; margin-bottom: 0.2rem; }

/* Atribut hidden harus selalu menang atas display dari kelas,
   mis. .tirai yang memakai display:grid. */
[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: -999px; top: 0; z-index: 50;
  background: var(--sun); color: var(--ink); padding: 0.6rem 1rem;
  border: var(--line) solid var(--ink); border-radius: 0 0 12px 0; font-weight: 800;
}
.skip:focus { left: 0; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
