:root {
  color-scheme: light;
  --paper: #f7f6f2;
  --surface: #fffefa;
  --ink: #272a26;
  --muted: #898b83;
  --line: #e9e7df;
  --green: #587456;
  --green-dark: #3e5b3e;
  --green-pale: #edf1e9;
  --gold: #b6a36f;
  font-family: "DM Sans", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); }
a { color: inherit; }
button, input { font: inherit; }
button { color: inherit; }

.site-header { position: sticky; top: 0; z-index: 4; display: flex; height: 74px; align-items: center; justify-content: space-between; padding: 0 max(7vw, calc((100vw - 1180px) / 2)); border-bottom: 1px solid var(--line); background: rgb(247 246 242 / 94%); backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 800 24px "Segoe UI", sans-serif; letter-spacing: -1.5px; }
.brand-mark { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 11px 11px 11px 4px; background: var(--green); color: white; font: 700 20px "Segoe UI", sans-serif; letter-spacing: -2px; }
.brand-period { color: var(--gold); }
.site-nav { display: flex; align-items: center; gap: 31px; }
.site-nav a { color: #777970; text-decoration: none; font-size: 11px; transition: color .16s; }
.site-nav a:hover { color: var(--green-dark); }
.site-nav a span { color: #aaa99f; font-size: 10px; }
.site-nav .admin-login-link { display: inline-flex; min-height: 34px; align-items: center; padding: 0 12px; border: 1px solid #d6dfd0; border-radius: 5px; background: var(--green-pale); color: var(--green-dark); font-weight: 600; }
.site-nav .admin-login-link:hover { border-color: #b7c5ae; background: #e4ebdf; }

.hero { position: relative; overflow: hidden; min-height: 390px; padding: 87px max(11vw, calc((100vw - 1080px) / 2)) 68px; border-bottom: 1px solid var(--line); background: linear-gradient(110deg, #f3f2ec 0%, #f7f6f2 63%, #eeefe7 100%); }
.eyebrow { margin: 0 0 15px; color: #96978c; font-size: 9px; font-weight: 700; letter-spacing: 1.5px; }
.hero h1 { position: relative; z-index: 1; margin: 0; font: 600 clamp(43px, 6vw, 68px)/1.12 "Segoe UI", sans-serif; letter-spacing: -3.4px; }
.hero h1 span { color: var(--green); }
.hero-copy { position: relative; z-index: 1; max-width: 410px; margin: 17px 0 0; color: #777970; font-size: 12px; line-height: 1.8; }
.hero-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 23px; }
.hero-link, .hero-admin-link { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; gap: 9px; padding: 0 13px; border: 1px solid var(--green); border-radius: 5px; background: var(--green); color: white; text-decoration: none; font-size: 10px; font-weight: 600; transition: background .16s, border-color .16s; }
.hero-link:hover { border-color: var(--green-dark); background: var(--green-dark); }
.hero-admin-link { border-color: #d6dfd0; background: rgb(255 254 250 / 75%); color: var(--green-dark); }
.hero-admin-link:hover { border-color: #b7c5ae; background: #fffefa; }
.hero-link span { font-size: 15px; transition: transform .16s; }
.hero-link:hover span { transform: translateY(3px); }
.hero-admin-link span { color: #96978c; font-size: 10px; }
.hero-decoration { position: absolute; top: 67px; right: max(11vw, calc((100vw - 1080px) / 2)); color: rgb(182 163 111 / 20%); font-size: 196px; line-height: 1; }

.posts-section { max-width: 1080px; min-height: 470px; margin: 0 auto; padding: 69px 20px 82px; scroll-margin-top: 85px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.section-heading .eyebrow { margin-bottom: 9px; }
.section-heading h2 { margin: 0; font: 600 30px "Segoe UI", sans-serif; letter-spacing: -1.2px; }
.search-box { display: flex; width: 224px; height: 35px; align-items: center; gap: 8px; padding: 0 9px; border: 1px solid #e6e4dc; border-radius: 6px; background: #fbfaf6; color: #96978f; }
.search-icon { font-size: 21px; line-height: 1; transform: rotate(-20deg); }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 10px; }
.search-box input::placeholder { color: #a4a49c; }
kbd { padding: 2px 5px; border: 1px solid #e6e4dc; border-radius: 3px; color: #9a9b93; font: 10px "Segoe UI", sans-serif; }
.topic-filters { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 25px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.filter-chip { min-height: 29px; padding: 0 11px; border: 1px solid transparent; border-radius: 20px; background: transparent; color: #85867e; cursor: pointer; font-size: 9px; transition: background .16s, color .16s, border-color .16s; }
.filter-chip:hover { background: #efeee8; }
.filter-chip.active { border-color: #d6dfd0; background: var(--green-pale); color: var(--green-dark); font-weight: 600; }
.result-count { margin: 14px 0 0; color: #a0a097; font-size: 9px; }
.posts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin-top: 14px; }
.post-card { display: flex; min-height: 225px; flex-direction: column; padding: 20px 19px 17px; border: 1px solid #ebe9e2; border-radius: 8px; background: var(--surface); transition: transform .18s, box-shadow .18s, border-color .18s; }
.post-card:focus-within { outline: 3px solid rgb(88 116 86 / 20%); outline-offset: 2px; }
.post-card:hover { transform: translateY(-3px); border-color: #d8ddcf; box-shadow: 0 15px 40px rgb(46 51 39 / 8%); }
.post-card[hidden] { display: none; }
.post-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #a1a198; font-size: 9px; }
.category-pill { display: inline-flex; width: max-content; align-items: center; padding: 5px 8px; border-radius: 20px; background: #f0edf4; color: #82708f; font-size: 9px; font-weight: 600; }
.category-bahasa { background: #f5eee7; color: #a2734f; }
.category-teknologi { background: #eaf0e8; color: #668162; }
.category-belajar { background: #eaf0f3; color: #63839a; }
.post-card h2 { margin: 17px 0 8px; font: 600 16px/1.45 "Segoe UI", sans-serif; letter-spacing: -.3px; }
.post-card h2 a { text-decoration: none; }
.post-card h2 a:hover { color: var(--green-dark); }
.post-card > p { margin: 0; color: #85867f; font-size: 10px; line-height: 1.75; }
.read-link { display: inline-flex; align-items: center; gap: 5px; margin-top: auto; padding-top: 17px; color: #77866e; text-decoration: none; font-size: 9px; font-weight: 600; }
.read-link span { transition: transform .16s; }
.read-link:hover span { transform: translateX(3px); }
.no-results { padding: 55px 0; color: var(--muted); text-align: center; font-size: 12px; }
.site-footer { display: flex; min-height: 79px; align-items: center; justify-content: space-between; gap: 15px; padding: 18px max(7vw, calc((100vw - 1180px) / 2)); border-top: 1px solid var(--line); color: #999a91; font-size: 9px; }
.footer-brand { color: #55574f; text-decoration: none; font: 800 17px "Segoe UI", sans-serif; letter-spacing: -1px; }
.site-footer > a:last-child { color: #77866e; text-decoration: none; }

.article-layout { display: grid; grid-template-columns: minmax(0, 720px) minmax(170px, 230px); gap: 65px; max-width: 1080px; min-height: calc(100vh - 153px); margin: 0 auto; padding: 40px 20px 75px; }
.breadcrumbs { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 9px; color: #a1a198; font-size: 10px; }
.breadcrumbs a { color: #74836e; text-decoration: none; }
.article-header { padding: 19px 0 26px; border-bottom: 1px solid var(--line); }
.article-header h1 { max-width: 690px; margin: 15px 0 10px; font: 600 clamp(30px, 4vw, 43px)/1.22 "Segoe UI", sans-serif; letter-spacing: -1.7px; }
.article-excerpt { max-width: 620px; margin: 0 0 17px; color: #777970; font-size: 13px; line-height: 1.75; }
.article-header time { color: #a1a198; font-size: 10px; }
.article-body { padding: 25px 0 8px; color: #50534c; font: 15px/1.9 Georgia, serif; overflow-wrap: anywhere; }
.article-body h2, .article-body h3, .article-body h4 { margin: 1.8em 0 .55em; color: var(--ink); font-family: "Segoe UI", sans-serif; line-height: 1.35; }
.article-body h2 { font-size: 23px; }.article-body h3 { font-size: 19px; }.article-body h4 { font-size: 16px; }
.article-body p { margin: 0 0 1.25em; }
.article-body a { color: var(--green-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article-body ul, .article-body ol { padding-left: 1.4em; }
.article-body li { margin: .35em 0; }
.article-body blockquote { margin: 1.5em 0; padding: 4px 0 4px 18px; border-left: 3px solid #b9c4b1; color: #777970; }
.article-body pre { overflow-x: auto; padding: 14px; border-radius: 6px; background: #efeee8; font: 12px/1.6 ui-monospace, monospace; }
.article-body code { padding: 2px 4px; border-radius: 3px; background: #efeee8; font: .88em ui-monospace, monospace; }
.article-body pre code { padding: 0; background: transparent; }
.article-body table { width: 100%; border-collapse: collapse; font-size: 13px; }
.article-body th, .article-body td { padding: 8px; border: 1px solid var(--line); text-align: left; }
.article-end { margin-top: 46px; padding-top: 24px; border-top: 1px solid var(--line); text-align: center; }
.end-mark { color: var(--gold); font-size: 24px; }
.article-end p { color: #92938a; font: italic 12px Georgia, serif; }
.article-end a { display: inline-block; margin-top: 8px; color: var(--green-dark); text-decoration: none; font-size: 10px; font-weight: 600; }
.article-aside { align-self: start; margin-top: 91px; padding: 17px; border: 1px solid #ebe9e2; border-radius: 7px; background: #fbfaf6; }
.article-aside .eyebrow { margin-bottom: 13px; font-size: 8px; }
.article-aside ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.article-aside li a { color: #65675f; text-decoration: none; font: 500 11px/1.5 "Segoe UI", sans-serif; }
.article-aside li a:hover { color: var(--green-dark); }
.aside-all { display: inline-block; margin-top: 16px; color: #77866e; text-decoration: none; font-size: 9px; font-weight: 600; }
.not-found { max-width: 700px; min-height: calc(100vh - 153px); margin: 0 auto; padding: 110px 20px; text-align: center; }
.not-found h1 { font-size: 48px; }
.not-found p { color: var(--muted); font-size: 13px; }
.not-found a { color: var(--green-dark); text-decoration: none; font-size: 11px; }
.site-status { margin: 15px 0 0; padding: 11px 13px; border: 1px solid #ead9c5; border-radius: 6px; background: #fbf4e9; color: #806541; font-size: 10px; }

.admin-page { min-height: 100vh; display: flex; flex-direction: column; }
.admin-page .site-header { width: 100%; }
.admin-back-link { color: #77866e; text-decoration: none; font-size: 10px; }
.admin-main { flex: 1; width: min(1040px, 100%); margin: 0 auto; padding: 48px 20px 70px; }
.admin-intro { margin-bottom: 27px; }
.admin-intro .eyebrow { margin-bottom: 9px; }
.admin-intro h1 { margin: 0; font: 600 34px "Segoe UI", sans-serif; letter-spacing: -1.5px; }
.admin-intro > p:last-child { margin: 8px 0 0; color: var(--muted); font-size: 11px; }
.admin-panel { margin-top: 16px; padding: 23px; border: 1px solid #ebe9e2; border-radius: 8px; background: var(--surface); }
.admin-panel h2 { margin: 0; font: 600 18px "Segoe UI", sans-serif; letter-spacing: -.4px; }
.panel-description { margin: 7px 0 16px; color: #888980; font-size: 10px; line-height: 1.65; }
.login-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(350px, 1.1fr); overflow: hidden; border: 1px solid #e8e6de; border-radius: 10px; background: var(--surface); box-shadow: 0 16px 46px rgb(46 51 39 / 6%); }
.login-layout[hidden] { display: none; }
.login-context { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 40px; background: linear-gradient(145deg, #edf1e9, #f3f2ec); }
.login-context-icon { display: grid; width: 43px; height: 43px; place-items: center; margin-bottom: 24px; border: 1px solid #d6dfd0; border-radius: 13px 13px 13px 4px; background: rgb(255 254 250 / 75%); color: var(--green); font-size: 20px; }
.login-context .eyebrow { margin-bottom: 9px; }
.login-context h2 { margin: 0; font: 600 26px/1.3 "Segoe UI", sans-serif; letter-spacing: -.8px; }
.login-context > p:not(.eyebrow) { max-width: 310px; margin: 11px 0 0; color: #777970; font-size: 11px; line-height: 1.8; }
.login-context > a { margin-top: 26px; color: var(--green-dark); text-decoration: none; font-size: 10px; font-weight: 600; }
.login-context > a:hover { text-decoration: underline; text-underline-offset: 3px; }
.login-panel { margin: 0; padding: 37px; border: 0; border-radius: 0; box-shadow: none; }
.admin-panel form { display: grid; }
.admin-panel form > label:not(.publish-toggle) { margin: 16px 0 7px; color: #55574f; font-size: 11px; font-weight: 600; }
.admin-panel input:not([type="checkbox"]), .admin-panel textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #e2e0d8; border-radius: 6px; outline: none; background: #fcfbf7; color: var(--ink); font: 12px "DM Sans", "Segoe UI", sans-serif; transition: border-color .16s, box-shadow .16s; }
.admin-panel textarea { resize: vertical; line-height: 1.7; }
.admin-panel input:focus, .admin-panel textarea:focus { border-color: #9eaf96; box-shadow: 0 0 0 3px rgb(120 151 110 / 12%); }
.admin-panel input:focus-visible, .admin-panel textarea:focus-visible, .admin-panel button:focus-visible, .site-nav a:focus-visible, .site-header a:focus-visible { outline: 3px solid rgb(88 116 86 / 30%); outline-offset: 2px; }
.admin-panel input[readonly] { background: #f0efe9; color: #85867e; }
.admin-panel input:disabled, .admin-panel button:disabled { cursor: not-allowed; opacity: .6; }
.login-actions { display: grid; align-items: center; gap: 12px; margin-top: 20px; }
.login-actions .primary-button { width: 100%; min-height: 45px; }
.login-actions .text-button { justify-self: center; margin: 0; padding: 7px; font-size: 10px; }
.admin-notice { margin: 12px 0; padding: 11px 13px; border: 1px solid #ead9c5; border-radius: 6px; background: #fbf4e9; color: #806541; font-size: 10px; line-height: 1.6; }
.admin-notice.success { border-color: #d6dfd0; background: var(--green-pale); color: var(--green-dark); }
.admin-workspace[hidden], .admin-panel[hidden] { display: none; }
.admin-toolbar, .editor-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.admin-toolbar { margin-bottom: 13px; }
.admin-toolbar .eyebrow { margin-bottom: 4px; }
.admin-toolbar > div > p:last-child { overflow: hidden; margin: 0; color: #686a62; font-size: 11px; text-overflow: ellipsis; }
.editor-heading .eyebrow { margin-bottom: 5px; font-size: 8px; }
.editor-heading h2 { font-size: 17px; }
.secondary-button { min-height: 40px; padding: 0 12px; border: 1px solid #e2e0d8; border-radius: 6px; background: #fbfaf6; color: #66685f; cursor: pointer; font-size: 11px; transition: border-color .16s, color .16s, background .16s; }
.secondary-button:hover { border-color: #bdc8b7; color: var(--green-dark); }
.field-help { margin: 5px 0 0; color: #9a9b92; font-size: 9px; line-height: 1.5; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.form-row > div { min-width: 0; }
.field-heading { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.field-heading label { color: #55574f; font-size: 11px; font-weight: 600; }
.field-heading #body-count { color: #999a91; font-size: 10px; }
.editor-tabs { display: flex; gap: 4px; margin-top: 8px; padding: 4px; border-radius: 7px; background: #f0efe9; }
.editor-tab { min-height: 36px; flex: 1; border: 0; border-radius: 5px; background: transparent; color: #777970; cursor: pointer; font-size: 10px; }
.editor-tab.active { background: var(--surface); color: var(--green-dark); font-weight: 600; box-shadow: 0 1px 4px rgb(39 42 38 / 8%); }
#post-body { min-height: 300px; margin-top: 8px; font: 12px/1.75 ui-monospace, SFMono-Regular, Consolas, monospace; }
.markdown-preview { min-height: 300px; margin-top: 8px; padding: 18px; border: 1px solid #e2e0d8; border-radius: 6px; background: #fffefa; color: #50534c; font: 13px/1.8 Georgia, serif; overflow-wrap: anywhere; }
.markdown-preview:empty::before { color: #999a91; content: "Pratinjau tulisan akan muncul di sini."; font-style: italic; }
.markdown-preview h1, .markdown-preview h2, .markdown-preview h3 { color: var(--ink); font-family: "Segoe UI", sans-serif; line-height: 1.35; }
.markdown-preview h1 { font-size: 23px; }.markdown-preview h2 { font-size: 19px; }.markdown-preview h3 { font-size: 16px; }
.markdown-preview a { color: var(--green-dark); }
.markdown-preview blockquote { margin-left: 0; padding-left: 13px; border-left: 3px solid #b9c4b1; color: #777970; }
.markdown-preview pre { overflow-x: auto; padding: 12px; border-radius: 5px; background: #efeee8; }
.markdown-preview code { font: .9em ui-monospace, monospace; }
.editor-status { min-height: 16px; margin: 9px 0 0; color: #85867e; font-size: 10px; }
.editor-status[data-dirty="true"] { color: #98744e; }
.editor-status[data-saved="true"] { color: var(--green-dark); }
.publish-toggle { display: flex; align-items: center; gap: 8px; margin-top: 16px; color: #676960; font-size: 10px; }
.publish-toggle input { accent-color: var(--green); }
.editor-actions { position: sticky; bottom: 8px; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px -8px -8px; padding: 12px 8px 8px; border-top: 1px solid var(--line); background: rgb(255 254 250 / 96%); backdrop-filter: blur(10px); }
.editor-action-right { display: flex; align-items: center; gap: 9px; margin-left: auto; }
.delete-button { padding: 8px 0; border: 0; background: transparent; color: #ab7064; cursor: pointer; font-size: 10px; }
.admin-post-list { display: grid; gap: 7px; margin: 15px 0 0; padding: 0; list-style: none; }
.admin-post-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px; border: 1px solid #efede7; border-radius: 5px; }
.admin-post-summary { display: grid; min-width: 0; gap: 4px; }
.admin-post-summary strong { overflow: hidden; font: 600 11px "Segoe UI", sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.admin-post-summary span { color: #96978e; font-size: 9px; }
.post-list-panel { margin-top: 16px; }

@media (min-width: 1450px) { .posts-section { padding-top: 82px; } .posts-grid { gap: 18px; } .post-card { min-height: 238px; padding: 22px; } }
@media (max-width: 850px) { .posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .article-layout { gap: 28px; } .article-aside { padding: 13px; } }
@media (max-width: 650px) {
  .site-header { height: 62px; padding: 0 19px; }
  .brand { gap: 8px; font-size: 21px; }
  .brand-mark { width: 30px; height: 30px; font-size: 18px; }
  .site-nav { gap: 12px; }
  .site-nav a { font-size: 10px; }
  .site-nav .admin-login-link { min-height: 31px; padding: 0 9px; }
  .hero { min-height: 345px; padding: 72px 25px 50px; }
  .hero h1 { font-size: clamp(44px, 12vw, 58px); letter-spacing: -2.7px; }
  .hero-copy { max-width: 330px; font-size: 11px; }
  .hero-decoration { top: 138px; right: 3px; font-size: 112px; }
  .hero-actions { gap: 8px; }
  .hero-link, .hero-admin-link { min-height: 35px; padding: 0 10px; font-size: 9px; }
  .posts-section { padding: 48px 19px 58px; }
  .section-heading { flex-direction: column; align-items: stretch; gap: 13px; }
  .section-heading h2 { font-size: 25px; }
  .section-heading .search-box { width: 100%; height: 42px; justify-content: flex-start; padding: 0 10px; }
  .section-heading .search-box input { display: block; font-size: 12px; }
  .section-heading .search-box kbd { display: none; }
  .topic-filters { flex-wrap: nowrap; overflow-x: auto; margin-right: -19px; margin-left: -19px; padding: 0 19px 13px; scrollbar-width: none; }
  .topic-filters::-webkit-scrollbar { display: none; }
  .filter-chip { flex: 0 0 auto; }
  .posts-grid { grid-template-columns: 1fr; gap: 11px; }
  .post-card { min-height: 190px; padding: 17px; }
  .site-footer { flex-wrap: wrap; justify-content: center; padding: 19px; text-align: center; }
  .site-footer > span { flex-basis: calc(100% - 60px); text-align: left; }
  .site-footer > a:last-child { flex-basis: 100%; }
  .article-layout { display: flex; flex-direction: column; gap: 0; padding: 27px 20px 50px; }
  .breadcrumbs { margin-bottom: 20px; font-size: 9px; }
  .article-header { padding: 10px 0 21px; }
  .article-header h1 { font-size: 32px; letter-spacing: -1.2px; }
  .article-excerpt { font-size: 12px; }
  .article-body { font-size: 14px; }
  .article-body h2 { font-size: 21px; }
  .article-aside { margin-top: 36px; }
  .not-found { min-height: calc(100vh - 141px); padding-top: 90px; }
  .admin-main { padding: 34px 16px 49px; }
  .admin-panel { padding: 18px; }
  .login-layout { grid-template-columns: 1fr; }
  .login-context { padding: 23px; }
  .login-context-icon { width: 36px; height: 36px; margin-bottom: 14px; font-size: 17px; }
  .login-context h2 { font-size: 22px; }
  .login-context > a { margin-top: 16px; }
  .login-panel { padding: 22px; }
  .admin-intro h1 { font-size: 30px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .login-actions { gap: 8px; }
  .admin-post-summary strong { max-width: 52vw; }
  .admin-toolbar { align-items: flex-start; }
  .admin-toolbar .secondary-button { min-height: 40px; }
  .editor-heading { align-items: flex-start; }
  .editor-heading .secondary-button { min-height: 40px; }
  .editor-actions { bottom: 0; margin-right: -18px; margin-left: -18px; padding: 11px 18px calc(11px + env(safe-area-inset-bottom)); }
  .editor-action-right { gap: 6px; }
  .editor-action-right .primary-button, .editor-action-right .secondary-button { min-height: 44px; padding: 0 10px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; } }
