/* ============================================================
   Editorial Sampai.xyz — Design System
   ============================================================ */

:root {
  --paper: #f7f5f0;
  --paper-2: #efece4;
  --card: #ffffff;
  --ink: #191a1e;
  --ink-soft: #4a4c55;
  --ink-faint: #6a6d77;
  --line: #e3dfd5;
  --line-strong: #cfcab8;
  --accent: #a31621;
  --accent-dark: #7e0f18;
  --gold: #b78a28;
  --white: #ffffff;

  --c-teknologi: #2563eb;
  --c-politik: #1e40af;
  --c-bisnis: #0f766e;
  --c-gaya-hidup: #be5a83;
  --c-hiburan: #7c3aed;
  --c-lingkungan: #15803d;

  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  --shadow-sm: 0 1px 2px rgba(20, 20, 24, 0.06);
  --shadow-md: 0 6px 16px rgba(20, 20, 24, 0.08);
  --shadow-lg: 0 18px 40px rgba(20, 20, 24, 0.14);
  --radius: 6px;
  --container: 1200px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.18; font-family: var(--font-serif); font-weight: 700; }
p { margin: 0; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ============================================================
   Top bar + Masthead
   ============================================================ */
.topbar { background: var(--ink); color: #d7d8dd; font-size: 12.5px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 34px; }
.topbar .date { letter-spacing: 0.06em; text-transform: uppercase; }
.topbar .edition { color: var(--gold); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }
.topbar .socials { display: flex; gap: 14px; }
.topbar .socials a { opacity: 0.85; }
.topbar .socials a:hover { opacity: 1; color: var(--gold); }

.masthead { background: var(--card); border-bottom: 1px solid var(--line); }
.masthead-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 0;
}
.logo { display: flex; align-items: baseline; gap: 8px; line-height: 1; }
.logo .brand { font-family: var(--font-serif); font-weight: 900; font-size: 34px; letter-spacing: -0.02em; }
.logo .brand em { font-style: italic; color: var(--accent); }
.logo .domain { font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); letter-spacing: 0.05em; }
.masthead .tagline { display: none; font-size: 13px; color: var(--ink-soft); font-style: italic; border-left: 3px solid var(--accent); padding-left: 12px; }
.masthead-search { display: flex; align-items: center; }
.masthead-search.search-form { display: flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--paper); cursor: pointer; font: inherit; color: var(--ink-faint); }
.masthead-search.search-form:hover { border-color: var(--ink); color: var(--ink); }
.masthead-search.search-form .ph { font-size: 13.5px; }

/* ---------- Nav ---------- */
.nav-wrap { background: var(--card); border-bottom: 3px solid var(--ink); position: sticky; top: 0; z-index: 60; }
.nav-inner { display: flex; align-items: center; }
.nav-primary { display: flex; align-items: center; gap: 0; margin: 0 auto; }
.nav-primary > li > a {
  display: block; padding: 14px 15px; font-size: 14px; font-weight: 600; letter-spacing: 0.02em;
  border-bottom: 3px solid transparent; margin-bottom: -3px; color: var(--ink);
}
.nav-primary > li:hover > a,
.nav-primary > li.active > a { border-bottom-color: var(--accent); color: var(--accent); }
.nav-primary .has-dropdown { position: relative; }
.dropdown { position: absolute; top: 100%; left: 0; background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--accent); box-shadow: var(--shadow-lg); min-width: 240px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all 0.18s ease; z-index: 50; }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 10px 16px; font-size: 13.5px; border-bottom: 1px solid var(--line); }
.dropdown a small { display: block; color: var(--ink-faint); font-size: 11.5px; }
.dropdown a:hover { background: var(--paper); color: var(--accent); }

.nav-toggle { display: none; border: 0; background: none; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; }

