/* =========================================================
   BAEKD Bread Co. — Bakery Brand Stylesheet
   Typography reference: the brand's circular badge logo pairs a
   bold vintage swash wordmark ("BAEKD") with a smaller bold serif
   small-caps line ("BREAD CO."). Recreated here as "Rye" (the
   swash display face) and "Roboto Slab" (the bold serif small
   caps) — used together for every heading, label, button, and
   nav item across the site, with Inter reserved for body copy.

   Color system is deliberately tight: one warm neutral pair
   (wheat / charcoal) and a single accent (rust) used consistently
   for every interactive or emphasis moment. No secondary or
   near-duplicate accent colors.
   ========================================================= */

:root {
  --wheat: #F3EBDB;
  --wheat-deep: #EAE0C8;
  --charcoal: #221D17;
  --charcoal-soft: #4A4038;
  --rust: #96502A;
  --rust-deep: #703C1F;
  --neutral: #8C7E68;
  --line: #DED0B2;
  --white: #FFFFFF;

  --font-display: "Rye", "Georgia", serif;
  --font-slab: "Roboto Slab", "Georgia", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1240px;
  --container-narrow: 780px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius-sm: 2px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
body, h1, h2, h3, h4, p, figure, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
svg { display: block; }

body {
  background: var(--wheat);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

img, a, button { transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease); }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; }

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--font-slab);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rust);
  display: inline-block;
}
.eyebrow::before, .eyebrow::after { content: "\2014"; margin: 0 8px; opacity: 0.6; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1.08;
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(2.6rem, 5.6vw, 4.8rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); }
h4 { font-family: var(--font-slab); font-weight: 700; font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.04em; }

.lede { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--charcoal-soft); max-width: 46ch; line-height: 1.65; }
p { color: var(--charcoal-soft); }
.text-center { text-align: center; }
.text-center .lede { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; font-family: var(--font-slab);
  font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid transparent; border-radius: var(--radius-sm); white-space: nowrap;
}
.btn-primary { background: var(--charcoal); color: var(--wheat); border-color: var(--charcoal); }
.btn-primary:hover { background: var(--rust); border-color: var(--rust); color: var(--white); }
.btn-outline { background: transparent; color: var(--charcoal); border-color: var(--charcoal); }
.btn-outline:hover { background: var(--charcoal); color: var(--wheat); }
.btn-rust { background: var(--rust); color: var(--white); border-color: var(--rust); }
.btn-rust:hover { background: var(--rust-deep); border-color: var(--rust-deep); }
.btn-ghost {
  padding: 0; border: none; border-radius: 0; text-transform: none; letter-spacing: 0;
  font-family: var(--font-display); font-size: 1.1rem; color: var(--charcoal);
  border-bottom: 1px solid var(--charcoal);
}
.btn-ghost:hover { color: var(--rust); border-color: var(--rust); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--wheat); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 92px; }
.logo-mark { height: 60px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 40px; }
.main-nav ul { display: flex; gap: 34px; align-items: center; }
.main-nav a {
  font-family: var(--font-slab); font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  position: relative; padding-bottom: 4px;
}
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--rust); transition: right 0.3s var(--ease); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { right: 0; }
.main-nav a[aria-current="page"] { color: var(--rust); }
.main-nav .btn { padding: 11px 22px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; z-index: 200; }
.nav-toggle span { width: 24px; height: 2px; background: var(--charcoal); transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--charcoal); color: var(--wheat); padding: 12px 20px; z-index: 1000; }
.skip-link:focus { left: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; height: min(86vh, 860px); min-height: 540px; display: flex; align-items: flex-end; overflow: hidden; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(34,29,23,0.05) 0%, rgba(34,29,23,0.66) 88%); }
.hero-content { position: relative; z-index: 2; color: var(--wheat); padding-bottom: clamp(40px, 6vw, 80px); max-width: 760px; }
.hero .eyebrow { color: var(--wheat); opacity: 0.9; }
.hero .eyebrow::before, .hero .eyebrow::after { opacity: 0.5; }
.hero h1 { color: var(--wheat); margin-top: 18px; }
.hero .lede { color: rgba(243,235,219,0.9); margin-top: 20px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 34px; }
.hero-actions .btn-outline { color: var(--wheat); border-color: var(--wheat); }
.hero-actions .btn-outline:hover { background: var(--wheat); color: var(--charcoal); }

.page-hero { position: relative; height: min(46vh, 420px); min-height: 320px; display: flex; align-items: flex-end; overflow: hidden; }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(34,29,23,0.1) 0%, rgba(34,29,23,0.62) 100%); }
.page-hero-content { position: relative; z-index: 2; color: var(--wheat); padding-bottom: clamp(30px, 5vw, 56px); }
.page-hero .eyebrow { color: var(--wheat); opacity: 0.9; }
.page-hero .eyebrow::before, .page-hero .eyebrow::after { opacity: 0.5; }
.page-hero h1 { color: var(--wheat); margin-top: 14px; }

/* ---------- Section spacing ---------- */
.section { padding: clamp(70px, 10vw, 130px) 0; }
.section-tight { padding: clamp(50px, 7vw, 90px) 0; }
.section-head { max-width: 640px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head--split { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; max-width: none; }
.border-top { border-top: 1px solid var(--line); }
.bg-deep { background: var(--wheat-deep); }
.bg-charcoal { background: var(--charcoal); color: var(--wheat); }
.bg-charcoal h2, .bg-charcoal h3 { color: var(--wheat); }
.bg-charcoal p { color: rgba(243,235,219,0.78); }
.bg-charcoal .eyebrow { color: var(--wheat); opacity: 0.75; }
.bg-charcoal .eyebrow::before, .bg-charcoal .eyebrow::after { opacity: 0.4; }

/* ---------- Editorial intro ---------- */
.editorial-intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: start; }

