/* Layout idea: kolom pencarian besar sebagai masthead kedua, hasil disorot stabilo kuning.
   Beranda: berita utama 7/5, kartu berukuran beda-beda, lalu daftar bacaan bernomor. */
:root {
  --paper: #F2F5F6;
  --paper-2: #E3E9EC;
  --ink: #0D1B26;
  --ink-2: #47576A;
  --rule: #B6C2CA;
  --mark: #FFD60A;
  --on-mark: #0D1B26;
  --display: 'Schibsted Grotesk', 'Arial Narrow', Arial, sans-serif;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0A1319;
    --paper-2: #13212B;
    --ink: #E9EFF2;
    --ink-2: #A3B3BE;
    --rule: #2A3B47;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0A1319;
  --paper-2: #13212B;
  --ink: #E9EFF2;
  --ink-2: #A3B3BE;
  --rule: #2A3B47;
  color-scheme: dark;
}
:root[data-theme="light"] { color-scheme: light; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--display); font-size: 1rem; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--mark); text-decoration-thickness: 4px; }
button { font: inherit; color: inherit; cursor: pointer; }
a, button, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--mark); color: var(--on-mark); padding: 10px 14px; font-weight: 700; z-index: 50; border: 2px solid var(--ink); }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* Penanda konten contoh */
.sample-bar { background: var(--ink); color: var(--paper); font-size: .8125rem; }
.sample-bar .wrap { padding-top: 7px; padding-bottom: 7px; }

/* Masthead */
.mast { border-bottom: 2px solid var(--ink); }
.mast-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 14px; flex-wrap: wrap; }
.logo { font-weight: 900; font-size: clamp(1.9rem, 4.6vw, 2.8rem); letter-spacing: -.045em; line-height: 1; text-decoration: none; display: inline-block; }
.logo:hover { text-decoration: none; }
.logo .cari { background: linear-gradient(transparent 52%, var(--mark) 52% 92%, transparent 92%); padding: 0 .06em; margin-right: .02em; color: var(--ink); }
.logo-domain { display: block; font-size: .75rem; font-weight: 500; letter-spacing: .02em; color: var(--ink-2); margin-top: 4px; }
.mast-tools { display: flex; align-items: center; gap: 14px; font-size: .875rem; color: var(--ink-2); }
.date { font-variant-numeric: tabular-nums; }
.theme-btn { border: 1.5px solid var(--ink); background: transparent; border-radius: 4px; padding: 7px 12px; font-size: .8125rem; font-weight: 700; min-height: 40px; }
.theme-btn:hover { background: var(--ink); color: var(--paper); }

.cats { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 0; margin: 0; padding-left: 0; list-style: none; border-top: 1px solid var(--rule); scrollbar-width: thin; }
.cats a { display: block; padding: 11px 14px; font-weight: 700; font-size: .9375rem; text-decoration: none; white-space: nowrap; border-bottom: 4px solid transparent; }
.cats a:hover { background: var(--paper-2); }
.cats a[aria-current="page"] { border-bottom-color: var(--mark); box-shadow: inset 0 -1px 0 var(--ink); }

