:root {
  --bg: #fbf7f0;
  --ink: #3a2e25;
  --muted: #8a7c6f;
  --accent: #b5651d;
  --line: #e7ddcf;
  --card: #fffdf9;
  --sold: #c0392b;
  --max: 64rem;
  font-size: 17px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  line-height: 1.55;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.container, .site-header, .site-footer { max-width: var(--max); margin: 0 auto; padding: 1rem 1.25rem; }
.narrow { max-width: 38rem; }

/* accessibility: visually hidden but readable by screen readers / SEO */
.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;
}

/* header / nav */
.site-header { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { font-size: 1.25rem; font-weight: 700; color: var(--ink); display: flex; align-items: center; }
.brand-logo { height: 52px; width: 52px; border-radius: 50%; display: block; }
.hero-logo {
  display: block; margin: 0 auto 1rem; width: 190px; max-width: 55%;
  height: auto; border-radius: 50%;
  box-shadow: 0 6px 24px rgba(58,46,37,.18);
}
.site-header nav a { margin-left: 1rem; color: var(--muted); }
.site-header nav a.active, .site-header nav a:hover { color: var(--accent); }

/* hero */
.hero { padding: 2.5rem 0 1.5rem; text-align: center; }
.hero h1 { font-size: 2.4rem; margin: 0 0 .25rem; }
.lede { font-size: 1.2rem; color: var(--muted); }
.cta-row { margin-top: 1.25rem; }

/* buttons */
.btn {
  display: inline-block; background: var(--accent); color: #fff;
  padding: .55rem 1.1rem; border-radius: .4rem; border: 0; cursor: pointer;
  font: inherit; margin-right: .5rem;
}
.btn:hover { text-decoration: none; opacity: .92; }
.btn-ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn-small { padding: .35rem .7rem; font-size: .9rem; }

/* menu */
.menu-cat { margin: 1.5rem 0; }
.menu-cat h2 { border-bottom: 2px solid var(--line); padding-bottom: .25rem; }
.menu-item { padding: .6rem 0; border-bottom: 1px dotted var(--line); }
.mi-head { display: flex; justify-content: space-between; gap: 1rem; font-weight: 600; }
.mi-price { white-space: nowrap; color: var(--accent); }
.mi-desc { margin: .2rem 0 0; color: var(--muted); font-size: .95rem; }
.menu-item.sold-out .mi-name { text-decoration: line-through; color: var(--muted); }
.menu-item.sold-out .mi-price { color: var(--sold); font-style: italic; }

/* forms */
.form label { display: block; margin: .75rem 0; font-weight: 600; }
.form input, .form textarea, .menu-admin input {
  display: block; width: 100%; margin-top: .25rem; padding: .5rem;
  border: 1px solid var(--line); border-radius: .35rem; font: inherit; background: var(--card);
}
.menu-admin input[type=checkbox] { width: auto; }
.hp { position: absolute; left: -5000px; }
.status { color: var(--muted); min-height: 1.2em; }

/* messaging */
.thread, .thread-detail { background: var(--card); border: 1px solid var(--line); border-radius: .5rem; padding: 1rem; margin: 1rem 0; }
.messages { display: flex; flex-direction: column; gap: .5rem; margin: .75rem 0; }
.msg { padding: .5rem .75rem; border-radius: .5rem; max-width: 85%; }
.msg.customer { background: #f1e9dc; align-self: flex-start; }
.msg.baker { background: #e8f0e6; align-self: flex-end; }
.msg .who { font-size: .75rem; color: var(--muted); display: block; }
.msg p { margin: .15rem 0; }
.msg time { font-size: .7rem; color: var(--muted); }
.badge { font-size: .7rem; padding: .05rem .4rem; border-radius: 1rem; background: var(--line); }
.badge.open { background: var(--accent); color: #fff; }

/* dashboard */
.tabs { margin: 1rem 0; border-bottom: 1px solid var(--line); }
.tab { background: none; border: 0; padding: .5rem 1rem; cursor: pointer; font: inherit; color: var(--muted); }
.tab.active { color: var(--accent); border-bottom: 2px solid var(--accent); }
.split { display: grid; grid-template-columns: 16rem 1fr; gap: 1rem; }
.thread-list { list-style: none; padding: 0; margin: 0; }
.thread-list li { padding: .6rem; border: 1px solid var(--line); border-radius: .4rem; margin-bottom: .4rem; cursor: pointer; }
.thread-list li:hover { border-color: var(--accent); }
.thread-list .snippet { display: block; font-size: .8rem; color: var(--muted); }
.menu-admin { width: 100%; border-collapse: collapse; }
.menu-admin th, .menu-admin td { text-align: left; padding: .35rem; border-bottom: 1px solid var(--line); }

/* footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 3rem; font-size: .85rem; }
.disclaimer { color: var(--muted); font-style: italic; }
.muted { color: var(--muted); }
.note { color: var(--muted); font-size: .9rem; }

@media (max-width: 36rem) {
  .split { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.9rem; }
}
