@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;500;600;700&family=Berkshire+Swash&family=Courgette&display=swap');

:root {
  --ink: #1c2421;
  --green: #2a3a30;
  --muted: #6b6354;
  --cream: #f0e6d2;
  --paper: #f8f1e3;
  --line: #c4b69d;
  --line-dark: #8c816d;
  --gold: #a17c50;
  --rose: #b07e6d;
  --error: #8b2b20;
  --shadow: 4px 4px 0px rgba(28, 36, 33, 0.1);
  font-family: 'Courgette', 'Lora', Georgia, cursive;
  color: var(--ink);
  background: var(--cream);
  font-synthesis: none;
}

body {
  margin: 0;
  background-color: var(--cream);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(255,255,255,0.4) 0%, transparent 60%),
    linear-gradient(to bottom, transparent, rgba(200, 180, 150, 0.1) 100%);
  background-attachment: fixed;
}
* { box-sizing: border-box; }
button, input, textarea, select { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.5; }
a { color: inherit; }
a, button, input, textarea, select { outline-offset: 4px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--ink); }

h1, h2, .serif {
  font-family: 'Courgette', cursive;
  font-weight: 700;
}
h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  letter-spacing: -0.01em;
  line-height: 1.15;
}
h3 {
  font-size: 1.1rem;
  line-height: 1.4;
  font-family: 'Courgette', cursive;
  font-weight: 700;
}
p { line-height: 1.65; }
small, .small { font-size: 0.8rem; line-height: 1.6; }
.muted { color: var(--muted); }
.eyebrow {
  font-family: 'Courgette', cursive;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1.6;
  color: var(--ink);
}

.container { width: min(1160px, calc(100% - 64px)); margin: auto; }

.topline {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  padding: 11px 24px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  font-family: 'Courgette', cursive;
  text-transform: uppercase;
  font-weight: 600;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 110px;
  border-bottom: 2px solid var(--ink);
  position: relative;
}
.header::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0; right: 0;
  height: 1px;
  background: var(--ink);
}

.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; flex-shrink: 0; }
.brand img { width: 52px; height: 52px; object-fit: contain; filter: drop-shadow(1px 1px 0px rgba(0,0,0,0.1)); }
.brand strong {
  font-family: 'Berkshire Swash', cursive;
  font-size: 2rem;
  font-weight: 400;
  display: block;
  letter-spacing: 0;
  line-height: 1;
}
.brand span {
  display: block;
  font-size: 0.55rem;
  font-family: 'Courgette', cursive;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-top: 5px;
  color: var(--muted);
}

.header nav { display: flex; gap: 28px; }
.header nav a {
  font-family: 'Courgette', cursive;
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
}
.header nav a:hover { text-decoration: underline; text-underline-offset: 7px; }
.header-actions { display: flex; gap: 9px; }

.btn {
  min-height: 44px;
  padding: 10px 22px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.8rem;
  font-family: 'Courgette', cursive;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  line-height: 1.3;
  box-shadow: 3px 3px 0px rgba(28, 36, 33, 0.15);
  transition: transform 0.1s, box-shadow 0.1s;
}
.btn:hover:not(:disabled) {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0px rgba(28, 36, 33, 0.15);
  background: #252f2c;
}
.btn:active:not(:disabled) {
  transform: translate(3px, 3px);
  box-shadow: 0px 0px 0px rgba(28, 36, 33, 0.15);
}
.btn.secondary { color: var(--ink); background: transparent; }
.btn.secondary:hover:not(:disabled) { background: rgba(0,0,0,0.03); }
.btn.light { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.btn.small { padding: 7px 12px; min-height: 38px; font-size: 0.7rem; box-shadow: 2px 2px 0px rgba(28, 36, 33, 0.15); }
.btn.small:hover:not(:disabled) { transform: translate(1px, 1px); box-shadow: 1px 1px 0px rgba(28, 36, 33, 0.15); }
.btn.small:active:not(:disabled) { transform: translate(2px, 2px); box-shadow: 0px 0px 0px rgba(28, 36, 33, 0.15); }
.btn.danger { color: var(--error); border-color: var(--error); }
.btn.danger:hover:not(:disabled) { background: rgba(139, 43, 32, 0.05); }

.icon-btn {
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  font-family: 'Courgette', cursive;
  transition: all 0.15s;
}
.icon-btn:hover { background: rgba(0,0,0,0.05); }

.bag-count {
  border-radius: 50%;
  min-width: 20px;
  height: 20px;
  padding: 2px;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.74rem;
  border: 1px solid var(--ink);
  font-family: 'Courgette', cursive;
  font-weight: 700;
}

.preview-banner {
  margin-top: 20px;
  border: 1px solid var(--line-dark);
  background: transparent;
  border-radius: 2px;
  padding: 12px 16px;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--ink);
  font-family: 'Courgette', cursive;
  font-style: italic;
}

