/* Tema blog WaKita. Token = .mk di frontend/src/lib/components/marketing/marketing.css (DESIGN.md: Shop Sage, Shared Night). */

@font-face {
  font-family: 'Plus Jakarta Sans Variable';
  font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(../fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2) format('woff2-variations');
  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 Variable';
  font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(../fonts/plus-jakarta-sans-latin-wght-normal.woff2) format('woff2-variations');
  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;
}
/* Cadangan dengan metrik Plus Jakarta Sans (sama dengan app.css), supaya teks tidak bergeser saat font dimuat. */
@font-face { font-family: 'PJS Fallback'; src: local('Arial'), local('ArialMT'); size-adjust: 104.98%; ascent-override: 98.88%; descent-override: 21.15%; line-gap-override: 0%; }
@font-face { font-family: 'PJS Fallback Roboto'; src: local('Roboto'), local('Roboto-Regular'); size-adjust: 104.18%; ascent-override: 99.64%; descent-override: 21.31%; line-gap-override: 0%; }

:root {
  --bg: #eef1eb; --paper: #ffffff; --ink: #17201c; --ink-2: #47524c; --ink-3: #56615b;
  --line: #dde4de; --accent: #3d6b5c; --accent-soft: #e2ece6; --on-ink: #ffffff;
  --nav-bg: rgba(242, 245, 242, .9); --btn-line: #c7d2ca; --shadow-c: rgba(23, 32, 28, .28);
  --radius-sm: 8px; --radius: 12px; --container: 1160px; --measure: 680px;
  --font: 'Plus Jakarta Sans Variable', 'PJS Fallback', 'PJS Fallback Roboto', ui-sans-serif, system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
.dark {
  --bg: #0f1412; --paper: #161d1a; --ink: #e6eee9; --ink-2: #a8b5ae; --ink-3: #a3b0a9;
  --line: #26302b; --accent: #8cc2a9; --accent-soft: #1d2b25; --on-ink: #0f1412;
  --nav-bg: rgba(15, 20, 18, .9); --btn-line: #34403a; --shadow-c: rgba(0, 0, 0, .6);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; -webkit-text-size-adjust: 100%; scrollbar-color: var(--btn-line) var(--bg); }
body { margin: 0; background: var(--bg); }
::selection { background: var(--accent-soft); color: var(--ink); }
.dark ::selection { background: #2c4a3d; }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }

.mk { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink-2); font: 16px/1.65 var(--font); caret-color: var(--accent); overflow-x: clip; }
.mk main { flex: 1; }
.mk h1, .mk h2, .mk h3, .mk h4 { margin: 0; color: var(--ink); line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; }
.mk p, .mk li { text-wrap: pretty; }
.mk .container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.mk :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: 16px; top: -48px; z-index: 60; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--ink); color: var(--on-ink); font: 600 14px/1 var(--font); transition: top .2s var(--ease); }
.skip:focus { top: 12px; }

