:root {
  color-scheme: light;
  --cream: #fff8ed;
  --paper: #f9ecd7;
  --tan: #d8a85f;
  --gold: #c99042;
  --cocoa: #3b1f14;
  --cocoa-soft: #5a3424;
  --border: #ead1aa;
  --card: #fffaf1;
  --shadow-soft: 0 18px 44px rgba(59, 31, 20, 0.12);
  --shadow-card: 0 12px 28px rgba(86, 50, 33, 0.1);
  --shadow-sheet: 0 28px 60px rgba(43, 23, 15, 0.24);
  --radius-xl: 32px;
  --radius-lg: 28px;
  --radius-md: 24px;
  --radius-sm: 18px;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  line-height: 1.5;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(216, 168, 95, 0.22), transparent 28rem),
    radial-gradient(circle at 100% 18%, rgba(201, 144, 66, 0.14), transparent 20rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), transparent 18rem),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0 2px, transparent 2px 10px),
    var(--cream);
  color: var(--cocoa);
}

body.sheet-open {
  overflow: hidden;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
}

input,
textarea {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fffdf8;
  color: var(--cocoa);
}

textarea {
  resize: vertical;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible,
.order-sheet:focus-visible {
  outline: 3px solid rgba(201, 144, 66, 0.42);
  outline-offset: 3px;
}

.order-sheet:focus {
  outline: none;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--cocoa);
  line-height: 1.08;
}

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.15rem, 10vw, 3.15rem);
  letter-spacing: -0.04em;
  text-wrap: balance;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
}

h3 {
  font-size: 1.04rem;
}

p {
  margin: 0;
  color: var(--cocoa-soft);
}

.page-shell {
  width: 100%;
  min-width: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

.storefront {
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 520px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 18px 16px 40px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 250, 241, 0.98), rgba(249, 236, 215, 0.98));
}

.home-screen {
  display: grid;
  gap: 1rem;
}

.brand-hero {
  padding-top: 0.1rem;
}

.hero-card,
.shortcut-card,
.gallery-card,
.info-card,
.order-sheet {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 250, 241, 0.98), rgba(255, 248, 237, 0.98));
  box-shadow: var(--shadow-card);
}

.hero-card {
  position: relative;
  display: grid;
  gap: 0.8rem;
  padding: 0;
  border: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: transparent;
  box-shadow: none;
}

.hero-banner {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  aspect-ratio: 16 / 9;
  height: clamp(11rem, 56vw, 16.5rem);
  max-height: 16.5rem;
  border: 1px solid rgba(234, 209, 170, 0.9);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  object-fit: cover;
  object-position: center;
}

.hero-tagline {
  margin: 0;
  padding-inline: 0.35rem;
  color: var(--cocoa-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.95rem, 4vw, 1.15rem);
  font-style: italic;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.eyebrow {
  margin-top: 0.35rem;
  color: var(--cocoa-soft);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.55rem;
  padding: 0.95rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  text-align: center;
  font-weight: 900;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, #4a291b, var(--cocoa));
  color: #fff8ef;
  box-shadow: 0 12px 22px rgba(63, 36, 24, 0.22);
}

.button-large {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: 0;
}

.section-heading {
  margin-bottom: 0.85rem;
}

.product-picker .section-heading,
.gallery-preview .section-heading {
  text-align: center;
}

.section-heading.compact h2 {
  font-size: 1.38rem;
}

.gallery-grid,
.info-stack {
  display: grid;
  gap: 0.85rem;
}

.shortcut-label {
  color: var(--cocoa);
  font-size: 1.05rem;
  font-weight: 900;
}

.shortcut-copy {
  color: var(--cocoa-soft);
  font-size: 0.92rem;
}

.menu-frame {
  --wheat-border-width: 183%;
  --wheat-border-height: 151%;
  --wheat-border-x: 5px;
  --wheat-border-y: 20px;
  --wheat-border-opacity: 0.15;
  position: relative;
  display: grid;
  gap: 0;
  min-width: 0;
  padding: 1.35rem 1.05rem;
  border: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.98), rgba(249, 236, 215, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 16px 34px rgba(86, 50, 33, 0.12);
}

.menu-frame::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--wheat-border-width);
  height: var(--wheat-border-height);
  z-index: 0;
  background: url("assets/wheat border 37.svg") center / 100% 100% no-repeat;
  border: 0;
  border-radius: inherit;
  opacity: var(--wheat-border-opacity);
  pointer-events: none;
  transform: translate(-50%, -50%) translate(var(--wheat-border-x), var(--wheat-border-y));
  transform-origin: center;
}