.hero { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 50px; padding: 62px 0 44px; }
.hero-copy { padding: 0; min-width: 0; }
.hero-bakery-logo {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  object-fit: contain;
  margin: 0 0 26px;
}
.hero h1 { margin: 20px 0 22px; }
.hero h1 em {
  font-family: 'Berkshire Swash', cursive;
  font-weight: 400;
  color: var(--ink);
  font-size: 1.25em;
  line-height: 1;
  display: block;
  margin-top: 15px;
  text-transform: none;
  letter-spacing: 0;
}
.hero p { max-width: 360px; font-size: 0.96rem; }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

.hero-art {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line-dark);
  border-radius: 2px;
  padding: 10px;
  overflow: hidden;
  min-height: 430px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px var(--cream), 4px 4px 12px rgba(0,0,0,0.03);
}
.hero-art::before {
  content: '';
  position: absolute;
  top: 10px; left: 10px; right: 10px; bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  pointer-events: none;
}
.hero-art > img { width: 105%; max-width: 570px; position: relative; mix-blend-mode: multiply; }
.hero-art.hero-photo { aspect-ratio: 1; min-height: 0; max-height: none; }
.hero-art.hero-photo > img { width: 100%; height: 100%; max-width: none; object-fit: cover; mix-blend-mode: normal; }
.hero-photo .art-note { bottom: 10px; left: 10px; width: calc(100% - 20px); padding: 14px 8px; background: var(--paper); letter-spacing: 0.12em; }

.art-note {
  position: absolute;
  bottom: 24px;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-family: 'Courgette', cursive;
  font-weight: 600;
}

.seal {
  position: absolute;
  right: 20px;
  top: 27px;
  background: var(--paper);
  border: 2px solid var(--ink);
  color: var(--ink);
  border-radius: 50%;
  width: 96px;
  height: 96px;
  display: grid;
  place-content: center;
  text-align: center;
  font-family: 'Courgette', cursive;
  font-weight: 700;
  font-size: 0.75rem;
  transform: rotate(12deg);
  line-height: 1.4;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 2px 2px 0px rgba(0,0,0,0.1);
}
.seal::before {
  content: '';
  position: absolute;
  top: 4px; left: 4px; right: 4px; bottom: 4px;
  border: 1px dashed var(--ink);
  border-radius: 50%;
  pointer-events: none;
}

.value-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: 20px 0;
  margin: 3px 0 60px;
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  font-family: 'Courgette', cursive;
  font-weight: 600;
  text-transform: uppercase;
  position: relative;
}
.value-strip::before, .value-strip::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: var(--ink);
}
.value-strip::before { top: 3px; }
.value-strip::after { bottom: 3px; }
.value-strip span + span { border-left: 1px solid var(--ink); }

.section { scroll-margin-top: 20px; margin-bottom: 68px; }
.section-head { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 25px; }
.section-head h2 { margin-top: 9px; }
.section-head p { font-size: 0.86rem; }

/* Three small decorative accents, separate from the header logo. */
#menu > .section-head,
#markets > .section-head,
#contact .contact-box { position: relative; }
#menu > .section-head,
#markets > .section-head { padding-right: 78px; }
#menu > .section-head::after,
#markets > .section-head::before,
#contact .contact-box::after {
  content: "";
  position: absolute;
  width: 58px;
  height: 58px;
  background: url("/emerald-gold-dragonfly-logo.png") center / contain no-repeat;
  pointer-events: none;
  opacity: 0.8;
}
#menu > .section-head::after { top: 0; right: 3px; transform: rotate(-16deg); }
#markets > .section-head::before { top: 0; right: 0; transform: rotate(18deg); }
#contact .contact-box::after { top: 18px; right: 18px; width: 48px; height: 48px; transform: rotate(-10deg); }
#contact .contact-box > .eyebrow { padding-right: 58px; min-height: 38px; }

