:root {
  color-scheme: light dark;
  --paper: light-dark(#edf5f9, #291e1a);
  --surface: light-dark(#f8fcfd, #382a24);
  --band: light-dark(#dcecf3, #42312a);
  --ink: light-dark(#17364c, #fff0d8);
  --muted: light-dark(#435e71, #dfc6b6);
  --line: light-dark(#b6cbd5, #876b5a);
  --accent: light-dark(#234b67, #f2b37e);
  --on-accent: light-dark(#fff, #30221c);
  --error: light-dark(#862d39, #ffc2b8);
  font: 100%/1.45 system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
:root[data-theme=light] { color-scheme: light; }
:root[data-theme=dark] { color-scheme: dark; }
* { box-sizing: border-box; }
body, h1, h2, h3, p { margin: 0; }
body { min-width: 0; }
button, input, select { font: inherit; color: inherit; }
button, select { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.counter { display: grid; grid-template-columns: minmax(0, 2.28fr) minmax(17rem, 1fr); gap: clamp(1.8rem, 3vw, 3.3rem); align-items: start; max-width: 94rem; margin: 0 auto; padding: clamp(2rem, 4vw, 3.8rem) clamp(1rem, 4vw, 3.6rem); }
.menu { min-width: 0; }
h1 { margin-bottom: 1.35rem; font: 600 clamp(3rem, 5.6vw, 5.8rem)/.99 Georgia, serif; letter-spacing: -.055em; }
.pickup-strip { width: 100%; border: 1px solid var(--line); border-radius: .7rem; background: var(--band); text-align: left; display: flex; align-items: center; gap: .8rem; padding: .65rem 1rem; margin-bottom: 1.5rem; }
.date-stamp { border-right: 1px solid var(--line); padding-right: .9rem; display: grid; text-align: center; }
.date-stamp span { font-size: .63rem; font-weight: 750; text-transform: uppercase; letter-spacing: .075em; }
.date-stamp b { font: 600 1.6rem/1.05 Georgia, serif; }
.pickup-copy { display: grid; }
.pickup-copy small { font-size: .81rem; color: var(--muted); }
.pickup-copy strong { font-size: 1rem; }
.change, .quiet { color: var(--accent); text-decoration: underline; text-underline-offset: .19em; }
.change { margin-left: auto; font-size: .88rem; }
#notice:not(:empty) { margin-bottom: 1rem; color: var(--muted); }
.menu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.bake { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); background: var(--surface); border-radius: .75rem; }
.bake img { width: 100%; aspect-ratio: 1.98; display: block; object-fit: cover; }
.bake-details { flex: 1; display: grid; align-items: center; grid-template-columns: 1fr auto; gap: .2rem .65rem; padding: .85rem 1rem 1rem; }
.bake h2 { font: 600 clamp(1.4rem, 2.05vw, 1.95rem)/1 Georgia, serif; letter-spacing: -.04em; }
.bake p { font-size: .86rem; color: var(--muted); }
.bake p span { white-space: nowrap; }
.bake button { grid-column: 2; grid-row: 1 / span 2; min-width: 3.5rem; min-height: 44px; padding: .45rem .7rem; border: 1px solid var(--accent); color: var(--accent); background: var(--surface); border-radius: .45rem; font-weight: 650; }
.bake button:hover { color: var(--on-accent); background: var(--accent); }
#desktop-box { position: sticky; top: 1.25rem; border-left: 1px solid var(--line); padding-left: clamp(1rem, 2vw, 2rem); }
.mobile-tray { display: none; }
.option-dialog { width: min(29rem, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: .9rem; padding: clamp(1.1rem, 4vw, 2rem); }
.option-dialog::backdrop { background: #14202bb5; }
html:has(.option-dialog[open]) { overflow: hidden; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: .7rem; margin-bottom: .75rem; }
.dialog-heading h2 { font: 500 2.3rem/1.05 Georgia, serif; letter-spacing: -.045em; }
.option-dialog p { color: var(--muted); }
.quiet { background: none; border: 0; padding: .3rem; min-height: 44px; }
.option-dialog label { display: block; margin: 1rem 0 .25rem; font-weight: 650; }
.option-dialog input, .option-dialog select { width: 100%; min-width: 0; min-height: 48px; border: 1px solid var(--line); background: var(--paper); border-radius: .35rem; padding: .4rem; }
.option-dialog .hours { margin: .8rem 0; font-size: .92rem; }
.option-dialog .issue { color: var(--error); }
.primary, #view-box { min-height: 48px; padding: .58rem 1rem; border: 0; border-radius: .5rem; background: var(--accent); color: var(--on-accent); font-weight: 700; }
.option-dialog .primary { width: 100%; margin-top: .8rem; }
.primary:disabled { opacity: .6; }
.pie-kind { width: 100%; text-align: left; padding: .85rem .2rem; display: grid; gap: .3rem; color: inherit; background: transparent; border: 0; border-top: 1px solid var(--line); }
.pie-kind b { font: 600 1.25rem Georgia, serif; }
.pie-kind span { color: var(--muted); }
@media (max-width: 820px) {
  .site-footer { padding-bottom: calc(4.6rem + env(safe-area-inset-bottom)); }
  .counter { display: block; }
  #desktop-box { display: none; }
  .mobile-tray { position: fixed; bottom: 0; inset-inline: 0; z-index: 2; display: grid; padding: .55rem max(1rem, env(safe-area-inset-right)) max(.55rem, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
}
@media (max-width: 560px) {
  .counter { padding-block: 1.55rem; }
  h1 { font-size: clamp(2.55rem, 10.5vw, 3.3rem); margin-bottom: 1rem; }
  .pickup-strip { padding: .6rem .7rem; gap: .6rem; margin-bottom: 1.1rem; }
  .menu-grid { grid-template-columns: 1fr; gap: 1rem; }
  .bake-details { padding: .65rem .8rem .8rem; }
}
