@charset "UTF-8";
/* ==========================================================================
   ibrahimroslan.com — "Sisi"
   Sistem reka bentuk: jurnal bercetak. Kertas hangat, dakwat gelap,
   satu aksen tanah liat, garis halus, indeks bernombor.
   ========================================================================== */

/* ==========================================================================
   [1] TOKENS
   ========================================================================== */
:root {
  /* Kertas & dakwat (Latar putih bersih, tulisan gelap) */
  --paper:        #ffffff;
  --paper-raised: #ffffff;
  --paper-sunk:   #f7fafc;
  --ink:          #1a202c;
  --ink-soft:     #4a5568;
  --ink-faint:    #718096;
  --rule:         #edf2f7;
  --rule-strong:  #e2e8f0;

  /* Aksen (Kembalikan ke warna biru asal anda) */
  --clay:      #2b6cb0;
  --clay-soft: #4299e1;
  --clay-wash: #ebf8ff;

  /* Tipografi */
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body:    "Newsreader", Georgia, "Times New Roman", serif;
  --mono:    "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Skala saiz — clamp supaya luwes tanpa media query */
  --fs-mono:    0.7rem;
  --fs-meta:    0.78rem;
  --fs-body:    clamp(1.02rem, 0.98rem + 0.25vw, 1.14rem);
  --fs-lead:    clamp(1.16rem, 1.08rem + 0.45vw, 1.36rem);
  --fs-h3:      clamp(1.12rem, 1.02rem + 0.5vw, 1.34rem);
  --fs-h2:      clamp(1.34rem, 1.14rem + 0.9vw, 1.78rem);
  --fs-h1:      clamp(1.9rem, 1.4rem + 2.4vw, 3.1rem);
  --fs-hero:    clamp(2.1rem, 1.3rem + 3.6vw, 4rem);

  /* Ruang */
  --gutter:  clamp(1.25rem, 0.6rem + 3vw, 3rem);
  --measure: 34rem;   /* lebar bacaan optimum */
  --shell:   72rem;   /* lebar maksimum tapak */
  --rail:    7.5rem;  /* lajur meta kiri (asimetri) */

  /* Lain-lain */
  --hair: 1px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out-back: cubic-bezier(0.34, 1.4, 0.64, 1);
}

/* Mod gelap — Disesuaikan dengan tona kelabu sejuk */
[data-theme="dark"] {
  --paper:        #1a202c;
  --paper-raised: #2d3748;
  --paper-sunk:   #171923;
  --ink:          #f7fafc;
  --ink-soft:     #a0aec0;
  --ink-faint:    #718096;
  --rule:         #2d3748;
  --rule-strong:  #4a5568;

  --clay:      #63b3ed;
  --clay-soft: #90cdf4;
  --clay-wash: #2a4365;
}

/* ==========================================================================
   [2] RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--fs-body);
  font-optical-sizing: auto;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.015em;
  margin: 0;
  font-variation-settings: "SOFT" 20, "WONK" 0;
  text-wrap: balance;
}

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

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

::selection { background: var(--clay); color: var(--paper-raised); }

hr {
  border: 0;
  border-top: var(--hair) solid var(--rule);
  margin: 2.5rem 0;
}

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

/* Pautan langkau — untuk pengguna papan kekunci & pembaca skrin */
.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: var(--fs-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip:focus { top: 0.75rem; }

/* Utiliti pembaca skrin */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ==========================================================================
   [3] TEXTURE & LAYOUT PRIMITIVES
   ========================================================================== */
/* Bijian kertas — lapisan halus supaya latar tak nampak "digital" rata */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0; /* <--- PASTIKAN NILAI INI 0 */
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.32'/%3E%3C/svg%3E");
}
[data-theme="dark"] .grain { mix-blend-mode: screen; opacity: 0.22; }