.filters { display: flex; gap: 9px; margin-bottom: 27px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--ink);
  background: transparent;
  border-radius: 2px;
  padding: 8px 16px;
  min-height: 36px;
  color: var(--ink);
  font-size: 0.75rem;
  font-family: 'Courgette', cursive;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: all 0.15s;
}
.chip:hover { background: rgba(0,0,0,0.03); }
.chip.active { color: var(--paper); background: var(--ink); }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card {
  background: var(--paper);
  border: 1px solid var(--line-dark);
  padding: 12px;
  border-radius: 2px;
  box-shadow: 3px 3px 6px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.product-art {
  height: 200px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--cream);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-art img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.3s; mix-blend-mode: multiply; }
.product-art .photo { object-fit: cover; mix-blend-mode: normal; }
.product-art:hover img { transform: scale(1.04); }

.tone-sage { background: #e2e1d4; }
.tone-rose { background: #e6d8d1; }
.tone-cream { background: #eae1d1; }

.product-art .tag {
  position: absolute;
  top: 8px; left: 8px;
  font-size: 0.6rem;
  font-family: 'Courgette', cursive;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 2px;
  padding: 4px 6px;
  letter-spacing: 0.05em;
}

.product-title {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: start;
  margin: 18px 0 7px;
  border-bottom: 1px dotted var(--line-dark);
  padding-bottom: 6px;
}
.product-title h3 {
  font-family: 'Courgette', cursive;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
}
.price {
  font-size: 0.95rem;
  white-space: nowrap;
  line-height: 1.4;
  font-weight: 600;
  font-family: 'Courgette', cursive;
}

.product-description {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 6px 0 0;
}
.product-description:empty { display: none; }
.allergens {
  font-size: 0.7rem;
  color: var(--muted);
  margin: 6px 0 14px;
  line-height: 1.4;
}
.product-card .btn {
  width: 100%;
  margin-top: auto;
}

.events-panel {
  background: transparent;
  border: 2px solid var(--ink);
  border-radius: 2px;
  padding: 36px;
  position: relative;
}
.events-panel::after {
  content: '';
  position: absolute;
  top: 4px; left: 4px; right: 4px; bottom: 4px;
  border: 1px solid var(--ink);
  pointer-events: none;
}
.event-list { display: grid; gap: 15px; }
.event {
  display: flex;
  gap: 23px;
  align-items: center;
  border-top: 1px dashed var(--line-dark);
  padding-top: 22px;
  margin-top: 7px;
}
.date-block { width: 65px; min-width: 65px; text-align: center; display: flex; flex-direction: column; gap: 5px; }
.date-block strong { font: 700 2.2rem 'Courgette', cursive; line-height: 1; }
.date-block span {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-family: 'Courgette', cursive;
  font-weight: 600;
}
.event-body { flex: 1; min-width: 0; }
.event-body h3 { font-family: 'Courgette', cursive; font-size: 1.24rem; font-weight: 700; }
.event-body p { font-size: 0.83rem; }
.event-body .notes { margin-top: 6px; }
.event .directions { font-size: 0.77rem; white-space: nowrap; font-family: 'Courgette', cursive; font-weight: 600; text-transform: uppercase; }

.empty {
  padding: 32px 20px;
  text-align: center;
  border: 1px dashed var(--line-dark);
  border-radius: 2px;
}
.empty p { margin-top: 7px; color: var(--muted); font-size: 0.9rem; }

.story { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding: 30px 0; }
.story h2 { margin: 12px 0; }
.story p { font-size: 0.91rem; }

.contact-box {
  background: var(--paper);
  border: 1px solid var(--line-dark);
  border-radius: 2px;
  padding: 27px;
  align-self: center;
  box-shadow: 3px 3px 0px rgba(0,0,0,0.04);
}
.contact-box a { overflow-wrap: anywhere; font-weight: 600; }

.footer {
  border-top: 2px solid var(--ink);
  padding: 26px 0 36px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.74rem;
  color: var(--muted);
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  top: -5px; left: 0; right: 0;
  height: 1px;
  background: var(--ink);
}
.footer-links { display: flex; gap: 18px; }
.footer button { border: 0; background: transparent; color: inherit; padding: 0; text-decoration: underline; font-size: inherit; font-family: inherit; }

.skip { position: fixed; top: -80px; left: 12px; z-index: 200; background: var(--paper); padding: 15px; border: 1px solid var(--ink); }
.skip:focus { top: 10px; }

.loading { min-height: 75vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 22px; padding: 30px; }
.loading h1 { font-size: 2.2rem; }
.loading p { color: var(--muted); font-family: 'Courgette', cursive; font-style: italic; }

dialog {
  border: 2px solid var(--ink);
  border-radius: 2px;
  box-shadow: 6px 6px 0px rgba(28, 36, 33, 0.15);
  background: var(--paper);
  color: var(--ink);
  padding: 0;
  width: min(580px, calc(100% - 24px));
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
}
dialog::backdrop { background: rgba(28, 36, 33, 0.6); backdrop-filter: blur(2px); }

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 26px 17px;
  border-bottom: 2px solid var(--ink);
  gap: 18px;
  position: relative;
}
.modal-head::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--ink);
}
.modal-head h2 { font-size: 1.6rem; font-family: 'Courgette', cursive; margin: 0; }
.modal-body { padding: 24px 26px; }
.modal-body > p { margin-bottom: 18px; font-size: 0.88rem; }