/* ---------- Flavor grid ---------- */
.flavor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 32px); }
.flavor-card { display: flex; flex-direction: column; }
.flavor-card figure { aspect-ratio: 1/1; overflow: hidden; margin-bottom: 20px; background: var(--wheat-deep); }
.flavor-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.flavor-card:hover img { transform: scale(1.045); }
.flavor-card h3 { font-size: 1.4rem; margin-bottom: 8px; }
.flavor-card p { font-size: 0.95rem; }
.flavor-tag {
  font-family: var(--font-slab); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--rust); margin-bottom: 8px; display: block;
}

.note-box { border: 1px solid var(--line); padding: 26px 30px; background: var(--wheat-deep); font-size: 0.95rem; }
.note-box strong { color: var(--charcoal); }

.placeholder-tag {
  display: inline-block; background: var(--wheat-deep); color: var(--rust); border: 1px dashed var(--rust);
  font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; font-weight: 700;
  font-family: var(--font-slab);
}

/* ---------- Instagram carousel ---------- */
.ig-carousel-shell { position: relative; }
.ig-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.ig-carousel::-webkit-scrollbar { display: none; }
.ig-slide {
  flex: 0 0 auto;
  width: clamp(200px, 26vw, 280px);
  aspect-ratio: 1/1;
  scroll-snap-align: start;
  overflow: hidden;
  background: var(--wheat-deep);
  position: relative;
}
.ig-slide img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.ig-slide:hover img { transform: scale(1.05); }
.ig-slide figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px;
  font-family: var(--font-slab); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700;
  color: var(--wheat); background: linear-gradient(0deg, rgba(34,29,23,0.7), rgba(34,29,23,0));
}
.ig-nav { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }
.ig-nav button {
  width: 44px; height: 44px; border: 1px solid var(--charcoal); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.ig-nav button:hover { background: var(--charcoal); color: var(--wheat); }
.ig-follow { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; }

/* ---------- Events ---------- */
.event-list { border-top: 1px solid var(--line); }
.event-row {
  display: grid; grid-template-columns: 140px 1fr auto; gap: 24px; align-items: center;
  padding: 28px 0; border-bottom: 1px solid var(--line);
}
.event-date { font-family: var(--font-slab); font-weight: 700; color: var(--rust); text-transform: uppercase; font-size: 0.95rem; letter-spacing: 0.03em; }
.event-info h3 { font-size: 1.2rem; margin-bottom: 6px; }
.event-info p { font-size: 0.92rem; }

/* ---------- Locations ---------- */
.location-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 40px); }
.location-card { border-top: 1px solid var(--line); padding-top: 22px; }
.location-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.location-card ul { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.location-card li { font-size: 0.92rem; color: var(--charcoal-soft); }

.map-placeholder {
  aspect-ratio: 16/7; background: var(--wheat-deep); border: 1px dashed var(--rust);
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px;
}
.map-placeholder p { font-family: var(--font-slab); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--rust); font-weight: 700; }

/* ---------- Trust strip ---------- */
.trust-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.trust-item { border-top: 1px solid var(--line); padding-top: 20px; }
.trust-item h4 { margin-bottom: 8px; }
.trust-item p { font-size: 0.92rem; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 620px; margin: 0 auto 22px; }
.cta-band .btn { margin-top: 10px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: clamp(50px, 7vw, 80px) 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; }
.footer-brand .logo-mark { height: 56px; margin-bottom: 16px; }
.footer-brand p { max-width: 34ch; font-size: 0.92rem; }
.footer-col h4 { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--neutral); margin-bottom: 16px; font-family: var(--font-slab); font-weight: 700; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.92rem; }
.footer-col a:hover { color: var(--rust); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; border-top: 1px solid var(--line); font-size: 12px; color: var(--neutral); flex-wrap: wrap; gap: 12px; }
.footer-bottom a:hover { color: var(--rust); }

/* ---------- Utility ---------- */
.stack { display: flex; flex-direction: column; gap: 16px; }
.hide-mobile { display: block; }
.show-mobile { display: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .editorial-intro { grid-template-columns: 1fr; }
  .flavor-grid { grid-template-columns: repeat(2, 1fr); }
  .location-grid { grid-template-columns: 1fr; }
  .trust-strip { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 34px; }
  .event-row { grid-template-columns: 100px 1fr; }
  .event-row .btn { grid-column: span 2; justify-self: start; }
}

@media (max-width: 760px) {
  .hide-mobile { display: none; }
  .show-mobile { display: block; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; inset: 0; top: 92px; z-index: 150;
    background: var(--charcoal);
    flex-direction: column; align-items: flex-start; padding: 44px var(--gutter);
    transform: translateX(100%); transition: transform 0.35s var(--ease);
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 28px; width: 100%; }
  .main-nav a { font-size: 17px; color: var(--wheat); }
  .main-nav a::after { background: var(--rust); }
  .main-nav a[aria-current="page"] { color: var(--rust); }
  .main-nav .btn { margin-top: 10px; width: 100%; justify-content: center; }
  .main-nav .btn-primary { background: var(--rust); border-color: var(--rust); color: var(--white); }
  .main-nav .btn-primary:hover { background: var(--rust-deep); border-color: var(--rust-deep); }

  .hero { height: auto; min-height: 78vh; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }

  .flavor-grid { grid-template-columns: 1fr; }
  .event-row { grid-template-columns: 1fr; }
  .event-row .btn { grid-column: auto; }

  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .ig-slide { width: 68vw; }
}