/* Garis panduan menegak — rujukan grid seperti kertas jurnal */
.guides {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.guides span {
  position: absolute;
  top: 0; bottom: 0;
  width: var(--hair);
  background: var(--rule);
  opacity: 0.5;
}
.guides span:nth-child(1) { left: var(--gutter); }
.guides span:nth-child(2) { right: var(--gutter); }
.guides span:nth-child(3) { left: 50%; opacity: 0.25; }

/* Bekas utama */
.shell {
  position: relative;
  z-index: 2;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Label mono — tulang belakang sistem visual */
.label {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--mono);
  font-size: var(--fs-mono);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
}
.label--clay { color: var(--clay); }

/* Nombor indeks */
.numeral {
  font-family: var(--mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}

/* Tanda faset — glif tiga rusuk yang berulang sebagai motif tapak */
.facet-mark {
  width: 0.72em;
  height: 0.72em;
  flex: none;
  color: var(--clay);
}

/* Petak dengan tanda sudut (corner ticks) */
.ticked { position: relative; }
.ticked::before,
.ticked::after {
  content: "";
  position: absolute;
  width: 7px; height: 7px;
  border-color: var(--rule-strong);
  border-style: solid;
}
.ticked::before { top: 0; left: 0; border-width: var(--hair) 0 0 var(--hair); }
.ticked::after  { bottom: 0; right: 0; border-width: 0 var(--hair) var(--hair) 0; }

/* ==========================================================================
   [4] HEADER & NAV
   ========================================================================== */
.masthead {
  position: sticky;
  top: 0;
  z-index: 3;
  border-bottom: var(--hair) solid var(--rule);
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(14px) saturate(1.1);
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.95rem 0;
}

.wordmark {
  display: inline-flex;
  flex-direction: column;
  gap: 0.1rem;
  text-decoration: none;
  line-height: 1;
}
.wordmark__name {
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variation-settings: "SOFT" 40, "WONK" 1;
  color: var(--ink);
}
.wordmark__sub {
  font-family: var(--mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-faint);
}
.wordmark:hover .wordmark__name { color: var(--clay); }

/* Navigasi */
.nav { display: flex; align-items: center; gap: clamp(0.9rem, 2vw, 1.9rem); }

.nav__link {
  position: relative;
  font-family: var(--mono);
  font-size: var(--fs-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 0.35rem 0;
  transition: color 0.2s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: var(--hair);
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--clay); }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

/* Suis tema */
.theme-toggle {
  display: grid;
  place-items: center;
  width: 2.1rem; height: 2.1rem;
  flex: none;
  padding: 0;
  border: var(--hair) solid var(--rule-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.35s var(--ease-out-back);
}
.theme-toggle:hover {
  color: var(--clay);
  border-color: var(--clay);
  transform: rotate(-30deg);
}
.theme-toggle svg { width: 15px; height: 15px; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun  { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* Menu mudah alih */
.nav-toggle { display: none; }

/* ==========================================================================
   [5] HERO
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;   /* memangkas perkataan hantu pada garis bawah hero */
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3.5rem);
  padding: clamp(2.75rem, 6vw, 5.5rem) 0 clamp(2.25rem, 4vw, 3.5rem);
  border-bottom: var(--hair) solid var(--rule);
}

.hero__text { position: relative; }

.hero__eyebrow { margin-bottom: clamp(1rem, 2vw, 1.6rem); }

.hero__quote {
  font-size: var(--fs-hero);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.028em;
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
  font-variation-settings: "SOFT" 30, "WONK" 0;
}
.hero__quote em {
  font-style: italic;
  font-weight: 500;
  color: var(--clay);
  font-variation-settings: "SOFT" 90, "WONK" 1;
}

.hero__lede {
  font-size: var(--fs-lead);
  color: var(--ink-soft);
  max-width: 30rem;
  margin-bottom: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.55;
}

.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem; }

/* Bekas objek faset */
.facet {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 30rem;
  margin-inline: auto;
  width: 100%;
  touch-action: none;
  cursor: grab;
}
.facet:active { cursor: grabbing; }
.facet canvas { width: 100%; height: 100%; }
.facet__hint {
  position: absolute;
  left: 50%;
  bottom: -0.25rem;
  transform: translateX(-50%);
  white-space: nowrap;
  transition: opacity 0.4s var(--ease);
}
.facet[data-engaged="true"] .facet__hint { opacity: 0; }
.facet__hint svg { animation: tick 4s linear infinite; }
@keyframes tick { to { transform: rotate(360deg); } }

/* Butang */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.62rem 1.25rem;
  border: var(--hair) solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: var(--fs-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-decoration: none;
  transition: background 0.24s var(--ease), color 0.24s var(--ease), border-color 0.24s var(--ease);
}
.btn:hover { background: var(--clay); border-color: var(--clay); color: var(--paper-raised); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn--ghost:hover { background: transparent; color: var(--clay); border-color: var(--clay); }

/* Saiz ditetapkan di sini, bukan pada atribut SVG — supaya ikon tak
   membengkak kepada 300x150 lalai kalau atribut width/height tertinggal. */
.btn__arrow { flex: none; width: 15px; height: 15px; transition: transform 0.24s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }
.btn { white-space: nowrap; }

/* Kepala halaman dalaman */
.page-head {
  padding: clamp(2.5rem, 5vw, 4.25rem) 0 clamp(1.75rem, 3vw, 2.5rem);
  border-bottom: var(--hair) solid var(--rule);
  position: relative;
}
.page-head__title {
  font-size: var(--fs-h1);
  font-weight: 500;
  margin: 0.7rem 0 0.85rem;
  font-variation-settings: "SOFT" 30, "WONK" 1;
}
.page-head__lede {
  font-size: var(--fs-lead);
  color: var(--ink-soft);
  max-width: var(--measure);
  line-height: 1.55;
  margin: 0;
}

/* ==========================================================================
   [6] SECTION HEADERS
   ========================================================================== */
/* Tajuk seksyen: label + garis halus memenuhi ruang + pautan */
.section {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  border-bottom: var(--hair) solid var(--rule);
}
.section:last-of-type { border-bottom: 0; }

.section__head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}
.section__rule {
  flex: 1 1 auto;
  height: var(--hair);
  background: var(--rule);
  transform: translateY(-0.28em);
}
.section__link {
  font-family: var(--mono);
  font-size: var(--fs-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-decoration: none;
  color: var(--ink-soft);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  transition: color 0.2s var(--ease);
}
.section__link:hover { color: var(--clay); }
.section__link svg { flex: none; width: 14px; height: 14px; transition: transform 0.24s var(--ease); }
.section__link:hover svg { transform: translateX(3px); }

.section__title {
  font-size: var(--fs-h2);
  font-weight: 500;
  font-variation-settings: "SOFT" 30, "WONK" 1;
}

/* ==========================================================================
   [7] POST INDEX
   ========================================================================== */
.index {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: var(--hair) solid var(--rule);
}
.index__item {
  border-bottom: var(--hair) solid var(--rule);
  isolation: isolate;   /* mengurung wash ::before dalam baris ini sahaja */
}
.index__item[hidden] { display: none; }
/* Garis penutup datang daripada border seksyen — elak garis berganda. */
.index--flush .index__item:last-child { border-bottom: 0; }

.index__body { display: block; min-width: 0; }

.index__link {
  position: relative;
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr) var(--rail);
  align-items: start;
  gap: clamp(0.75rem, 2vw, 1.75rem);
  padding: clamp(1.35rem, 2.5vw, 1.9rem) 0;
  text-decoration: none;
  transition: background 0.3s var(--ease);
}
/* Wash yang melimpah melepasi gutter supaya baris terasa "penuh" */
.index__link::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: calc(-1 * var(--gutter));
  right: calc(-1 * var(--gutter));
  background: var(--clay-wash);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  z-index: -1;
}
.index__link:hover::before { opacity: 1; }

.index__num {
  display: block;
  font-family: var(--mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  padding-top: 0.42em;
  font-variant-numeric: tabular-nums;
  transition: color 0.24s var(--ease), transform 0.3s var(--ease);
}
.index__link:hover .index__num { color: var(--clay); transform: translateX(2px); }

.index__title {
  display: block;
  font-family: var(--display);
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: 1.24;
  letter-spacing: -0.015em;
  margin-bottom: 0.42em;
  color: var(--ink);
  font-variation-settings: "SOFT" 25, "WONK" 0;
  transition: color 0.24s var(--ease);
  text-wrap: balance;
}
.index__link:hover .index__title { color: var(--clay); }

.index__excerpt {
  display: block;
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0;
  max-width: 40rem;
}

.index__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  padding-top: 0.35em;
  text-align: right;
}
.index__date {
  font-family: var(--mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  white-space: nowrap;
}

/* Tag kategori */
.tag {
  display: inline-block;
  padding: 0.14rem 0.5rem;
  border: var(--hair) solid var(--rule-strong);
  font-family: var(--mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  white-space: nowrap;
}
.index__link:hover .tag { border-color: var(--clay-soft); color: var(--clay); }

/* Keadaan kosong — dulu penapis kategori kosong tanpa maklum balas */
.empty {
  padding: 3rem 0;
  text-align: center;
  color: var(--ink-faint);
  border-bottom: var(--hair) solid var(--rule);
}
.empty p { margin: 0.75rem 0 0; font-size: 0.95rem; }
.empty[hidden] { display: none; }

/* ==========================================================================
   [8] REFLEKSI (PULL-QUOTES)
   ========================================================================== */
.thoughts { list-style: none; margin: 0; padding: 0; }

.thought {
  position: relative;
  padding: clamp(1.75rem, 3.5vw, 2.75rem) 0;
  border-bottom: var(--hair) solid var(--rule);
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: clamp(0.75rem, 2vw, 1.75rem);
}
.thought[hidden] { display: none; }
.thought:first-child { border-top: var(--hair) solid var(--rule); }
.thoughts--flush .thought:last-child { border-bottom: 0; padding-bottom: 0; }

/* Asimetri berselang — baris genap dianjak sedikit ke dalam */
.thought:nth-child(even) .thought__body { padding-left: clamp(0rem, 3vw, 2.5rem); }

.thought__mark { padding-top: 0.5rem; }
.thought__mark svg { width: 18px; height: 18px; color: var(--clay-soft); }

.thought__quote {
  font-family: var(--display);
  font-size: clamp(1.24rem, 1.05rem + 0.8vw, 1.68rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.38;
  letter-spacing: -0.018em;
  margin: 0 0 0.9rem;
  font-variation-settings: "SOFT" 70, "WONK" 1;
  text-wrap: pretty;
}

.thought__source {
  font-family: var(--mono);
  font-size: var(--fs-meta);
  letter-spacing: 0.04em;
  color: var(--ink);
  margin: 0 0 0.55rem;
}

.thought__note {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.62;
  max-width: var(--measure);
  margin: 0 0 0.85rem;
}

.thought__foot { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }

/* ==========================================================================
   [9] PROSE / ARTICLE
   ========================================================================== */
/* Bar kemajuan bacaan */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  transform-origin: left;
  transform: scaleX(0);
  background: var(--clay);
  z-index: 50;
  pointer-events: none;
}

/* Jejak roti. Nota: <nav class="crumbs"> membalut <ol>, jadi flex mesti
   diletakkan pada <ol> — bukan pada .crumbs — supaya item berbaris. */
.crumbs {
  padding: clamp(1.25rem, 2.5vw, 1.9rem) 0 0;
  font-family: var(--mono);
  font-size: var(--fs-mono);
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--ink-faint);
}
.crumbs ol {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--clay); }
.crumbs li { display: flex; align-items: center; gap: 0.55rem; }
.crumbs li + li::before { content: "/"; color: var(--rule-strong); }

/* Kepala artikel */
.article-head {
  padding: clamp(1.5rem, 3vw, 2.25rem) 0 clamp(1.75rem, 3vw, 2.5rem);
  border-bottom: var(--hair) solid var(--rule);
}
.article-head__title {
  font-size: var(--fs-h1);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.026em;
  margin: 0.8rem 0 1rem;
  max-width: 46rem;
  font-variation-settings: "SOFT" 25, "WONK" 1;
}
.article-head__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.1rem;
  font-family: var(--mono);
  font-size: var(--fs-meta);
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}
.article-head__meta strong { color: var(--ink); font-weight: 400; }

