@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/plus-jakarta-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: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/plus-jakarta-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;
}

:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --raised: #f0ebe3;
  --line: #e2dbd0;
  --text: #1b1a18;
  --soft: #3a3835;
  --muted: #6b675f;
  --accent: #2447c9;
  --on-accent: #ffffff;
  --hero: #dfe6fb;
  --bar: #ffffff;
  --now-h: 76px;
  --gutter: clamp(16px, 4vw, 40px);
  --wide: 1120px;   /* kisi kartu, header, footer */
  --mid: 860px;     /* tabel */
  --text-w: 720px;  /* kolom baca */
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
}

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

html { scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  padding-bottom: var(--now-h);
  background: linear-gradient(180deg, var(--hero), var(--bg) 620px) no-repeat, var(--bg);
  color: var(--text);
  font: 400 1rem/1.7 var(--font);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ol, ul { margin: 0; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 30;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 800;
  border-radius: 8px;
}
.skip:focus { top: 16px; }

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.top-in {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  max-width: calc(var(--wide) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 10px var(--gutter);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  font-weight: 800;
  font-size: 1.4rem;
  line-height: 1;
  letter-spacing: -.035em;
  text-decoration: none;
}
.top ul { display: flex; gap: 2px; padding: 0; list-style: none; }
.top nav a {
  display: block;
  padding: 11px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  font-size: .93rem;
  text-decoration: none;
  white-space: nowrap;
}
.top nav a:hover { color: var(--text); background: var(--raised); }
.top nav a[aria-current] { color: var(--accent); background: var(--raised); }

/* Main */
main {
  max-width: calc(var(--wide) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 56px 0 40px;
  text-align: center;
}
.eyebrow, .crumbs {
  margin-top: 28px;
  color: var(--accent);
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.crumbs ol { display: flex; flex-wrap: wrap; justify-content: center; padding: 0; list-style: none; }
.crumbs li + li::before { content: "/"; margin: 0 .6em; color: var(--muted); }
.crumbs a { display: inline-block; padding: 6px 0; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { padding: 6px 0; color: var(--muted); }
h1 {
  max-width: 20ch;
  margin-top: 8px;
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.lead {
  margin-top: 18px;
  max-width: 58ch;
  color: var(--soft);
  font-size: 1.1rem;
  text-wrap: pretty;
}
.meta {
  margin-top: 14px;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 600;
}
.meta a { text-underline-offset: 3px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 800;
  text-decoration: none;
  transition: transform .15s;
}
.btn:hover { transform: scale(1.04); }

/* Sampul: alur piringan di atas gradasi */
.cover {
  aspect-ratio: 1;
  border-radius: 14px;
  background:
    radial-gradient(circle at 72% 72%, rgba(7, 11, 19, .85) 0 5%, transparent 5.5%),
    repeating-radial-gradient(circle at 72% 72%, transparent 0 9px, rgba(7, 11, 19, .16) 9px 10px),
    linear-gradient(135deg, var(--a), var(--b));
}
.hero-cover {
  width: clamp(140px, 22vw, 220px);
  border-radius: 18px;
  box-shadow: 0 20px 48px rgba(20, 30, 70, .25);
}

/* Daftar isi dan daftar artikel */
.tracks {
  max-width: var(--text-w);
  margin: 8px auto 0;
  padding: 0;
  list-style: none;
  counter-reset: t;
  border-top: 1px solid var(--line);
}
.tracks a {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 4px 16px;
  align-items: center;
  padding: 13px 12px;
  border-radius: 10px;
  text-decoration: none;
}
.tracks a::before {
  counter-increment: t;
  content: counter(t);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.tracks a:hover { background: var(--raised); }
.tracks a[aria-current] .t-name,
.tracks a[aria-current]::before { color: var(--accent); }
.t-name { font-weight: 600; line-height: 1.4; }
.t-time { color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; }
.t-desc { grid-column: 2; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.tracks.list { margin-top: 20px; }
.tracks.list a { padding: 14px 12px; border-bottom: 1px solid var(--line); border-radius: 0; }
.tracks.list a::before, .tracks.list .t-time { grid-row: 1; }
.tracks.list .t-time { grid-column: 3; }

/* Isi artikel: kolom baca di tengah, teks rata kiri supaya mudah dibaca */
.prose { padding-top: 8px; }
.prose > * { max-width: var(--text-w); margin-inline: auto; }
.prose > .grid { max-width: var(--wide); }
.prose > .table-wrap { max-width: var(--mid); }
.prose h2 {
  margin-top: 72px;
  font-weight: 800;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -.03em;
  text-align: center;
  text-wrap: balance;
}
.prose h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  margin: 16px auto 0;
  border-radius: 3px;
  background: var(--accent);
}
.prose > h3 { margin-top: 32px; font-size: 1.12rem; font-weight: 800; line-height: 1.3; }
.prose > p { margin-top: 16px; color: var(--soft); }
.prose > h2 + p { margin-top: 20px; }
.prose > :is(ul, ol):not(.steps, .tracks) { margin-top: 16px; padding-left: 1.3em; color: var(--soft); }
.prose > :is(ul, ol):not(.steps, .tracks) li { margin-top: 8px; padding-left: .2em; }
.prose li::marker { color: var(--accent); font-weight: 800; }
.prose strong { color: var(--text); font-weight: 800; }
.prose :is(p, li, td) a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.prose :is(p, li, td) a:hover { text-decoration-thickness: 2px; }

.table-wrap {
  margin-top: 24px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
th, td { padding: 12px 16px; text-align: left; vertical-align: top; }
th {
  background: var(--raised);
  color: var(--muted);
  font-size: .76rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
td { border-top: 1px solid var(--line); color: var(--soft); }
td:first-child { color: var(--text); font-weight: 600; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 250px));
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
}
.card {
  display: block;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(20, 30, 70, .1); }
.card h3 { margin-top: 16px; font-size: 1.05rem; font-weight: 800; line-height: 1.3; }
.card p { margin-top: 6px; color: var(--muted); font-size: .92rem; line-height: 1.55; }
.card .bpm {
  margin-top: 4px;
  color: var(--accent);
  font-weight: 800;
  font-size: .82rem;
  font-variant-numeric: tabular-nums;
}

.steps {
  margin-top: 24px;
  padding: 0;
  list-style: none;
  counter-reset: s;
}
.steps li {
  position: relative;
  padding: 16px 0 16px 56px;
  border-bottom: 1px solid var(--line);
  color: var(--soft);
}
.steps li::before {
  counter-increment: s;
  content: counter(s);
  position: absolute;
  left: 0;
  top: 12px;
  width: 38px;
  color: var(--accent);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1.3;
  text-align: center;
}

details { border-bottom: 1px solid var(--line); }
h2 + details { margin-top: 20px; }
summary { padding: 18px 0; font-weight: 600; cursor: pointer; }
summary::marker { color: var(--accent); }
details p { padding-bottom: 18px; color: var(--soft); }

/* Kotak "Dengar di" */
.listen {
  margin-top: 40px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--soft);
  text-align: center;
}
.listen a { display: inline-block; padding: 6px 4px; font-weight: 600; }
.listen span { display: block; margin-top: 2px; color: var(--muted); font-size: .88rem; }

/* Footer */
.foot {
  margin-top: 96px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.foot-in {
  max-width: calc(var(--wide) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 48px var(--gutter) 40px;
  text-align: center;
}
.foot-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 200px));
  justify-content: center;
  gap: 32px 24px;
}
.foot h2 {
  color: var(--muted);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.foot ul { margin-top: 8px; padding: 0; list-style: none; }
.foot li a {
  display: inline-block;
  padding: 7px 0;
  color: var(--soft);
  font-size: .93rem;
  font-weight: 600;
  text-decoration: none;
}
.foot li a:hover { color: var(--accent); text-decoration: underline; }
.foot-note {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .88rem;
}
.foot-note .logo { justify-self: auto; color: var(--text); }
.foot-note span { max-width: 60ch; }

/* Bar progres baca */
.now {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 20;
  height: var(--now-h);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 0 20px;
  background: var(--bar);
  border-top: 1px solid var(--line);
}
.now-info { display: flex; align-items: center; gap: 12px; min-width: 0; }
.now-cover { width: 46px; flex: none; border-radius: 8px; }
.now-info p { min-width: 0; line-height: 1.3; }
.now-info span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.now-label { color: var(--muted); font-size: .75rem; }
#np-title { font-weight: 600; font-size: .92rem; }
.now-ctrl { display: flex; align-items: center; gap: 8px; }
.now button {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--text);
  cursor: pointer;
}
.now button:hover { background: var(--raised); color: var(--accent); }
progress {
  flex: 1;
  min-width: 0;
  height: 5px;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  appearance: none;
  background: var(--line);
}
progress::-webkit-progress-bar { background: var(--line); }
progress::-webkit-progress-value { background: var(--accent); }
progress::-moz-progress-bar { background: var(--accent); }
.now-time {
  justify-self: end;
  color: var(--muted);
  font-size: .82rem;
  font-variant-numeric: tabular-nums;
}

/* Layar sempit */
@media (max-width: 960px) {
  html { scroll-padding-top: 124px; }
  .top-in { grid-template-columns: 1fr; gap: 4px; padding: 12px 0 6px; }
  .logo { justify-self: center; font-size: 1.3rem; }
  .top nav { overflow-x: auto; scrollbar-width: none; }
  .top nav::-webkit-scrollbar { display: none; }
  .top ul { width: max-content; margin: 0 auto; padding: 0 12px; }
  .top nav a { padding: 10px 12px; }
}
@media (max-width: 640px) {
  .hero { padding-top: 36px; }
  .crumbs [aria-current] { display: none; }
  table:has(th:nth-child(3)) { min-width: 540px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card { padding: 12px; }
  .foot-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .now { grid-template-columns: minmax(0, 1fr) auto; padding: 0 12px; }
  .now-time { display: none; }
  .now-ctrl progress { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .card { transition: none; }
  .btn:hover, .card:hover { transform: none; }
}