/* Zona pencarian */
.searchzone { padding: 36px 0 30px; border-bottom: 1px solid var(--rule); }
body.is-home .searchzone { padding: 52px 0 46px; }
.hero-title { font-weight: 900; font-size: clamp(2.2rem, 6.2vw, 4.6rem); line-height: 1; letter-spacing: -.04em; margin: 0 0 28px; max-width: 16ch; text-wrap: balance; }
.hero-title mark { background: var(--mark); color: var(--on-mark); padding: 0 .08em; }
.search { display: flex; gap: 0; max-width: 820px; border: 2px solid var(--ink); border-radius: 6px; background: var(--paper); }
.search:focus-within { outline: 3px solid var(--ink); outline-offset: 3px; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 1.125rem; font-weight: 500; padding: 16px 16px; outline: none; border-radius: 6px 0 0 6px; }
body.is-home .search input { font-size: 1.375rem; padding: 20px 18px; }
.search input::placeholder { color: var(--ink-2); opacity: 1; }
.search-go { border: 0; border-left: 2px solid var(--ink); background: var(--mark); color: var(--on-mark); font-weight: 800; padding: 0 24px; border-radius: 0 4px 4px 0; font-size: 1rem; white-space: nowrap; }
.search-go:hover { background: var(--ink); color: var(--paper); }
.search-clear { border: 0; background: transparent; color: var(--ink-2); padding: 0 14px; font-weight: 700; font-size: .875rem; }
.search-clear:hover { color: var(--ink); text-decoration: underline; }
.hints { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 16px; font-size: .875rem; color: var(--ink-2); }
.chip { border: 1.5px solid var(--rule); background: transparent; border-radius: 4px; padding: 5px 11px; font-weight: 700; font-size: .875rem; color: var(--ink); min-height: 36px; }
.chip:hover { border-color: var(--ink); background: var(--mark); color: var(--on-mark); }
kbd { font: inherit; font-weight: 800; border: 1.5px solid var(--ink-2); border-radius: 4px; padding: 0 6px; font-size: .8125rem; }

main { padding-bottom: 72px; outline: none; }
.kicker { font-size: .8125rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-top: 2px solid var(--ink); padding-top: 10px; margin: 52px 0 22px; }
.sec-head h2 { margin: 0; font-size: 1.375rem; font-weight: 900; letter-spacing: -.02em; }
.tag { display: inline-block; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--paper-2); padding: 3px 8px; border-radius: 3px; color: var(--ink); }
.meta { font-size: .8125rem; color: var(--ink-2); font-weight: 500; }
.cover { display: block; width: 100%; aspect-ratio: 4 / 3; background: var(--paper-2); border: 1px solid var(--rule); border-radius: 4px; }
.cover .c-ink { fill: var(--ink); } .cover .c-mark { fill: var(--mark); }
.cover .s-ink { stroke: var(--ink); fill: none; } .cover .s-mark { stroke: var(--mark); fill: none; }
.cover-note { font-size: .75rem; color: var(--ink-2); margin-top: 4px; }