/* Tombol (sama dengan landing) */
.mk .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: var(--radius-sm); font: 600 14px/1 var(--font); border: 1px solid transparent; transition: opacity .15s ease, border-color .15s ease; }
.mk .btn-dark { background: var(--ink); color: var(--on-ink); }
.mk .btn-dark:hover, .mk .btn-light:hover { opacity: .88; }
.mk .btn-light { background: var(--on-ink); color: var(--ink); }
.mk .btn-outline { border-color: var(--btn-line); color: var(--ink); background: var(--paper); }
.mk .btn-outline:hover { border-color: var(--ink-3); }
.mk .btn-ghost-light { color: var(--on-ink); border-color: color-mix(in srgb, var(--on-ink) 35%, transparent); }
.mk .btn-ghost-light:hover { border-color: var(--on-ink); }
.mk .btn-sm { padding: 9px 14px; font-size: 13px; }
.mk .btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Nav */
.mk .nav { position: sticky; top: 0; z-index: 50; background: var(--nav-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.mk .nav-inner { display: flex; align-items: center; gap: 28px; height: 66px; }
.mk .brand-group { display: inline-flex; align-items: center; gap: 12px; }
.mk .brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.mk .brand svg { width: 26px; height: 26px; }
.mk .brand-sub { padding-left: 12px; border-left: 1px solid var(--line); color: var(--ink-3); font-weight: 600; font-size: 15px; line-height: 22px; }
.mk .brand-sub:hover, .home-template .mk .brand-sub { color: var(--ink); }
.mk .nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.mk .nav-login { font-size: 14px; font-weight: 500; }
.mk .nav-login:hover { color: var(--ink); }

/* Saklar tema: dua sisi, sisi aktif = paper terangkat (ThemeToggle.svelte) */
.mk .toggle { display: inline-flex; align-items: center; gap: 2px; height: 32px; padding: 2px; border: 0; border-radius: 6px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
.mk .toggle-side { display: grid; place-items: center; width: 28px; height: 100%; border-radius: 4px; color: var(--ink-3); transition: background-color .2s ease, color .2s ease, box-shadow .2s ease; }
.mk .toggle svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mk .toggle-sun, .dark .mk .toggle-moon { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / .08); }
.dark .mk .toggle-sun { background: none; color: var(--ink-3); box-shadow: none; }

/* Kepala halaman blog: h1 kiri, lead kanan, rata bawah (sama dengan hero landing) */
.mk .blog-head { padding: 64px 0 56px; }
.mk .blog-head-inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px 56px; align-items: end; }
.mk .blog-head h1 { font-size: clamp(34px, 4.4vw, 58px); font-weight: 700; line-height: 1.04; letter-spacing: -.03em; }
.mk .blog-head h1 span { display: inline-block; }
.mk .lead { max-width: 460px; margin: 0; font-size: clamp(17px, 1.5vw, 19px); }

/* Daftar artikel = rel jam vertikal: garis 2px, titik per artikel, artikel terbaru terisi aksen */
.mk .feed { padding: 8px 0 96px; border-top: 1px solid var(--line); }
.mk .rows { position: relative; margin: 0; padding: 0; list-style: none; }
.mk .rows::before { content: ''; position: absolute; left: 155px; top: 44px; bottom: 44px; width: 2px; background: var(--line); }
.mk .row { position: relative; display: grid; grid-template-columns: 132px minmax(0, 1fr) auto; gap: 8px 48px; align-items: start; padding: 32px 0; border-bottom: 1px solid var(--line); }
.mk .row:last-child { border-bottom: 0; }
.mk .row::before { content: ''; position: absolute; left: 151px; top: 40px; width: 10px; height: 10px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 2px var(--btn-line); transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.mk .row:first-child::before { background: var(--accent); box-shadow: 0 0 0 4px var(--bg); }
.mk .row:hover::before { box-shadow: inset 0 0 0 2px var(--accent); transform: scale(1.3); }
.mk .row:first-child:hover::before { box-shadow: 0 0 0 4px var(--bg); }
.mk .row-date { padding-top: 6px; color: var(--ink-3); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.mk .row:first-child .row-date { color: var(--accent); }
.mk .row h2 { font-size: clamp(22px, 2.3vw, 28px); font-weight: 700; letter-spacing: -.025em; line-height: 1.18; }
.mk .row h2 a::after { content: ''; position: absolute; inset: 0; } /* seluruh baris bisa diklik */
.mk .row p { max-width: 62ch; margin: 10px 0 0; }
.mk .row-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 14px; color: var(--ink-3); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.mk .row-go { display: grid; place-items: center; width: 40px; height: 40px; margin-top: 2px; border: 1px solid var(--btn-line); border-radius: var(--radius-sm); background: var(--paper); color: var(--ink); transition: transform .3s var(--ease), border-color .15s ease; }
.mk .row-go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mk .row:hover .row-go { border-color: var(--ink-3); transform: translateX(4px); }
.mk .row:hover h2 a { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--accent); text-underline-offset: 5px; }
.mk .empty { padding: 56px 0; color: var(--ink-3); }

.mk .pager { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; font-variant-numeric: tabular-nums; }
.mk .pager-num { color: var(--ink-3); }

/* Artikel */
.mk .post-head { padding: 48px 0 40px; }
.mk .narrow { max-width: calc(var(--measure) + 48px); }
.mk .crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; color: var(--ink-3); font-size: 14px; font-weight: 500; }
.mk .crumbs li + li::before { content: '/'; margin-right: 8px; color: var(--btn-line); }
.mk .crumbs a:hover { color: var(--ink); }
.mk .post-head h1 { font-size: clamp(32px, 4.2vw, 52px); font-weight: 700; line-height: 1.06; letter-spacing: -.03em; }
.mk .post-lead { margin: 20px 0 0; font-size: clamp(17px, 1.5vw, 19px); }
.mk .post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.mk .post-meta time { color: var(--accent); }
.mk .post-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--btn-line); }
.mk .chip { display: inline-flex; align-items: center; padding: 4px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 12.5px; font-weight: 600; line-height: 1.3; }
.mk a.chip:hover { border-color: var(--btn-line); }
.mk .post-image { max-width: 1000px; margin: 0 auto 48px; padding: 0 24px; }
.mk .post-image img { display: block; width: 100%; border: 1px solid var(--line); border-radius: var(--radius); }
.mk .post-image figcaption { margin-top: 10px; color: var(--ink-3); font-size: 13px; text-align: center; }

