/* ==========================================================================
   B&B Cafe & Grill — site stylesheet
   Tokens and layout per design handoff (README.md, Aug 2026).
   ========================================================================== */

/* ---- Self-hosted fonts (Google Fonts: Instrument Serif, DM Sans) ---- */
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/instrument-serif-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/instrument-serif-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/instrument-serif-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/instrument-serif-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* DM Sans v17 variable font — one file covers weights 300–700 */
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../assets/fonts/dm-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../assets/fonts/dm-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---- Design tokens ---- */
:root {
  --ink: #121110;
  --ink-70: #4a4741;
  --ink-50: #6e6a63;
  --ink-30: #a5a09a;
  --red: #9c1f28;
  --red-soft: #d78d94;
  --cream: #f4f2ee;
  --rule: #e4e1da;
  --rule-strong: #d9d5cc;
  --rule-on-dark: rgba(255, 255, 255, 0.14);
  --green: #3f7d4f;
  --paper: #ffffff;

  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;

  --gutter: 32px;
  --header-h: 74px;
}

/* ---- Base ---- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--red);
  text-decoration: none;
  transition: color 120ms ease, background-color 120ms ease, border-color 120ms ease;
}
a:hover { color: var(--ink); }

h1, h2 {
  font-family: var(--serif);
  font-weight: 400;
}

.page { max-width: 100%; overflow-x: hidden; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Anchor targets clear the sticky bars */
.page--home section[id] { scroll-margin-top: 100px; }
.page--menu section[id] { scroll-margin-top: 200px; }

/* ---- Shared bits ---- */
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 500;
}
.eyebrow--rule {
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow--rule::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--red);
}
.eyebrow--on-dark { color: var(--red-soft); }

.pill {
  display: inline-block;
  padding: 16px 30px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
}
.pill--ink { background: var(--ink); color: #fff; }
.pill--ink:hover { background: var(--red); color: #fff; }
.pill--red { background: var(--red); color: #fff; }
.pill--red:hover { background: var(--ink); color: #fff; }
.pill--outline { border: 1px solid var(--rule-strong); color: var(--ink); }
.pill--outline:hover { border-color: var(--ink); color: var(--ink); }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.wordmark {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--ink);
}
.wordmark:hover { color: var(--ink); }
.wordmark__bb {
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: -0.01em;
}
.wordmark__rest {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-50);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.site-nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.site-nav__link:hover { color: var(--red); }
.pill--nav {
  padding: 11px 20px;
  font-size: 14px;
}
/* Mobile-only nav row under the header (<600px) */
.mobile-nav {
  display: none;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.mobile-nav__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 12px var(--gutter);
}
.mobile-nav__inner a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

/* ---- Home: hero ---- */
.hero { padding-top: 96px; padding-bottom: 84px; }
.hero__title {
  font-size: 104px;
  line-height: 0.94;
  letter-spacing: -0.03em;
  margin: 26px 0 0;
}
.hero__title em {
  font-style: italic;
  color: var(--red);
}
.hero__lede {
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-70);
  max-width: 52ch;
  margin: 28px 0 0;
  text-wrap: pretty;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}
.status-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  font-size: 14px;
  color: var(--ink-50);
}
.status-line__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex: none;
}
.status-line--closed .status-line__dot { background: var(--red); }

/* ---- Home: info strip ---- */
.info-strip {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--cream);
}
.info-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.info-strip__cell {
  padding: 34px 0;
  display: block;
  color: var(--ink);
}
.info-strip__cell + .info-strip__cell { padding-left: 34px; }
.info-strip__cell:not(:last-child) { border-right: 1px solid var(--rule); }
.info-strip__label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 500;
}
.info-strip__value {
  font-size: 16px;
  margin-top: 10px;
  line-height: 1.5;
}
.info-strip__value span { color: var(--ink-50); }
a.info-strip__cell:hover { color: var(--red); }

/* ---- Home: sections shared ---- */
.section-h2 {
  font-size: 52px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 18px 0 0;
}
.body-copy {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-70);
  margin: 22px 0 0;
  max-width: 54ch;
  text-wrap: pretty;
}
.body-copy + .body-copy { margin-top: 16px; }

/* ---- Home: story ---- */
.story { padding-top: 104px; padding-bottom: 104px; }
.stats {
  display: flex;
  gap: 44px;
  margin-top: 38px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}
.stats__num {
  font-family: var(--serif);
  font-size: 38px;
  line-height: 1;
}
.stats__label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-50);
  margin-top: 4px;
}

