/* B · Kraft & Chalk: the pine counter, brown paper, chalkboard prices and copper-pipe stands inside the shop. */
:root {
  --bg: #fbf6ec;
  --surface: #fffaf1;
  --alt: #ecdcc0;
  --ink: #2a211a;
  --muted: #5a4838;
  --title: #2a211a;
  --accent: #9a4612;
  --accent-deep: #7a360c;
  --on-accent: #fffaf1;
  --footer: #232825;
  --on-footer: #f1eee6;
  --board: #232825;
  --chalk: #f1eee6;
  --chalk-dim: #c9c4b7;
  --pine: #c58747;
  --pine-deep: #8f5a28;
  --header: 64px;
  --bar-h: 60px;
  --serif: 'Young Serif', Georgia, 'Times New Roman', serif;
  --hand: 'Patrick Hand', 'Comic Sans MS', cursive;
  --sans: 'Figtree', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  padding-bottom: var(--bar-h);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0; }
p { margin: 0 0 1em; }
figure { margin: 0; }
section[id], main { scroll-margin-top: calc(var(--header) + 8px); }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }

.sr-only, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: var(--surface); padding: 8px 12px; }

.label {
  display: inline-block;
  font-family: var(--hand); font-size: 22px; line-height: 1.2;
  color: var(--accent);
  margin-bottom: 6px;
}
.section-title { font-size: clamp(32px, 7.4vw, 52px); color: var(--title); margin-bottom: .45em; }

/* Buttons: brown-paper tags */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 10px 22px;
  border-radius: 4px;
  font-weight: 700; font-size: 16px; text-decoration: none;
  border: 2px solid var(--accent);
  transition: background .15s ease, color .15s ease;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn-ghost { background: var(--surface); color: var(--accent); }
.btn-ghost:hover { background: var(--accent); color: var(--on-accent); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Photos pinned up with a strip of tape */
.taped { position: relative; background: var(--surface); padding: 10px 10px 12px; box-shadow: 0 12px 28px rgba(42, 33, 26, .18); transform: rotate(-1.2deg); }
.taped::before {
  content: ''; position: absolute; top: -12px; left: 50%; width: 110px; height: 26px; margin-left: -55px;
  background: rgba(236, 220, 192, .85); transform: rotate(2deg);
}
.taped img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.taped.tall img { aspect-ratio: 3 / 4; max-height: 600px; }

/* Header: a strip of chalkboard */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 16px;
  background: var(--board); color: var(--chalk);
  border-bottom: 4px solid var(--pine);
}
.brand { font-family: var(--serif); font-size: 26px; color: var(--chalk); text-decoration: none; white-space: nowrap; }
.brand-small { font-family: var(--hand); font-size: .8em; color: var(--chalk-dim); }
.site-nav { display: flex; align-items: center; gap: 22px; font-weight: 600; }
.site-nav a { text-decoration: none; color: var(--chalk); }
.site-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-nav .nav-cta { background: var(--pine); color: var(--ink); padding: 8px 16px; border-radius: 4px; }
.site-nav .nav-cta:hover { background: var(--chalk); text-decoration: none; }
.nav-toggle { display: none; }

@media (max-width: 899px) {
  html:not(.js) .site-header { height: auto; flex-wrap: wrap; padding: 8px 16px; }
  html:not(.js) .site-nav { flex-wrap: wrap; gap: 6px 16px; width: 100%; }
  .js .nav-toggle {
    display: grid; place-items: center; width: 48px; height: 48px;
    background: none; border: 0; color: var(--chalk); cursor: pointer;
  }
  .bars, .bars::before, .bars::after {
    display: block; width: 24px; height: 2px; background: currentColor; position: relative;
  }
  .bars::before, .bars::after { content: ''; position: absolute; left: 0; }
  .bars::before { top: -7px; }
  .bars::after { top: 7px; }

  .js .site-nav {
    position: absolute; top: calc(var(--header) - 4px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--board); border-bottom: 4px solid var(--pine);
    display: none;
  }
  .js .site-nav.is-open { display: flex; }
  .js .site-nav a { padding: 14px 16px; border-top: 1px solid rgba(241, 238, 230, .14); }
  .js .site-nav .nav-cta { margin: 12px 16px 16px; text-align: center; }
}

/* Hero: loaves photo with a chalkboard card; status and button above the fold at 390x844.
   Phones stack the card under the photo; laptops lay it over a full-width photo. */