/* Susun atur artikel: rel meta kiri + lajur bacaan */
.article-layout {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding: clamp(2rem, 4vw, 3rem) 0 clamp(2.5rem, 5vw, 4rem);
}
.article-rail {
  font-family: var(--mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  line-height: 1.9;
}
.article-rail__block { position: sticky; top: 5.5rem; }
.article-rail dt {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
  margin-top: 1.1rem;
}
.article-rail dt:first-child { margin-top: 0; }
.article-rail dd { margin: 0; color: var(--ink-soft); }
.article-rail dd a {
  color: var(--clay);
  text-decoration: none;
  border-bottom: var(--hair) solid currentColor;
}
.article-rail dd a:hover { color: var(--ink); }

/* Tipografi prosa */
.prose { max-width: var(--measure); font-size: var(--fs-body); }
.prose > * + * { margin-top: 0; }

.prose p { line-height: 1.78; color: var(--ink); }

/* Huruf awal besar pada perenggan pembuka */
.prose > p.lede::first-letter {
  float: left;
  font-family: var(--display);
  font-size: 3.65em;
  line-height: 0.82;
  font-weight: 600;
  margin: 0.06em 0.09em 0 0;
  color: var(--clay);
  font-variation-settings: "SOFT" 20, "WONK" 1;
}

.prose h2 {
  font-size: var(--fs-h2);
  font-weight: 500;
  margin: 2.5rem 0 0.85rem;
  padding-top: 1.25rem;
  border-top: var(--hair) solid var(--rule);
  font-variation-settings: "SOFT" 25, "WONK" 1;
}
.prose h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
  margin: 2rem 0 0.7rem;
  font-variation-settings: "SOFT" 25, "WONK" 0;
}
.prose h3 .numeral { margin-right: 0.5em; color: var(--clay-soft); }

