/* ============================================================
   CAFÉ BAE — concept site design system
   "diner × rooftop": sage ground, tomato accent, chalk cards,
   checkerboard tile motif, arch-top photos
   ============================================================ */

:root {
  --sage: #e9eddc;
  --sage-deep: #dce3c8;
  --cream: #faf5e8;
  --ink: #22302a;
  --ink-soft: #47564d;
  --muted: #6e7a6d;
  --red: #d7472f;
  --red-deep: #b93a26;
  --pine: #2c5b4e;
  --chalk: #262b28;
  --chalk-ink: #f4efdf;
  --card-r: 26px;
  --pill: 999px;
  --font-display: "Bricolage Grotesque", sans-serif;
  --font-body: "Instrument Sans", sans-serif;
  --font-serif: "Newsreader", serif;
  --shadow-soft: 0 14px 34px rgba(34, 48, 42, 0.13);
  --shadow-lift: 0 22px 44px rgba(34, 48, 42, 0.18);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--sage);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

.wrap {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.wrap-wide {
  width: min(1240px, 96%);
  margin: 0 auto;
}

/* ---------- type ---------- */

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--ink);
}

h1 { font-size: clamp(2.6rem, 6.4vw, 4.9rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.05; }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.15; }

.serif-flair {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0;
}

.red { color: var(--red); }
.pine { color: var(--pine); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pine);
  margin-bottom: 1.1rem;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
}

.lede {
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 56ch;
}

/* ---------- buttons / chips ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.9rem;
  border-radius: var(--pill);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn-red {
  background: var(--red);
  color: var(--cream);
  box-shadow: var(--shadow-soft);
}

.btn-red:hover { background: var(--red-deep); transform: translateY(-2px); box-shadow: var(--shadow-lift); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-ghost:hover { background: var(--ink); color: var(--cream); transform: translateY(-2px); }

.btn-cream {
  background: var(--cream);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}

.btn-cream:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }

.chip {
  display: inline-block;
  padding: 0.32rem 0.95rem;
  border-radius: var(--pill);
  background: var(--cream);
  color: var(--pine);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- checker tile divider ---------- */

.checker {
  height: 34px;
  background:
    repeating-conic-gradient(var(--ink) 0% 25%, var(--cream) 0% 50%);
  background-size: 34px 34px;
  border-radius: 0;
}

.checker--tight { height: 20px; background-size: 20px 20px; }

.checker--pill {
  height: 22px;
  width: min(320px, 70%);
  margin: 0 auto;
  border-radius: var(--pill);
  background-size: 22px 22px;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--sage) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid rgba(34, 48, 42, 0.12);
}

.site-header-inner {
  width: min(1240px, 94%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--red);
  color: var(--cream);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  box-shadow: var(--shadow-soft);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}

