/* Brand colours from brand/logo/Color_Palette.txt: chocolate brown #3E2116,
   pistachio #8C9D58, ivory #FFF7E6. */
:root {
  --ink: #3e2116;
  --paper: #ffffff;
  --cream: #fff7e6;
  --honey: #e2a33a;
  --pistachio: #8c9d58;
  --pistachio-ink: #5d6b32;
  --muted: #5f5550;
  --line: #ece4d8;
  --error: #b3261e;
  --radius: 14px;
  --sans: Archivo, system-ui, sans-serif;
  --mono: 'Space Mono', ui-monospace, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.5 var(--sans); }
body.locked { overflow: hidden; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.05; font-weight: 900; }
a { color: inherit; }
button { font-family: inherit; }

/* Announcement strip */
.announce {
  background: var(--ink); color: #fff; text-align: center;
  font: 800 .8rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase;
  padding: 11px 16px;
}

/* Header: links left, logo centre, cart right */
.top {
  position: sticky; top: 0; z-index: 20;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 10px clamp(16px, 3vw, 32px);
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.top-left { display: flex; gap: 22px; }
.top-left a { text-decoration: none; font-weight: 700; font-size: .95rem; }
.top-left a:hover { text-decoration: underline; text-underline-offset: 4px; }
.top-right { display: flex; justify-content: flex-end; }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 34px; width: auto; }
.cart-btn { position: relative; background: none; border: 0; padding: 6px; cursor: pointer; color: var(--ink); }
.cart-count {
  position: absolute; top: -2px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 99px; background: var(--honey); color: var(--ink);
  font: 800 .72rem/20px var(--sans); text-align: center;
}

/* Two-panel banner */
.banner { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px; }
.panel { border-radius: var(--radius); aspect-ratio: 16 / 11; display: grid; place-items: center; overflow: hidden; }
.panel img { width: 58%; filter: drop-shadow(0 24px 28px rgba(60, 30, 10, .28)); }
.panel-a { background: #e9c98f; }
.panel-a img { transform: rotate(-10deg); }
.panel-b { background: #b9cc8f; }
.panel-b img { transform: rotate(8deg); }
.panel img.photo { width: 100%; height: 100%; object-fit: cover; filter: none; transform: none; }

/* Collection */
.collection { max-width: 1200px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) clamp(16px, 3vw, 32px); }
.collection h1 { font-size: clamp(2.6rem, 6vw, 4rem); text-align: center; letter-spacing: -.02em; }
.intro { max-width: 60ch; margin: 18px auto 0; text-align: center; font-size: 1.05rem; }

.grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px;
  max-width: 1140px; margin: clamp(32px, 5vw, 56px) auto 0;
}
.product {
  display: flex; flex-direction: column; background: var(--paper);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .04), 0 12px 30px rgba(0, 0, 0, .07);
}
.tile { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.tile img { width: 64%; height: auto; filter: drop-shadow(0 16px 18px rgba(60, 30, 10, .22)); transition: transform .3s; }
.product:hover .tile img { transform: rotate(-6deg) scale(1.04); }
.tile { overflow: hidden; }
.tile img.photo { width: 100%; height: 100%; object-fit: cover; filter: none; }
.product:hover .tile img.photo { transform: scale(1.05); }
.badge {
  z-index: 1;
  position: absolute; top: 16px; left: 16px;
  background: var(--paper); color: var(--pistachio-ink); border-radius: 99px; padding: 7px 14px;
  font: 700 .78rem/1 var(--mono); text-transform: uppercase; letter-spacing: .06em;
}
.product-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; text-align: center; }
.product-body h3 { font-size: 1.25rem; font-weight: 800; text-transform: uppercase; }
.product-body h3 span { display: block; margin-top: 4px; font-size: .85rem; font-weight: 600; text-transform: none; color: var(--muted); }
.product-body p { margin: 12px 0 20px; flex: 1; }

