:root {
  --cream: #f6e6d6;
  --paper: #fbf4ec;
  --brown: #4a3222;
  --brown-soft: #7a5a44;
  --rose: #b0636a;
  --rose-dark: #96525a;
  --olive: #6b7a3c;
  --gold: #c9a26a;
  --line: rgba(201, 162, 106, 0.55);
  --radius: 14px;
  --shadow: 0 6px 22px rgba(74, 50, 34, 0.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--brown);
  font-family: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--rose-dark); }

.page {
  max-width: 520px;
  margin: 0 auto;
  padding: 18px 16px calc(32px + env(safe-area-inset-bottom));
}

/* ---------- Header ---------- */
.hero { text-align: center; }

.logo {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  border-radius: var(--radius);
}

.tagline {
  font-family: "Great Vibes", cursive;
  font-size: 2rem;
  color: var(--rose);
  margin: 4px 0 2px;
  line-height: 1.2;
}

.sub {
  margin: 0 0 22px;
  font-size: 0.92rem;
  color: var(--brown-soft);
  letter-spacing: 0.02em;
}

/* ---------- Buttons ---------- */
.actions {
  display: grid;
  gap: 12px;
  margin-bottom: 26px;
}

.btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 12px 18px;
  border: 1.5px solid var(--gold);
  border-radius: 999px;
  background: var(--paper);
  color: var(--brown);
  font: 700 1rem/1.2 "Lato", sans-serif;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  word-break: break-word;
  width: 100%;
}

.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.btn svg .fill { fill: currentColor; stroke: none; }

.btn:hover { background: #fff; box-shadow: var(--shadow); }
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline: 3px solid var(--olive); outline-offset: 2px; }

.btn-primary {
  background: var(--rose);
  border-color: var(--rose);
  color: #fff;
  font-size: 1.08rem;
}
.btn-primary:hover { background: var(--rose-dark); }

.btn-ghost {
  background: transparent;
  border-style: dashed;
  min-height: 46px;
  font-weight: 400;
}

/* ---------- Cards ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 20px 22px;
  margin: 0 0 26px;
  box-shadow: var(--shadow);
  scroll-margin-top: 16px;
}

h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  font-size: 1.9rem;
  text-align: center;
  margin: 0;
  color: var(--brown);
  line-height: 1.15;
}

.flourish {
  text-align: center;
  color: var(--olive);
  font-size: 1.1rem;
  margin: 2px 0 16px;
}

.lead {
  text-align: center;
  margin: -4px 0 18px;
  color: var(--brown-soft);
}

.menu { list-style: none; margin: 0; padding: 0; }

.menu li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px dotted var(--line);
}
.menu li:last-child { border-bottom: 0; }
.menu strong {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.3rem;
  line-height: 1.2;
}
.menu span { font-size: 0.9rem; color: var(--brown-soft); }

.price {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.5rem;
  color: var(--rose);
  white-space: nowrap;
}

.note {
  font-size: 0.82rem;
  color: var(--brown-soft);
  margin: 14px 0 0;
}
.center { text-align: center; }

/* ---------- Photos ---------- */
.photo { margin: 0 0 26px; }
.photo img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.photo figcaption {
  text-align: center;
  font-family: "Great Vibes", cursive;
  font-size: 1.5rem;
  color: var(--rose);
  margin-top: 6px;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 0 26px;
}
.gallery img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- Order form ---------- */
.order { display: grid; gap: 18px; }

.trays {
  border: 0;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.tray { position: relative; cursor: pointer; display: block; }
.tray input { position: absolute; opacity: 0; pointer-events: none; }

.tray-body {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  padding: 14px 16px 14px 46px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  position: relative;
  transition: border-color .15s, box-shadow .15s;
}
.tray-body::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 18px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: #fff;
}
.tray input:checked + .tray-body {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(176, 99, 106, 0.15);
}
.tray input:checked + .tray-body::before {
  border-color: var(--rose);
  background: radial-gradient(circle, var(--rose) 45%, #fff 50%);
}
.tray input:focus-visible + .tray-body { outline: 3px solid var(--olive); outline-offset: 2px; }

.tray-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  font-size: 1.3rem;
}
.tray-price {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.4rem;
  color: var(--rose);
  font-weight: 700;
}
.tray-desc {
  grid-column: 1 / -1;
  font-size: 0.88rem;
  color: var(--brown-soft);
}

.field { display: grid; gap: 6px; }
.field > span { font-weight: 700; }
.field input {
  font: inherit;
  font-size: 16px; /* prevents iOS zoom */
  padding: 12px 14px;
  min-height: 50px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--brown);
  width: 100%;
}
.field input:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 3px rgba(176, 99, 106, 0.15); }
.field small { color: var(--brown-soft); font-size: 0.85rem; }

.error {
  margin: 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: #f7dfe0;
  color: #7a2f36;
  font-size: 0.92rem;
}

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  font-size: 0.9rem;
  color: var(--brown-soft);
  padding-top: 6px;
}
.footer img { margin: 0 auto 8px; border-radius: 50%; }
.footer p { margin: 4px 0; }
.footer a { text-decoration: none; }
.tiny { font-size: 0.78rem; opacity: 0.8; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@media (min-width: 700px) {
  .page { padding-top: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

.tray-extra {
  grid-column: 1 / -1;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--olive);
}

.micro {
  text-align: center;
  margin: 2px 0 0;
  font-size: 0.95rem;
  color: var(--brown-soft);
}
