/* V2 · Scent Index — katalog lab parfum: kertas abu hangat, tinta hitam, mono + serif, garis tipis, tanpa kartu */
:root {
  --bg: #f4f1ec;
  --ink: #1d1a19;
  --muted: #5f5853;
  --line: #cfc8bf;
  --maroon: #6d2f30;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --serif: 'Instrument Serif', Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.6 var(--mono); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--maroon); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
.ic { width: 18px; height: 18px; flex: none; }
.shopee-mark { width: 18px; height: 18px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; background: var(--ink); color: var(--bg); text-decoration: none; }
.skip-link:focus { top: 12px; }

.layout { width: min(100% - 32px, 1240px); margin-inline: auto; }

/* Kolom identitas */
.side { padding: 20px 0 32px; border-bottom: 1px solid var(--ink); }
.side-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.logo { width: 132px; }
.meta { font-size: 12px; line-height: 1.4; text-align: right; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.title { margin-top: 18px; font: 400 clamp(56px, 18vw, 96px)/.9 var(--serif); letter-spacing: -.02em; }
.title em { color: var(--maroon); }
.lede { margin-top: 12px; max-width: 40ch; color: var(--muted); font-size: 14px; }
.lede span { color: var(--ink); font-weight: 600; }

/* Kanal: tabel 2 kolom, Tokopedia penuh */
.channels { display: grid; grid-template-columns: 1fr 1fr; margin-top: 22px; border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.channels li { display: contents; }
.ch { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 10px 12px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; transition: background .15s; }
a.ch:hover { background: #fff; }
.ch-label { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.ch-label small { font-size: 12px; color: var(--muted); font-weight: 400; }
.ch-go .ic { width: 14px; height: 14px; opacity: .55; }
.ch-primary { grid-column: 1 / -1; min-height: 60px; background: var(--ink); color: var(--bg); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
a.ch-primary:hover { background: var(--maroon); }
.ch-primary .ch-go .ic { opacity: 1; }
.ch-tiktok { grid-column: span 2; }
.ch-off { color: var(--muted); background: repeating-linear-gradient(135deg, transparent 0 6px, rgb(0 0 0 / .035) 6px 7px); }

.side-photo { margin-top: 24px; }
.side-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 88%; }
.side-photo figcaption { display: flex; gap: 10px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.side-photo figcaption span { color: var(--ink); font-weight: 600; }

/* Indeks */
.index { padding: 28px 0 40px; }
.index-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.index-head h2 { font: 400 40px/1 var(--serif); }
.rating { font-size: 13px; color: var(--muted); }
.group { padding-top: 26px; }
.group-title { display: flex; align-items: baseline; gap: 12px; font: 400 30px/1.1 var(--serif); }
.group-title span { font: 600 13px/1 var(--mono); padding: 4px 7px; border: 1px solid var(--ink); }
.group-note { margin-top: 4px; font-size: 13px; color: var(--muted); }
.entries { margin-top: 12px; border-top: 1px solid var(--line); }
.entry { border-bottom: 1px solid var(--line); }
summary { display: grid; grid-template-columns: 56px 1fr auto 56px; align-items: center; gap: 12px; min-height: 76px; padding: 10px 0; cursor: pointer; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::before { content: ''; position: absolute; left: -16px; top: 14px; bottom: 14px; width: 4px; background: var(--label); }
summary:hover .name { color: var(--maroon); }
.no { font: 400 26px/1 var(--serif); letter-spacing: -.02em; word-break: break-all; }
.name { display: flex; flex-direction: column; font: 400 23px/1.05 var(--serif); min-width: 0; }
.name small { margin-top: 3px; font: 400 12px/1.4 var(--mono); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.price { display: flex; flex-direction: column; align-items: flex-end; font-size: 13px; font-weight: 600; white-space: nowrap; }
.price small { font-size: 12px; font-weight: 400; color: var(--muted); }
.thumb img { width: 56px; height: 56px; object-fit: cover; background: #fff; }
details[open] summary .thumb { visibility: hidden; }
details[open] summary { border-bottom: 1px dashed var(--line); }

.sheet { display: grid; gap: 16px; padding: 16px 0 22px; }
.sheet-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #fff; }
.spec { display: grid; border-top: 1px solid var(--ink); }
.spec div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.spec dt { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; padding-top: 2px; }
.desc { font: 400 21px/1.3 var(--serif); }
.buy { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.buy-main { display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 600; font-size: 14px; }
.buy-main:hover { background: var(--maroon); }
.buy-alt { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; text-underline-offset: 4px; }
.fine { margin-top: 24px; font-size: 12px; color: var(--muted); }

.footer { width: min(100% - 32px, 1240px); margin-inline: auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 18px 0 calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--ink); font-size: 13px; color: var(--muted); }
.footer a { display: inline-block; padding: 10px 0; }

@media (min-width: 640px) {
  .channels { grid-template-columns: repeat(3, 1fr); }
  .sheet { grid-template-columns: 220px 1fr; align-items: start; }
  .sheet-photo { grid-row: span 3; }
}
@media (min-width: 1000px) {
  .layout { display: grid; grid-template-columns: minmax(340px, 400px) 1fr; gap: 0 56px; align-items: start; }
  .side { position: sticky; top: 0; max-height: 100dvh; overflow-y: auto; padding: 28px 0 28px; border: 0; scrollbar-width: thin; }
  .channels { grid-template-columns: 1fr 1fr; }
  .side-photo img { aspect-ratio: 16 / 10; }
  .index { padding: 36px 0 64px; border-left: 1px solid var(--ink); padding-left: 40px; min-height: 100dvh; }
  .index-head h2 { font-size: 56px; }
  summary { grid-template-columns: 96px 1fr 140px 64px; min-height: 88px; }
  summary::before { left: -40px; width: 6px; }
  .no { font-size: 34px; }
  .name { font-size: 28px; }
  .thumb img { width: 64px; height: 64px; }
  .sheet { grid-template-columns: 260px 1fr; padding-left: 108px; }
}