/* Buttons */
.btn {
  width: 100%; border: 0; cursor: pointer; border-radius: 8px;
  background: var(--ink); color: #fff;
  font: 800 1rem/1 var(--sans); text-transform: uppercase; letter-spacing: .02em;
  padding: 18px 16px; transition: background .15s, transform .08s;
}
.btn:hover { background: #5a3424; }
.btn:active { transform: scale(.98); }
.btn:disabled { background: #c9c2bb; cursor: not-allowed; transform: none; }

/* How it works */
.how { background: var(--cream); padding: clamp(48px, 7vw, 88px) clamp(16px, 3vw, 32px); }
.how h2 { text-align: center; font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: -.02em; }
.steps { list-style: none; padding: 0; margin: 40px auto 0; max-width: 1100px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 32px; }
.steps li { text-align: center; }
.steps span { display: block; font: 700 .9rem var(--mono); color: var(--pistachio-ink); margin-bottom: 10px; }
.steps h3 { font-size: 1.25rem; font-weight: 800; text-transform: uppercase; margin-bottom: 8px; }
.steps p { margin: 0; color: var(--muted); }

/* Footer */
.foot { background: var(--ink); color: #fff; text-align: center; padding: 40px 16px; }
.logo-foot { justify-content: center; margin-bottom: 14px; }
.logo-foot img { height: 48px; }
.foot p { margin: 0; font-size: .9rem; color: #cfc6bf; }

/* Cart drawer */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(20, 16, 16, .45); }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 50;
  width: min(420px, 100%); background: var(--paper);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .28s ease;
  box-shadow: -10px 0 40px rgba(0, 0, 0, .15);
}
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.4rem; font-weight: 900; text-transform: uppercase; }
.close { background: none; border: 0; font-size: 2rem; line-height: 1; cursor: pointer; padding: 0 4px; color: var(--ink); }
.drawer-lines { flex: 1; overflow-y: auto; padding: 8px 20px; }
.empty { text-align: center; color: var(--muted); margin: 48px 0; }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line-img { width: 72px; height: 72px; border-radius: 10px; display: grid; place-items: center; }
.line-img { overflow: hidden; }
.line-img img { width: 78%; }
.line-img img.photo { width: 100%; height: 100%; object-fit: cover; }
.line-info { display: flex; flex-direction: column; gap: 2px; }
.line-info strong { font-weight: 800; text-transform: uppercase; font-size: .95rem; }
.line-info span { color: var(--muted); font-size: .88rem; }
.line-total { font-weight: 800; }
.stepper { display: inline-flex; align-items: center; margin-top: 8px; border: 1px solid var(--line); border-radius: 8px; width: max-content; }
.stepper button { width: 36px; height: 36px; border: 0; background: none; cursor: pointer; font-size: 1.2rem; font-weight: 700; color: var(--ink); }
.stepper button:disabled { opacity: .3; cursor: not-allowed; }
.stepper output { min-width: 2.2ch; text-align: center; font-weight: 800; }
.drawer-foot { padding: 18px 20px 22px; border-top: 1px solid var(--line); background: var(--cream); }
.subtotal { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; text-transform: uppercase; }
.subtotal strong { font-size: 1.4rem; }
.note { margin: 6px 0 14px; font-size: .88rem; color: var(--muted); }
.secure { margin: 12px 0 0; text-align: center; font-size: .82rem; color: var(--muted); }
.error { margin: 12px 0 0; text-align: center; color: var(--error); font-weight: 700; }

/* Simple pages (thanks, 404) */
.simple { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 48px 16px; }
.simple img { width: 160px; margin: 0 auto 24px; }
.simple h1 { font-size: clamp(2rem, 6vw, 3rem); text-transform: uppercase; letter-spacing: -.02em; }
.simple p { color: var(--muted); max-width: 38ch; margin: 16px auto 28px; }
.simple .btn { width: auto; display: inline-block; padding: 18px 32px; text-decoration: none; }

@media (max-width: 720px) {
  .top-left { visibility: hidden; }
  .banner { grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; }
  .panel { aspect-ratio: 1; }
}
