/* Mo Bread
   Palette and type are taken from the logo: cream ground, charcoal ink,
   terracotta crust. Deliberately light-only, one warm world. */

:root {
  --cream: #f5efe3;
  --cream-alt: #ebe2cf;
  --card: #fffdf8;

  --charcoal: #3d322a;
  --charcoal-soft: #5a4c40;

  --terracotta: #b4784e;
  --terracotta-dark: #8a5730;

  --border: #dccfb6;
  --footer-text: #d5c9b8;

  --radius: 14px;
  --max-width: 1060px;
  --measure: 62ch;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Larger base so every rem below inherits comfortable sizing. */
  font-size: 17px;
  /* Anchored sections clear the sticky header. */
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--cream);
  color: var(--charcoal);
  font-size: 1.0625rem;
  line-height: 1.7;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--charcoal);
  margin-top: 0;
  line-height: 1.25;
  text-wrap: balance;
}

p {
  max-width: var(--measure);
}

a {
  color: var(--terracotta-dark);
}

img {
  max-width: 100%;
}

/* Keyboard focus needs to be obvious, not subtle. */
a:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--terracotta-dark);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--charcoal);
  color: var(--cream);
  padding: 12px 20px;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */

.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--charcoal);
}

.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}

.brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
  font-weight: bold;
}

.nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
  color: var(--charcoal-soft);
  font-weight: 600;
  font-size: 1rem;
  /* Generous hit area rather than bare text links. */
  padding: 10px 14px;
  border-radius: 8px;
}

.nav a:hover {
  color: var(--terracotta-dark);
  background: var(--cream);
}

/* Hero */

.hero {
  padding: 72px 0 64px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, var(--cream-alt), var(--cream) 72%);
}

.hero-logo {
  width: 176px;
  height: 176px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  /* A thin ring reads as a stamp; a drop shadow reads as a sticker. */
  box-shadow: 0 0 0 1px var(--border);
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

.tagline {
  font-style: italic;
  color: var(--terracotta-dark);
  font-size: 1.25rem;
  margin: 0 auto 24px;
}

.hero-copy {
  max-width: 34rem;
  margin: 0 auto 32px;
  color: var(--charcoal-soft);
  font-size: 1.15rem;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 15px 32px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.0625rem;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--terracotta-dark);
  color: #fff;
}

.btn-primary:hover {
  background: #74471f;
}

.btn-secondary {
  background: transparent;
  color: var(--charcoal);
  border: 2px solid var(--charcoal);
}

.btn-secondary:hover {
  background: var(--charcoal);
  color: var(--cream);
}

/* Sections */

.section {
  padding: 68px 0;
}

.section-alt {
  background: var(--cream-alt);
}

.section h2 {
  font-size: 2.25rem;
  margin-bottom: 0;
}

/* Short crust-colored rule, echoing the band on the logo seal. */
.section h2::after {
  content: "";
  display: block;
  width: 52px;
  height: 3px;
  margin-top: 14px;
  background: var(--terracotta);
  border-radius: 2px;
}

.section-intro {
  color: var(--charcoal-soft);
  margin-top: 20px;
  margin-bottom: 36px;
}

/* Menu */

.menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.menu-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.menu-card h3 {
  color: var(--terracotta-dark);
  font-size: 1.6rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 18px;
}

/* Menu title sits centered above the Regular / Spicy / Sweet columns,
   like a table caption. */
.menu-title {
  text-align: center;
}

.menu-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 640px) {
  .menu-columns {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Vertical rules between columns read as table dividers. */
  .menu-column {
    border-left: 1px solid var(--border);
    padding-left: 24px;
  }

  .menu-column:first-child {
    border-left: none;
    padding-left: 0;
  }
}

/* Column label. Sized to stay readable rather than shrunk into a caption. */
.menu-card h4 {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
  text-align: center;
  margin: 0 0 14px;
}

.menu-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-card li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.menu-card li:last-child {
  border-bottom: none;
}

/* Bake days / pickup */

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.info-card h3 {
  color: var(--terracotta-dark);
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.info-card p {
  margin-top: 0;
}

.info-card p:last-child {
  margin-bottom: 0;
}

/* The single most-asked question on the page. */
.info-lead {
  font-size: 1.25rem;
}

/* Gallery carousel */

/* Swipe is the primary interaction (most visitors are on a phone); the
   arrow buttons are a pointer-device convenience layered on top. */
.carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
}

.gallery-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  padding: 4px 4px 8px;
  scrollbar-width: none;
}