/* Isi artikel (Koenig) */
.mk .gh-content { max-width: calc(var(--measure) + 48px); margin: 0 auto; padding: 0 24px 80px; color: var(--ink-2); font-size: 17px; line-height: 1.75; }
.mk .gh-content > * + * { margin-top: 1.15em; margin-bottom: 0; }
.mk .gh-content > :first-child { margin-top: 0; }
.mk .gh-content h2 { margin-top: 2.2em; font-size: clamp(24px, 2.4vw, 30px); font-weight: 700; line-height: 1.18; letter-spacing: -.025em; }
.mk .gh-content h3 { margin-top: 1.9em; font-size: 20px; font-weight: 700; line-height: 1.3; letter-spacing: -.015em; }
.mk .gh-content h2 + *, .mk .gh-content h3 + * { margin-top: .6em; }
.mk .gh-content p { margin-bottom: 0; }
.mk .gh-content strong { color: var(--ink); font-weight: 650; }
.mk .gh-content a { color: var(--accent); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); transition: text-decoration-color .15s ease; }
.mk .gh-content a:hover { text-decoration-color: var(--accent); }
.mk .gh-content ul, .mk .gh-content ol { padding-left: 1.3em; }
.mk .gh-content li + li { margin-top: .5em; }
.mk .gh-content li::marker { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.mk .gh-content blockquote { margin-left: 0; margin-right: 0; padding: 4px 0 4px 22px; border-left: 1px solid var(--accent); color: var(--ink); font-size: 19px; line-height: 1.6; }
.mk .gh-content blockquote p { margin: 0; }
.mk .gh-content hr { height: 1px; margin: 2.6em 0; border: 0; background: var(--line); }
.mk .gh-content code { padding: .12em .36em; border-radius: 5px; background: var(--accent-soft); color: var(--ink); font: .88em/1.5 var(--mono); }
.mk .gh-content pre { overflow-x: auto; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); font-size: 14px; line-height: 1.6; }
.mk .gh-content pre code { padding: 0; background: none; }
.mk .gh-content table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.mk .gh-content th, .mk .gh-content td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.mk .gh-content th { color: var(--ink); font-weight: 700; }
.mk .gh-content figure { margin-left: 0; margin-right: 0; }
.mk .gh-content figure img, .mk .gh-content > img { display: block; border-radius: var(--radius); }
.mk .gh-content figcaption { margin-top: 10px; color: var(--ink-3); font-size: 13px; text-align: center; }
.mk .gh-content .kg-width-wide { position: relative; width: min(1000px, calc(100vw - 48px)); margin-left: 50%; transform: translateX(-50%); }
.mk .gh-content .kg-width-full { position: relative; width: 100vw; margin-left: 50%; transform: translateX(-50%); }
.mk .gh-content .kg-width-full img { border-radius: 0; }
.mk .gh-content .kg-callout-card { border-radius: var(--radius); }
.mk .gh-content .kg-bookmark-card a.kg-bookmark-container { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); font-weight: 400; text-decoration: none; }
.mk .gh-content .kg-bookmark-description, .mk .gh-content .kg-bookmark-metadata { color: var(--ink-3); }

