/* VOICE   hangat, lugas, punya pendapat — majalah perempuan Indonesia, bukan portal berita
   IDEA    edisi majalah cetak: sampul berwarna solid, rubrik berwarna per kanal, nomor halaman besar
   PICTURE ilustrasi kolase per artikel (placeholder foto editorial), bidang warna kanal penuh
   COLOUR  kertas #FFF8F3, tinta plum #241A23, berry #9C244C; panel blush & sage; kanal: sage, blush, butter, lilac, peach
   TYPE    Plus Jakarta Sans (judul & UI, jelas dibaca, karya desainer Indonesia) + Source Serif 4 (isi artikel panjang)
   LAYOUT  12/8/4 kolom, maks 1280px; desktop: wordmark di tengah baris atas, kanal di baris bawah; mobile: menu, wordmark, cari */
:root {
  color-scheme: light;
  --paper: #FFF8F3; --white: #FFFFFF; --ink: #241A23; --ink-2: #5A4957; --line: #E9DCD6; --line-2: #D8C6BF;
  --berry: #9C244C; --berry-d: #7C1A3B; --blush: #FBE7ED; --sage: #DDE7D2;
  --butter: #F8EAB4; --lilac: #ECE3F4; --peach: #FBDDC9; --plum: #3A2737;
  --sage-d: #3F5A35; --butter-d: #6B4E00; --lilac-d: #5E3A7A; --peach-d: #8A3F17; --blush-d: #9C244C;
  --ok: #2F6B3A; --warn: #8A5A00; --err: #B3261E;
  --display: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  --ui: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  --read: 'Source Serif 4', Georgia, serif;
  --r: 14px; --r-s: 8px;
  --t: 180ms cubic-bezier(.2, .7, .3, 1);
  --max: 1280px;
}
* { box-sizing: border-box; min-width: 0; }
html { scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--ui); overflow-x: clip; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--berry); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: max(20px, 4vw); }
@media (min-width: 1360px) { .wrap { padding-inline: 40px; } }

/* Tombol */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1.5px solid transparent; background: var(--berry); color: #fff; font-weight: 600; text-decoration: none; cursor: pointer; transition: background var(--t), transform var(--t); white-space: nowrap; }
.btn:hover { background: var(--berry-d); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled=true] { opacity: .5; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.soft { background: var(--blush); color: var(--berry-d); }
.btn.soft:hover { background: #F6D3DE; }
.btn.ink { background: var(--ink); }
.btn.ink:hover { background: #000; }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 999px; border: 0; background: transparent; cursor: pointer; transition: background var(--t); }
.icon-btn:hover { background: rgba(36, 26, 35, .07); }
.icon-btn svg { width: 22px; height: 22px; }

/* Label kanal & chip */
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; text-decoration: none; background: var(--blush); color: var(--blush-d); white-space: nowrap; }
.chip.sage { background: var(--sage); color: var(--sage-d); }
.chip.blush { background: var(--blush); color: var(--blush-d); }
.chip.butter { background: var(--butter); color: var(--butter-d); }
.chip.lilac { background: var(--lilac); color: var(--lilac-d); }
.chip.peach { background: var(--peach); color: var(--peach-d); }
.chip.plum { background: var(--plum); color: #fff; }
.chip.line { background: transparent; border: 1px solid var(--line-2); color: var(--ink); }
.chip.sponsor { background: var(--ink); color: #fff; }
.chip.aff { background: #fff; color: var(--ink); border: 1px dashed var(--ink-2); }

/* Ilustrasi */
.media { position: relative; overflow: hidden; border-radius: var(--r); background: var(--blush); aspect-ratio: 4 / 3; }
.media > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.media.r169 { aspect-ratio: 16 / 9; }
.media.r916 { aspect-ratio: 9 / 16; }
.media.r11 { aspect-ratio: 1; }

/* Form */
.field { display: grid; gap: 6px; }
.field label, .lbl { font-weight: 600; font-size: 14px; }
.input, .select, .textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line-2); border-radius: 10px; background: #fff; font-size: 16px; transition: border-color var(--t), box-shadow var(--t); }
.textarea { min-height: 110px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--berry); box-shadow: 0 0 0 3px rgba(156, 36, 76, .18); }
.input[aria-invalid=true] { border-color: var(--err); }
.hint { font-size: 13px; color: var(--ink-2); }
.err-msg { font-size: 14px; color: var(--err); font-weight: 500; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--berry); flex: none; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 15px; opacity: 0; pointer-events: none; transition: opacity var(--t), transform var(--t); z-index: 200; max-width: calc(100vw - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* Mode catatan prototipe: elemen ber-data-note diberi stiker penjelasan */
.proto-bar { position: fixed; right: 16px; bottom: 16px; z-index: 150; display: flex; gap: 6px; padding: 6px; background: var(--ink); border-radius: 999px; box-shadow: 0 6px 24px rgba(36, 26, 35, .25); }
.proto-bar a, .proto-bar button { min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: #fff; font-size: 13px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.proto-bar button[aria-pressed=true] { background: #F8EAB4; color: var(--ink); }
.proto-bar a:hover, .proto-bar button:hover { background: rgba(255, 255, 255, .14); }
.proto-bar button[aria-pressed=true]:hover { background: #F3DE8C; }
body.notes [data-note] { position: relative; outline: 2px dashed #D9A400; outline-offset: 4px; }
body.notes [data-note]::before { content: attr(data-note); position: absolute; z-index: 60; top: -12px; left: 8px; max-width: min(360px, 86vw); padding: 8px 12px; background: #FFF3B8; color: #3D2E00; font: 500 13px/1.4 var(--ui); border-radius: 6px; box-shadow: 0 4px 14px rgba(0, 0, 0, .16); transform: rotate(-.6deg); pointer-events: none; text-align: left; letter-spacing: 0; text-transform: none; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0ms !important; animation: none !important; scroll-behavior: auto !important; } }
[hidden] { display: none !important; }

/* Foto lokal untuk kartu, gambar utama, dan pratinjau CMS. */
.media > .editorial-photo,
.thumb > .editorial-photo,
.need .editorial-photo,
.mbox .editorial-photo,
.og .editorial-photo,
.blk .img .editorial-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media > .editorial-photo { position: absolute; inset: 0; }