.prose ul, .prose ol { margin: 0 0 1.15em; padding-left: 1.35rem; }
.prose li { margin-bottom: 0.5em; line-height: 1.7; }
.prose li::marker { color: var(--clay-soft); }
.prose strong { font-weight: 600; }
.prose em { font-style: italic; }

.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--clay-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s var(--ease), text-decoration-color 0.2s var(--ease);
}
.prose a:hover { color: var(--clay); text-decoration-color: var(--clay); }

/* Petikan tarik — melimpah ke luar lajur bacaan */
.prose blockquote {
  margin: 2.25rem 0;
  padding: 1.5rem 0;
  border-top: var(--hair) solid var(--ink);
  border-bottom: var(--hair) solid var(--ink);
  font-family: var(--display);
  font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.55rem);
  font-style: italic;
  line-height: 1.4;
  letter-spacing: -0.016em;
  font-variation-settings: "SOFT" 70, "WONK" 1;
  text-wrap: pretty;
}
.prose blockquote p { margin: 0; }
.prose blockquote cite {
  display: block;
  margin-top: 0.75rem;
  font-family: var(--mono);
  font-size: var(--fs-mono);
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
}

/* Nota penzahiran affiliate */
.disclosure {
  display: flex;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  margin: 0 0 2rem;
  background: var(--paper-raised);
  border: var(--hair) solid var(--rule);
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.65;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}
.disclosure svg { flex: none; width: 14px; height: 14px; margin-top: 0.25em; color: var(--clay); }
.disclosure p { margin: 0; }

