/* ==========================================================================
   PINTU — Base: reset, tipografi, tata letak
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; }
ul[role="list"], ol[role="list"] { list-style: none; }
hr { border: 0; border-top: var(--hairline); margin: 0; }
table { border-collapse: collapse; width: 100%; }
::selection { background: var(--accent-soft); color: var(--ink); }

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

.skip-link {
  position: absolute; left: 16px; top: -64px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-pill);
  font-size: var(--fs-small); font-weight: 500;
  transition: top var(--dur-2) var(--ease);
}
.skip-link:focus { top: 12px; }

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

/* ---------- Tata letak ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(var(--container-narrow) + var(--gutter) * 2); }
.container--wide { max-width: calc(1320px + var(--gutter) * 2); }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: calc(var(--section-y) * .6); }
.section--flush-top { padding-top: 0; }
.section + .section--hairline { border-top: var(--hairline); }

.stack > * + * { margin-top: var(--stack, var(--s-4)); }
.center { text-align: center; }
.center .measure, .center .lead { margin-inline: auto; }

/* split editorial 40/60 */
.split {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.split--middle { align-items: center; }
.split--even { grid-template-columns: 1fr 1fr; }
.split__sticky { position: sticky; top: 120px; }

@media (max-width: 960px) {
  .split, .split--even { grid-template-columns: 1fr; }
  .split__sticky { position: static; }
}

/* ---------- Tipografi ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--text-2);
  line-height: 1.4;
}
.eyebrow svg { width: 14px; height: 14px; }

.h-hero, .h-display, .h2, .h3 {
  font-family: var(--font-display);
  font-weight: var(--fw-display);
  letter-spacing: var(--track-tight);
  color: var(--ink);
  text-wrap: balance;
}
.h-hero { font-size: var(--fs-hero); line-height: var(--lh-tight); }
.h-display { font-size: var(--fs-display); line-height: var(--lh-tight); }
.h2 { font-size: var(--fs-h2); line-height: var(--lh-head); }
.h3 { font-size: var(--fs-h3); line-height: 1.15; letter-spacing: -0.015em; }
.h-giant { font-family: var(--font-display); font-weight: var(--fw-display); font-size: clamp(40px, 7.4vw, 96px); line-height: 1.02; letter-spacing: -0.03em; text-wrap: balance; }

/* Pengaman: kata yang lebih lebar dari barisnya (mis. font sistem yang sangat lebar di layar 320px) boleh dipatah, agar halaman tidak meluap */
.h-hero, .h-display, .h2, .h3, .h-giant, .prose h2, .prose blockquote { overflow-wrap: break-word; }

/* aturan dua nada: kalimat pertama tinta, lanjutan abu-abu */
.tone { color: var(--gray); }
.on-night .tone { color: var(--night-muted); }

.title { font-size: 17px; font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; }
.title-sm { font-size: var(--fs-body); font-weight: 600; line-height: 1.4; }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--text-2); max-width: 46ch; text-wrap: pretty; }
.body { color: var(--text-2); max-width: var(--measure); text-wrap: pretty; }
.measure { max-width: var(--measure); }
.small { font-size: var(--fs-small); }
.micro { font-size: var(--fs-micro); line-height: 1.5; }
.muted { color: var(--text-2); }
.ink { color: var(--ink); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.tnum { font-variant-numeric: tabular-nums; }

.prose { color: var(--ink-2); font-size: 17px; line-height: 1.7; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-family: var(--font-display); font-weight: var(--fw-display); font-size: 28px; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; color: var(--ink); margin-top: 1.8em; }
.prose h3 { font-size: 18px; font-weight: 600; color: var(--ink); margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: .4em; }
.prose a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose blockquote {
  font-family: var(--font-display); font-weight: 500; font-size: 24px; line-height: 1.3; letter-spacing: -0.015em; color: var(--ink); text-wrap: balance;
  border-left: 2px solid var(--accent); padding-left: 24px; margin-block: 1.6em;
}

/* ---------- Gerak: fade-up saat scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity var(--dur-3) var(--ease), transform var(--dur-3) var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; animation-iteration-count: 1 !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .nav-wrap, .footer, .no-print { display: none !important; }
  body { background: #fff; }
  .section { padding-block: 24px; }
}
