/* ============================================================
   THE LEDGER — demo showcase G802 (Zalin Labs)
   Portal berita editorial. Newsprint putih + hitam + marun.
   ============================================================ */
:root {
  --paper: #fafaf7;
  --paper-band: #f2f1ea;
  --ink: #171717;
  --ink-dim: rgba(23, 23, 23, 0.62);
  --ink-faint: rgba(23, 23, 23, 0.45);
  --maroon: #7d1d2c;
  --maroon-deep: #5f1421;
  --green: #166534;
  --line: rgba(23, 23, 23, 0.16);
  --line-strong: #171717;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --serif-disp: "Playfair Display", Georgia, serif;
  --serif-body: "Lora", Georgia, serif;
  --radius: 4px;
  --nav-h: 62px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--serif-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.66;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; color: inherit; }
ul { list-style: none; }
::selection { background: var(--maroon); color: #fff; }
:focus-visible { outline: 3px solid var(--maroon); outline-offset: 2px; border-radius: 2px; }
[hidden] { display: none !important; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--maroon); color: #fff;
  padding: 12px 18px; border-radius: 0 0 12px 12px;
  font-family: var(--sans); font-weight: 700; text-decoration: none; transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

/* ---------- tombol ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 12px 22px;
  font-family: var(--sans); font-weight: 600; font-size: 0.92rem;
  text-decoration: none; border: 2px solid transparent; line-height: 1.2;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn-solid { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-solid:hover { background: #000; border-color: #000; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn .ic { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250, 250, 247, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 18px; min-height: var(--nav-h); }
.brand {
  font-family: var(--serif-disp); font-weight: 900; font-size: 1.35rem;
  letter-spacing: -0.01em; text-decoration: none; min-height: 44px;
  display: inline-flex; align-items: center;
}
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 10px 14px;
  font-family: var(--sans); font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-dim); text-decoration: none;
  transition: color 0.15s ease, box-shadow 0.15s ease;
}
.nav-links a:hover { color: var(--ink); box-shadow: inset 0 -3px 0 var(--maroon); }
.nav-cta { display: flex; align-items: center; }
.nav-cta .btn { min-height: 42px; padding: 9px 16px; font-size: 0.84rem; }
.nav-toggle {
  display: none; width: 44px; height: 44px; flex: none;
  align-items: center; justify-content: center;
  background: none; border: 1px solid var(--line); border-radius: var(--radius);
}
.nav-toggle .ic-open, .nav-toggle .ic-close {
  width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round;
}
.nav-toggle .ic-close { display: none; }
.nav-toggle[aria-expanded="true"] .ic-open { display: none; }
.nav-toggle[aria-expanded="true"] .ic-close { display: block; }

/* ---------- masthead ---------- */
.masthead { border-bottom: 4px double var(--line-strong); background: var(--paper); }
.dateline { border-bottom: 1px solid var(--line-strong); background: var(--paper-band); }
.dateline-inner {
  display: flex; justify-content: center;
  font-family: var(--sans); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--ink-dim);
  padding: 10px 0; text-align: center;
}
.masthead-inner { text-align: center; padding: 34px 24px 26px; }
.masthead-tag {
  font-family: var(--sans); font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--maroon);
}
.masthead-title {
  font-family: var(--serif-disp); font-weight: 900;
  font-size: clamp(3rem, 9vw, 5.6rem); line-height: 1;
  letter-spacing: -0.02em; margin-top: 10px;
}
.masthead-sub { color: var(--ink-dim); font-style: italic; margin-top: 12px; font-size: 1.02rem; }
.ribbon { border-top: 1px solid var(--line-strong); background: var(--paper-band); overflow: hidden; }
.ribbon-track { display: flex; width: max-content; animation: lg-scroll 38s linear infinite; }
.ribbon-group {
  white-space: nowrap; padding: 10px 0;
  font-family: var(--sans); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-dim);
}
.ribbon-group b { color: var(--maroon); font-weight: 700; }
@keyframes lg-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- section umum ---------- */
.sec { padding: 64px 0; }
.sec-band { background: var(--paper-band); border-block: 2px solid var(--line-strong); }
.sec-head { margin-bottom: 32px; max-width: 62ch; }
.sec-head h2 {
  font-family: var(--serif-disp); font-weight: 800;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.14;
}
.sec-head > p { color: var(--ink-dim); margin-top: 12px; }
.sec-head.split {
  max-width: none; display: flex; flex-wrap: wrap; gap: 18px 48px;
  align-items: flex-end; justify-content: space-between;
}
.sec-head.center { text-align: center; margin-inline: auto; }
.sec-head.center .label { justify-content: center; }
.sec-note { max-width: 46ch; font-size: 0.94rem; color: var(--ink-dim); }
.label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--maroon); margin-bottom: 12px;
}
.label::before { content: ""; width: 26px; height: 2px; background: var(--maroon); flex: none; }