/* Kotak cadangan pembelian */
.buybox {
  margin: 2.25rem 0;
  padding: 1.35rem 1.5rem;
  background: var(--paper-raised);
  border: var(--hair) solid var(--rule-strong);
}
.buybox__label { margin-bottom: 0.85rem; }
.buybox ul { list-style: none; margin: 0; padding: 0; }
.buybox li { margin: 0; border-top: var(--hair) solid var(--rule); }
.buybox li:first-child { border-top: 0; }

.buylink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
  font-family: var(--body);
  font-size: 0.98rem;
  text-decoration: none;
  color: var(--ink);
  transition: color 0.2s var(--ease);
}
.buylink:hover { color: var(--clay); }
.buylink__go {
  font-family: var(--mono);
  font-size: var(--fs-mono);
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--clay);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}
.buylink__go svg { transition: transform 0.22s var(--ease); }
.buylink:hover .buylink__go svg { transform: translateX(3px); }

/* Slot pautan yang BELUM ditetapkan — dipaparkan sebagai teks mati,
   bukan pautan rosak. Ganti <span> dengan <a href="..."> bila sedia. */
.buylink--pending {
  color: var(--ink-faint);
  cursor: default;
}
.buylink--pending .buylink__go { color: var(--ink-faint); }

/* Kaki artikel */
.article-foot {
  border-top: var(--hair) solid var(--rule);
  padding: clamp(1.75rem, 3vw, 2.5rem) 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.share { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; }
.share a {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--mono);
  font-size: var(--fs-mono);
  text-transform: uppercase;
  letter-spacing: 0.13em;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.2s var(--ease);
}
.share a:hover { color: var(--clay); }
.share svg { width: 13px; height: 13px; }