/* ---------- Breaking ticker ---------- */
.ticker { background: var(--accent); color: var(--white); }
.ticker-inner { display: flex; align-items: stretch; }
.ticker-label { display: flex; align-items: center; gap: 8px; background: var(--accent-dark); padding: 8px 16px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; white-space: nowrap; }
.ticker-viewport { overflow: hidden; flex: 1; position: relative; }
.ticker-track { display: flex; align-items: center; gap: 40px; white-space: nowrap; width: max-content; animation: ticker-scroll 45s linear infinite; padding: 8px 0; font-size: 13.5px; }
.ticker-track a:hover { text-decoration: underline; }
.ticker-track span { opacity: 0.6; }
@keyframes ticker-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ============================================================
   Hero / Featured
   ============================================================ */
.hero { padding: 28px 0 12px; }
.hero-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 26px; }
.featured-card { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--ink); box-shadow: var(--shadow-md); display: block; }
.featured-card img { width: 100%; height: 480px; object-fit: cover; opacity: 0.94; transition: transform 0.5s ease; }
.featured-card:hover img { transform: scale(1.03); }
.featured-card .overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,20,24,0) 22%, rgba(20,20,24,0.55) 62%, rgba(20,20,24,0.9) 100%); }
.featured-card .content { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px; color: var(--white); }
.featured-card .content h2 { font-size: clamp(24px, 3vw, 34px); margin: 12px 0 10px; }
.featured-card .deck { font-size: 15px; opacity: 0.92; max-width: 640px; }

