:root {
  --cream: #F7F0E3;
  --flour: #FFFDF7;
  --gold: #C9823B;
  --toast: #8A4F2D;
  --espresso: #3D2A20;
  --sage: #73745A;

  --rule: rgba(138, 79, 45, 0.22);
  --measure: 34rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--espresso);
  font-family: Karla, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

a { color: var(--toast); }

:focus-visible {
  outline: 2px solid var(--toast);
  outline-offset: 3px;
}

/* header */

.masthead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.75rem 0 1.25rem;
}

.wordmark {
  font-family: Fraunces, Georgia, serif;
  font-optical-sizing: auto;
  font-variation-settings: 'SOFT' 40, 'WONK' 1;
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: var(--toast);
  text-decoration: none;
  line-height: 1.2;
}

.masthead nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.95rem;
}

.masthead nav a {
  text-decoration: none;
  color: var(--sage);
  padding-bottom: 2px;
  border-bottom: 1.5px solid transparent;
}

.masthead nav a:hover { color: var(--toast); }
.masthead nav a[aria-current='page'] {
  color: var(--espresso);
  border-bottom-color: var(--gold);
}

/* hero */

.hero { padding: 1.5rem 0 2.5rem; }

.hero h1 {
  font-family: Fraunces, Georgia, serif;
  font-optical-sizing: auto;
  font-variation-settings: 'SOFT' 60, 'WONK' 1;
  font-weight: 500;
  font-size: clamp(2.1rem, 7vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  color: var(--toast);
  max-width: 18ch;
}

.hero p {
  margin: 0;
  max-width: var(--measure);
  color: var(--sage);
}

/* notice */

.notice {
  background: var(--flour);
  border: 1px solid var(--gold);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  margin: 0 0 2rem;
  max-width: var(--measure);
}

.notice strong {
  display: block;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.notice p { margin: 0; color: var(--sage); font-size: 0.95rem; }

/* menu list */

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

.item {
  display: grid;
  grid-template-columns: 5.5rem 1fr auto;
  gap: 1.25rem;
  align-items: start;
  padding: 1.5rem 0;
  border-top: 1px solid var(--rule);
}

.item:last-child { border-bottom: 1px solid var(--rule); }

.item-photo {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 8px;
  object-fit: cover;
  background: var(--flour);
  border: 1px solid var(--rule);
  display: block;
}

.item-photo.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  color: var(--rule);
}

.item h2 {
  font-family: Fraunces, Georgia, serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: 1.2rem;
  margin: 0 0 0.2rem;
  line-height: 1.25;
}

.item .desc {
  margin: 0 0 0.5rem;
  font-size: 0.97rem;
  color: var(--sage);
  max-width: 34ch;
}

.item .left {
  font-size: 0.85rem;
  color: var(--toast);
}

.item .left.out { color: var(--sage); }

.item .price {
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  font-size: 1.1rem;
  white-space: nowrap;
}

.item-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
}

.item.sold-out .item-photo,
.item.sold-out h2,
.item.sold-out .desc,
.item.sold-out .price { opacity: 0.45; }

/* stepper */

.stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: var(--flour);
  overflow: hidden;
}

.stepper button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--toast);
  font: inherit;
  font-size: 1.05rem;
  line-height: 1;
  width: 2.1rem;
  height: 2.1rem;
  cursor: pointer;
}

.stepper button:hover:not(:disabled) { background: var(--cream); }
.stepper button:disabled { color: var(--rule); cursor: not-allowed; }

.stepper output {
  min-width: 1.6rem;
  text-align: center;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}

/* buttons */

.btn {
  appearance: none;
  font: inherit;
  font-weight: 700;
  border-radius: 8px;
  padding: 0.7rem 1.35rem;
  cursor: pointer;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--flour);
}

.btn:hover:not(:disabled) { background: var(--toast); border-color: var(--toast); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn.ghost { background: transparent; color: var(--toast); }
.btn.ghost:hover:not(:disabled) { background: var(--flour); color: var(--toast); border-color: var(--toast); }

/* cart */

.cart {
  position: sticky;
  bottom: 1rem;
  margin: 2rem 0 0;
  background: var(--flour);
  border: 1px solid var(--gold);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
}

.cart[hidden] { display: none; }

.cart-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.95rem;
  padding: 0.15rem 0;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--rule);
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
}

.cart-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.cart-actions .btn { flex: 1 1 10rem; }

/* forms */

.field { margin: 0 0 1.15rem; max-width: var(--measure); }

.field label {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.field .help {
  display: block;
  font-size: 0.87rem;
  font-weight: 400;
  color: var(--sage);
  margin-top: 0.35rem;
}

input, textarea, select {
  font: inherit;
  color: var(--espresso);
  width: 100%;
  background: var(--flour);
  border: 1px solid var(--gold);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
}

textarea { min-height: 6.5rem; resize: vertical; }

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: var(--measure);
}

.row .field { max-width: none; }

.error {
  color: #9B2C1C;
  font-size: 0.9rem;
  margin-top: 0.35rem;
}

/* custom link block */

.aside {
  margin: 3rem 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--rule);
  max-width: var(--measure);
}

.aside h2 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  font-size: 1.15rem;
  margin: 0 0 0.35rem;
}

.aside p { margin: 0 0 1rem; color: var(--sage); font-size: 0.97rem; }

/* footer */

.foot {
  margin-top: 4rem;
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.88rem;
  color: var(--sage);
}

.foot p { margin: 0.2rem 0; }

/* status */

.status { max-width: var(--measure); }

.status h1 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.8rem, 6vw, 2.5rem);
  color: var(--toast);
  margin: 0 0 0.6rem;
  line-height: 1.12;
}

.skeleton { color: var(--sage); padding: 2rem 0; }

@media (max-width: 34rem) {
  .item {
    grid-template-columns: 4rem 1fr;
    gap: 1rem;
  }
  .item-photo { width: 4rem; height: 4rem; }
  .item-side {
    grid-column: 2;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
  .row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