/* ==========================================================================
   [10] FILTERS & CHIPS
   ========================================================================== */
.filters {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: clamp(1.5rem, 3vw, 2.25rem) 0 clamp(1.25rem, 2.5vw, 1.75rem);
}
.filters__label { margin-right: 0.35rem; }

.chip {
  padding: 0.36rem 0.85rem;
  border: var(--hair) solid var(--rule-strong);
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: var(--fs-mono);
  text-transform: uppercase;
  letter-spacing: 0.13em;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.chip:hover { color: var(--ink); border-color: var(--ink-faint); }
.chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.chip__count {
  margin-left: 0.5em;
  font-variant-numeric: tabular-nums;
  opacity: 0.55;
}

/* ==========================================================================
   [11] FOOTER
   ========================================================================== */
.colophon {
  position: relative;
  z-index: 2;
  border-top: var(--hair) solid var(--rule);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding: clamp(2.25rem, 4vw, 3.25rem) 0 clamp(1.5rem, 3vw, 2rem);
}

.colophon__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: clamp(1.75rem, 3vw, 3rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.colophon__blurb {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 24rem;
  margin: 0.75rem 0 0;
}

.colophon__list { list-style: none; margin: 0.85rem 0 0; padding: 0; }
.colophon__list li { margin-bottom: 0.5rem; }
.colophon__list a {
  font-size: 0.94rem;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.2s var(--ease);
}
.colophon__list a:hover { color: var(--clay); }

.colophon__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  border-top: var(--hair) solid var(--rule);
  padding-top: 1.1rem;
  font-family: var(--mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  text-transform: uppercase;
}
.colophon__bar a { color: var(--ink-faint); text-decoration: none; }
.colophon__bar a:hover { color: var(--clay); }

/* ==========================================================================
   [12] MOTION & REVEALS
   ========================================================================== */
/* Pendedahan berperingkat semasa muat halaman */
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes draw-rule {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.rise {
  animation: rise 0.85s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 90ms);
}
.fade {
  animation: fade 1.1s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 90ms);
}

/* Pendedahan semasa skrol.
   Disembunyikan HANYA apabila JavaScript aktif (kelas .js ditambah dalam
   <head>). Tanpa JS, kandungan tetap kelihatan — bukan halaman kosong. */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* Hormati keutamaan pengguna — semua gerakan dimatikan */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .theme-toggle:hover { transform: none; }
}