.brand-sub {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.site-nav a {
  padding: 0.55rem 1.05rem;
  border-radius: var(--pill);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: background 0.15s ease, color 0.15s ease;
}

.site-nav a:hover { background: var(--sage-deep); color: var(--ink); }

.site-nav a.is-here {
  background: var(--ink);
  color: var(--cream);
}

.site-nav .nav-call {
  background: var(--red);
  color: var(--cream);
  font-weight: 700;
  margin-left: 0.35rem;
}

.site-nav .nav-call:hover { background: var(--red-deep); color: var(--cream); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  background: var(--cream);
  color: var(--ink);
  border-radius: var(--pill);
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
}

.nav-toggle .bars {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
}

.nav-toggle .bars span {
  width: 16px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.nav-open .nav-toggle .bars span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.site-header.nav-open .nav-toggle .bars span:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle .bars span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ---------- hero ---------- */

.hero {
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5.5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero-copy h1 { margin-bottom: 1.4rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.hero-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--cream);
  border-radius: var(--pill);
  padding: 0.55rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  box-shadow: var(--shadow-soft);
  margin-top: 1.6rem;
}

.hero-rating .star { color: var(--red); }

.hero-photos {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.hero-arch {
  grid-column: 1 / -1;
  border-radius: 999px 999px var(--card-r) var(--card-r);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}

.hero-arch img { width: 100%; height: 420px; object-fit: cover; }

.hero-sq {
  border-radius: var(--card-r);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.hero-sq img { width: 100%; height: 170px; object-fit: cover; }

.hero-badge {
  position: absolute;
  top: 18px;
  left: -14px;
  background: var(--pine);
  color: var(--cream);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  padding: 0.5rem 1.15rem;
  border-radius: var(--pill);
  box-shadow: var(--shadow-soft);
  transform: rotate(-3deg);
}

/* ---------- section scaffolding ---------- */

.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }

.section-head {
  max-width: 640px;
  margin-bottom: clamp(1.8rem, 4vw, 3rem);
}

.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

/* cards on cream */
.card {
  background: var(--cream);
  border-radius: var(--card-r);
  box-shadow: var(--shadow-soft);
  padding: 1.7rem;
}

/* ---------- chapters (index) ---------- */

.chapter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.chapter {
  background: var(--cream);
  border-radius: var(--card-r);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chapter:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }

.chapter-img { height: 210px; overflow: hidden; }
.chapter-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.chapter:hover .chapter-img img { transform: scale(1.04); }

.chapter-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.chapter-body p { color: var(--ink-soft); font-size: 0.95rem; }
.chapter-link {
  margin-top: auto;
  font-weight: 700;
  color: var(--red);
  font-size: 0.95rem;
}

/* ---------- photo strip ---------- */

.strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

.strip .shot {
  border-radius: var(--card-r);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.strip .shot:nth-child(odd) { border-radius: 999px 999px var(--card-r) var(--card-r); }
.strip .shot img { width: 100%; height: 230px; object-fit: cover; transition: transform 0.35s ease; }
.strip .shot:hover img { transform: scale(1.05); }

/* ---------- stats band ---------- */

.stat-band {
  background: var(--pine);
  border-radius: var(--card-r);
  padding: clamp(1.8rem, 4vw, 2.6rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  color: var(--cream);
  box-shadow: var(--shadow-lift);
}

.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 800;
}

.stat span { font-size: 0.85rem; opacity: 0.85; letter-spacing: 0.04em; }

/* ---------- chalk feature band (dark section inside light page) ---------- */

.chalk-band {
  background: var(--chalk);
  color: var(--chalk-ink);
  border-radius: var(--card-r);
  padding: clamp(2rem, 5vw, 3.6rem);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.8rem, 4vw, 3.4rem);
  align-items: center;
  box-shadow: var(--shadow-lift);
}

.chalk-band h2 { color: var(--chalk-ink); }
.chalk-band h2 .chalk-red { color: #ff8b73; }
.chalk-band p { color: rgba(244, 239, 223, 0.82); margin-top: 1rem; max-width: 50ch; }

.chalk-doodle {
  border: 2px dashed rgba(244, 239, 223, 0.4);
  border-radius: var(--card-r);
  padding: 1.6rem 1.8rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.55;
  color: rgba(244, 239, 223, 0.92);
}

.chalk-doodle .who {
  display: block;
  margin-top: 0.9rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ff8b73;
}

/* ---------- menu page ---------- */

.menu-hero {
  padding: clamp(2.4rem, 5vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
  text-align: center;
}

.menu-hero .eyebrow { justify-content: center; }

.menu-note {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  background: var(--cream);
  border-radius: var(--pill);
  padding: 0.5rem 1.2rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  box-shadow: var(--shadow-soft);
  margin-top: 1.4rem;
}

.menu-section { padding-bottom: clamp(2.4rem, 5vw, 3.6rem); }

.menu-block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem 2.2rem;
}

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.95rem 1.2rem;
  background: var(--cream);
  border-radius: 18px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.menu-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }

.menu-item .mi-name { font-weight: 700; font-size: 1rem; }
.menu-item .mi-name .mi-desc {
  display: block;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.menu-item .mi-price {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--red);
  white-space: nowrap;
}

.menu-item .mi-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--sage-deep);
  color: var(--pine);
  border-radius: var(--pill);
  padding: 0.14rem 0.6rem;
  margin-left: 0.5rem;
  vertical-align: 2px;
}

.menu-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.menu-photo-card {
  border-radius: var(--card-r);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: var(--cream);
}

.menu-photo-card img { width: 100%; height: 190px; object-fit: cover; }
.menu-photo-card .mpc-cap { padding: 0.9rem 1.1rem; font-weight: 700; font-size: 0.92rem; }
.menu-photo-card .mpc-cap span { display: block; font-weight: 400; color: var(--muted); font-size: 0.8rem; margin-top: 0.1rem; }

/* ---------- brunch page ---------- */

.brunch-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.brunch-list { list-style: none; display: grid; gap: 0.9rem; margin-top: 1.6rem; }

.brunch-list li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  background: var(--cream);
  border-radius: 18px;
  padding: 1rem 1.2rem;
  box-shadow: var(--shadow-soft);
  font-size: 0.97rem;
}