/* ---------- headline utama ---------- */
.headline-grid {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 44px;
  border-bottom: 1px solid var(--line); padding-bottom: 56px;
}
.cat {
  display: inline-block; font-family: var(--sans); font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  background: rgba(23, 23, 23, 0.08); color: var(--ink-dim);
  padding: 5px 10px; border-radius: var(--radius);
}
.cat-solid { background: var(--maroon); color: #fff; }
.headline-copy h2 {
  font-family: var(--serif-disp); font-weight: 800;
  font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1.1;
  margin-top: 16px;
}
.headline-teaser { font-size: 1.08rem; color: var(--ink-dim); margin-top: 18px; max-width: 60ch; }
.headline-meta { font-family: var(--sans); font-size: 0.82rem; color: var(--ink-faint); margin-top: 18px; }
.headline-art { min-width: 0; }
.art-svg { width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.art-caption { font-size: 0.82rem; font-style: italic; color: var(--ink-faint); margin-top: 10px; }

/* ---------- rubrik ---------- */
.lg-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.lg-filter {
  border: 1px solid var(--line); background: transparent;
  font-family: var(--sans); font-size: 0.84rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-dim); border-radius: var(--radius); padding: 10px 16px; min-height: 44px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.lg-filter:hover { color: var(--ink); border-color: var(--ink); }
.lg-filter[aria-pressed="true"] { background: var(--maroon); border-color: var(--maroon); color: #fff; }
.lg-filter-status {
  font-family: var(--sans); font-size: 0.78rem; color: var(--ink-faint); margin-bottom: 24px;
}
.rubrik-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 30px 36px; }
.rubrik-card { border-top: 2px solid var(--line-strong); padding-top: 16px; min-width: 0; }
.rubrik-card.is-hidden { display: none; }
.rubrik-card h3 {
  font-family: var(--serif-disp); font-weight: 700;
  font-size: 1.3rem; line-height: 1.28; margin-top: 12px;
}
.rubrik-card h3 a { text-decoration: none; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.rubrik-card h3 a:hover { text-decoration: underline; text-decoration-color: var(--maroon); }
.teaser { font-size: 0.94rem; color: var(--ink-dim); margin-top: 10px; }
.read-time { font-family: var(--sans); font-size: 0.78rem; color: var(--ink-faint); margin-top: 12px; }

/* ---------- opini ---------- */
.opini-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: start; }
.opini-quote {
  border-left: 4px solid var(--maroon); padding: 6px 0 6px 22px;
  margin-top: 18px;
}
.opini-quote p {
  font-family: var(--serif-disp); font-style: italic; font-weight: 600;
  font-size: clamp(1.3rem, 2.6vw, 1.8rem); line-height: 1.35;
}
.opini-cite {
  display: block; font-family: var(--sans); font-style: normal;
  font-size: 0.85rem; color: var(--ink-dim); margin-top: 14px;
}
.opini-index {
  background: var(--paper); border: 1px solid var(--line);
  padding: 24px; box-shadow: 4px 4px 0 rgba(23, 23, 23, 0.12);
}
.idx-head { display: flex; gap: 14px; align-items: flex-start; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.idx-icon { width: 30px; height: 30px; flex: none; color: var(--maroon); }
.idx-title { font-family: var(--sans); font-weight: 700; font-size: 0.95rem; }
.idx-sub { font-family: var(--sans); font-size: 0.78rem; color: var(--ink-faint); margin-top: 2px; }
.idx-spark { margin: 16px 0 6px; width: 100%; height: auto; }
.idx-list { display: grid; }
.idx-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-family: var(--sans); font-size: 0.88rem;
  border-bottom: 1px solid var(--line); padding: 12px 0;
}
.idx-row:last-child { border-bottom: 0; }
.idx-row span:first-child { color: var(--ink-dim); }
.idx-val { font-weight: 700; color: var(--green); white-space: nowrap; }

/* ---------- langganan ---------- */
.langganan-wrap { max-width: 720px; }
.lg-form {
  border: 1px solid var(--line-strong); background: var(--paper);
  padding: 26px; box-shadow: 6px 6px 0 rgba(23, 23, 23, 0.12);
}
.form-row { display: grid; gap: 8px; }
.form-label {
  font-family: var(--sans); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-dim);
}
.form-field { display: flex; flex-wrap: wrap; gap: 10px; }
.form-input {
  flex: 1 1 240px; min-width: 0; min-height: 50px;
  font-family: var(--sans); font-size: 0.95rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; background: #fff; color: var(--ink);
}
.form-input:focus-visible { outline: 3px solid var(--maroon); outline-offset: 1px; }
.form-status { font-family: var(--sans); font-size: 0.86rem; color: var(--green); min-height: 1.4em; margin-top: 12px; }
.form-status.is-error { color: var(--maroon); }
.benefit-list {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 10px 24px; margin-top: 30px;
}
.benefit-list li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 0.95rem; color: var(--ink-dim);
}
.benefit-list li::before {
  content: ""; width: 9px; height: 9px; background: var(--maroon);
  flex: none; margin-top: 9px;
}
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }

/* ---------- footer ---------- */
.footer { border-top: 4px solid var(--line-strong); background: var(--ink); color: #fafaf7; padding: 56px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 32px; }
.brand-footer {
  font-family: var(--serif-disp); font-weight: 900; font-size: 1.7rem;
  text-decoration: none; display: inline-flex; align-items: center; min-height: 44px;
}
.f-tagline { color: rgba(250, 250, 247, 0.55); font-size: 0.9rem; margin-top: 12px; max-width: 32ch; }
.f-col h3 {
  font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(250, 250, 247, 0.85); margin-bottom: 14px;
  border-bottom: 1px solid rgba(250, 250, 247, 0.2); padding-bottom: 8px;
}
.f-links { display: grid; gap: 6px; }
.f-links a {
  color: rgba(250, 250, 247, 0.62); text-decoration: none; font-size: 0.92rem;
  min-height: 32px; display: inline-flex; align-items: center;
  transition: color 0.15s ease;
}
.f-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.f-text { color: rgba(250, 250, 247, 0.62); font-size: 0.92rem; margin-bottom: 12px; }
.f-cta .btn-solid { background: var(--maroon); border-color: var(--maroon); color: #fff; }
.f-cta .btn-solid:hover { background: var(--maroon-deep); border-color: var(--maroon-deep); }
.badge {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 40px 0 0; padding: 14px 18px;
  border: 1px dashed rgba(250, 250, 247, 0.4); border-radius: var(--radius);
  color: rgba(250, 250, 247, 0.7); font-size: 0.86rem;
}
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--maroon); flex: none; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
  margin-top: 24px; padding-top: 22px; border-top: 1px solid rgba(250, 250, 247, 0.2);
  color: rgba(250, 250, 247, 0.5); font-size: 0.85rem;
}
.to-top {
  color: rgba(250, 250, 247, 0.7); text-decoration: none; font-family: var(--sans); font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px; min-height: 32px;
}
.to-top .ic { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.to-top:hover { color: #fff; }

/* ---------- reveal (JS gating: konten tetap tampil bila JS mati) ---------- */
html.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.55s ease, transform 0.55s ease; transition-delay: var(--d, 0s); }
html.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .ribbon-track { animation: none; }
  .btn, .lg-filter, .f-links a { transition: none; }
}

/* ---------- responsif ---------- */
@media (max-width: 1020px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .headline-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 880px) {
  .opini-grid { grid-template-columns: 1fr; gap: 36px; }
  .sec { padding: 52px 0; }
}
@media (max-width: 720px) {
  .nav-links {
    display: none;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line-strong);
    flex-direction: column; padding: 10px 16px 18px; gap: 2px;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .form-field .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-actions .btn { width: 100%; }
}
@media (max-width: 560px) {
  .nav-cta { display: none; }
  .nav-inner { gap: 12px; }
  .headline-grid { padding-bottom: 40px; }
  .opini-index { padding: 18px; }
}