.kicker { display: inline-block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; padding: 4px 10px; border-radius: 3px; }
.kicker.chan-teknologi { background: var(--c-teknologi); color: #fff; }
.kicker.chan-politik { background: var(--c-politik); color: #fff; }
.kicker.chan-bisnis { background: var(--c-bisnis); color: #fff; }
.kicker.chan-gaya-hidup { background: var(--c-gaya-hidup); color: #fff; }
.kicker.chan-hiburan { background: var(--c-hiburan); color: #fff; }
.kicker.chan-lingkungan { background: var(--c-lingkungan); color: #fff; }
.kicker.plain { background: var(--ink); color: #fff; }
.kicker.gold { background: var(--gold); color: #fff; }

.featured-card .kicker { background: var(--accent); }

.hero-side { display: flex; flex-direction: column; gap: 18px; }
.hero-side .side-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid var(--ink); padding-bottom: 8px; }
.hero-side .side-head h3 { font-size: 18px; }
.side-story { display: flex; gap: 14px; align-items: flex-start; border-bottom: 1px dashed var(--line-strong); padding-bottom: 14px; }
.side-story:last-of-type { border-bottom: 0; padding-bottom: 0; }
.side-story .num { font-family: var(--font-serif); font-size: 26px; font-weight: 800; color: var(--line-strong); line-height: 1; min-width: 30px; }
.side-story h4 { font-size: 15.5px; line-height: 1.35; }
.side-story h4 a:hover { color: var(--accent); }
.side-story .meta { font-size: 12px; color: var(--ink-faint); margin-top: 4px; }

/* ============================================================
   Section headers
   ============================================================ */
.section { padding: 26px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; border-bottom: 2px solid var(--ink); padding-bottom: 8px; }
.section-head h2 { font-size: 24px; letter-spacing: -0.01em; }
.section-head .rule { flex: 1; }
.section-head .more { font-size: 12.5px; font-weight: 600; letter-spacing: 0.05em; color: var(--ink-soft); text-transform: uppercase; font-family: var(--font-mono); }
.section-head .more:hover { color: var(--accent); }

/* ============================================================
   Cards
   ============================================================ */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: box-shadow 0.2s ease, transform 0.2s ease; }
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card .thumb { position: relative; overflow: hidden; }
.card .thumb img { width: 100%; height: 190px; object-fit: cover; transition: transform 0.45s ease; }
.card:hover .thumb img { transform: scale(1.05); }
.card .thumb .kicker { position: absolute; top: 12px; left: 12px; }
.card .body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { font-size: 18px; line-height: 1.3; }
.card h3 a:hover { color: var(--accent); }
.card .excerpt { font-size: 13.5px; color: var(--ink-soft); }
.card .meta { font-size: 12px; color: var(--ink-faint); margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.card .meta .sep { opacity: 0.5; }

/* Horizontal / list cards */
.row-card { display: flex; gap: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.row-card .thumb { flex: 0 0 30%; min-width: 200px; }
.row-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.row-card .body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.row-card h3 { font-size: 21px; line-height: 1.3; }
.row-card h3 a:hover { color: var(--accent); }
.row-card .excerpt { font-size: 14px; color: var(--ink-soft); }

/* ============================================================
   Layout splits
   ============================================================ */
.split { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; }
.main-col .stack { display: grid; gap: 18px; }
.side { display: grid; align-content: start; gap: 24px; }
.module { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.module-head { border-bottom: 2px solid var(--ink); padding-bottom: 8px; margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; }
.module-head h3 { font-size: 17px; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 12px; font-weight: 600; padding: 4px 10px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink-soft); background: var(--paper); }
.tag:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.tag.cloud:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

.popular-list li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.popular-list li:last-child { border-bottom: 0; }
.popular-list .num { font-family: var(--font-serif); font-size: 22px; font-weight: 800; color: var(--accent); line-height: 1; min-width: 26px; }
.popular-list a { font-size: 13.5px; font-weight: 600; line-height: 1.4; }
.popular-list a:hover { color: var(--accent); }
.popular-list small { display: block; color: var(--ink-faint); font-size: 11.5px; margin-top: 2px; }

/* ---------- Multimedia strip ---------- */
.multimedia { background: var(--ink); color: var(--white); border-radius: var(--radius); padding: 26px; }
.multimedia .section-head { border-bottom-color: rgba(255,255,255,0.25); }
.multimedia .section-head h2 { color: #fff; }
.multimedia .section-head .more { color: rgba(255,255,255,0.7); }
.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.media-item { position: relative; border-radius: var(--radius); overflow: hidden; }
.media-item img { width: 100%; height: 190px; object-fit: cover; }
.media-item .badge { position: absolute; top: 10px; left: 10px; background: var(--accent); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; padding: 3px 8px; border-radius: 3px; text-transform: uppercase; }
.media-item .cap { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(180deg, transparent, rgba(0,0,0,0.82)); padding: 34px 14px 12px; font-size: 13.5px; font-weight: 600; }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--paper-2); border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 22px; display: flex; gap: 22px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.newsletter h3 { font-size: 19px; margin-bottom: 4px; }
.newsletter p { font-size: 13.5px; color: var(--ink-soft); }
.newsletter form { display: flex; gap: 8px; }
.newsletter input { border: 1px solid var(--line-strong); border-radius: 999px; padding: 10px 16px; outline: 0; background: #fff; min-width: 240px; }

/* ---------- Article page ---------- */
.art-top { padding: 30px 0 10px; background: var(--card); border-bottom: 1px solid var(--line); }
.art-breadcrumb { font-size: 12.5px; color: var(--ink-faint); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; }
.art-breadcrumb a:hover { color: var(--accent); }
.art-title { font-size: clamp(28px, 4.2vw, 44px); letter-spacing: -0.015em; margin: 14px 0 10px; max-width: 900px; }
.art-deck { font-size: 18px; color: var(--ink-soft); font-style: italic; font-family: var(--font-serif); max-width: 800px; }

.byline { display: flex; align-items: center; gap: 14px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--gold)); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-weight: 800; font-size: 18px; flex: 0 0 auto; }
.avatar.alt-1 { background: linear-gradient(135deg, #2563eb, #7c3aed); }
.avatar.alt-2 { background: linear-gradient(135deg, #0f766e, #38bdf8); }
.avatar.alt-3 { background: linear-gradient(135deg, #be5a83, #f59e0b); }
.avatar.alt-4 { background: linear-gradient(135deg, #7c3aed, #2563eb); }
.byline .who { font-weight: 700; font-size: 14.5px; }
.byline .role { font-size: 12.5px; color: var(--ink-faint); }
.byline .pub { margin-left: auto; text-align: right; font-size: 12.5px; color: var(--ink-faint); }

.art-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; padding: 34px 0; }
.art-body { font-size: 17.5px; line-height: 1.85; color: #24272e; font-family: var(--font-serif); }
.art-body > p { margin: 0 0 20px; }
.art-body h2 { font-size: 26px; margin: 34px 0 14px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.art-body h3 { font-size: 20px; margin: 26px 0 10px; }
.art-body blockquote { margin: 26px 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--accent); font-size: 21px; font-style: italic; color: var(--ink-soft); }
.art-body blockquote cite { display: block; font-size: 13px; font-style: normal; font-family: var(--font-sans); color: var(--ink-faint); margin-top: 8px; }
.art-body .pull-quote { font-size: 23px; font-weight: 700; font-family: var(--font-serif); color: var(--accent); margin: 28px 0; }
.art-body figure { margin: 26px 0; }
.art-body figure img { border-radius: var(--radius); }
.art-body figcaption { font-size: 12.5px; color: var(--ink-faint); margin-top: 8px; font-family: var(--font-sans); }
.art-body ul, .art-body ol { margin: 0 0 20px 22px; }
.art-body li { margin-bottom: 8px; }
.art-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.art-body a:hover { color: var(--accent-dark); }
.art-body .kicker.inline { margin-bottom: 18px; }

.read-progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--accent); z-index: 99; width: 0; }

.art-tags { margin: 30px 0 0; padding-top: 20px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.art-tags .label { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-faint); }

.share-row { display: flex; align-items: center; gap: 10px; margin-top: 22px; }
.share-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 7px 14px; border-radius: 999px; color: #fff; }
.share-btn.x { background: #111; }
.share-btn.fb { background: #1877f2; }
.share-btn.tg { background: #229ed9; }
.share-btn.wa { background: #25d366; }

.art-side { display: grid; align-content: start; gap: 22px; }

.author-box { display: flex; gap: 14px; }
.author-box .avatar { width: 58px; height: 58px; font-size: 22px; }
.author-box .name { font-weight: 700; font-size: 15px; }
.author-box .role { font-size: 12.5px; color: var(--ink-faint); }
.author-box .bio { font-size: 13px; color: var(--ink-soft); margin-top: 6px; }
.author-box .creds { font-size: 12px; color: var(--ink-faint); margin-top: 8px; font-family: var(--font-mono); }

.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding-bottom: 40px; }

/* ---------- Listing (kanal / rubrik) pages ---------- */
.page-head { background: var(--card); border-bottom: 1px solid var(--line); padding: 30px 0 22px; }
.page-head .kicker { margin-bottom: 10px; }
.page-head h1 { font-size: clamp(28px, 4vw, 40px); }
.page-head .lede { font-size: 15.5px; color: var(--ink-soft); margin-top: 10px; max-width: 680px; }

.listing-top { display: grid; grid-template-columns: 1.8fr 1fr; gap: 26px; padding: 28px 0 6px; }
.list-rows { display: grid; gap: 18px; }

.channel-chip { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }

/* ---------- Archive ---------- */
.archive-layout { display: grid; grid-template-columns: 1fr 300px; gap: 34px; padding-top: 28px; padding-bottom: 40px; }
.archive-tools { position: sticky; top: 80px; align-self: start; }
.filter-group { margin-bottom: 20px; }
.filter-group h4 { font-size: 13px; font-family: var(--font-sans); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; color: var(--ink-soft); }
.chip-row { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { font-size: 12px; padding: 5px 12px; border: 1px solid var(--line-strong); border-radius: 999px; cursor: pointer; background: var(--card); transition: all 0.15s ease; }
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.archive-search { width: 100%; border: 1px solid var(--line-strong); border-radius: 999px; padding: 10px 16px; outline: 0; background: var(--card); }
.archive-list { display: grid; gap: 16px; }
.arch-item { display: flex; padding: 16px 12px; border-bottom: 1px dashed var(--line-strong); align-items: baseline; gap: 16px; }
.arch-item .date { font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); min-width: 80px; text-transform: uppercase; flex: 0 0 auto; }
.arch-item .title { font-size: 16px; font-family: var(--font-serif); font-weight: 700; line-height: 1.35; }
.arch-item .title:hover { color: var(--accent); }
.arch-item .where { font-size: 11.5px; color: var(--ink-faint); margin-top: 3px; font-family: var(--font-mono); }
.count-line { font-size: 13px; color: var(--ink-faint); margin-bottom: 14px; }
.count-line b { color: var(--ink); }

/* ---------- Footer ---------- */
.footer { background: #121317; color: #bfc1c9; margin-top: 40px; }
.footer-top { padding: 40px 0 10px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.footer .brand { font-family: var(--font-serif); font-weight: 900; font-size: 28px; color: #fff; }
.footer .brand em { color: var(--accent); font-style: italic; }
.footer .about { font-size: 13.5px; margin-top: 12px; max-width: 320px; color: #9a9ca6; }
.footer h4 { font-family: var(--font-sans); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); margin-bottom: 14px; }
.footer ul li { margin-bottom: 9px; font-size: 13.5px; }
.footer ul a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #262735; padding: 16px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: #7d7f8a; }
.footer-bottom .mono { font-family: var(--font-mono); }
.footer-bottom a:hover { color: #fff; text-decoration: underline; }

/* ---------- Search overlay ---------- */
.search-overlay { position: fixed; inset: 0; background: rgba(18, 19, 23, 0.92); z-index: 200; display: none; align-items: flex-start; justify-content: center; padding: 10vh 20px 0; }
.search-overlay.open { display: flex; }
.search-panel { background: var(--card); border-radius: 10px; width: 100%; max-width: 640px; overflow: hidden; box-shadow: var(--shadow-lg); }
.search-panel form { display: flex; border-bottom: 2px solid var(--ink); }
.search-panel input { flex: 1; border: 0; outline: 0; padding: 18px 20px; font-size: 18px; background: transparent; }
.search-panel .close { border: 0; background: none; padding: 0 18px; cursor: pointer; font-size: 22px; color: var(--ink-soft); }
.search-results { max-height: 60vh; overflow: auto; padding: 6px 0; }
.search-results a { display: flex; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line); align-items: center; }
.search-results a:hover { background: var(--paper); }
.search-results .t { font-weight: 700; font-size: 14.5px; }
.search-results .m { font-size: 11.5px; color: var(--ink-faint); font-family: var(--font-mono); }
.search-results .empty { padding: 24px; color: var(--ink-faint); font-size: 14px; text-align: center; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Aksesibilitas ---------- */
.skip-link { position: absolute; left: -999px; top: 0; z-index: 300; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 6px 0; font-weight: 600; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nav-backdrop { position: fixed; inset: 0; background: rgba(18,19,23,0.5); z-index: 59; opacity: 0; visibility: hidden; transition: opacity 0.25s ease; }
.nav-backdrop.show { opacity: 1; visibility: visible; }
body.nav-locked { overflow: hidden; }
.ticker-toggle { border: 0; background: none; color: #fff; cursor: pointer; padding: 0 12px; font-size: 11px; opacity: 0.8; }
.ticker-toggle:hover { opacity: 1; }
.ticker.paused .ticker-track { animation-play-state: paused; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 12.5px; color: var(--ink-faint); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 12px; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { margin: 0 6px; opacity: 0.6; }

/* ---------- Pagination ---------- */
.pager { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 24px 0 6px; }
.pager .pg { font-size: 13px; font-weight: 600; padding: 7px 13px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--card); }
.pager .pg:hover { border-color: var(--ink); }
.pager .pg.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager .pg.prev, .pager .pg.next { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; }

/* ---------- Penulis publik ---------- */
.author-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.author-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 18px; box-shadow: var(--shadow-sm); transition: box-shadow .2s ease, transform .2s ease; }
.author-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.author-card .avatar { width: 64px; height: 64px; font-size: 24px; }
.author-card .name { font-family: var(--font-serif); font-weight: 700; font-size: 17px; }
.author-card .role { font-size: 12px; color: var(--ink-faint); }
.author-card .count { font-size: 11.5px; color: var(--accent); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .06em; }
.author-hero { display: flex; gap: 20px; align-items: flex-start; margin-top: 6px; }
.author-hero .avatar { width: 84px; height: 84px; font-size: 32px; }
.author-hero h1 { font-size: clamp(26px, 3.5vw, 38px); margin: 6px 0 8px; }
.author-hero .meta { font-size: 12.5px; color: var(--ink-faint); display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.author-hero .meta .sep { opacity: .5; }
.author-box .name a:hover, .byline .who a:hover { color: var(--accent); }
.author-box .more { display: inline-block; margin-top: 10px; font-size: 12px; }

/* ---------- Halaman statis ---------- */
.page-body { max-width: 760px; font-size: 16.5px; line-height: 1.8; }
.page-body h2 { font-size: 24px; margin: 30px 0 12px; }
.page-body h3 { font-size: 19px; margin: 24px 0 10px; }
.page-body p { margin: 0 0 16px; }
.page-body ul, .page-body ol { margin: 0 0 16px 22px; list-style: disc; }
.page-body li { margin-bottom: 6px; }
.page-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.page-body blockquote { margin: 22px 0; padding-left: 18px; border-left: 4px solid var(--accent); color: var(--ink-soft); font-style: italic; }

/* ---------- Pratinjau draf ---------- */
.preview-banner { background: #fff4d6; border: 1px solid var(--gold); color: #6b4d00; padding: 10px 16px; border-radius: var(--radius); font-size: 13.5px; }

/* ---------- Form buletin sidebar ---------- */
.side-sub { display: flex; gap: 8px; flex-wrap: wrap; }
.side-sub input { flex: 1; min-width: 140px; border: 1px solid var(--line-strong); border-radius: 999px; padding: 9px 14px; outline: 0; background: var(--card); }
.side-sub button { border: 0; cursor: pointer; background: var(--ink); color: #fff; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 9px 16px; border-radius: 999px; }
.side-sub button:hover { background: var(--accent); }
.nl-msg { font-size: 12.5px; margin-top: 8px; }
.nl-msg.ok { color: var(--c-lingkungan); }
.nl-msg.err { color: var(--accent); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .ticker-track { animation: none; white-space: normal; flex-wrap: wrap; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .split, .listing-top, .archive-layout { grid-template-columns: 1fr; }
  .grid-3, .grid-4, .related-grid, .media-grid { grid-template-columns: repeat(2, 1fr); }
  .author-grid { grid-template-columns: repeat(2, 1fr); }
  .art-layout { grid-template-columns: 1fr; }
  .art-side { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: repeat(2, 1fr); }
  .nav-toggle { display: block; }
  .nav-primary { position: fixed; top: 0; right: 0; height: 100vh; width: min(320px, 85vw); background: var(--card); flex-direction: column; align-items: stretch; padding: 60px 20px 20px; transform: translateX(100%); transition: transform 0.25s ease; box-shadow: var(--shadow-lg); margin: 0; overflow: auto; }
  .nav-primary.open { transform: translateX(0); }
  .nav-primary > li > a { border-bottom: 1px solid var(--line); margin-bottom: 0; padding: 13px 4px; }
  .dropdown { position: static; box-shadow: none; opacity: 1; visibility: visible; transform: none; border: 0; border-left: 3px solid var(--accent); min-width: 0; margin: 0 0 8px 10px; }
  .ticker-track { animation-duration: 70s; }
  .masthead .tagline { display: none; }
}
@media (max-width: 620px) {
  .grid-3, .grid-4, .related-grid, .media-grid, .art-side { grid-template-columns: 1fr; }
  .author-grid { grid-template-columns: 1fr; }
  .author-hero { flex-direction: column; }
  .row-card { flex-direction: column; }
  .row-card .thumb { flex: 1; }
  .row-card .thumb img { height: 200px; }
  .featured-card img { height: 340px; }
  .masthead-inner { flex-wrap: wrap; }
  .masthead-search { order: 3; width: 100%; }
  .masthead-search .search-form { width: 100%; }
  .masthead-search input { flex: 1; }
  .logo .domain { display: none; }
  .newsletter form { flex-direction: column; }
  .newsletter input { min-width: 0; }
  .footer-top { grid-template-columns: 1fr; }
  .arch-item { flex-direction: column; gap: 4px; }
  .arch-item .date { min-width: 0; }
}