/* Toko Bima — site styles. Tokens first; brand rules in brand/README.md. */
:root {
  --papan: #F2C83A;        /* brand yellow: the name board */
  --papan-soft: #FDF3CF;   /* pale band behind sections */
  --cap: #C62A2F;          /* brand red: stamp, buttons */
  --cap-dark: #9E1F24;     /* pressed/hover red */
  --tinta: #2A1E12;        /* body text: stamp-ink brown */
  --tinta-soft: #5E4E3C;   /* secondary text */
  --kertas: #FFFFFF;       /* page and photo background */
  --garis: #E6DBC0;        /* rules and borders */

  --font-sign: "Alfa Slab One", Georgia, serif;
  --font-body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.563rem;
  --step-3: 1.953rem;
  --step-4: 2.441rem;

  --gutter: 16px;
  --measure: 68ch;
  --wrap: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--kertas);
  color: var(--tinta);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.55;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--cap); text-underline-offset: 0.15em; }

:focus-visible { outline: 3px solid var(--tinta); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -999px; }
.skip:focus { left: var(--gutter); top: 8px; background: var(--kertas); padding: 8px 12px; z-index: 10; }

/* ---------- Header ---------- */
.site-header { background: var(--papan); border-bottom: 3px solid var(--cap); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cap); }
.brand img { width: 40px; height: 40px; border-radius: 8px; }
.brand span { font-family: var(--font-sign); font-size: var(--step-1); line-height: 1; }
.site-nav { display: flex; gap: 16px; font-weight: 600; font-size: var(--step--1); }
.site-nav a { color: var(--tinta); text-decoration: none; }
.site-nav a:hover { color: var(--cap); text-decoration: underline; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px;
  font: 700 var(--step-0)/1 var(--font-body);
  border-radius: 6px; text-decoration: none; cursor: pointer;
  border: 2px solid var(--cap);
}
.btn-wa { background: var(--cap); color: var(--kertas); }
.btn-wa:hover { background: var(--cap-dark); border-color: var(--cap-dark); }
.btn-plain { background: transparent; color: var(--cap); }
.btn-plain:hover { background: var(--papan-soft); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- Home hero: the name board on the shop wall ---------- */
.facade { background: var(--cap); padding: 40px 0 44px; }
.facade .board { width: min(560px, 100%); margin: 0 auto; font-size: 0;filter: drop-shadow(0 6px 0 rgba(0, 0, 0, 0.18)); }
.facade-text { max-width: 36rem; margin: 28px auto 0; text-align: center; color: var(--kertas); }
.facade-text p { margin: 0 0 20px; font-size: var(--step-1); line-height: 1.4; }
.facade-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.facade .btn-wa { background: var(--papan); color: var(--tinta); border-color: var(--papan); }
.facade .btn-wa:hover { background: var(--kertas); border-color: var(--kertas); }
.facade .btn-plain { color: var(--kertas); border-color: var(--kertas); }
.facade .btn-plain:hover { background: var(--cap-dark); }

/* ---------- Sections ---------- */
.section { padding: 40px 0; }
.section-band { background: var(--papan-soft); }
.section h2 { font-family: var(--font-sign); font-weight: 400; font-size: var(--step-3); line-height: 1.15; margin: 0 0 8px; color: var(--cap); }
.section .lede { margin: 0 0 24px; max-width: var(--measure); color: var(--tinta-soft); }

.page-title { padding: 28px 0 8px; }
.page-title h1 { font-family: var(--font-sign); font-weight: 400; font-size: var(--step-4); line-height: 1.1; margin: 0 0 10px; color: var(--cap); }
.page-title p { margin: 0; max-width: var(--measure); color: var(--tinta-soft); }

.crumbs { font-size: var(--step--1); padding-top: 16px; color: var(--tinta-soft); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--garis); }
.crumbs a { color: var(--tinta-soft); }

/* ---------- Shelf rows (category and product lists) ---------- */
.shelf { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 32px; }
@media (min-width: 720px) { .shelf { grid-template-columns: 1fr 1fr; } }
.shelf li { border-bottom: 6px solid var(--papan); }
.shelf a { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; padding: 16px 0; text-decoration: none; color: var(--tinta); }
.shelf img { width: 96px; height: 96px; object-fit: contain; background: var(--kertas); border: 1px solid var(--garis); border-radius: 4px; }
.shelf strong { display: block; font-stretch: 87%; font-weight: 700; font-size: var(--step-1); line-height: 1.2; }
.shelf span { display: block; font-size: var(--step--1); color: var(--tinta-soft); margin-top: 4px; }
.shelf a:hover strong { color: var(--cap); text-decoration: underline; }

/* ---------- Product page ---------- */
.product { display: grid; gap: 24px; padding: 20px 0 40px; }
@media (min-width: 820px) { .product { grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; } }
.product-photo { background: var(--kertas); border: 1px solid var(--garis); border-radius: 6px; padding: 12px; }
.product-photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; }
.product h1 { font-family: var(--font-sign); font-weight: 400; font-size: var(--step-3); line-height: 1.15; margin: 0 0 12px; color: var(--cap); }
.product .desc { max-width: var(--measure); margin: 0 0 20px; }

.stamp {
  display: inline-block; margin: 0 0 20px; padding: 6px 14px;
  border: 3px double var(--cap); border-radius: 6px; color: var(--cap);
  font-weight: 800; font-size: var(--step-0); transform: rotate(-3deg);
}

.nota { margin: 0 0 24px; padding: 0; max-width: 30rem; }
.nota div { display: flex; align-items: baseline; gap: 8px; padding: 6px 0; }
.nota dt { color: var(--tinta-soft); white-space: nowrap; }
.nota .leader { flex: 1; border-bottom: 2px dotted var(--garis); transform: translateY(-4px); }
.nota dd { margin: 0; font-weight: 600; text-align: right; }

.delivery { background: var(--papan-soft); border-left: 6px solid var(--papan); padding: 12px 16px; margin: 0 0 24px; max-width: 30rem; }
.delivery p { margin: 0; }

.wa-bar { position: sticky; bottom: 0; background: var(--kertas); border-top: 1px solid var(--garis); padding: 10px var(--gutter); display: none; }
.wa-bar .btn { width: 100%; }
@media (max-width: 819px) { .wa-bar { display: block; } .product .btn-wa { display: none; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--tinta); color: var(--papan-soft); padding: 32px 0 40px; font-size: var(--step--1); }
.site-footer .wrap { display: grid; gap: 20px; }
@media (min-width: 720px) { .site-footer .wrap { grid-template-columns: auto 1fr; gap: 32px; } }
.site-footer img { width: 96px; height: 96px; }
.site-footer h2 { font-family: var(--font-sign); font-weight: 400; font-size: var(--step-1); margin: 0 0 6px; color: var(--papan); }
.site-footer p { margin: 0 0 6px; }
.site-footer a { color: var(--papan); }

.preview-note { background: var(--tinta); color: var(--papan); text-align: center; font-size: var(--step--1); padding: 6px var(--gutter); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