.hero { position: relative; background: var(--board); overflow: hidden; }
.hero-bg { height: 230px; margin: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.hero-inner { position: relative; margin-top: -26px; padding-bottom: 20px; }
.hero-card {
  background: rgba(35, 40, 37, .94); color: var(--chalk);
  border: 6px solid var(--pine);
  border-radius: 4px;
  padding: 18px 18px 20px;
  max-width: 520px;
}
.eyebrow { font-family: var(--hand); font-size: 20px; color: var(--chalk-dim); margin-bottom: 2px; }
.hero h1 { font-size: clamp(48px, 13vw, 84px); line-height: 1; margin-bottom: 10px; color: var(--chalk); }
.h1-small { display: block; font-family: var(--hand); font-size: .48em; color: var(--chalk-dim); line-height: 1.1; }
.hero-lead { font-size: clamp(18px, 4.4vw, 21px); margin-bottom: 14px; }
.status {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--hand); font-size: 21px; line-height: 1.2;
  border: 2px dashed var(--chalk-dim); padding: 6px 12px; border-radius: 4px;
  margin-bottom: 16px;
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--chalk-dim); flex: none; }
.status:has([data-state='open']) .dot { background: #5fd08a; }
.status:has([data-state='closed']) .dot { background: #f08a5d; }
.hero .btn-ghost { background: transparent; color: var(--chalk); border-color: var(--chalk); }
.hero .btn-ghost:hover { background: var(--chalk); color: var(--board); }
.hero .btn-primary { background: var(--pine); border-color: var(--pine); color: var(--ink); }
.hero .btn-primary:hover { background: var(--chalk); border-color: var(--chalk); }

@media (min-width: 900px) {
  .hero { min-height: 620px; display: flex; align-items: center; }
  .hero-bg { position: absolute; inset: 0; height: auto; }
  .hero-inner { margin-top: 0; padding-top: 64px; padding-bottom: 64px; }
  .hero-card { padding: 28px 30px 30px; }
}

/* Split layouts */
.split { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
}

/* About on brown paper */
.about { padding: 60px 0; background: var(--alt); }
.about .label { color: var(--accent-deep); }
.aside { font-family: var(--hand); font-size: 26px; line-height: 1.25; color: var(--ink); border-left: 4px solid var(--accent); padding-left: 14px; }
.aside span { display: block; font-family: var(--sans); font-size: 14px; color: var(--muted); margin-top: 4px; }

/* Menu: a chalkboard in a pine frame. Tabs only show once JS marks them ready */
.menu { padding: 60px 0; background: var(--bg); }
.board {
  background: var(--board); color: var(--chalk);
  border: 12px solid var(--pine);
  border-radius: 4px;
  box-shadow: inset 0 0 0 2px var(--pine-deep), 0 16px 34px rgba(42, 33, 26, .2);
  padding: 24px 18px 26px;
}
.board .label { color: var(--chalk-dim); }
.board .section-title { color: var(--chalk); }
.menu-tabs {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 4px 0 14px; margin-bottom: 4px;
  border-bottom: 2px dashed rgba(241, 238, 230, .3);
  scrollbar-width: thin;
}
.menu-tabs button {
  flex: none;
  font-family: var(--hand); font-size: 21px;
  padding: 6px 16px; border-radius: 4px;
  border: 2px solid var(--chalk-dim); background: transparent; color: var(--chalk);
  cursor: pointer;
}
.menu-tabs button[aria-selected='true'] { background: var(--chalk); color: var(--board); border-color: var(--chalk); }
.menu-tabs:not(.is-ready) { display: none; }
.menu-panel { padding-top: 12px; }
.menu-panel + .menu-panel { border-top: 2px dashed rgba(241, 238, 230, .3); margin-top: 18px; }
.menu-tabs.is-ready ~ .menu-panel { border-top: 0; margin-top: 0; }
.menu-tabs.is-ready ~ .menu-panel .group-title { display: none; }

.group-title { font-size: 26px; color: var(--chalk); margin: 4px 0 8px; }
.items { list-style: none; margin: 0; padding: 0; }
.items li { padding: 12px 0; border-bottom: 1px solid rgba(241, 238, 230, .14); }
.items li:last-child { border-bottom: 0; }
.item-head { display: flex; justify-content: space-between; gap: 16px; font-family: var(--hand); font-size: 26px; line-height: 1.2; }
.price { white-space: nowrap; }
.items p { margin: 2px 0 0; color: var(--chalk-dim); }
.menu-note { margin: 18px 0 0; font-size: 14px; color: var(--chalk-dim); }
@media (min-width: 800px) { .board { padding: 32px 40px 34px; } }

/* Hours on a brown-paper tag */
.hours { padding: 60px 0; background: var(--bg); }
.tag {
  position: relative;
  background: var(--alt);
  border-radius: 6px;
  padding: 36px 22px 24px;
  box-shadow: 0 10px 24px rgba(42, 33, 26, .14);
}
.tag::before {
  content: ''; position: absolute; top: 14px; left: 50%; width: 16px; height: 16px; margin-left: -8px;
  border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 3px var(--pine);
}
.tag .label { color: var(--accent-deep); }
.week { list-style: none; margin: 0 0 14px; padding: 0; }
.week li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 10px; border-bottom: 1px dashed rgba(42, 33, 26, .25); }
.week li.is-today { background: var(--board); color: var(--chalk); border-radius: 4px; font-weight: 700; }
.hours-note { margin: 0; color: var(--muted); }

/* Gallery: the counter, scrolled sideways on phones */
.gallery { padding: 60px 0 0; background: var(--bg); }
.counter { background: linear-gradient(180deg, var(--pine) 0%, var(--pine-deep) 100%); padding: 28px 0; margin-top: 8px; }
.strip {
  list-style: none; margin: 0 auto; padding: 0 16px; max-width: 1120px; scroll-padding-inline: 16px;
  display: grid; grid-auto-flow: column; grid-auto-columns: 68%; gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.strip li { scroll-snap-align: start; background: var(--surface); padding: 8px; border-radius: 2px; box-shadow: 0 8px 18px rgba(0, 0, 0, .25); }
.strip img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
@media (min-width: 900px) {
  .strip { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; gap: 20px; }
  .strip li:nth-child(odd) { transform: rotate(-1deg); }
  .strip li:nth-child(even) { transform: rotate(1.2deg); }
}

/* Reviews: one real review so far, quoted with its source */
.reviews { padding: 60px 0; background: var(--bg); }
.reviews-sub { color: var(--muted); margin: -8px 0 0; }
.stars { color: var(--accent); letter-spacing: .05em; }
.bag {
  background: var(--alt);
  padding: 26px 22px 22px;
  margin: 8px 0 20px; max-width: 760px;
  border-radius: 4px;
  clip-path: polygon(0 8px, 4% 0, 8% 8px, 12% 0, 16% 8px, 20% 0, 24% 8px, 28% 0, 32% 8px, 36% 0, 40% 8px, 44% 0, 48% 8px, 52% 0, 56% 8px, 60% 0, 64% 8px, 68% 0, 72% 8px, 76% 0, 80% 8px, 84% 0, 88% 8px, 92% 0, 96% 8px, 100% 0, 100% 100%, 0 100%);
}
.bag blockquote { margin: 0; }
.bag p { font-family: var(--hand); font-size: clamp(24px, 5vw, 30px); line-height: 1.3; margin: 0 0 10px; }
.bag figcaption { font-weight: 700; color: var(--muted); font-size: 15px; }

/* Find us */
.find { padding: 60px 0; background: var(--surface); }
.find-grid { display: grid; gap: 28px; }
address { font-style: normal; font-size: 19px; margin-bottom: 14px; }
.directions { color: var(--muted); max-width: 30em; }
.map { border-radius: 4px; overflow: hidden; min-height: 320px; border: 8px solid var(--pine); }
.map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }
@media (min-width: 900px) { .find-grid { grid-template-columns: 1fr 1.2fr; align-items: stretch; } }

/* Footer */
.site-footer { background: var(--footer); color: var(--on-footer); padding-bottom: 24px; border-top: 6px solid var(--pine); }
.footer-grid { display: grid; gap: 24px; padding-top: 32px; }
.footer-brand { font-family: var(--serif); font-size: 38px; margin: 0; line-height: 1.1; }
.footer-sub { color: var(--chalk-dim); margin-top: 6px; }
.site-footer h2 { font-family: var(--hand); font-size: 22px; margin-bottom: 4px; color: var(--chalk-dim); }
.site-footer a { color: var(--on-footer); }
.copyright { text-align: center; font-size: 13px; margin: 24px 16px 0; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }

/* Mobile action bar */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  height: var(--bar-h);
  display: grid; grid-template-columns: 1fr 1fr;
  box-shadow: 0 -4px 14px rgba(0, 0, 0, .18);
}
.mobile-bar a {
  display: grid; place-items: center;
  font-weight: 700; font-size: 17px; text-decoration: none;
  background: var(--accent); color: var(--on-accent);
}
.mobile-bar .mobile-bar-alt { background: var(--board); color: var(--chalk); }
@media (min-width: 900px) {
  .mobile-bar { display: none; }
  body { padding-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