/* Beranda */
.lead-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 40px; padding-top: 34px; }
.lead h3 { font-size: clamp(1.9rem, 4vw, 3.1rem); line-height: 1.04; letter-spacing: -.03em; font-weight: 900; margin: 14px 0 12px; text-wrap: balance; }
.lead h3 a, .item h3 a, .card h3 a, .row h3 a, .rank h3 a { text-decoration: none; }
.lead h3 a:hover, .item h3 a:hover, .card h3 a:hover, .row h3 a:hover, .rank h3 a:hover { text-decoration: underline; text-decoration-color: var(--mark); text-decoration-thickness: 5px; text-underline-offset: 4px; }
.deck { font-family: var(--serif); font-size: 1.1875rem; line-height: 1.5; color: var(--ink-2); margin: 0 0 12px; max-width: 58ch; }
.side { display: flex; flex-direction: column; }
.item { display: grid; grid-template-columns: 1fr 112px; gap: 16px; padding: 18px 0; border-top: 1px solid var(--rule); }
.item:first-child { border-top: 0; padding-top: 0; }
.item h3 { font-size: 1.3125rem; line-height: 1.14; letter-spacing: -.02em; font-weight: 800; margin: 8px 0 6px; text-wrap: balance; }
.item .cover { aspect-ratio: 1; align-self: start; }
.cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 30px 28px; }
.card { grid-column: span 2; }
.card:nth-child(1), .card:nth-child(2) { grid-column: span 3; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-3 .card, .cards-3 .card:nth-child(n) { grid-column: auto; }
.cards-3 .card h3, .cards-3 .card:nth-child(n) h3 { font-size: 1.25rem; }
.card h3 { font-size: 1.25rem; line-height: 1.15; letter-spacing: -.02em; font-weight: 800; margin: 12px 0 6px; text-wrap: balance; }
.card:nth-child(1) h3, .card:nth-child(2) h3 { font-size: 1.625rem; }
.card .deck { font-size: 1rem; }
.ranks { list-style: none; margin: 0; padding: 0; counter-reset: rk; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; }
.rank { display: grid; grid-template-columns: 52px 1fr; gap: 6px; padding: 16px 0; border-top: 1px solid var(--rule); counter-increment: rk; }
.rank::before { content: counter(rk, decimal-leading-zero); font-weight: 900; font-size: 2.1rem; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; background: linear-gradient(transparent 62%, var(--mark) 62% 92%, transparent 92%); align-self: start; width: max-content; }
.rank h3 { margin: 0 0 4px; font-size: 1.125rem; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; }

/* Daftar (rubrik dan hasil) */
.page-title { font-size: clamp(2.2rem, 5.5vw, 3.8rem); font-weight: 900; letter-spacing: -.04em; line-height: 1; margin: 34px 0 8px; text-wrap: balance; }
.page-sub { color: var(--ink-2); margin: 0 0 22px; }
.rows { display: flex; flex-direction: column; }
.row { display: grid; grid-template-columns: 1fr 200px; gap: 28px; padding: 22px 0; border-top: 1px solid var(--rule); }
.row h3 { font-size: 1.5rem; line-height: 1.12; letter-spacing: -.025em; font-weight: 800; margin: 8px 0 8px; text-wrap: balance; }
.row p { font-family: var(--serif); color: var(--ink-2); margin: 0 0 8px; max-width: 62ch; }
mark { background: var(--mark); color: var(--on-mark); padding: 0 .08em; border-radius: 2px; }
.empty { border: 2px dashed var(--rule); border-radius: 6px; padding: 34px 26px; max-width: 640px; margin-top: 12px; }
.empty h2 { margin: 0 0 8px; font-size: 1.5rem; font-weight: 900; letter-spacing: -.02em; }
.empty p { margin: 0 0 14px; color: var(--ink-2); }
.skel { display: grid; gap: 14px; padding-top: 34px; }
.skel i { display: block; height: 22px; background: var(--paper-2); border-radius: 3px; }
.skel i:nth-child(1) { height: 56px; width: 70%; } .skel i:nth-child(2) { width: 90%; } .skel i:nth-child(3) { width: 60%; }
@media (prefers-reduced-motion: no-preference) { .skel i { animation: pulse 1s ease-in-out infinite alternate; } @keyframes pulse { to { opacity: .45; } } }

/* Artikel */
.crumbs { font-size: .875rem; color: var(--ink-2); margin: 26px 0 0; }
.article-head { max-width: 860px; }
.article-head h1 { font-size: clamp(2.2rem, 5.4vw, 4rem); font-weight: 900; letter-spacing: -.04em; line-height: 1.02; margin: 14px 0 16px; text-wrap: balance; }
.article-head .deck { font-size: 1.375rem; font-style: italic; }
.article-cover { max-width: 860px; margin: 26px 0 8px; }
.article-cover .cover { aspect-ratio: 16 / 7; }
.prose { max-width: 66ch; font-family: var(--serif); font-size: 1.25rem; line-height: 1.72; margin: 28px 0 0; }
.prose p { margin: 0 0 1.15em; }
.share { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--rule); max-width: 66ch; }
.btn { border: 2px solid var(--ink); background: var(--mark); color: var(--on-mark); font-weight: 800; padding: 10px 16px; border-radius: 4px; min-height: 44px; }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn.quiet { background: transparent; color: var(--ink); }
.btn.quiet:hover { background: var(--ink); color: var(--paper); }
.share input { flex: 1 1 260px; min-width: 0; border: 1.5px solid var(--rule); background: transparent; color: var(--ink-2); font: inherit; font-size: .875rem; padding: 10px 12px; border-radius: 4px; min-height: 44px; }
#progress { position: fixed; left: 0; top: 0; height: 4px; width: 100%; background: var(--mark); transform-origin: 0 50%; transform: scaleX(0); z-index: 40; }
.notice { border-left: 6px solid var(--mark); background: var(--paper-2); padding: 14px 16px; max-width: 66ch; margin-top: 22px; font-size: .9375rem; }

