/* Fragment — Editorial Brutalism.
   ------------------------------------------------------------------
   Versi sebelumnya memakai near-black + neon cyan + mono, yang justru
   tanda tangan visual paling khas landing page dev-tool hasil generate.
   Arah ini kebalikannya: kertas hangat, tinta pekat, garis rambut keras,
   tipografi besar, dan satu-satunya permukaan gelap adalah kode — karena
   kode memang isi, bukan hiasan. */

:root {
  --paper: #faf8f5;
  --paper-2: #f2eee8;
  --ink: #12100e;
  --ink-2: #3c3833;
  --muted: #6f675e;
  --rule: #ddd6cb;
  --accent: #c8341c;

  --serif: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --shell: min(1180px, 100% - 48px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }

html {
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}

/* Native smooth scrolling is kept ONLY for the case where Lenis never starts —
   no JS, reduced motion, or a load failure. The two fight each other when both
   are live, and the native one wins in a way that stutters. */
html:not(.lenis) { scroll-behavior: smooth; }

/* Lenis v1.3.26 base styles, inlined rather than loaded as a second file. */
html.lenis,
html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Tekstur: noise SVG tipis supaya bidang kertasnya tidak terasa mati.
   `pointer-events: none` supaya tidak pernah menghalangi interaksi. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  font: 500 14px/1 var(--sans);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.shell { width: var(--shell); margin-inline: auto; }

/* ---------- Tipografi ---------- */

.display {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  /* Skala fluida: besar, tapi tidak pernah memaksa scroll horizontal. */
  font-size: clamp(3rem, 9.2vw, 8.5rem);
  line-height: .95;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.display em {
  font-style: italic;
  color: var(--accent);
}

.display-sm { font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.02; }

.kicker {
  margin: 0 0 18px;
  font: 500 12px/1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 0 22px;
  margin: 0 0 34px;
  font: 500 12px/1.9 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow span { display: inline-flex; align-items: center; gap: 22px; }
.eyebrow span + span::before {
  content: "";
  width: 5px; height: 5px;
  background: var(--accent);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: var(--shell);
  margin-inline: auto;
  padding: 18px 0;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease);
}
.site-header[data-scrolled] { border-bottom-color: var(--rule); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 600 16px/1 var(--sans);
  letter-spacing: -.01em;
  text-decoration: none;
  color: var(--ink);
}

/* The mark inherits the ink, so it is one colour with the wordmark and never
   drifts from the palette the way a coloured raster asset does. */
.brand .mark { display: block; flex: none; }
.brand:hover .mark { color: var(--accent); }

.site-header nav {
  display: flex;
  gap: 26px;
  font-size: 15px;
}
.site-header nav a {
  text-decoration: none;
  color: var(--ink-2);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.site-header nav a:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* ---------- Hero ---------- */

.hero {
  width: var(--shell);
  margin-inline: auto;
  padding: clamp(48px, 9vw, 108px) 0 clamp(56px, 8vw, 104px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  margin-top: clamp(34px, 5vw, 62px);
  padding-top: clamp(30px, 4vw, 48px);
  border-top: 1px solid var(--rule);
}

.hero-lede p {
  margin: 0 0 26px;
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--ink-2);
  max-width: 40ch;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.copy-status {
  margin: 14px 0 0 !important;
  min-height: 1.3em;
  font: 500 13px/1.3 var(--mono);
  color: var(--accent);
}

/* ---------- Transkrip: inti hero ---------- */

.transcript { display: grid; gap: 14px; }
.transcript-label {
  margin: 0;
  font: 500 11px/1 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.turn {
  padding: 18px 20px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--ink);
}

.turn-meta {
  margin: 0 0 8px;
  font: 500 11px/1 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.turn-body { margin: 0; font-size: 16px; line-height: 1.5; }

.turn-note {
  margin: 10px 0 0;
  font-size: 14px;
  font-style: italic;
  color: var(--muted);
}

.turn-bad { border-left-color: var(--accent); }
.turn-bad .turn-body { color: var(--accent); }

.turn-good {
  background: var(--ink);
  border-color: var(--ink);
  border-left-color: var(--ink);
  color: var(--paper);
}
.turn-good .turn-meta { color: #a49b8f; }

.continuity-art {
  width: var(--shell);
  margin: clamp(36px, 6vw, 76px) auto 0;
  padding: 8px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
}
.continuity-art img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}
.continuity-art figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  padding: 14px 4px 6px;
  color: var(--muted);
  font: 500 11px/1.5 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ---------- Tombol ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border: 1px solid var(--ink);
  font: 500 15px/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  /* Hanya transform + opacity yang dianimasikan. */
  transition: transform .18s var(--ease), background-color .18s var(--ease), color .18s var(--ease);
}

.button-primary { background: var(--ink); color: var(--paper); }
.button-ghost { background: transparent; color: var(--ink); }

@media (hover: hover) and (pointer: fine) {
  .button:hover { transform: translate3d(0, -2px, 0); }
  .button-ghost:hover { background: var(--ink); color: var(--paper); }
}
.button:active { transform: translate3d(0, 0, 0); }

.text-link {
  font: 500 15px/1.4 var(--sans);
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  transition: border-color .2s var(--ease);
}
.text-link:hover { border-bottom-color: var(--ink); }

/* ---------- Section umum ---------- */

section + section { border-top: 1px solid var(--rule); }

.what, .why, .proof, .install {
  padding: clamp(56px, 8vw, 104px) 0;
}

.section-head { max-width: 46ch; margin-bottom: clamp(30px, 4vw, 48px); }
.section-head .display-sm { text-wrap: balance; }

/* ---------- Apa bendanya ---------- */

.what-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.file-card { border: 1px solid var(--ink); background: var(--ink); }

.file-name {
  margin: 0;
  padding: 11px 18px;
  border-bottom: 1px solid #2c2823;
  font: 500 12px/1 var(--mono);
  letter-spacing: .06em;
  color: #a49b8f;
}

.file-card pre {
  margin: 0;
  padding: 20px 18px;
  overflow-x: auto;
}

.file-card code, .terminal code {
  font: 400 13px/1.75 var(--mono);
  color: #ebe5dc;
  white-space: pre;
}

.what-copy p { margin: 0 0 20px; color: var(--ink-2); }
.what-copy .aside {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-size: 15px;
  color: var(--muted);
}

/* ---------- Kenapa git log tidak cukup ---------- */

.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.terminal { margin: 0; border: 1px solid var(--ink); background: var(--ink); }
.terminal figcaption {
  padding: 11px 18px;
  border-bottom: 1px solid #2c2823;
  font: 500 12px/1 var(--mono);
  color: #a49b8f;
}
.terminal pre { margin: 0; padding: 20px 18px; overflow-x: auto; }

.why-note {
  margin: 0;
  font-size: clamp(17px, 1.5vw, 19px);
  color: var(--ink-2);
}

/* ---------- Bukti ---------- */

.proof-quote {
  margin: 0;
  padding: 0 0 0 clamp(18px, 3vw, 34px);
  border-left: 3px solid var(--accent);
}
.proof-quote p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.3vw, 2.6rem);
  line-height: 1.18;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.proof-quote em { font-style: italic; color: var(--accent); }

.proof-intro {
  max-width: 66ch;
  margin: 22px 0 0;
  color: var(--ink-2);
}

.proof-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 clamp(34px, 5vw, 60px);
  border-block: 1px solid var(--rule);
}
.proof-stat { padding: 22px 24px 22px 0; }
.proof-stat + .proof-stat { padding-left: 24px; border-left: 1px solid var(--rule); }
.proof-stat strong {
  display: block;
  margin-bottom: 8px;
  font: 400 clamp(2.1rem, 5vw, 3.7rem)/1 var(--serif);
  letter-spacing: -.02em;
}
.proof-stat span {
  display: block;
  font: 500 11px/1.55 var(--mono);
  letter-spacing: .04em;
  color: var(--muted);
}

.adoption-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.adoption-card { padding: clamp(22px, 3vw, 34px); background: var(--paper-2); }
.adoption-label {
  margin: 0 0 20px;
  font: 500 11px/1.5 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.adoption-card h3 {
  max-width: 22ch;
  margin: 0 0 16px;
  font: 400 clamp(1.65rem, 2.8vw, 2.3rem)/1.08 var(--serif);
  letter-spacing: -.015em;
}
.adoption-card > p:not(.adoption-label) { margin: 0 0 18px; color: var(--ink-2); }
.adoption-card .adoption-detail {
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-size: 14px;
  color: var(--muted);
}

.proof-incident { margin-top: clamp(44px, 6vw, 72px); }
.proof-incident .kicker { margin-bottom: 18px; }

.proof-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px 40px;
  align-items: end;
  margin-top: clamp(34px, 4vw, 52px);
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.proof-honest { margin: 0; max-width: 62ch; font-size: 15px; color: var(--muted); }
.proof-honest strong { color: var(--ink-2); }

/* ---------- Install ---------- */

.install-intro {
  max-width: 54ch;
  margin: 24px 0 30px;
  font-size: clamp(17px, 1.5vw, 19px);
  color: var(--ink-2);
}

.install-skill-copy { margin: 0 0 10px; color: var(--ink-2); }
.install-skill-links { margin: -8px 0 28px; }

.install-prompt {
  margin: 0 0 24px;
  padding: 22px;
  background: var(--ink);
  border: 1px solid var(--ink);
  overflow-x: auto;
}
.install-prompt code {
  font: 400 13.5px/1.8 var(--mono);
  color: #ebe5dc;
  white-space: pre-wrap;
}

.install-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }

/* ---------- Footer ---------- */

footer {
  width: var(--shell);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 30px 0 44px;
  border-top: 1px solid var(--rule);
}
footer p { display: flex; gap: 20px; margin: 0; font-size: 14px; color: var(--muted); }
footer a { text-decoration: none; border-bottom: 1px solid var(--rule); padding-bottom: 1px; }
footer a:hover { border-bottom-color: var(--ink); }

/* ---------- Motion ---------- */

/* Reveal saat scroll. Dibungkus `no-preference` sesuai aturan skill, dan
   elemennya sengaja terlihat penuh secara bawaan — kalau JS gagal atau
   IntersectionObserver tidak ada, halaman tetap terbaca utuh. */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
    will-change: transform, opacity;
  }
  [data-reveal][data-shown] {
    opacity: 1;
    transform: none;
    /* Dilepas setelah animasi supaya tidak menahan layer selamanya. */
    will-change: auto;
  }
  .transcript .turn { transition-delay: var(--delay, 0ms); }
}

/* ---------- Responsif ---------- */

@media (max-width: 900px) {
  .hero-grid, .what-grid, .why-grid { grid-template-columns: minmax(0, 1fr); }
  .why-grid { gap: 26px; }
  .proof-foot { grid-template-columns: minmax(0, 1fr); align-items: start; }
}

@media (max-width: 620px) {
  :root { --shell: min(1180px, 100% - 32px); }
  body { font-size: 16px; }
  .site-header nav { gap: 16px; font-size: 14px; }
  .site-header nav a:first-child { display: none; }
  .hero-actions .button { flex: 1 1 auto; }
  .file-card code, .terminal code { font-size: 12px; }
  .proof-stats, .adoption-grid { grid-template-columns: minmax(0, 1fr); }
  .proof-stat { padding: 18px 0; }
  .proof-stat + .proof-stat { padding-left: 0; border-top: 1px solid var(--rule); border-left: 0; }
}