.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; font-size: 0.85rem; font-weight: 600; font-family: 'Courgette', cursive; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line-dark);
  background: var(--paper);
  border-radius: 2px;
  padding: 12px;
  min-height: 46px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 400;
  font-family: 'Courgette', cursive;
  box-shadow: inset 1px 1px 3px rgba(0,0,0,0.03);
}
.field textarea { min-height: 90px; resize: vertical; }
.field small { font-weight: 400; color: var(--muted); font-size: 0.73rem; font-family: 'Courgette', cursive; text-transform: none; font-style: italic; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; font-weight: 400; margin: 14px 0; line-height: 1.5; font-family: 'Courgette', cursive; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); flex-shrink: 0; border: 1px solid var(--line-dark); }
.error { color: var(--error); font-size: 0.83rem; line-height: 1.5; margin: 10px 0; white-space: pre-line; }
.error:empty { display: none; }
.notice {
  padding: 14px 16px;
  border-radius: 2px;
  border: 1px solid var(--line-dark);
  background: transparent;
  font-size: 0.82rem;
  line-height: 1.65;
  margin: 16px 0;
  white-space: pre-line;
  font-family: 'Courgette', cursive;
  font-style: italic;
}
.notice.warning { background: rgba(139, 43, 32, 0.05); color: var(--error); border-color: var(--error); }
.block { display: flex; width: 100%; }

.basket-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  border-bottom: 1px dotted var(--line-dark);
  padding: 15px 0;
  align-items: center;
}
.basket-line h3 { font-size: 0.95rem; font-family: 'Courgette', cursive; margin: 0 0 4px 0; }
.basket-line p { font-size: 0.85rem; color: var(--muted); font-family: 'Courgette', cursive; margin: 0; }
.quantity { display: flex; align-items: center; gap: 12px; }
.quantity button { width: 32px; height: 32px; border: 1px solid var(--ink); background: transparent; border-radius: 2px; color: var(--ink); font-family: 'Courgette', cursive; font-size: 1.1rem; line-height: 0; display: flex; align-items: center; justify-content: center; }
.quantity span { font-size: 0.95rem; font-weight: 600; font-family: 'Courgette', cursive; }