.menu-frame::after {
  content: "";
  position: absolute;
  inset: 1.05rem;
  z-index: 0;
  border-radius: calc(var(--radius-lg) - 10px);
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0 2px, transparent 2px 9px),
    radial-gradient(ellipse at center, rgba(255, 250, 241, 0.9), rgba(249, 236, 215, 0.72) 58%, rgba(249, 236, 215, 0.2) 100%);
  opacity: 0.92;
  pointer-events: none;
}

.menu-category {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.65rem;
  padding: 0.95rem 0.25rem;
}

.menu-category + .menu-category {
  border-top: 1px solid rgba(91, 52, 36, 0.18);
}

.menu-category-top {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.menu-icon {
  display: inline-grid;
  place-items: center;
  width: 2.65rem;
  height: 2.65rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff3da, #f0d19d);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
  font-size: 1.35rem;
}

.menu-category h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
  font-style: italic;
  line-height: 1.05;
}

.menu-list {
  display: grid;
  gap: 0.34rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--cocoa);
  font-size: 0.92rem;
}

.menu-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 0.5rem;
  min-width: 0;
}

.menu-list li span {
  min-width: 0;
}

.menu-list li strong {
  flex: 0 0 auto;
  color: var(--cocoa);
  font-size: 0.9rem;
}

.menu-list.simple {
  padding-left: 1.05rem;
  list-style: disc;
}

.menu-list.simple li {
  display: list-item;
}

.menu-starting,
.menu-note {
  margin: 0;
  color: var(--cocoa-soft);
  font-size: 0.86rem;
  font-weight: 800;
}

.menu-note {
  font-style: italic;
}

.menu-order-button {
  min-height: 2.75rem;
  height: 2.75rem;
  width: 100%;
  margin-top: 0.1rem;
  padding: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.menu-order-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  filter: drop-shadow(0 10px 14px rgba(63, 36, 24, 0.22));
  pointer-events: none;
  transform: scale(2.25);
  transform-origin: center;
}

.wheat-debug-panel {
  position: absolute;
  left: var(--wheat-debug-left, 1rem);
  top: var(--wheat-debug-top, 7rem);
  z-index: 80;
  width: min(calc(100% - 2rem), 320px);
  padding: 0.9rem;
  border: 1px solid rgba(83, 46, 30, 0.28);
  border-radius: 18px;
  background: rgba(255, 250, 241, 0.96);
  box-shadow: var(--shadow-sheet);
  color: var(--cocoa);
  touch-action: none;
}

.wheat-debug-panel[hidden] {
  display: none;
}

.wheat-debug-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
  cursor: grab;
  user-select: none;
}

.wheat-debug-header:active {
  cursor: grabbing;
}

.wheat-debug-panel h2 {
  margin: 0;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 0.95rem;
  line-height: 1.1;
}

.wheat-debug-header span {
  color: var(--cocoa-soft);
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

.wheat-debug-profiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
  margin-bottom: 0.55rem;
}

.wheat-debug-profiles button {
  min-height: 2rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid rgba(83, 46, 30, 0.24);
  border-radius: 999px;
  background: rgba(255, 248, 237, 0.86);
  color: var(--cocoa-soft);
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}

.wheat-debug-profiles button.is-active {
  background: linear-gradient(135deg, #4a291b, var(--cocoa));
  color: #fff8ef;
}

.wheat-debug-panel label {
  display: grid;
  grid-template-columns: 4.7rem 1fr 3.1rem;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.45rem;
  font-size: 0.78rem;
  font-weight: 900;
}

.wheat-debug-panel input {
  min-height: 0;
  padding: 0;
}

.wheat-debug-value {
  color: var(--cocoa-soft);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.shortcut-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.shortcut-card {
  display: grid;
  gap: 0.2rem;
  padding: 0.95rem 1rem;
  border-radius: var(--radius-md);
  text-decoration: none;
}

.section {
  padding: 1.25rem 0 0;
}

.gallery-card,
.info-card {
  border-radius: var(--radius-md);
}

.gallery-preview,
.payment-info {
  scroll-margin-top: 1rem;
}

.payment-info {
  padding-block: 1rem 0;
  border: 0;
}

.accepted-payments {
  display: grid;
  gap: 0.75rem;
  border: 0;
  background:
    radial-gradient(ellipse at center, rgba(216, 168, 95, 0.12), transparent 72%);
  box-shadow: none;
}

.accepted-payments-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--cocoa);
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1.1;
  text-transform: uppercase;
}