.gallery-track::-webkit-scrollbar {
  display: none;
}

.gallery-slide {
  flex: 0 0 auto;
  width: min(78vw, 380px);
  scroll-snap-align: center;
}

.gallery-thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: var(--radius);
}

.gallery-photo {
  aspect-ratio: 4 / 5;
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: block;
}

.gallery-thumb:hover .gallery-photo,
.gallery-thumb:focus-visible .gallery-photo {
  border-color: var(--terracotta);
}

.gallery-placeholder {
  aspect-ratio: 4 / 5;
  background: var(--card);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--charcoal-soft);
  font-size: 1rem;
  text-align: center;
  padding: 16px;
}

.carousel-arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--charcoal);
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-arrow:hover {
  border-color: var(--terracotta);
  color: var(--terracotta-dark);
}

/* Arrows are a nice-to-have for mouse/trackpad; on touch devices swipe
   already covers it, so free up the width for the photo instead. */
@media (max-width: 640px) {
  .carousel-arrow {
    display: none;
  }
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--border);
  cursor: pointer;
}

.carousel-dot.is-active {
  background: var(--terracotta);
  width: 22px;
  border-radius: 4px;
  transition: width 0.15s ease;
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(30, 24, 18, 0.92);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-figure {
  margin: 0;
  max-width: min(90vw, 900px);
  text-align: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox-caption {
  color: var(--cream);
  margin-top: 14px;
  font-size: 1rem;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: rgba(245, 239, 227, 0.12);
  color: var(--cream);
  border: 1px solid rgba(245, 239, 227, 0.4);
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(245, 239, 227, 0.24);
}

.lightbox-close {
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  font-size: 1.6rem;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 1.2rem;
}

.lightbox-prev {
  left: 16px;
}

.lightbox-next {
  right: 16px;
}

@media (max-width: 640px) {
  .lightbox {
    padding: 16px;
  }
  .lightbox-nav {
    width: 42px;
    height: 42px;
  }
}

/* About */

.about-inner {
  max-width: 700px;
}

.about-inner p {
  font-size: 1.1rem;
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
  text-decoration: none;
  color: var(--charcoal);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

a.contact-card:hover {
  border-color: var(--terracotta);
  box-shadow: 0 6px 18px rgba(61, 50, 42, 0.12);
}

.contact-card h3 {
  color: var(--charcoal-soft);
  margin-bottom: 8px;
  font-size: 0.95rem;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Phone and email are the actual call to action, so they get the size. */
.contact-value {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--terracotta-dark);
  margin: 0;
  line-height: 1.4;
}

.contact-card-social {
  text-align: center;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 6px;
}

/* Monochrome icon badges, dummy hrefs until the accounts go live. */
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cream-alt);
  border: 1px solid var(--border);
  color: var(--terracotta-dark);
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.social-link:hover {
  background: var(--cream);
  border-color: var(--terracotta);
  transform: translateY(-2px);
}

.social-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Footer */

.site-footer {
  background: var(--charcoal);
  color: var(--footer-text);
  padding: 36px 0;
  text-align: center;
  font-size: 1rem;
}

.site-footer p {
  margin: 6px auto;
  max-width: 60ch;
}

.disclaimer {
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  html {
    font-size: 16px;
  }
  .hero {
    padding: 48px 0 44px;
  }
  .hero h1 {
    font-size: 2.4rem;
  }
  .hero-logo {
    width: 140px;
    height: 140px;
  }
  .section {
    padding: 52px 0;
  }
  .section h2 {
    font-size: 1.9rem;
  }
  .btn {
    /* Full-width targets are easier to hit on a phone. */
    display: block;
    width: 100%;
  }
  .hero-actions {
    flex-direction: column;
  }
}

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