:root {
  color-scheme: light dark;
  --brown: #5e3f27;
  --brown2: #70513a;
  --cream: #fff6e7;
  --paper: hsl(38 100% 95.3%);
  --surface: #fff;
  --ink: hsl(26 41% 26%);
  --muted: hsl(25 12% 43%);
  --line: hsl(31 25% 87%);
  --field: hsl(31 25% 82%);
  --subtle: hsl(35 48% 92%);
  --primary: hsl(26 41% 26%);
  --on-primary: hsl(38 100% 95.3%);
  --ring: hsl(26 41% 26%);
  --gold: hsl(28 35% 50%);
  --gold-d: hsl(25 25% 40%);
  --r: 20px;
  --safe-top: env(safe-area-inset-top, 0px);
  --font-reading: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --art-paper: #f7f3eb;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: hsl(24 25% 11%);
    --surface: hsl(24 23% 16%);
    --ink: hsl(36 46% 91%);
    --muted: hsl(30 24% 72%);
    --line: hsl(25 20% 42%);
    --field: hsl(25 23% 52%);
    --subtle: hsl(24 24% 23%);
    --primary: hsl(35 70% 75%);
    --on-primary: hsl(24 30% 11%);
    --ring: hsl(36 70% 75%);
    --warn: hsl(4 78% 77%);
  }
}

body {
  font-family: var(--font-reading);
  padding-bottom: calc(76px + var(--safe-b));
}

h1, h2, h3 { font-family: var(--font-display); }
input, select, textarea { accent-color: var(--primary); }
:focus-visible { outline-color: var(--ring); }
main { max-width: 1152px; }

.top {
  min-height: calc(72px + var(--safe-top));
  padding: calc(8px + var(--safe-top)) max(16px, env(safe-area-inset-right, 0px))
    8px max(16px, env(safe-area-inset-left, 0px));
}
.top-inner {
  display: flex;
  width: 100%;
  max-width: 1088px;
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.brand { display: flex; flex: none; align-items: center; }
.brand img { display: block; width: min(176px, 47vw); height: 48px; object-fit: contain; object-position: left; }
.top-r { justify-content: flex-end; gap: 6px; }
.badge { font-size: 14px; }
.lang { min-width: 44px; min-height: 44px; border-color: #ffffff40; font-size: 14px; }
.top :focus-visible, .sublime-hero :focus-visible { outline-color: var(--cream); }

.sublime-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 388px;
  padding: 24px max(20px, env(safe-area-inset-left, 0px)) 28px;
}
.sublime-hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 96%;
  z-index: -2;
}
.sublime-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(#301d11e6 0%, #301d11a6 27%, #301d1133 52%, transparent 70%);
}
.sublime-hero h1 {
  font-family: var(--font-reading);
  font-size: clamp(35px, 10vw, 48px);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.055em;
  text-transform: uppercase;
}
.sublime-hero h1 em {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -.035em;
  text-transform: none;
}
.sublime-hero .hero-copy { max-width: 31ch; }
.sublime-hero p { color: var(--cream); font-size: 15px; line-height: 1.4; }
.sublime-hero .btn:not(.ghost) { background: var(--cream); color: var(--brown); }
.sublime-hero .btn.ghost { background: #301d118a; color: var(--cream); }

.btn { border-radius: 999px; }
.btn:not(.wa):not(.ghost) { background-color: var(--primary); color: var(--on-primary); }
.sublime-hero .btn:not(.wa):not(.ghost) { background-color: var(--cream); color: var(--brown); }
.chips { top: calc(72px + var(--safe-top)); }
.chip { min-height: 44px; }
.chip[aria-pressed=true] { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.cat[id] { scroll-margin-top: calc(126px + var(--safe-top)); }

.items { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.item {
  position: relative;
  display: grid;
  align-content: start;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding: 8px;
  font-size: 14px;
}
.sublime-photo {
  display: block;
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 14px;
  background: var(--art-paper);
}
.sublime-photo > img {
  position: absolute;
  display: block;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  user-select: none;
}
.item .nm { display: grid; gap: 4px; padding: 10px 6px 5px; }
.item-name { font-weight: 500; overflow-wrap: anywhere; }
.item .p { color: var(--primary); }
.item .add {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  background: var(--surface);
  color: var(--primary);
  border: 1px solid var(--line);
}
.item:not([disabled]):hover { border-color: var(--primary); }
.item.compact { width: 168px; }
.sheet-photo { height: auto; max-width: 280px; margin: 0 auto 16px; }
.sheet-card { border-radius: 24px 24px 0 0; }

.item, .card, .chip, .qty button, .radio, .opt,
input[type=text], input[type=tel], input[type=email], select, textarea {
  background: var(--surface);
  color: var(--ink);
}
input[type=text], input[type=tel], input[type=email], select, textarea { border-color: var(--field); }
.earn, .notice, .meter, .status div { background: var(--subtle); }
.notice { border-color: var(--line); }
.status div.on, .celebrate { background: var(--brown); color: var(--cream); }
.celebrate .meter { background: var(--brown2); }
.tabs { padding: 4px 4px max(10px, var(--safe-b)); background: var(--surface); border-top: 1px solid var(--line); }
.tabs a { min-height: 54px; color: var(--muted); border-radius: 14px; }
.tabs a.on { background: var(--subtle); color: var(--primary); box-shadow: none; }
.tabs b { background: var(--primary); color: var(--on-primary); }

@media (min-width: 370px) {
  .sublime-hero { min-height: 418px; }
}

@media (min-width: 640px) {
  .items { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .item.compact { width: 194px; }
}

@media (min-width: 768px) {
  main { padding-inline: 32px; }
  .sublime-hero {
    display: flex;
    align-items: center;
    min-height: 478px;
    margin: 20px 0 0;
    padding: 32px 40px;
    border-radius: 28px;
  }
  .sublime-hero-art { left: auto; width: 66%; }
  .sublime-hero::after {
    background: linear-gradient(90deg, #5e3f27 34%, #5e3f27e6 39%, #5e3f2700 56%);
  }
  .sublime-hero h1 { font-size: clamp(48px, 5vw, 72px); }
  .sublime-hero .hero-copy { max-width: 40%; }
}

@media (min-width: 1024px) {
  .items { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
