/* theme.css — Cemilix. The tenant's own identity, layered over the shared
 * styles.css. Loaded last, so it wins on equal specificity.
 *
 * Direction: a snack packet. This is a home kitchen selling ulat keju and telur
 * gabus to neighbours ("temen tetangga dan yang biasa beli"), and its own
 * packaging already supplies the voice: PREMIUM CEMILIX, "Keaslian Rasa Sunda",
 * "Ulat Keju Gurih Bikin Nagih", HALAL, "cemilan asyiiix di waktu santai".
 * So the site is built to feel like something handed over a fence: butter-paper
 * ground, rounded packet lettering, hard sticker shadows, nothing precious.
 *
 * Formally the opposite of the Lacilose tenant on every axis — round where that
 * is square, thick where that is fine, loud where that is quiet — which is what
 * stops the two sites reading as one template in two hues.
 */

/* ---------- 1. Type: packet lettering ---------- */

h1, h2, .error-page__code {
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.05;
}
h3, h4, .brand__name { font-weight: 700; }

/* Baloo 2 sits high on the line; pull the display down to meet the body text. */
h1, h2, h3, h4 { padding-top: 0.08em; }

.eyebrow {
  letter-spacing: 0.1em;
  font-weight: 700;
  padding: var(--space-2xs) var(--space-xs);
  background: var(--color-tertiary-container);
  color: var(--color-on-surface);
  border-radius: var(--radius-full);
}
.section--dark .eyebrow {
  background: var(--color-tertiary-container);
  color: var(--color-on-surface);
}

/* ---------- 2. Sections: blocks of packet colour ---------- */

/* .section--alt was a 1.3% lightness tint, i.e. invisible. Make it a real band. */
.section--alt { background: var(--color-surface-container); }

/* A serrated seal, like the crimped top of a snack packet, closes the dark
   band. Drawn with a gradient rather than an image: no request, scales freely. */
.section--dark { position: relative; }
.section--dark::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 12px;
  background: repeating-linear-gradient(
    135deg,
    var(--color-surface) 0 10px,
    transparent 10px 20px
  );
  opacity: 0.35;
}

/* ---------- 3. Hero ---------- */

.hero { background: var(--color-surface); }
.hero__media img {
  border-radius: var(--radius-xl);
  border: 3px solid var(--color-on-surface);
  box-shadow: 10px 10px 0 var(--color-tertiary-container);
  aspect-ratio: 4 / 3;
}
.hero__meta li {
  font-weight: 600;
  padding: var(--space-2xs) var(--space-sm);
  background: var(--color-surface-container);
  border-radius: var(--radius-full);
}

/* ---------- 4. Cards: stickers ---------- */

.card {
  border-radius: var(--radius-xl);
  border: 3px solid var(--color-on-surface);
  box-shadow: 6px 6px 0 var(--color-primary);
  background: var(--color-surface-container-lowest);
  transition: transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
}
.card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 10px 10px 0 var(--color-primary);
}
.card__media { border-bottom: 3px solid var(--color-on-surface); }
.card__body { padding: var(--space-md) var(--space-md) var(--space-md); }

/* No price is published here by policy, so the ask reads as a friendly label
   rather than a missing number. */
.card__price--ask {
  display: inline-block;
  padding: var(--space-2xs) var(--space-sm);
  background: var(--color-tertiary-fixed);
  border-radius: var(--radius-full);
  color: var(--color-on-surface);
  font-weight: 700;
}

/* ---------- 5. Controls: fat friendly pills ---------- */

.btn {
  border-radius: var(--radius-full);
  border-width: 3px;
  font-weight: 700;
  padding-block: var(--space-sm);
}
.btn--primary { border-color: var(--color-on-surface); }
.btn--wa { border-color: var(--color-on-surface); }
.btn--grab { border-color: var(--color-on-surface); }
.btn--outline { border-color: var(--color-on-surface); color: var(--color-on-surface); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 0 var(--color-on-surface); }

.icon { stroke-width: 2.5; }

.menu-toggle { border-radius: var(--radius-full); border-width: 3px; border-color: var(--color-on-surface); }
.site-header { border-bottom-width: 3px; border-bottom-color: var(--color-on-surface); }

.channel, .feature {
  border-radius: var(--radius-xl);
  border-width: 3px;
  border-color: var(--color-on-surface);
}

.note {
  border-radius: var(--radius-lg);
  border-left-width: 6px;
  border-left-color: var(--color-tertiary-container);
  background: var(--color-surface-container-low);
}

.detail-list > div { border-bottom-color: var(--color-outline-variant); }

/* ---------- 6. Badges, from their own packaging ---------- */

/* "HALAL" is printed on the real packet, so it is theirs to show. */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  padding: var(--space-2xs) var(--space-sm);
  border: 2px solid var(--color-on-surface);
  border-radius: var(--radius-full);
  background: var(--color-tertiary-container);
  color: var(--color-on-surface);
  font-size: var(--text-micro);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.badge--plain { background: var(--color-surface-container-lowest); }

/* ---------- 7. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .card:hover, .btn:hover { transform: none; }
}

/* ---------- 8. Pending-photo badge ---------- */
.card__media-note {
  border: 2px solid var(--color-on-surface);
  border-radius: var(--radius-full);
  color: var(--color-on-surface);
  font-weight: 700;
}
