:root {
  --ink: #242424; --muted: #6b6b6b; --line: #f0f0f0; --bg: #fff; --soft: #f9f9f9;
  --accent: #1a8917; --warn: #c94a00; --danger: #c62828; --border: #d0d0d0;
  --serif: charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
[data-theme=dark] { --ink: #e6e6e6; --muted: #a0a0a0; --line: #2a2a2a; --bg: #121212; --soft: #1b1b1b; --accent: #3fb950; --border: #3a3a3a; color-scheme: dark; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--sans); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
main { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 16px; padding: 10px 24px; background: var(--bg); border-bottom: 1px solid var(--line); }
.logo { font: 700 26px/1 var(--serif); letter-spacing: -.5px; }
.search { flex: 1; max-width: 260px; }
.search input { width: 100%; border: 0; background: var(--soft); border-radius: 99px; padding: 9px 16px; font: inherit; font-size: 14px; color: var(--ink); }
.write { margin-left: auto; color: var(--muted); font-size: 14px; white-space: nowrap; }
.write:hover { color: var(--ink); }
.topics { display: flex; gap: 24px; overflow-x: auto; max-width: 1100px; margin: 0 auto; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); scrollbar-width: none; }
.topics a { white-space: nowrap; }
.topics a:hover { color: var(--ink); }

.avatar { display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: #e7f3e8; color: #156d12; font: 600 14px var(--sans); }
.avatar.xs { width: 20px; height: 20px; font-size: 10px; margin-right: 8px; vertical-align: middle; }
.avatar.lg { width: 64px; height: 64px; font-size: 26px; }

.btn { display: inline-block; border: 0; border-radius: 99px; padding: 9px 18px; background: var(--accent); color: #fff; font: 500 14px var(--sans); cursor: pointer; }
.btn.small { padding: 6px 14px; font-size: 13px; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--muted); }
.btn.warn { background: var(--warn); }
.btn:disabled { opacity: .5; cursor: default; }
.link { border: 0; background: none; padding: 0; font: inherit; font-size: 13px; cursor: pointer; color: var(--muted); }
.danger { color: var(--danger); }
.chip { display: inline-block; background: var(--soft); border-radius: 99px; padding: 2px 10px; font-size: 13px; }
.meta { color: var(--muted); font-size: 13px; }
.empty { color: var(--muted); padding: 48px 0; text-align: center; }
.notice { background: var(--soft); border-left: 3px solid var(--accent); padding: 10px 14px; margin: 16px 0; font-size: 14px; }
.notice.warn, .notice.err { border-color: var(--warn); }
.notice a { text-decoration: underline; }

/* Home */
.hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; padding: 32px 0; border-bottom: 1px solid var(--line); }
.hero img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 4px; }
.hero h1 { font: 700 34px/1.15 var(--sans); letter-spacing: -.8px; margin: 8px 0; }
.hero p { font: 18px/1.5 var(--serif); color: var(--muted); margin: 0 0 12px; }
.kicker { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); font-weight: 600; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; }
.feed { max-width: 700px; }
.card { display: flex; gap: 24px; justify-content: space-between; padding: 28px 0; border-bottom: 1px solid var(--line); }
.card > div { min-width: 0; }
.card .by { font-size: 13px; display: inline-flex; align-items: center; }
.card h2 { font: 700 22px/1.25 var(--sans); letter-spacing: -.3px; margin: 8px 0 4px; }
.card p { font: 16px/1.5 var(--serif); color: var(--muted); margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.thumb { width: 160px; height: 107px; object-fit: cover; flex: none; border-radius: 2px; }
.side { position: sticky; top: 80px; align-self: start; padding-top: 28px; }
.side h3 { font-size: 16px; margin: 0 0 12px; }
.pop { list-style: none; padding: 0; margin: 0; }
.pop li { display: flex; gap: 14px; margin-bottom: 20px; }
.pop span { font: 700 28px/1 var(--sans); color: var(--line); }
.pop a { font-weight: 700; font-size: 15px; line-height: 1.3; }
.pop small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.pager { display: flex; justify-content: space-between; padding: 32px 0; font-size: 14px; }
.pager a { color: var(--accent); }
h1.page { font: 700 36px/1.2 var(--sans); letter-spacing: -1px; margin: 40px 0 8px; }
.profile { display: flex; gap: 20px; align-items: center; margin: 40px 0 8px; }
.profile h1 { margin: 0; font-size: 32px; }
.profile p { margin: 4px 0 0; color: var(--muted); }

/* Article */
.post { max-width: 680px; margin: 0 auto; padding: 40px 0; }
.post h1 { font: 700 42px/1.15 var(--sans); letter-spacing: -1.2px; margin: 0 0 12px; }
.post .sub { font: 22px/1.4 var(--sans); color: var(--muted); margin: 0 0 28px; }
.byline { display: flex; gap: 12px; align-items: center; padding: 8px 0 24px; }
.byline a { font-weight: 500; }
.cover { margin: 0 0 32px; }
.cover img { width: 100%; }
.content { font: 20px/1.6 var(--serif); letter-spacing: -.003em; overflow-wrap: break-word; }
.content p { margin: 0 0 1.6em; }
.content h2 { font: 700 26px/1.3 var(--sans); margin: 1.8em 0 .4em; letter-spacing: -.4px; }
.content h3 { font: 700 21px/1.3 var(--sans); margin: 1.6em 0 .3em; }
.content a { text-decoration: underline; }
.content blockquote { margin: 0 0 1.6em; padding-left: 20px; border-left: 3px solid var(--ink); font-style: italic; }
.content blockquote p { margin: 0; }
.content ul, .content ol { padding-left: 1.4em; margin: 0 0 1.6em; }
.content li { margin-bottom: .4em; }
.content figure { margin: 2em 0; }
.content figure img { margin: 0 auto; }
.content figcaption { text-align: center; font: 14px var(--sans); color: var(--muted); margin-top: 10px; }
.content code { background: var(--soft); padding: 2px 5px; border-radius: 3px; font-size: .8em; }
.content pre { background: var(--soft); padding: 18px; overflow-x: auto; font-size: 15px; line-height: 1.5; }
.content pre code { background: none; padding: 0; }
.content hr { border: 0; text-align: center; margin: 2.4em 0; }
.content hr::after { content: "· · ·"; letter-spacing: 1em; color: var(--muted); }
.authorbox { display: flex; gap: 16px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.authorbox small { color: var(--muted); }
.authorbox h3 { margin: 2px 0 6px; font-size: 20px; }
.authorbox p { margin: 0; color: var(--muted); font-size: 15px; }
.more { margin: 0 auto 40px; max-width: 680px; }
.foot { max-width: 1100px; margin: 40px auto 0; padding: 24px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

/* CMS */
.cms .top { padding: 10px 16px; }
.who { margin-left: auto; font-size: 14px; color: var(--muted); display: inline-flex; align-items: center; }
.cmsnav { display: flex; gap: 4px; overflow-x: auto; padding: 8px 16px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.cmsnav a { white-space: nowrap; padding: 6px 12px; border-radius: 99px; font-size: 14px; color: var(--muted); }
.cmsnav a.on, .cmsnav a:hover { background: var(--soft); color: var(--ink); }
.badge { background: var(--warn); color: #fff; border-radius: 99px; padding: 0 7px; font-size: 11px; }
.wrap { max-width: 1100px; padding-bottom: 60px; }
.wrap h1 { font-size: 28px; letter-spacing: -.5px; }
.head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.stat { background: var(--soft); border-radius: 8px; padding: 16px; font-size: 13px; color: var(--muted); }
.stat b { display: block; font-size: 28px; color: var(--ink); }
.list { border-top: 1px solid var(--line); }
.row { display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 14px 4px; border-bottom: 1px solid var(--line); }
a.row:hover { background: var(--soft); }
.row > span:first-child { min-width: 0; font-weight: 500; }
.row small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.st { flex: none; font-size: 12px; padding: 3px 10px; border-radius: 99px; background: var(--soft); color: var(--muted); }
.st-review { background: #fff4e5; color: #8a4b00; }
.st-published { background: #e7f3e8; color: #156d12; }
.st-rejected { background: #fdecea; color: var(--danger); }
.filters, .inline { display: flex; gap: 8px; margin: 12px 0; flex-wrap: wrap; }
.inline.grow { flex: 1; margin: 0; }
.inline.grow input { flex: 1; min-width: 0; }
input, select, textarea { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 8px 10px; max-width: 100%; }
label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 14px; }
label input:not([type=checkbox]), label select, label textarea { display: block; width: 100%; margin-top: 4px; }
.check { display: flex; gap: 8px; align-items: center; color: var(--ink); }
.box { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 24px; margin-top: 24px; }
.box.narrow { max-width: 480px; }
.box h2 { font-size: 18px; margin-top: 24px; }
.hint { font-size: 12px; color: var(--muted); }
.cols2 { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.media { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; margin-top: 16px; }
.media figure { margin: 0; }
.media img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; background: var(--soft); }
.media input { width: 100%; font-size: 11px; margin: 6px 0 2px; padding: 4px 6px; }

/* Editor */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; margin-top: 16px; }
.editor fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.ed-status { display: flex; gap: 12px; align-items: center; font-size: 14px; color: var(--muted); }
.ed-title, .ed-sub, .ed-body { display: block; width: 100%; border: 0; padding: 0; background: none; resize: none; outline: none; }
.ed-title { font: 700 40px/1.2 var(--serif); margin: 20px 0 8px; letter-spacing: -.8px; overflow: hidden; }
.ed-sub { font: 22px/1.4 var(--serif); color: var(--muted); overflow: hidden; }
.ed-body { font: 20px/1.6 var(--serif); min-height: 50vh; overflow: hidden; }
.toolbar { position: sticky; top: 56px; z-index: 5; display: flex; gap: 2px; flex-wrap: wrap; margin: 16px 0; padding: 6px 0; background: var(--bg); border-bottom: 1px solid var(--line); }
.toolbar button, .tb-img { border: 0; background: none; min-width: 36px; height: 34px; border-radius: 6px; cursor: pointer; color: var(--ink); font: 15px var(--serif); display: inline-grid; place-items: center; margin: 0; }
.toolbar button:hover, .tb-img:hover { background: var(--soft); }
.ed-side { position: sticky; top: 72px; align-self: start; }
.cover-prev { margin: 6px 0; border-radius: 6px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.del { margin-top: 32px; }

/* Ikon, tema, share, komentar */
.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[data-theme=dark] .i-moon, :root:not([data-theme=dark]) .i-sun { display: none; }
.write { display: inline-flex; align-items: center; gap: 6px; }
.write .i { width: 18px; height: 18px; }
.theme, .share { border: 0; background: none; color: var(--muted); padding: 6px; border-radius: 50%; cursor: pointer; display: inline-grid; place-items: center; }
.theme:hover, .share:hover { color: var(--ink); background: var(--soft); }
.acct { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; }
.card .meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.acts, .actbar { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); }
.acts > span, .actbar > span, .actbar > a { display: inline-flex; align-items: center; gap: 5px; margin-right: 10px; }
.acts .i { width: 17px; height: 17px; }
.actbar { display: flex; padding: 6px 4px; margin: 0 0 32px; border-block: 1px solid var(--line); font-size: 14px; }
.actbar .grow { flex: 1; margin: 0; }
.sharemenu { position: absolute; z-index: 30; min-width: 220px; padding: 8px 0; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 6px 24px rgba(0,0,0,.15); }
.sharemenu a, .sharemenu button { display: block; width: 100%; text-align: left; padding: 9px 18px; border: 0; background: none; color: var(--ink); font: 14px var(--sans); cursor: pointer; }
.sharemenu a:hover, .sharemenu button:hover { background: var(--soft); }
.sharemenu button { border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.comments { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.cform { display: grid; gap: 8px; margin-bottom: 24px; }
.cform input, .cform textarea { width: 100%; }
.cform .btn { justify-self: end; }
.hp { position: absolute; left: -9999px; }
.comment { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.comment p { margin: 8px 0 0; font: 16px/1.55 var(--serif); }
.bigsearch input { width: 100%; font-size: 22px; padding: 14px 18px; border-radius: 99px; margin-top: 32px; background: var(--soft); border: 0; }
.picks { display: grid; gap: 8px; margin-bottom: 16px; }
.pick { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--border); border-radius: 8px; padding: 12px; margin: 0; cursor: pointer; }
.pick b { display: block; color: var(--ink); }
.pick:has(:checked) { border-color: var(--accent); background: var(--soft); }
.tabs { display: flex; gap: 4px; margin-bottom: 12px; }
.tabs a { padding: 6px 14px; border-radius: 99px; font-size: 14px; color: var(--muted); }
.tabs a.on { background: var(--soft); color: var(--ink); }
.row.top { align-items: flex-start; }
.cbody { font-weight: 400; margin: 6px 0 0; font-size: 14px; }
.cms .theme { margin-left: auto; }
.cms .theme + .who { margin-left: 8px; }

/* Menu bawah mengambang (mobile) */
.dock { display: none; }

@media (max-width: 860px) {
  .cols, .cols2, .editor { grid-template-columns: 1fr; gap: 0; }
  .side { position: static; border-top: 1px solid var(--line); margin-top: 16px; }
  .hero { grid-template-columns: 1fr; gap: 16px; padding: 20px 0; }
  .ed-side { position: static; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 24px; }
}
@media (max-width: 600px) {
  .top { padding: 10px 16px; gap: 12px; }
  .logo { font-size: 22px; }
  .top .search, .top .write, .top .theme, .top .acct { display: none; }
  .cms .top .theme { display: inline-grid; }
  body:not(.cms) { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .dock { display: flex; align-items: center; gap: 4px; position: fixed; z-index: 20; left: 50%; transform: translateX(-50%);
    bottom: calc(14px + env(safe-area-inset-bottom)); padding: 6px; border-radius: 999px; border: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    box-shadow: 0 8px 32px rgba(0,0,0,.18); }
  .dock > a, .dock .theme { width: 52px; height: 44px; border-radius: 999px; display: grid; place-items: center; color: var(--muted); padding: 0; }
  .dock > a.on { background: var(--soft); color: var(--ink); }
  .dock .dock-write { background: var(--accent); color: #fff; }
  .dock .avatar { width: 28px; height: 28px; }
  .bigsearch input { margin-top: 20px; font-size: 18px; }
  .card { gap: 16px; padding: 20px 0; }
  .card h2 { font-size: 17px; }
  .card p { font-size: 14px; -webkit-line-clamp: 2; }
  .thumb { width: 80px; height: 80px; }
  .hero h1 { font-size: 26px; }
  .post { padding: 24px 0; }
  .post h1 { font-size: 30px; letter-spacing: -.6px; }
  .post .sub { font-size: 18px; }
  .content { font-size: 18px; line-height: 1.58; }
  .content h2 { font-size: 22px; }
  .ed-title { font-size: 30px; }
  .ed-body { font-size: 18px; }
  .who { display: none; }
  .cms .top .btn { margin-left: auto; }
}
