/* ==========================================================
   udasurya — tampilan situs "rak kayu klasik" (Varian C)
   Ringan: tanpa framework, tanpa JavaScript besar, font lokal.
   ========================================================== */
:root {
  --ink: #4a2a0e;
  --ink-strong: #2e1805;
  --wood-a: #e4b67c;
  --wood-b: #d8a466;
  --btn-a: #e8bd80;
  --btn-b: #c98f4f;
  --btn-line: #93602c;
  --paper: #fffdf8;
  --cols: 6;
  --row: 336px;
  --cover-w: 150px;
  --cover-h: 226px;
  --plank: 30px;
  --maxw: 1240px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font-family: Figtree, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); line-height: 1.5;
  background:
    repeating-linear-gradient(90deg, rgba(120, 70, 25, .16) 0 2px, transparent 2px 180px),
    repeating-linear-gradient(90deg, rgba(255, 240, 210, .07) 0 1px, transparent 1px 6px),
    repeating-linear-gradient(90deg, rgba(120, 70, 25, .06) 0 3px, transparent 3px 23px),
    linear-gradient(180deg, var(--wood-a) 0%, var(--wood-b) 100%);
}
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--ink-strong); }
img { max-width: 100%; height: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid #1b8fc4; outline-offset: 2px; }
main { flex: 1; }

/* ---------- Tombol kayu ---------- */
.wbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--btn-line); border-radius: 9px; cursor: pointer;
  background: linear-gradient(180deg, var(--btn-a) 0%, var(--btn-b) 100%);
  color: var(--ink); font: 700 14px/1 Figtree, system-ui, sans-serif; text-shadow: 0 1px 0 rgba(255, 255, 255, .45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 1px 2px rgba(60, 30, 10, .2);
}
.wbtn:hover { background: linear-gradient(180deg, #edc68c 0%, #cf9657 100%); color: var(--ink-strong); }
.wbtn.is-on, .wbtn[aria-current="page"] {
  background: linear-gradient(180deg, #a86f33 0%, #bf8547 100%); color: #fff6e8; text-shadow: 0 -1px 0 rgba(0, 0, 0, .3);
  box-shadow: inset 0 2px 4px rgba(60, 30, 10, .4); border-color: #7e5022;
}
.wbtn-icon { width: 44px; padding: 0; }
.wbtn svg { width: 20px; height: 20px; }

/* ---------- Toolbar atas ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: linear-gradient(180deg, #efcd97 0%, #d9a969 100%); border-bottom: 1px solid #9c6a33; box-shadow: 0 2px 8px rgba(60, 30, 10, .35);
}
.topbar-in { max-width: 1400px; margin: 0 auto; height: 64px; padding: 0 20px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.logo { font-family: Fraunces, Georgia, serif; font-size: 26px; font-weight: 700; color: #5a3310; text-shadow: 0 1px 0 rgba(255, 255, 255, .5); letter-spacing: -.01em; margin: 0; line-height: 1; white-space: nowrap; }
.logo a { color: inherit; display: inline-flex; align-items: center; gap: 10px; }
.logo img { display: block; height: 44px; width: auto; max-width: 220px; object-fit: contain; }
.topbar-right { display: flex; justify-content: flex-end; gap: 8px; }
.menu-btn { display: none; }

.segmented { display: flex; border: 1px solid var(--btn-line); border-radius: 9px; overflow: hidden; box-shadow: 0 1px 0 rgba(255, 255, 255, .35); }
.segmented a {
  display: flex; align-items: center; height: 40px; padding: 0 16px; font-size: 14px; font-weight: 700; white-space: nowrap;
  background: linear-gradient(180deg, var(--btn-a) 0%, var(--btn-b) 100%); text-shadow: 0 1px 0 rgba(255, 255, 255, .45);
}
.segmented a + a { border-left: 1px solid var(--btn-line); }
.segmented a:hover { background: linear-gradient(180deg, #edc68c 0%, #cf9657 100%); }
.segmented a[aria-current="page"] { background: linear-gradient(180deg, #a86f33 0%, #bf8547 100%); color: #fff6e8; text-shadow: 0 -1px 0 rgba(0, 0, 0, .3); box-shadow: inset 0 2px 4px rgba(60, 30, 10, .4); }

.pills { display: none; gap: 8px; padding: 12px 16px 4px; overflow-x: auto; scrollbar-width: none; }
.pills::-webkit-scrollbar { display: none; }
.pills .wbtn { flex-shrink: 0; border-radius: 22px; }

/* Panel cari & menu */
.drop { display: none; background: #f7e3c0; border-bottom: 1px solid #9c6a33; box-shadow: 0 6px 14px rgba(60, 30, 10, .25); }
.drop.open { display: block; }
.drop-in { max-width: 760px; margin: 0 auto; padding: 16px 20px; }
.searchform { display: flex; gap: 8px; }
.searchform input {
  flex: 1; min-width: 0; height: 46px; padding: 0 14px; border: 1px solid var(--btn-line); border-radius: 9px; background: #fffdf8;
  font: 16px Figtree, system-ui, sans-serif; color: var(--ink-strong); box-shadow: inset 0 2px 3px rgba(60, 30, 10, .15);
}
.menu-list { display: grid; gap: 6px; padding: 0; margin: 0; list-style: none; }
.menu-list a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px; font-weight: 700; }
.menu-list a:hover, .menu-list a[aria-current="page"] { background: rgba(168, 111, 51, .18); }
.menu-list .sep { height: 1px; background: rgba(147, 96, 44, .35); margin: 6px 0; }

/* ---------- Papan nama (plaque) ---------- */
.plaque-wrap { padding: 26px 16px 4px; display: flex; justify-content: center; }
.plaque {
  max-width: 760px; text-align: center; padding: 14px 26px 16px; border-radius: 6px;
  background: linear-gradient(180deg, #fbf3e2 0%, #eadbbd 100%); border: 1px solid #a87a45;
  box-shadow: 0 3px 8px rgba(60, 30, 10, .35), inset 0 1px 0 #fff;
}
.plaque h1, .plaque h2 { margin: 0; font-family: Fraunces, Georgia, serif; font-size: clamp(20px, 3vw, 28px); line-height: 1.2; color: #5a3310; font-weight: 700; }
.plaque p { margin: 6px 0 0; font-size: 15px; color: #6b4a2a; }

/* ---------- Rak buku ---------- */
.shelf {
  display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); grid-auto-rows: var(--row); grid-auto-flow: row dense;
  padding: 0 max(12px, calc((100% - var(--maxw)) / 2));
  margin-top: 6px;
  background:
    linear-gradient(to bottom,
      transparent calc(var(--row) - var(--plank)),
      #f6dcae calc(var(--row) - var(--plank)), #e9c38a calc(var(--row) - var(--plank) + 9px),
      #d19a5b calc(var(--row) - var(--plank) + 9px), #b87f41 var(--row)),
    linear-gradient(to bottom, rgba(60, 30, 10, .38), rgba(60, 30, 10, 0) 16px);
  background-size: 100% var(--row);
  background-repeat: repeat-y;
}
.cell { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; padding-bottom: var(--plank); min-width: 0; }
.cell.shape-landscape { grid-column: span 2; }
.plate {
  position: absolute; bottom: 7px; left: 50%; transform: translateX(-50%); padding: 1px 8px; border-radius: 2px; white-space: nowrap;
  background: linear-gradient(180deg, #fbf3e2 0%, #eadbbd 100%); border: 1px solid #a87a45; font-size: 11px; font-weight: 600; color: #5a3310; line-height: 1.4;
}
.book-label {
  max-width: 100%; padding: 0 8px; text-align: center; font-size: 14px; font-weight: 800; line-height: 1.25; color: #3d220a;
  text-shadow: 0 1px 0 rgba(255, 240, 210, .6); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.book-label:hover { color: #1f1003; text-decoration: underline; }

/* Sampul buku = gambar utama artikel (tanpa teks) */
.book {
  --bg: #b8864f;
  position: relative; overflow: hidden; display: block; flex-shrink: 0;
  background: var(--bg); border-radius: 1px 3px 3px 1px;
  box-shadow: 1px 0 0 rgba(0, 0, 0, .12), 5px 5px 9px rgba(60, 30, 10, .45);
  transition: transform .25s ease, box-shadow .25s ease;
}
.book.shape-portrait { width: var(--cover-w); aspect-ratio: 2 / 3; }
.book.shape-square { width: min(calc(100% - 20px), var(--cover-h)); aspect-ratio: 1 / 1; }
.book.shape-landscape { width: calc(100% - 28px); aspect-ratio: 16 / 9; max-height: var(--cover-h); }
.book img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.book:hover, .book:focus-visible { transform: translateY(-10px); box-shadow: 1px 0 0 rgba(0, 0, 0, .12), 8px 14px 18px rgba(60, 30, 10, .45); }
.book::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: rgba(0, 0, 0, .22); box-shadow: 1px 0 0 rgba(255, 255, 255, .3); z-index: 2; }
.book::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(255, 255, 255, .26) 0%, rgba(255, 255, 255, 0) 36%); z-index: 3; pointer-events: none; }
.book-empty { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .12) 0 10px, transparent 10px 20px), var(--bg); }
.book-empty { container-type: inline-size; }
.book-fallback {
  position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center;
  padding: 12% 10% 12% 14%; text-align: center;
}
.book-fallback span {
  font-family: Fraunces, Georgia, serif; font-weight: 700; color: #fff; line-height: 1.15; letter-spacing: -.01em;
  font-size: clamp(11px, 11.5cqi, 24px); text-shadow: 0 1px 2px rgba(0, 0, 0, .35); overflow-wrap: anywhere;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical;
}
.shape-landscape .book-fallback span { font-size: clamp(13px, 6.5cqi, 28px); -webkit-line-clamp: 3; }
.ribbon {
  position: absolute; z-index: 4; top: 12px; right: -30px; width: 108px; padding: 3px 0;
  transform: rotate(45deg); background: linear-gradient(180deg, #e0352a 0%, #b81f17 100%); color: #fff;
  font: 800 9px/1.2 Figtree, system-ui, sans-serif; letter-spacing: .16em; text-align: center; box-shadow: 0 2px 3px rgba(0, 0, 0, .35);
}

.empty { max-width: 560px; margin: 40px auto; text-align: center; }

/* ---------- Navigasi halaman ---------- */
.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; padding: 34px 16px 44px; }
.pager .wbtn { min-width: 44px; }
.pager .gap { padding: 0 4px; font-weight: 700; }

/* ---------- Kertas (halaman baca) ---------- */
.paper-wrap { padding: 28px 14px 12px; }
.paper {
  max-width: 820px; margin: 0 auto; background: var(--paper); border-radius: 4px; padding: clamp(22px, 5vw, 60px);
  box-shadow: 0 1px 0 #fff inset, 0 10px 30px rgba(60, 30, 10, .35), 0 2px 4px rgba(60, 30, 10, .2);
  color: #2a221b;
}
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: #8a7560; margin-bottom: 18px; }
.crumbs a { color: #8a7560; }
.crumbs a:hover { color: #5a3310; text-decoration: underline; }
.post-hero { margin: 0 0 26px; border-radius: 6px; overflow: hidden; background: #eadbbd; box-shadow: 0 6px 18px rgba(60, 30, 10, .22); }
.post-hero img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: cover; }
.post-head { margin-bottom: 34px; padding-bottom: 22px; border-bottom: 1px solid #eadbbd; }
.post-head .book.shape-portrait { width: 150px; }
.post-head .book.shape-square { width: 190px; }
.post-head .book.shape-landscape { width: 300px; max-height: none; }
.post-head .book:hover { transform: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.chip { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid #e0cba8; background: #fbf3e2; font-size: 13px; font-weight: 700; color: #8a4a14; }
.chip:hover { background: #f3e2c0; color: #5a3310; }
.post-title { margin: 0; font-family: Fraunces, Georgia, serif; font-size: clamp(30px, 5vw, 48px); line-height: 1.08; letter-spacing: -.02em; color: #1b140e; font-weight: 650; }
.meta { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 15px; color: #7a6650; }
.lead { font-size: 1.2em; }
.toc { margin: 0 0 30px; padding: 14px 18px; border: 1px solid #eadbbd; border-radius: 8px; background: #fbf6ec; font-size: 15px; }
.toc summary { cursor: pointer; font-weight: 700; color: #5a3310; }
.toc ul { margin: 10px 0 0; padding-left: 20px; }
.toc li { margin: 4px 0; }
.toc li.l3 { margin-left: 16px; list-style: circle; }
.toc a { color: #8a4a14; }
.post-foot { margin-top: 44px; padding-top: 24px; border-top: 1px solid #eadbbd; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; align-items: center; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: #7a6650; }
.share .wbtn { min-height: 40px; font-size: 13px; }
.author-card { margin-top: 30px; display: flex; gap: 18px; align-items: center; padding: 20px; border-radius: 10px; background: #fbf3e2; border: 1px solid #eadbbd; }
.author-card img, .avatar-ph { width: 72px; height: 72px; flex-shrink: 0; border-radius: 50%; object-fit: cover; background: #e3cfa9; }
.author-card strong { font-family: Fraunces, Georgia, serif; font-size: 20px; color: #1b140e; display: block; }
.author-card p { margin: 2px 0 0; font-size: 15px; color: #6b5a47; }
.preview-bar { background: #1b8fc4; color: #fff; text-align: center; padding: 10px 16px; font-weight: 700; }
.section-title { max-width: var(--maxw); margin: 40px auto 0; padding: 0 16px; display: flex; justify-content: center; }

/* Tentang */
.about-head { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: center; margin-bottom: 36px; }
.about-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; box-shadow: 8px 12px 24px rgba(60, 30, 10, .3); background: #e3cfa9; }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #a8541a; }
.about-head h1 { margin: 8px 0 6px; font-family: Fraunces, Georgia, serif; font-size: clamp(30px, 5vw, 46px); line-height: 1.08; color: #1b140e; }
.role { font-size: 17px; color: #6b5a47; }
.contacts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 16px 0 10px; }
.card { padding: 20px; border-radius: 10px; background: #fbf3e2; border: 1px solid #eadbbd; }
.card h3 { margin: 0 0 6px; font-family: Fraunces, Georgia, serif; font-size: 19px; color: #1b140e; }
.card p { margin: 0; font-size: 15px; line-height: 1.6; color: #5b4a38; }
.timeline { list-style: none; padding: 0; margin: 16px 0 0; }
.timeline li { display: grid; grid-template-columns: 150px 1fr; gap: 18px; padding: 14px 0; border-top: 1px solid #eadbbd; }
.timeline li:last-child { border-bottom: 1px solid #eadbbd; }
.timeline .period { font-weight: 800; color: #a8541a; font-size: 15px; }
.timeline .what strong { display: block; font-size: 17px; color: #1b140e; }
.timeline .what span { font-size: 15px; color: #7a6650; }
.h2 { font-family: Fraunces, Georgia, serif; font-size: 28px; color: #1b140e; margin: 40px 0 0; }
.contact-list { display: grid; gap: 10px; margin-top: 24px; }
.contact-list a { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 18px; border-radius: 10px; background: #fbf3e2; border: 1px solid #eadbbd; font-weight: 700; color: #5a3310; }
.contact-list a:hover { background: #f3e2c0; }
.contact-list small { font-weight: 500; color: #8a7560; margin-left: auto; }

/* ---------- Tata letak halaman artikel: iklan kiri · artikel · widget kanan ---------- */
.post-layout { display: grid; grid-template-columns: minmax(0, 820px); justify-content: center; gap: 24px; padding: 28px 14px 12px; align-items: start; }
.post-layout .paper { margin: 0; max-width: none; }
.post-layout.has-right { grid-template-columns: minmax(0, 820px) 300px; }
.post-layout.has-left { grid-template-columns: 200px minmax(0, 820px); }
.post-layout.has-left.has-right { grid-template-columns: 200px minmax(0, 780px) 300px; }
.rail { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 84px; }
.widget { background: var(--paper); border-radius: 4px; padding: 18px; box-shadow: 0 6px 18px rgba(60, 30, 10, .28); }
.widget h2 { margin: 0 0 10px; font-family: Fraunces, Georgia, serif; font-size: 20px; color: #1b140e; }
.mini-post { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid #eadbbd; color: #2a221b; }
.widget .mini-post:first-of-type { border-top: 0; }
.mini-post:hover .mini-title { color: #a8541a; text-decoration: underline; }
.mini-thumb { position: relative; width: 64px; height: 64px; border-radius: 4px; overflow: hidden; background: #e3cfa9; box-shadow: 2px 3px 6px rgba(60, 30, 10, .25); }
.mini-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mini-thumb.is-empty { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .14) 0 6px, transparent 6px 12px), #1b8fc4; }
.mini-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mini-label { font-size: 12px; font-weight: 800; color: #a8541a; letter-spacing: .02em; }
.mini-title { font-family: Fraunces, Georgia, serif; font-weight: 600; font-size: 15px; line-height: 1.25; color: #1b140e; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.mini-meta { font-size: 12px; color: #8a7560; }
.prevnext { margin-top: 30px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.prevnext .mini-post { border: 1px solid #eadbbd; border-radius: 10px; padding: 12px; background: #fbf6ec; height: 100%; }
.prevnext > div:last-child .mini-post { text-align: right; grid-template-columns: 1fr 64px; }
.prevnext > div:last-child .mini-thumb { order: 2; }

/* Banner iklan */
.uda-banner { margin: 2em 0; text-align: center; clear: both; }
.uda-banner img { display: block; max-width: 100%; height: auto; margin: 0 auto; border-radius: 4px; }
.rail-left .uda-banner { margin: 0; background: var(--paper); padding: 10px; border-radius: 4px; box-shadow: 0 6px 18px rgba(60, 30, 10, .28); }

/* Komentar */
.comments { margin-top: 40px; padding-top: 26px; border-top: 1px solid #eadbbd; }
.comments-title { margin: 0 0 16px; font-family: Fraunces, Georgia, serif; font-size: 26px; color: #1b140e; }
.comments-title span { color: #8a7560; font-size: .75em; }
.comment { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid #f0e4cf; }
.comment-avatar { width: 44px; height: 44px; border-radius: 50%; background: #d8a466; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; }
.comment-head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.comment-head strong { color: #1b140e; }
.comment-head time { font-size: 13px; color: #8a7560; }
.comment-body p { margin: 4px 0 0; font-size: 16px; line-height: 1.6; color: #3a2f25; overflow-wrap: anywhere; }
.comments-empty { color: #7a6650; }
.comment-form { margin-top: 24px; padding: 20px; border-radius: 10px; background: #fbf6ec; border: 1px solid #eadbbd; display: grid; gap: 12px; }
.comment-form h3 { margin: 0; font-family: Fraunces, Georgia, serif; font-size: 20px; color: #1b140e; }
.comment-form .hint { margin: 0; font-size: 14px; color: #7a6650; }
.comment-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 700; color: #5a3310; }
.comment-form input, .comment-form textarea { width: 100%; padding: 10px 12px; border: 1px solid #d9c4a0; border-radius: 8px; background: #fff; font: 16px Figtree, system-ui, sans-serif; color: #1b140e; }
.comment-form textarea { resize: vertical; min-height: 120px; }
.comment-form .grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.comment-form button { justify-self: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 12px 14px; border-radius: 8px; font-size: 15px; margin-bottom: 12px; }
.notice.ok { background: #eaf6ec; border: 1px solid #c9e8cf; color: #1f5f2c; }
.notice.err { background: #fdeceb; border: 1px solid #f3c6c2; color: #8a1f15; }

@media (max-width: 1279px) {
  .post-layout.has-left.has-right { grid-template-columns: minmax(0, 820px) 300px; }
  .post-layout.has-left .rail-left { grid-column: 1; grid-row: 2; position: static; flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .post-layout.has-left:not(.has-right) { grid-template-columns: minmax(0, 820px); }
  .post-layout .post-main { grid-row: 1; grid-column: 1; }
  .post-layout .rail-right { grid-row: 1 / span 2; grid-column: 2; }
}
@media (max-width: 1023px) {
  .post-layout, .post-layout.has-right, .post-layout.has-left.has-right { grid-template-columns: minmax(0, 820px); }
  .post-layout .rail-right { grid-row: auto; grid-column: 1; position: static; }
  .rail { position: static; }
}
@media (max-width: 640px) {
  .prevnext { grid-template-columns: 1fr; }
  .comment-form .grid2 { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.footbar { margin-top: 20px; background: linear-gradient(180deg, #efcd97 0%, #d9a969 100%); border-top: 1px solid #9c6a33; }
.footbar-in { max-width: 1400px; margin: 0 auto; min-height: 64px; padding: 14px 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; font-size: 14px; font-weight: 700; }
.footbar nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footbar a:hover { text-decoration: underline; }
.footbar .copy { color: #5a3310; font-weight: 600; }

/* ---------- Iklan ---------- */
.ad-top { max-width: 970px; margin: 16px auto 0; padding: 0 12px; }

/* ---------- Responsif: isi rak menyesuaikan, tampilan tetap ---------- */
@media (max-width: 1099px) {
  :root { --cols: 4; --row: 318px; --cover-w: 140px; --cover-h: 211px; }
  .topbar-in { grid-template-columns: auto 1fr auto; }
  .topbar .segmented { display: none; }
  .pills { display: flex; justify-content: center; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 699px) {
  .logo img { height: 36px; max-width: 160px; }
  :root { --cols: 3; --row: 240px; --cover-w: 100px; --cover-h: 150px; --plank: 26px; }
  .book-label { font-size: 12px; padding: 0 4px; }
  .cell { gap: 6px; }
  .ribbon { top: 8px; right: -34px; width: 100px; font-size: 7px; }
  .book.shape-square { width: min(calc(100% - 12px), var(--cover-h)); }
  .book.shape-landscape { width: calc(100% - 16px); }
  .topbar-in { height: 60px; padding: 0 10px; gap: 8px; }
  .logo { font-size: 22px; }
  .topbar .about-btn { display: none; }
  .pills { justify-content: flex-start; }
  .plate { font-size: 10px; bottom: 5px; padding: 0 5px; }
  .ribbon { padding: 2px 0; }
  .post-hero { margin: 0 0 20px; }
  .about-head { grid-template-columns: 1fr; gap: 20px; }
  .about-photo { max-width: 220px; }
  .cards { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
  .footbar-in { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 359px) {
  :root { --cover-w: 88px; --cover-h: 132px; --row: 222px; }
}
@media (prefers-reduced-motion: reduce) {
  .book { transition: none; }
}