/* ==========================================================================
   [13] RESPONSIVE
   ========================================================================== */
.masthead__right { display: flex; align-items: center; gap: clamp(0.9rem, 2vw, 1.75rem); }

@media (max-width: 1000px) {
  :root { --rail: 6rem; }
  .guides span:nth-child(3) { display: none; }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: clamp(1.75rem, 5vw, 3rem);
  }
  /* Objek faset didahulukan supaya jadi kenyataan visual di mudah alih */
  .hero__visual { order: -1; margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
  .facet { max-width: 22rem; }

  /* Ruang sisi jadi jadual meta dua lajur. Grid pada <dl> mengekalkan
     pasangan dt/dd bersebelahan — flex-wrap akan memisahkannya. */
  .article-layout { grid-template-columns: 1fr; }
  .article-rail {
    padding-bottom: clamp(1.25rem, 4vw, 1.75rem);
    border-bottom: var(--hair) solid var(--rule);
  }
  .article-rail__block {
    position: static;
    display: grid;
    grid-template-columns: minmax(6.5rem, auto) 1fr;
    gap: 0 1.25rem;
    align-items: baseline;
  }
  .article-rail dt {
    margin: 0;
    padding: 0.42rem 0;
    border-top: var(--hair) solid var(--rule);
  }
  .article-rail dt:first-of-type,
  .article-rail dt:first-of-type + dd { border-top: 0; }
  .article-rail dd {
    margin: 0;
    padding: 0.42rem 0;
    border-top: var(--hair) solid var(--rule);
    font-family: var(--mono);
    font-size: var(--fs-mono);
  }

  .colophon__grid { grid-template-columns: 1fr 1fr; }
  .colophon__brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  /* Navigasi runtuh menjadi panel */
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.1rem;
    background: var(--paper);
    border-bottom: var(--hair) solid var(--rule);
    display: none;
  }
  .nav[data-open="true"] { display: flex; }
  .nav__link {
    padding: 0.8rem 0;
    border-bottom: var(--hair) solid var(--rule);
    font-size: 0.78rem;
  }
  .nav__link:last-child { border-bottom: 0; }
  .nav__link::after { display: none; }

  .nav-toggle {
    display: grid;
    place-items: center;
    width: 2.1rem; height: 2.1rem;
    padding: 0;
    border: var(--hair) solid var(--rule-strong);
    border-radius: 50%;
    background: transparent;
    color: var(--ink-soft);
    cursor: pointer;
  }
  .nav-toggle svg { width: 15px; height: 15px; }
  .nav-toggle .icon-close { display: none; }
  .nav-toggle[aria-expanded="true"] .icon-close { display: block; }
  .nav-toggle[aria-expanded="true"] .icon-menu { display: none; }

  /* Indeks: nombor & meta disusun semula */
  .index__link {
    grid-template-columns: 2.25rem minmax(0, 1fr);
    gap: 0.75rem;
    padding: 1.25rem 0;
  }
  .index__meta {
    grid-column: 2;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    padding-top: 0.7rem;
    gap: 0.7rem;
  }

  .thought { grid-template-columns: 1.75rem minmax(0, 1fr); gap: 0.75rem; }
  .thought:nth-child(even) .thought__body { padding-left: 0; }

  .prose > p.lede::first-letter { font-size: 3.1em; }
  .article-foot { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
  .colophon__grid { grid-template-columns: 1fr; }
  .hero__actions { gap: 1rem; }
  .btn { width: 100%; justify-content: space-between; }
  .facet { max-width: 17rem; }
}

/* Cetakan — jurnal ini patut boleh dicetak dengan kemas */
@media print {
  .grain, .guides, .masthead, .colophon, .progress, .facet, .share, .filters { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .prose { max-width: none; }
  .prose a { text-decoration: none; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}
