/* V3 · Cerita Aroma — majalah berbab: tiap seri memakai warna label botolnya, grotesque ekspresif, info langsung di halaman */
:root {
  --paper: #fbf7f2;
  --ink-0: #221615;
  --maroon: #6d2f30;
  --font: 'Bricolage Grotesque', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink-0); font: 400 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
.ic { width: 20px; height: 20px; flex: none; }
.shopee-mark { width: 20px; height: 20px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; background: var(--ink-0); color: #fff; border-radius: 8px; text-decoration: none; }
.skip-link:focus { top: 12px; }
.pad { padding-inline: max(20px, calc((100% - 1180px) / 2)); }

/* Hero */
.hero { padding: 18px max(20px, calc((100% - 1180px) / 2)) 36px; }
.hero-bar { display: flex; justify-content: space-between; align-items: center; }
.hero-bar img { width: 112px; }
.hero-bar p { font-size: 13px; font-weight: 500; color: #6b5a55; }
.hero-title { margin-top: 18px; font: 800 clamp(64px, 21vw, 150px)/.82 var(--font); letter-spacing: -.045em; color: var(--maroon); }
.hero-title span { color: #e8836b; }
.hero-sub { margin-top: 14px; max-width: 30ch; font-size: 17px; line-height: 1.4; }

/* Kanal: tile berwarna label botol */
.channels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 22px; }
.ch { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 10px 14px; border-radius: 18px; text-decoration: none; font-weight: 700; font-size: 16px; transition: transform .15s; }
a.ch:hover { transform: translateY(-2px); }
.ch-label { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
@media (max-width: 359px) { .ch { gap: 8px; padding: 10px; font-size: 15px; } .ch-ic { width: 30px; height: 30px; } }
.ch-label small { font-size: 12px; font-weight: 500; opacity: .8; }
.ch-primary { grid-column: 1 / -1; min-height: 66px; background: var(--maroon); color: #fff; font-size: 18px; border-radius: 22px; }
.ch-shopee { background: #fde2d6; }
.ch-tiktokshop { background: #e4dcf2; }
.ch-lazada { background: #ece8e3; color: #6b605b; }
.ch-instagram { background: #f7d9b8; }
.ch-tiktok { background: #cfe8e1; }
.ch-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgb(255 255 255 / .6); }
.ch-primary .ch-ic { background: rgb(255 255 255 / .16); }

/* Daftar bab */
.toc { padding: 8px max(20px, calc((100% - 1180px) / 2)) 28px; }
.toc-title { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #6b5a55; margin-bottom: 10px; }
.toc ol { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.toc a { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 6px; border-radius: 999px; background: var(--bg); color: var(--ink); text-decoration: none; font-weight: 700; white-space: nowrap; }
.toc a span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgb(255 255 255 / .55); font-size: 13px; }

/* Bab */
.chapter { background: var(--bg); color: var(--ink); padding: 44px max(20px, calc((100% - 1180px) / 2)); scroll-margin-top: 0; }
.chapter-in { display: grid; gap: 22px; }
.kicker { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 14px; font-weight: 500; }
.kicker span { padding: 3px 10px; border: 1.5px solid currentColor; border-radius: 999px; font-weight: 700; }
.chapter-head h3 { margin-top: 10px; font: 800 clamp(42px, 12vw, 84px)/.9 var(--font); letter-spacing: -.035em; }
.story { margin-top: 12px; max-width: 46ch; font-size: 17px; line-height: 1.45; }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; }
.photo-tall img { aspect-ratio: 4 / 5; object-position: center 70%; }
.text { display: grid; gap: 14px; align-content: start; }
.desc { font-size: 20px; line-height: 1.35; font-weight: 500; }
.notes { font-size: 15px; }
.notes span { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; opacity: .75; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { padding: 5px 12px; border-radius: 999px; background: rgb(255 255 255 / .5); font-size: 14px; font-weight: 500; }
.chapter[style*="#283244"] .chips li { background: rgb(255 255 255 / .12); }
.price { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.price small { font-size: 14px; font-weight: 500; opacity: .8; }
.buy { display: inline-flex; align-items: center; justify-content: center; gap: 8px; justify-self: start; min-height: 50px; padding: 0 22px; border-radius: 999px; background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 700; }
.buy:hover { opacity: .88; }
.also { padding-top: 14px; border-top: 1.5px solid currentColor; font-size: 15px; }
.also a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }

/* Bab 1: trio botol bisa di-swipe */
.trio { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -20px; padding: 0 20px 8px; scrollbar-width: thin; }
.bottle { scroll-snap-align: start; display: grid; gap: 8px; align-content: start; padding: 12px 12px 18px; border-radius: 24px; background: rgb(255 255 255 / .55); }
.bottle img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; }
.bottle h4 { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.bottle h4 span { padding: 0 8px; border-radius: 8px; background: var(--label); font-size: 20px; }
.bottle .sub { font-size: 14px; }
.bottle .notes { font-size: 14px; }
.bottle .price { font-size: 19px; }
.aside { display: grid; grid-template-columns: 88px 1fr; gap: 14px; align-items: center; padding: 14px; border-radius: 20px; border: 1.5px dashed currentColor; }
.aside img { width: 88px; height: 88px; object-fit: cover; border-radius: 14px; grid-row: span 2; }
.aside p { font-size: 15px; line-height: 1.4; }
.aside .price { display: block; margin-top: 4px; font-size: 16px; }
.aside .buy { min-height: 44px; padding: 0 16px; font-size: 15px; }

/* Bab home: rak 2 kolom */
.shelf { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.shelf li { display: grid; gap: 10px; align-content: start; }
.shelf img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 18px; }
.shelf h4 { font-size: 19px; font-weight: 800; line-height: 1.1; }
.shelf .sub { font-size: 13px; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.shelf .price { font-size: 16px; margin: 4px 0 8px; }
.shelf .buy { min-height: 44px; padding: 0 18px; font-size: 15px; }

/* Footer */
.footer { padding: 52px max(20px, calc((100% - 1180px) / 2)) calc(36px + env(safe-area-inset-bottom)); background: var(--maroon); color: #fff; }
.footer-big { font: 800 clamp(48px, 15vw, 110px)/.85 var(--font); letter-spacing: -.04em; }
.channels-footer { margin: 26px 0 20px; }
.channels-footer .ch { background: rgb(255 255 255 / .1); color: #fff; }
.channels-footer .ch-primary { background: #fff; color: var(--maroon); }
.channels-footer .ch-off { color: rgb(255 255 255 / .7); }
.footer-fine { font-size: 13px; opacity: .85; margin-top: 6px; }

@media (min-width: 700px) {
  .channels { grid-template-columns: repeat(3, 1fr); }
  .trio { grid-auto-columns: 42%; }
  .shelf { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 960px) {
  .hero { display: grid; grid-template-columns: 1.1fr .9fr; grid-template-rows: auto auto 1fr; column-gap: 64px; padding-top: 28px; padding-bottom: 56px; }
  .hero-bar { grid-column: 1 / -1; }
  .hero-title { grid-column: 1; }
  .hero-sub { grid-column: 1; }
  .hero-nav { grid-column: 2; grid-row: 2 / span 2; align-self: end; }
  .channels { grid-template-columns: repeat(2, 1fr); }
  .chapter { padding-block: 72px; }
  .chapter-one .chapter-in { grid-template-columns: 1fr 1fr; column-gap: 56px; }
  .chapter-one .chapter-head { grid-column: 1 / -1; }
  .chapter-one:nth-of-type(odd) .photo { order: 2; }
  .chapter-trio .chapter-in { grid-template-columns: 1fr; }
  .trio { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; margin: 0; padding: 0; }
  .aside { grid-template-columns: 88px 1fr auto; max-width: 820px; }
  .aside img { grid-row: auto; }
  .footer { display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; align-items: end; }
  .channels-footer { margin: 0; }
  .footer-fine { grid-column: 1 / -1; }
}