/* ---- Home: house favorites (dark band) ---- */
.favorites {
  background: var(--ink);
  color: #fff;
}
.favorites__inner { padding-top: 96px; padding-bottom: 96px; }
.favorites__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.favorites__link {
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  padding-bottom: 4px;
  font-size: 15px;
  font-weight: 500;
}
.favorites__link:hover {
  color: #fff;
  border-color: #fff;
}
.favorites__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 72px;
  margin-top: 52px;
}
.fav-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule-on-dark);
}
.fav-row__body { flex: 1; }
.fav-row__name {
  font-size: 19px;
  font-weight: 500;
}
.fav-row__desc {
  font-size: 14px;
  color: var(--ink-30);
  margin-top: 5px;
  line-height: 1.5;
}
.fav-row__price {
  font-family: var(--serif);
  font-size: 22px;
  color: #fff;
  white-space: nowrap;
}

/* ---- Home: catering ---- */
.catering {
  padding-top: 104px;
  padding-bottom: 104px;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 72px;
  align-items: start;
}
.catering .body-copy { max-width: 40ch; }
.catering__cta { margin-top: 30px; }
.catering__list { padding-top: 8px; }
.catering__row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--rule);
  font-size: 17px;
}
.catering__row:last-child { border-bottom: 1px solid var(--rule); }
.catering__row span:last-child { color: var(--ink-50); }

/* ---- Home: reviews ---- */
.reviews {
  background: var(--cream);
  border-top: 1px solid var(--rule);
}
.reviews__inner { padding-top: 96px; padding-bottom: 96px; }
.reviews__head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
}
.reviews__title {
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
}
.reviews__meta {
  font-size: 14px;
  color: var(--ink-50);
}
.reviews__link {
  margin-left: auto;
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 3px;
  color: var(--red);
}
.reviews__link:hover { border-color: var(--ink); }
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 44px;
}
.review-card {
  background: #fff;
  border: 1px solid var(--rule);
  padding: 32px;
}
.review-card__stars {
  color: var(--red);
  font-size: 14px;
  letter-spacing: 0.22em;
}
.review-card__quote {
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.4;
  margin: 18px 0 0;
  text-wrap: pretty;
}
.review-card__name {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-50);
  margin-top: 22px;
}

/* Carousel dots — injected by js/reviews-carousel.js, shown below 900px only */
.reviews__dots {
  display: none;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
}
.reviews__dots button {
  width: 28px;
  height: 28px;
  border: 0;
  padding: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.reviews__dots button::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rule-strong);
  transition: background-color 120ms ease;
}
.reviews__dots button.is-active::after { background: var(--red); }

/* ---- Home: visit ---- */
.visit {
  padding-top: 104px;
  padding-bottom: 104px;
}
.visit__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.visit .body-copy { max-width: 44ch; }
.visit__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hours-card {
  background: var(--cream);
  border: 1px solid var(--rule);
  padding: 40px;
}
.hours-card__row {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
}
.hours-card__row--open {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}
.hours-card__row--open span:first-child { font-weight: 500; }
.hours-card__row--closed {
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-50);
}
.hours-card__row--closed:last-of-type {
  padding-bottom: 0;
  border-bottom: 0;
}
.hours-card__note {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-70);
}

/* ---- Footer ---- */
.site-footer {
  background: var(--ink);
  color: #fff;
}
.site-footer__grid {
  padding-top: 64px;
  padding-bottom: 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
}
.site-footer__wordmark {
  font-family: var(--serif);
  font-size: 32px;
}
.site-footer__blurb {
  font-size: 15px;
  color: var(--ink-30);
  margin: 12px 0 0;
  max-width: 34ch;
  line-height: 1.6;
}
.site-footer__col {
  display: grid;
  gap: 10px;
  align-content: start;
}
.site-footer__heading {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-50);
}
.site-footer__col a {
  color: #fff;
  font-size: 15px;
}
.site-footer__col a:hover { color: var(--red-soft); }
.site-footer__col span {
  font-size: 15px;
  color: var(--ink-30);
}
.site-footer__legal {
  padding-bottom: 40px;
  font-size: 13px;
  color: var(--ink-50);
}

/* ---- Menu: page head ---- */
.menu-head {
  padding-top: 72px;
  padding-bottom: 34px;
}
.menu-head__title {
  font-size: 72px;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 20px 0 0;
}
.menu-head__lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-70);
  max-width: 56ch;
  margin: 20px 0 0;
  text-wrap: pretty;
}