.accepted-payments-heading p {
  margin: 0;
}

.payment-heading-icon {
  width: 1.75rem;
  height: 1.75rem;
  flex: 0 0 auto;
  object-fit: contain;
}

.payment-logo-row {
  display: grid;
  grid-template-columns: repeat(3, 4.4rem);
  align-items: start;
  justify-content: center;
  gap: 0.65rem;
}

.payment-logo-item {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  min-width: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.payment-logo-item img {
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
}

.payment-logo-item span {
  color: var(--cocoa);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
}

.gallery-card {
  overflow: hidden;
}

.gallery-card h3,
.gallery-card p {
  padding-inline: 1rem;
}

.gallery-card h3 {
  margin-top: 0.9rem;
}

.gallery-card p {
  margin: 0.35rem 0 1rem;
}

.gallery-art {
  aspect-ratio: 1 / 1;
  min-height: 0;
  border-bottom: 1px solid var(--border);
}

.sourdough-art,
.cake-art,
.treats-art {
  background-color: #fff4df;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.sourdough-art {
  background-image: url("assets/yeast of these sourdough.jpg");
}

.cake-art {
  background-image: url("assets/yeast of these cakes.jpg");
}

.treats-art {
  background-image: url("assets/yeast of these cupcakes.jpg");
}

.info-card {
  padding: 1rem;
}

.info-card p {
  margin-top: 0.35rem;
  font-size: 0.95rem;
}

.site-footer {
  display: grid;
  gap: 0.25rem;
  padding: 1.6rem 0.25rem 0;
  color: var(--cocoa-soft);
  text-align: center;
}

.site-footer strong {
  color: var(--cocoa);
}

.footer-credit {
  display: block;
  margin-top: 0.75rem;
  color: rgba(90, 52, 36, 0.72);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}

.sheet-layer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 0.5rem;
}

.sheet-layer[hidden] {
  display: none;
}

.sheet-layer.is-open {
  display: flex;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(34, 18, 12, 0.42);
  opacity: 0;
  cursor: pointer;
  transition: opacity 180ms ease;
}

.order-sheet {
  position: relative;
  width: min(calc(100vw - 1rem), 520px);
  max-width: 520px;
  max-height: min(82vh, 760px);
  padding: 0.85rem 1rem 1.15rem;
  border-radius: 28px 28px 20px 20px;
  overflow: auto;
  box-shadow: var(--shadow-sheet);
  transform: translateY(24px);
  opacity: 0;
  transition: transform 200ms ease, opacity 200ms ease;
}

.sheet-layer.is-open .sheet-backdrop {
  opacity: 1;
}

.sheet-layer.is-open .order-sheet {
  transform: translateY(0);
  opacity: 1;
}

.sheet-handle {
  width: 3.6rem;
  height: 0.34rem;
  margin: 0 auto 0.95rem;
  border-radius: 999px;
  background: rgba(91, 52, 36, 0.18);
}

.sheet-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.sheet-close {
  min-height: 2.75rem;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 248, 237, 0.96);
  color: var(--cocoa);
  font-weight: 900;
}

.sheet-form {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.sheet-form label,
.sheet-products {
  display: grid;
  gap: 0.45rem;
  color: var(--cocoa);
  font-size: 0.95rem;
  font-weight: 900;
}

.sheet-products {
  margin: 0;
  padding: 0;
  border: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sheet-products legend {
  grid-column: 1 / -1;
  margin-bottom: 0.25rem;
}

.sheet-option {
  position: relative;
}

.sheet-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.sheet-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fffdf8;
  color: var(--cocoa-soft);
  font-weight: 900;
  text-align: center;
}

.sheet-option input:checked + span {
  border-color: var(--cocoa);
  background: linear-gradient(135deg, #4a291b, var(--cocoa));
  color: #fff8ef;
  box-shadow: 0 10px 18px rgba(63, 36, 24, 0.18);
}

.full-field {
  width: 100%;
}

@media (min-width: 768px) {
  .page-shell {
    padding: 2rem 1rem;
  }

  .storefront {
    border: 1px solid rgba(234, 209, 170, 0.9);
    border-radius: 36px;
    box-shadow: var(--shadow-soft);
  }

  .menu-frame {
    --wheat-border-width: 143%;
    --wheat-border-height: 133%;
    --wheat-border-x: 2px;
    --wheat-border-y: 14px;
    --wheat-border-opacity: 0.15;
  }

  .order-sheet {
    width: min(calc(100vw - 2rem), 520px);
  }
}