/* Blok penutup gelap: satu blok ink per halaman (DESIGN.md) */
.mk .close { padding: 88px 0; background: var(--ink); color: color-mix(in srgb, var(--on-ink) 72%, var(--ink)); }
.mk .close-inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px 56px; align-items: end; }
.mk .close h2 { color: var(--on-ink); font-size: clamp(28px, 3.6vw, 44px); font-weight: 700; letter-spacing: -.025em; }
.mk .close p { max-width: 440px; margin: 0; font-size: 17px; }
.mk .close-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.mk .close :focus-visible { outline-color: var(--on-ink); }

.mk .more { padding: 72px 0 32px; }
.mk .more-title { margin-bottom: 8px; font-size: clamp(24px, 2.5vw, 32px); font-weight: 700; letter-spacing: -.025em; }

/* Halaman error */
.mk .error { padding: 96px 0 120px; }
.mk .error-code { margin: 0; color: var(--accent); font: 800 clamp(64px, 10.5vw, 148px)/.88 var(--font); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.mk .error h1 { margin-top: 16px; font-size: clamp(28px, 3.6vw, 44px); font-weight: 700; }
.mk .error p { margin: 14px 0 28px; }

/* Footer (sama dengan landing) */
.mk .footer { padding: 28px 0 36px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.mk .foot-pages { display: flex; flex-wrap: wrap; gap: 20px 56px; padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.mk .foot-pages div { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; }
.mk .foot-pages p { width: 100%; margin: 0 0 4px; color: var(--ink); font-weight: 700; }
.mk .foot-pages a { display: inline-flex; align-items: center; min-height: 32px; }
.mk .foot { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 24px; }
.mk .foot .brand { font-size: 15px; gap: 8px; }
.mk .foot .brand svg { width: 22px; height: 22px; }
.mk .foot-legal { margin-left: auto; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.mk .footer a:hover { color: var(--ink); }

@media (max-width: 960px) {
  .mk .blog-head-inner, .mk .close-inner { grid-template-columns: 1fr; align-items: start; }
  .mk .row { grid-template-columns: 104px minmax(0, 1fr); gap: 8px 32px; }
  .mk .rows::before { left: 119px; }
  .mk .row::before { left: 115px; }
  .mk .row-go { display: none; }
}
@media (max-width: 720px) {
  .mk .container, .mk .gh-content, .mk .post-image { padding-left: 16px; padding-right: 16px; }
  .mk .nav-inner { gap: 12px; height: 60px; }
  .mk .nav-login, .mk .brand-sub { display: none; }
  .mk .blog-head { padding: 40px 0 36px; }
  .mk .feed { padding-bottom: 72px; }
  /* Rel pindah ke kiri: tanggal di atas judul */
  .mk .rows::before { left: 4px; top: 36px; bottom: 36px; }
  .mk .row { grid-template-columns: 1fr; gap: 6px; padding: 26px 0 26px 28px; }
  .mk .row::before { left: 0; top: 33px; }
  .mk .row-date { padding-top: 0; }
  .mk .post-head { padding: 28px 0 32px; }
  .mk .crumbs { margin-bottom: 20px; }
  .mk .gh-content { font-size: 16.5px; padding-bottom: 64px; }
  .mk .gh-content .kg-width-wide { width: calc(100vw - 32px); }
  .mk .close { padding: 64px 0; }
  .mk .close-actions .btn { flex: 1 1 auto; }
  .mk .foot-pages a, .mk .foot-legal a { min-height: 44px; }
  .mk .foot { align-items: flex-start; flex-direction: column; gap: 6px; }
  .mk .foot-legal { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mk *, .mk *::before { transition: none !important; }
}