/* ---- Menu: sticky category nav ---- */
.cat-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  background: var(--paper);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.cat-nav__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 0;
}
.cat-nav__inner a {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  padding: 10px 16px;
  white-space: nowrap;
}
.cat-nav__inner a:hover {
  border-color: var(--ink);
  background: var(--cream);
  color: var(--ink);
}
.cat-nav__inner a.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* ---- Menu: sections ---- */
.menu-section {
  padding-top: 76px;
  padding-bottom: 0;
}
.menu-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 16px;
}
.menu-section__title {
  font-size: 46px;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
}
.menu-section__note {
  font-size: 14px;
  color: var(--ink-50);
  max-width: 52ch;
}
.menu-section__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 72px;
  margin-top: 14px;
}
.item-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 19px 0;
  border-bottom: 1px solid var(--rule);
}
.item-row__body { flex: 1; }
.item-row__name {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
}
.item-row__desc {
  font-size: 14px;
  color: var(--ink-50);
  margin-top: 5px;
  line-height: 1.5;
}
.item-row__price {
  font-family: var(--serif);
  font-size: 20px;
  white-space: nowrap;
}
.menu-section__footnote {
  font-size: 14px;
  color: var(--ink-50);
  margin-top: 18px;
  line-height: 1.6;
  max-width: 80ch;
}

/* ---- Menu: build-your-own CTA ---- */
.byo { margin-top: 96px; }
.byo__panel {
  background: var(--cream);
  border: 1px solid var(--rule);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.byo__title {
  font-size: 40px;
  line-height: 1.05;
  margin: 0;
}
.byo__copy {
  font-size: 16px;
  color: var(--ink-70);
  margin: 12px 0 0;
  max-width: 52ch;
}
.byo .pill { white-space: nowrap; }

.page--menu .site-footer { margin-top: 96px; }

/* ==========================================================================
   Responsive (prescriptive rules from the handoff — desktop is the design)
   ========================================================================== */

/* 900–1240px */
@media (max-width: 1240px) {
  :root { --gutter: 24px; }
  .hero__title { font-size: 72px; }
  .section-h2 { font-size: 42px; }
  .menu-head__title { font-size: 60px; }
  .menu-section__title { font-size: 40px; }
}

/* 600–900px (tablet) */
@media (max-width: 900px) {
  .hero__title { font-size: 56px; }

  .info-strip__grid { grid-template-columns: 1fr 1fr; }
  .info-strip__cell:not(:last-child) { border-right: 0; }
  .info-strip__cell:nth-child(odd) { border-right: 1px solid var(--rule); }
  .info-strip__cell { padding: 26px 0; }
  .info-strip__cell:nth-child(odd) { padding-left: 0; padding-right: 26px; }
  .info-strip__cell:nth-child(even) { padding-left: 26px; }
  .info-strip__cell:nth-child(n + 3) { border-top: 1px solid var(--rule); }

  .favorites__grid,
  .menu-section__grid { grid-template-columns: 1fr; gap: 0; }
  .catering { grid-template-columns: 1fr; gap: 48px; }
  .visit__grid { grid-template-columns: 1fr; gap: 48px; }
  /* Reviews become a swipeable one-card carousel below 900px */
  .reviews__grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    margin-top: 32px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .reviews__grid::-webkit-scrollbar { display: none; }
  .review-card {
    flex: 0 0 100%;
    scroll-snap-align: start;
  }
  .reviews__dots { display: flex; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 32px; }
}

/* <600px (mobile) */
@media (max-width: 600px) {
  :root { --gutter: 20px; }

  .hero { padding-top: 64px; padding-bottom: 56px; }
  .hero__title { font-size: 42px; }
  .hero__lede { font-size: 17px; }
  .body-copy { font-size: 16px; }

  .hero__actions .pill,
  .visit__actions .pill,
  .catering__cta {
    width: 100%;
    text-align: center;
  }

  /* Header collapses to wordmark + phone pill; links move to a row below */
  .site-nav__link { display: none; }
  .mobile-nav { display: block; }

  .story, .catering, .visit { padding-top: 72px; padding-bottom: 72px; }
  .favorites__inner, .reviews__inner { padding-top: 72px; padding-bottom: 72px; }
  .section-h2 { font-size: 36px; }
  .reviews__title { font-size: 32px; }
  .stats { gap: 28px; flex-wrap: wrap; }

  .menu-head { padding-top: 48px; }
  .menu-head__title { font-size: 48px; }

  /* Category nav: horizontally scrollable sticky row of chips */
  .cat-nav__inner {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .cat-nav__inner::-webkit-scrollbar { display: none; }
  .cat-nav__inner a { padding: 14px 16px; }
  .page--menu section[id] { scroll-margin-top: 160px; }

  .menu-section { padding-top: 56px; }
  .byo__panel { padding: 32px; }
  .byo__title { font-size: 32px; }

  /* keep 44px tap targets */
  .site-nav .pill--nav { padding: 12px 20px; }
}

/* ---- Print (menu as a clean price list) ---- */
@media print {
  .site-header, .mobile-nav, .cat-nav, .byo, .site-footer, .hero__actions { display: none; }
  body { color: #000; }
  .menu-section { padding-top: 28px; break-inside: avoid-page; }
  .item-row { padding: 8px 0; }
  a { color: inherit; }
}