/* Tentang */
.about { max-width: 66ch; font-family: var(--serif); font-size: 1.125rem; line-height: 1.7; }
.about dl { display: grid; grid-template-columns: 11rem 1fr; gap: 10px 20px; font-family: var(--display); font-size: 1rem; margin: 24px 0 0; }
.about dt { font-weight: 800; } .about dd { margin: 0; color: var(--ink-2); }

footer { border-top: 2px solid var(--ink); padding: 34px 0 44px; }
.foot { display: grid; grid-template-columns: 1.2fr 2fr; gap: 32px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; font-weight: 700; }
.foot p { margin: 8px 0 0; color: var(--ink-2); font-size: .875rem; max-width: 44ch; }
#toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 4px; font-weight: 700; z-index: 60; }

@media (max-width: 900px) {
  .lead-grid { grid-template-columns: 1fr; gap: 28px; }
  .cards, .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .card, .card:nth-child(n), .cards-3 .card:nth-child(n) { grid-column: span 1; }
  .card:nth-child(1) { grid-column: span 2; }
  .cards-3 .card:nth-child(1) { grid-column: span 1; }
  .ranks { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .cards, .cards-3 { grid-template-columns: 1fr; }
  .card:nth-child(1) { grid-column: span 1; }
  .row { grid-template-columns: 1fr; gap: 12px; }
  .row .cover { aspect-ratio: 16 / 9; order: -1; }
  .item { grid-template-columns: 1fr 88px; }
  .search { flex-wrap: wrap; }
  .search input { flex: 1 1 100%; border-radius: 6px 6px 0 0; }
  .search-go { flex: 1; padding: 14px; border-left: 0; border-top: 2px solid var(--ink); border-radius: 0 0 4px 4px; }
  .mast-tools .date { display: none; }
  .about dl { grid-template-columns: 1fr; gap: 2px; } .about dd { margin-bottom: 10px; }
}

/* Tambahan untuk situs statis */
.tool-link { display: inline-flex; align-items: center; border: 1.5px solid var(--ink); border-radius: 4px; padding: 7px 12px; font-size: .8125rem; font-weight: 700; min-height: 40px; text-decoration: none; }
.tool-link:hover { background: var(--ink); color: var(--paper); text-decoration: none; }
a.chip { display: inline-flex; align-items: center; text-decoration: none; }
a.chip:hover { text-decoration: none; }
img.cover { object-fit: cover; }
.article-cover img.cover { aspect-ratio: 16 / 9; }
.article-cover svg.cover { aspect-ratio: 16 / 7; }
.article-cover figure { margin: 0; }
.prose h2 { font-family: var(--display); font-size: 1.75rem; line-height: 1.15; letter-spacing: -.025em; font-weight: 900; margin: 1.6em 0 .6em; }
.prose h3 { font-family: var(--display); font-size: 1.35rem; line-height: 1.2; letter-spacing: -.02em; font-weight: 800; margin: 1.4em 0 .5em; }
.prose ul, .prose ol { margin: 0 0 1.15em; padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin: 1.4em 0; padding: 2px 0 2px 18px; border-left: 6px solid var(--mark); font-style: italic; }
.prose blockquote p { margin: 0 0 .6em; }
.prose a { text-decoration-color: var(--mark); text-decoration-thickness: 3px; }
.byline { margin: 0; }
.pager { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--rule); }
.btn-link { display: inline-block; text-decoration: none; }
.btn-link:hover { text-decoration: none; }
.about ul { list-style: none; margin: 18px 0; padding: 0; display: grid; gap: 8px; font-family: var(--display); font-size: 1rem; }
.about h2 { font-family: var(--display); font-size: 1.4rem; font-weight: 900; letter-spacing: -.02em; margin: 1.6em 0 .5em; }
.lead-h { font-size: clamp(1.9rem, 4vw, 3.1rem); line-height: 1.04; letter-spacing: -.03em; font-weight: 900; margin: 14px 0 12px; text-wrap: balance; }
.lead-h a { text-decoration: none; }
.lead-h a:hover { text-decoration: underline; text-decoration-color: var(--mark); text-decoration-thickness: 5px; text-underline-offset: 4px; }