.total-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  font-size: 0.85rem;
  font-family: 'Courgette', cursive;
  font-weight: 600;
  text-transform: uppercase;
}
.total-row.grand {
  border-top: 2px solid var(--ink);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 20px;
  position: relative;
}
.total-row.grand::before {
  content: '';
  position: absolute;
  top: 2px; left: 0; right: 0;
  height: 1px;
  background: var(--ink);
}
.hidden { display: none !important; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.receipt-code { font: 700 2.2rem 'Courgette', cursive; padding: 8px 0; text-align: center; letter-spacing: 0.05em; }
.receipt-lines { list-style: none; padding: 0; margin: 16px 0; }
.receipt-lines li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dotted var(--line-dark);
  font-size: 0.9rem;
  font-family: 'Courgette', cursive;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 2px;
  padding: 4px 8px;
  border: 1px solid currentColor;
  background: transparent;
  font-size: 0.65rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  font-family: 'Courgette', cursive;
}
.status.pending { color: #8a6c38; }
.status.ready { color: var(--green); }
.status.cancelled { color: var(--error); }
.status.completed { color: var(--muted); }
.status.baking { color: #9a6642; }
.status.paid { color: var(--ink); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.nowrap { white-space: nowrap; }

#toast {
  position: fixed;
  bottom: calc(26px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--line);
  font-family: 'Courgette', cursive;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 2px;
  padding: 14px 22px;
  box-shadow: 4px 4px 0px rgba(0,0,0,0.15);
  font-size: 0.85rem;
  z-index: 100;
  transition: transform 0.2s;
  max-width: 90%;
  text-align: center;
  pointer-events: none;
}
#toast.visible { transform: translateX(-50%) translateY(0); }

.admin-header { min-height: 88px; }
.admin-main { padding: 34px 0 70px; }
.admin-title { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 10px 0 28px; }
.admin-title h1 { font-size: 2.9rem; margin: 0; }
.admin-title p { font-size: 0.86rem; margin-top: 9px; color: var(--muted); font-family: 'Courgette', cursive; font-style: italic; }
.tabs { display: flex; gap: 5px; border-bottom: 2px solid var(--ink); margin-bottom: 28px; overflow: auto; position: relative; }
.tabs::after { content: ''; position: absolute; bottom: -5px; left: 0; right: 0; height: 1px; background: var(--ink); }
.tabs button {
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  padding: 17px 24px;
  min-height: 49px;
  color: var(--muted);
  font-size: 0.87rem;
  white-space: nowrap;
  font-family: 'Courgette', cursive;
  font-weight: 600;
  text-transform: uppercase;
}
.tabs button.active { color: var(--ink); border-bottom-color: var(--ink); font-weight: 700; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 26px; }
.stat {
  background: var(--paper);
  border: 1px solid var(--line-dark);
  border-radius: 2px;
  padding: 22px;
  box-shadow: 2px 2px 4px rgba(0,0,0,0.03);
}
.stat span { display: block; font-size: 0.77rem; color: var(--muted); font-family: 'Courgette', cursive; font-weight: 600; text-transform: uppercase; }
.stat strong { display: block; font: 700 2.2rem 'Courgette', cursive; margin-top: 10px; }

.toolbar { display: flex; justify-content: space-between; gap: 14px; align-items: center; margin-bottom: 20px; flex-wrap: wrap; }
.toolbar .field { margin: 0; flex: 1; max-width: 400px; }

.order-list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.order-card {
  background: var(--paper);
  border: 1px solid var(--line-dark);
  border-radius: 2px;
  padding: 22px;
  min-width: 0;
  box-shadow: 2px 2px 4px rgba(0,0,0,0.03);
}
.order-card h3 { font-size: 1.1rem; margin: 13px 0 5px; font-family: 'Courgette', cursive; }
.order-meta { font-size: 0.75rem; color: var(--muted); margin-top: 12px; font-family: 'Courgette', cursive; font-style: italic; }
.order-card .receipt-lines { margin: 13px 0; }
.order-card .address, .order-card .notes { font-size: 0.8rem; white-space: pre-line; overflow-wrap: anywhere; margin: 9px 0; color: var(--muted); font-family: 'Courgette', cursive; }
.order-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 15px; }

.admin-table { display: grid; gap: 13px; }
.admin-item {
  display: flex;
  align-items: center;
  gap: 20px;
  border: 1px solid var(--line-dark);
  background: var(--paper);
  border-radius: 2px;
  padding: 18px;
  box-shadow: 2px 2px 4px rgba(0,0,0,0.03);
}
.admin-item .mini-art { width: 70px; height: 70px; object-fit: cover; border-radius: 2px; background: var(--cream); border: 1px solid var(--line); mix-blend-mode: multiply; }
.admin-item > div { flex: 1; min-width: 0; }
.admin-item h3 { font-family: 'Courgette', cursive; font-size: 1.2rem; font-weight: 700; margin: 0; }
.admin-item p { font-size: 0.85rem; color: var(--muted); margin-top: 5px; font-family: 'Courgette', cursive; }

.settings-form { max-width: 740px; }
.form-section {
  padding: 25px;
  background: var(--paper);
  border: 1px solid var(--line-dark);
  border-radius: 2px;
  margin-bottom: 20px;
  box-shadow: 2px 2px 4px rgba(0,0,0,0.03);
}
.form-section h3 { font: 700 1.4rem 'Courgette', cursive; margin-bottom: 22px; margin-top: 0; }
.days { display: flex; gap: 14px; flex-wrap: wrap; }
.days .check { margin: 0 0 15px; }

.login-card {
  max-width: 440px;
  background: var(--paper);
  padding: 33px;
  border-radius: 2px;
  border: 1px solid var(--line-dark);
  margin: 70px auto;
  box-shadow: 6px 6px 0px rgba(28, 36, 33, 0.1);
}
.login-card h1 { font-size: 2.2rem; margin: 17px 0 12px; }
.login-card p { font-size: 0.87rem; color: var(--muted); margin-bottom: 25px; font-family: 'Courgette', cursive; font-style: italic; }
.login-card img { width: 58px; height: 58px; mix-blend-mode: multiply; }
.auth-link { display: block; text-align: center; font-size: 0.8rem; margin-top: 24px; font-family: 'Courgette', cursive; font-weight: 600; text-transform: uppercase; text-decoration: none; }
.auth-link:hover { text-decoration: underline; }
.preserve { white-space: pre-line; }
.subtle-link { font-size: 0.77rem; color: var(--muted); }

@media(min-width: 1400px){
  .hero-art { min-height: 470px; }
  .product-art { height: 230px; }
}
@media(max-width: 960px){
  .container { width: calc(100% - 40px); }
  .header nav { gap: 15px; }
  .header nav a { font-size: 0.76rem; }
  .hero { gap: 25px; }
  .hero-art { min-height: 370px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
  .product-art { height: 230px; }
  .product-description, .allergens { min-height: 0; }
  .story { gap: 30px; }
}
@media(max-width: 600px){
  .container { width: calc(100% - 36px); }
  .topline { font-size: 0.64rem; padding: 10px 16px; }
  .header { min-height: 85px; gap: 10px; flex-wrap: wrap; padding: 16px 0 12px; }
  .brand { gap: 8px; }
  .brand img { width: 37px; height: 37px; }
  .brand strong { font-size: 1.5rem; }
  .brand span { font-size: 0.45rem; }
  .header nav { order: 3; justify-content: center; width: 100%; padding-top: 12px; gap: 35px; }
  .header-actions .btn { font-size: 0.7rem; padding: 8px 10px; min-height: 38px; }
  .hero { grid-template-columns: 1fr; padding: 30px 0 22px; gap: 29px; }
  .hero h1 { font-size: 3.2rem; margin: 15px 0 16px; }
  .hero h1 em { margin-top: 3px; }
  .hero p { font-size: 0.9rem; max-width: 310px; }
  .hero-art { min-height: 280px; max-height: 320px; margin: 0 6px; }
  .hero-art > img { width: 95%; max-width: 410px; }
  .hero-actions { margin-top: 20px; }
  .seal { height: 78px; width: 78px; font-size: 0.65rem; right: 18px; top: 20px; }
  .art-note { bottom: 14px; font-size: 0.52rem; }
  .value-strip { margin-bottom: 39px; padding: 18px 0; font-size: 0.65rem; gap: 5px; line-height: 1.5; }
  .value-strip span { padding: 0 6px; }
  .section { margin-bottom: 42px; }
  .section-head { align-items: start; gap: 12px; flex-direction: column; margin-bottom: 20px; }
  .section-head p { font-size: 0.8rem; }
  .product-grid { gap: 27px 14px; }
  .product-art { height: 160px; }
  .product-title { gap: 6px; flex-direction: column; margin-top: 12px; margin-bottom: 7px; }
  .product-title h3 { font-size: 1.1rem; line-height: 1.25; }
  .product-description { font-size: 0.74rem; }
  .allergens { font-size: 0.65rem; }
  .product-art .tag { top: 6px; left: 6px; padding: 4px 6px; font-size: 0.55rem; }
  .product-card .btn { min-height: 40px; font-size: 0.75rem; padding: 8px 8px; }
  .price { font-size: 0.8rem; }
  .events-panel { padding: 23px 18px; margin-left: -4px; margin-right: -4px; }
  .event { gap: 14px; align-items: flex-start; flex-wrap: wrap; }
  .date-block { width: 48px; min-width: 48px; }
  .event-body { min-width: 180px; }
  .event .directions { margin-left: 62px; }
  .event-body h3 { font-size: 1.13rem; }
  .story { grid-template-columns: 1fr; gap: 20px; padding: 12px 0; }
  .contact-box { padding: 22px; }
  .contact-box > a { font-size: 0.83rem; }
  .footer { flex-direction: column; padding-bottom: 30px; gap: 17px; }
  .footer-links { gap: 22px; }
  .modal-head { padding: 21px 20px 15px; }
  .modal-body { padding: 20px; }
  .fields { grid-template-columns: 1fr; gap: 0; }
  .admin-header { flex-wrap: nowrap; }
  .admin-header .brand strong { font-size: 1rem; }
  .admin-header .btn { font-size: 0.7rem; min-height: 40px; padding: 9px; }
  .admin-main { padding-top: 25px; }
  .admin-title { align-items: start; }
  .admin-title h1 { font-size: 2.1rem; }
  .admin-title .btn { font-size: 0.74rem; padding: 10px; }
  .tabs { margin-left: -6px; margin-right: -6px; }
  .tabs button { padding: 14px 17px; }
  .stats { gap: 9px; margin-bottom: 20px; }
  .stat { padding: 16px 11px; }
  .stat span { font-size: 0.65rem; }
  .stat strong { font-size: 1.6rem; }
  .order-list { grid-template-columns: 1fr; }
  .order-card { padding: 19px; }
  .toolbar { align-items: stretch; }
  .toolbar .field { max-width: none; flex-basis: 100%; }
  .admin-item { padding: 14px; gap: 12px; flex-wrap: wrap; }
  .admin-item .mini-art { width: 51px; height: 51px; }
  .admin-item .row { width: 100%; justify-content: flex-end; }
  .admin-item h3 { font-size: 1.07rem; }
  .form-section { padding: 20px 16px; }
  .login-card { padding: 25px; margin: 40px auto; }
  .days { gap: 12px; }
  .preview-banner { font-size: 0.75rem; }
  .order-card a { overflow-wrap: anywhere; }
}

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

#toast { visibility: hidden; opacity: 0; }
#toast.visible { visibility: visible; opacity: 1; }
.skip:not(:focus-visible) { clip-path: inset(50%); height: 1px; width: 1px; padding: 0; overflow: hidden; white-space: nowrap; }
.skip:focus-visible { top: 10px; }
.seal { top: 70px; right: 48px; }
@media(max-width: 600px){
  .seal { top: 50px; right: 36px; }
}
/* Hero menu slideshow */
.hero-art.hero-slides { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto auto; align-items: stretch; justify-content: stretch; }
.hero-art.hero-slides > img { min-height: 0; object-fit: contain; object-position: center center; }
.hero-slides > img.hero-fallback { padding: 10%; mix-blend-mode: multiply; }
.hero-slides > img.hero-in { animation: heroFade .6s ease both; }
@keyframes heroFade { from { opacity: 0; } to { opacity: 1; } }
.hero-slides .seal[hidden] { display: none; }
.hero-slides .art-note { position: static; width: 100%; padding: 12px 8px 8px; }
.hero-controls { position: relative; justify-self: center; display: flex; align-items: center; gap: 8px; padding-bottom: 8px; z-index: 2; }
.hero-ctl { min-width: 44px; min-height: 36px; padding: 4px 10px; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); border-radius: 2px; font-family: 'Courgette', cursive; font-weight: 700; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1; }
.hero-ctl span { font-size: 1.3rem; }
.hero-ctl:hover { background: var(--cream); }
.hero-toggle { min-width: 72px; }
.hero-count { font-family: 'Courgette', cursive; font-size: 0.75rem; min-width: 46px; text-align: center; color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media(max-width: 600px){ .hero-slides .art-note { padding: 10px 4px 8px; } .hero-controls { padding-bottom: 4px; } }
@media(prefers-reduced-motion: reduce){ .hero-slides > img.hero-in { animation: none; } }

/* Script typography: matches the sign-painter cursive of the logo */
h1, h2, .serif, h3, .modal-head h2, .form-section h3 { font-family: 'Berkshire Swash', 'Courgette', cursive; font-weight: 400; letter-spacing: 0; }
h1 { line-height: 1.15; }
.eyebrow, .topline, .brand span, .header nav a, .btn, .chip, .art-note, .seal, .value-strip, .product-art .tag,
.date-block span, .event .directions, .total-row, .status, #toast, .tabs button, .stat span, .auth-link, .hero-ctl, .field {
  text-transform: none; letter-spacing: 0.01em; font-weight: 400;
}
.eyebrow { font-size: 0.95rem; }
.topline { font-size: 0.9rem; }
.brand span { font-size: 0.78rem; margin-top: 3px; }
.header nav a { font-size: 1.05rem; }
.btn { font-size: 0.95rem; }
.btn.small { font-size: 0.85rem; }
.chip { font-size: 0.9rem; }
.art-note, .hero-photo .art-note { font-size: 0.85rem; letter-spacing: 0.01em; }
.seal { font-size: 0.85rem; line-height: 1.15; }
.value-strip { font-size: 0.98rem; }
.product-art .tag { font-size: 0.75rem; }
.date-block span, .event .directions { font-size: 0.85rem; }
.total-row { font-size: 0.98rem; }
.total-row.grand { font-size: 1.2rem; }
.status { font-size: 0.78rem; }
.tabs button { font-size: 1rem; }
.stat span { font-size: 0.9rem; }
.auth-link { font-size: 0.95rem; }
.field { font-size: 0.95rem; }
.field small, .preview-banner, .notice, .loading p, .admin-title p, .login-card p, .order-meta { font-style: normal; }
.allergens { font-size: 0.78rem; line-height: 1.5; }
.date-block strong, .stat strong { font-family: 'Courgette', cursive; font-weight: 400; }
/* Legibility exceptions: typed input, order codes, counters stay in a readable serif */
.field input, .field select, .field textarea, .receipt-code, .order-card .row strong.small, .bag-count, .hero-count, .quantity span { font-family: 'Lora', Georgia, serif; font-variant-numeric: tabular-nums; }
.receipt-code { font-size: 1.9rem; letter-spacing: 0.04em; }
@media(max-width: 600px){
  .topline { font-size: 0.8rem; }
  .brand span { font-size: 0.66rem; }
  .header-actions .btn, .admin-header .btn { font-size: 0.85rem; }
  .value-strip { font-size: 0.8rem; }
  .art-note { font-size: 0.75rem; }
  .product-card .btn { font-size: 0.85rem; }
  .price { font-size: 0.92rem; }
  .product-art .tag { font-size: 0.68rem; }
  .stat span { font-size: 0.78rem; }
}

/* Keep the desktop hero columns closer together and centered as a group. */
@media(min-width: 961px){
  .hero {
    grid-template-columns: minmax(0, 430px) minmax(0, 520px);
    justify-content: center;
    column-gap: 32px;
  }
}

/* Center the storefront's branding and titles on phone screens only. */
@media(max-width: 600px){
  .header:not(.admin-header) > .brand {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .header:not(.admin-header) > .header-actions { margin-inline: auto; }
  .hero-copy { text-align: center; }
  .hero-bakery-logo { margin-inline: auto; }
  .hero-copy > p { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  #menu > .section-head,
  #markets > .section-head {
    padding-right: 0;
    align-items: center;
    text-align: center;
  }
  #menu > .section-head > div,
  #markets > .section-head > div { width: 100%; }
  #menu > .section-head::after,
  #markets > .section-head::before {
    position: static;
    order: -1;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    align-self: center;
  }
  .product-title { align-items: center; text-align: center; }
  .event-body h3,
  #contact h2,
  #contact h3,
  #contact .eyebrow { text-align: center; }
  #contact .contact-box > .eyebrow { padding-right: 0; }
}