.brunch-list .dot {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--red);
  color: var(--cream);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  margin-top: 2px;
}

.brunch-photo {
  border-radius: 999px 999px var(--card-r) var(--card-r);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}

.brunch-photo img { width: 100%; height: 520px; object-fit: cover; }

.spread-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.spread-card {
  background: var(--cream);
  border-radius: var(--card-r);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.spread-card:nth-child(odd) { border-radius: 999px 999px var(--card-r) var(--card-r); }
.spread-card img { width: 100%; height: 200px; object-fit: cover; }
.spread-card .sc-cap { padding: 0.85rem 1.1rem; font-weight: 700; font-size: 0.9rem; }
.spread-card .sc-cap span { display: block; font-weight: 400; color: var(--muted); font-size: 0.8rem; margin-top: 0.1rem; }

/* ---------- visit page ---------- */

.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  align-items: stretch;
}

.visit-card {
  background: var(--cream);
  border-radius: var(--card-r);
  padding: 1.8rem;
  box-shadow: var(--shadow-soft);
}

.visit-card h3 { margin-bottom: 0.8rem; }
.visit-card p, .visit-card li { color: var(--ink-soft); font-size: 0.97rem; }
.visit-card ul { list-style: none; display: grid; gap: 0.5rem; margin-top: 0.4rem; }

.visit-card .big {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
}

.visit-photo {
  border-radius: var(--card-r);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  grid-column: 1 / -1;
}

.visit-photo img { width: 100%; height: 380px; object-fit: cover; }

.visit-photo.visit-map { margin: 0; }
.visit-photo.visit-map iframe { display: block; width: 100%; height: 380px; border: 0; }

.hours-table { width: 100%; border-collapse: collapse; margin-top: 0.4rem; }
.hours-table td { padding: 0.45rem 0; border-bottom: 1px dashed rgba(34,48,42,0.15); font-size: 0.95rem; }
.hours-table td:last-child { text-align: right; font-weight: 700; }
.hours-table tr:last-child td { border-bottom: none; }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--red);
  border-radius: var(--card-r);
  color: var(--cream);
  padding: clamp(2.2rem, 5vw, 3.4rem);
  text-align: center;
  box-shadow: var(--shadow-lift);
}

.cta-band h2 { color: var(--cream); }
.cta-band p { max-width: 52ch; margin: 1rem auto 1.8rem; color: rgba(250,245,232,0.9); }

/* ---------- footer ---------- */

.site-footer {
  margin-top: clamp(3rem, 6vw, 5rem);
  border-top: 2px solid rgba(34, 48, 42, 0.12);
  padding: 2.4rem 0 2.6rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.6rem;
  align-items: flex-start;
}

.footer-brand { max-width: 340px; }
.footer-brand p { font-size: 0.88rem; color: var(--muted); margin-top: 0.7rem; }

.footer-links { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.footer-links a { font-weight: 600; font-size: 0.92rem; color: var(--ink-soft); }
.footer-links a:hover { color: var(--red); }

.disclaimer {
  margin-top: 1.8rem;
  padding: 0.9rem 1.3rem;
  background: var(--sage-deep);
  border-radius: 18px;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photos { max-width: 560px; }
  .hero-arch img { height: 340px; }
  .chapter-grid { grid-template-columns: 1fr 1fr; }
  .strip { grid-template-columns: repeat(3, 1fr); }
  .strip .shot img { height: 180px; }
  .stat-band { grid-template-columns: 1fr 1fr; }
  .chalk-band { grid-template-columns: 1fr; }
  .menu-grid { grid-template-columns: 1fr; }
  .menu-cards { grid-template-columns: 1fr 1fr; }
  .brunch-hero-grid { grid-template-columns: 1fr; }
  .brunch-photo img { height: 380px; }
  .spread-grid { grid-template-columns: 1fr 1fr; }
  .visit-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: 1rem 4% 1.3rem;
    border-bottom: 2px solid rgba(34, 48, 42, 0.12);
    box-shadow: var(--shadow-lift);
  }

  .site-nav a { padding: 0.85rem 1.2rem; font-size: 1.05rem; }
  .site-header.nav-open .site-nav { display: flex; }
  .site-header { position: sticky; }
  .site-header-inner { position: relative; }

  .chapter-grid { grid-template-columns: 1fr; }
  .strip { grid-template-columns: 1fr 1fr; }
  .spread-grid { grid-template-columns: 1fr 1fr; }
  .menu-cards { grid-template-columns: 1fr; }
  .hero-sq img { height: 140px; }
  .hero-badge { left: 8px; }
}

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