:root {
  --bg: #ffffff;
  --ink: #1b1b1b;
  --muted: #5b5b66;
  --accent: #e6e6fa;
  --blue: #c9d8f7;
  --btn: #1b1b1b;
  --btn-ink: #ffffff;
  --card: #fafafe;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #14141a; --ink: #f2f2f6; --muted: #a8a8b8; --card: #1d1d26; --btn: #e6e6fa; --btn-ink: #14141a; }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}
.hero { text-align: center; padding: 48px 16px 40px; max-width: 760px; margin: 0 auto; }
.logo { width: min(520px, 85vw); height: auto; border-radius: 50%; }
h1 { font-size: clamp(2rem, 6vw, 3.25rem); margin: 24px 0 8px; letter-spacing: -0.02em; }
.lead { color: var(--muted); font-size: 1.15rem; max-width: 34em; margin: 0 auto 24px; }
.btn {
  display: inline-block; padding: 12px 32px; border-radius: 999px;
  background: var(--btn); color: var(--btn-ink); text-decoration: none;
  font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: .9rem;
}
.btn:hover, .btn:focus-visible { opacity: .85; }
main { max-width: 1040px; margin: 0 auto; padding: 16px 16px 56px; }
h2 { text-align: center; font-size: 1.75rem; margin: 0 0 28px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding-bottom: 24px; box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.card h3 { margin: 18px 16px 4px; font-size: 1.3rem; }
.card p { margin: 0 16px 18px; color: var(--muted); flex: 1; }
footer { text-align: center; padding: 28px 16px; color: var(--muted); font-size: .9rem; background: var(--accent); }
@media (prefers-color-scheme: dark) { footer { background: #1d1d26; } }

/* ---- Order page ---- */
.topbar { padding: 12px 16px; border-bottom: 0.5px solid rgba(128,128,128,.3); }
.home-link { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; }
.home-link img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.page-title { text-align: center; margin: 32px 0 8px; }
.center { text-align: center; }
.order-page main { padding-top: 0; }
.flavors { border: 0; margin: 0 16px 16px; padding: 0; text-align: left; align-self: stretch; flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.flavors legend { padding: 0; margin-bottom: 6px; color: var(--muted); }
.flavors label { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 4px 0; }
.flavors input { width: 18px; height: 18px; accent-color: var(--btn); margin: 0; }
.warn { color: #b3261e; font-size: .85rem; }
.controls { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.seg { display: inline-flex; border: 1px solid var(--ink); border-radius: 999px; overflow: hidden; }
.seg button { font: inherit; font-size: .85rem; padding: 8px 14px; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.seg button.on { background: var(--btn); color: var(--btn-ink); }
.seg small { opacity: .8; }
.qty { display: inline-flex; align-items: center; gap: 14px; }
.qty output { min-width: 1.5em; text-align: center; font-weight: 600; font-size: 1.1rem; }
.step { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--ink); background: transparent; color: var(--ink); font-size: 1.25rem; line-height: 1; cursor: pointer; }
.step:hover { background: var(--accent); }
.review { max-width: 560px; margin: 40px auto 0; background: var(--card); border-radius: var(--radius); padding: 24px; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.review h2 { text-align: left; margin-bottom: 12px; }
.review ul { list-style: none; margin: 0; padding: 0; }
.review li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid rgba(128,128,128,.2); }
.empty { color: var(--muted); margin: 0; }
.total { font-weight: 600; font-size: 1.15rem; text-align: right; margin: 12px 0 0; }
.notes { display: block; margin: 16px 0 6px; font-size: .9rem; color: var(--muted); }
.review textarea { width: 100%; font: inherit; padding: 10px; border-radius: 8px; border: 1px solid rgba(128,128,128,.4); background: var(--bg); color: var(--ink); resize: vertical; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
button.btn { border: 0; font-family: inherit; cursor: pointer; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
button.btn:disabled { opacity: .4; cursor: default; }
.status { min-height: 1.4em; color: var(--muted); font-size: .9rem; margin: 10px 0 0; }
[hidden] { display: none !important; }

/* ---- Donate page ---- */
.donate-page main { max-width: 760px; padding-top: 24px; }
.donate-hero { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: center; }
.donate-hero .sticker { width: min(340px, 80vw); aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
.donate-hero .dessert { width: min(360px, 90vw); height: auto; border-radius: var(--radius); }
.tiers { list-style: none; margin: 32px 0 0; padding: 0; }
.tier { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(128,128,128,.25); }
.tier img { width: 64px; height: 64px; flex: none; }
.tier .name { flex: 1; font-weight: 600; font-size: 1.15rem; }
.tier .amt { font-weight: 600; font-size: 1.15rem; min-width: 4.5em; text-align: right; }
.fineprint { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 32px; }
@media (max-width: 480px) {
  .tier { gap: 10px; }
  .tier img { width: 48px; height: 48px; }
  .tier .name, .tier .amt { font-size: 1rem; }
  .tier .amt { min-width: 3.5em; }
  .tier .btn { padding: 10px 16px; }
}
