/* =========================================================
   SWEET DOUGH BAKERY — design tokens
   Palette pulled from the logo mark (warm caramel-brown on cream).
   ========================================================= */
:root {
  /* -- color -- */
  --cream:        #FBF3E3;   /* page background */
  --flour:        #F3E4C6;   /* alt section background */
  --paper:        #ECDCB8;   /* card / frame background */
  --cocoa:        #5C3A22;   /* body copy, mid headings */
  --walnut:       #2E1B0F;   /* darkest — header/footer/events */
  --walnut-soft:  #40291A;
  --caramel:      #B8783A;   /* primary accent */
  --caramel-dark: #935F2C;   /* hover / pressed */
  --honey:        #DDA84F;   /* secondary accent, highlights */
  --cream-on-dark:#F3E4C6;

  /* -- type -- */
  --font-display: "Fraunces", "Iowan Old Style", serif;
  --font-script:  "Beau Rivage", cursive;
  --font-body:    "Jost", "Helvetica Neue", Arial, sans-serif;

  /* -- misc -- */
  --radius-card: 14px;
  --shadow-soft: 0 18px 40px -20px rgba(46, 27, 15, 0.35);
  --shadow-lift: 0 26px 55px -22px rgba(46, 27, 15, 0.45);
  --ease: cubic-bezier(.22,.68,0,1);
  --wrap: 1160px;
}

/* =========================================================
   RESET
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--cocoa);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); color: var(--walnut); margin: 0 0 .5em; line-height: 1.1; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

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

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--walnut); color: var(--cream); padding: .8em 1.2em; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--caramel); outline-offset: 3px; }

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

/* subtle paper-grain texture over the whole page */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 2000;
  opacity: .05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =========================================================
   TYPE HELPERS
   ========================================================= */
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .74rem;
  color: var(--caramel-dark);
  font-weight: 500;
  margin: 0 0 .6em;
}
.script {
  font-family: var(--font-script);
  text-transform: none;
  letter-spacing: 0;
  font-size: 1.9rem;
  color: var(--caramel);
  font-weight: 400;
}
h1 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); font-weight: 600; letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
.lede { font-size: 1.15rem; color: var(--walnut-soft); max-width: 46ch; }

/* =========================================================
   SIGNATURE ELEMENT — the "loaf" frame
   A domed, bread-loaf silhouette used everywhere a photo appears,
   echoing the sliced-loaf photo and the scored sourdough crust.
   Also gets a warm, unifying color-grade so photos taken in
   different light all feel like they belong to one kitchen.
   ========================================================= */
.loaf-frame {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  padding: 10px;
  border-radius: 46% 46% 10px 10px / 58% 58% 10px 10px;
  box-shadow: var(--shadow-soft);
}
.loaf-frame::before {
  /* inner mat so the photo itself is the domed shape */
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 46% 46% 6px 6px / 58% 58% 6px 6px;
  box-shadow: inset 0 0 0 1px rgba(46,27,15,.08);
  z-index: 2;
  pointer-events: none;
}
.loaf-frame img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 46% 46% 6px 6px / 58% 58% 6px 6px;
  filter: sepia(.12) saturate(1.08) contrast(1.02) brightness(1.01);
}
.loaf-frame::after {
  /* warm color-grade overlay to unify lighting across photos */
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 46% 46% 6px 6px / 58% 58% 6px 6px;
  background: linear-gradient(155deg, rgba(184,120,58,.20), rgba(46,27,15,.12) 70%);
  mix-blend-mode: multiply;
  z-index: 1;
}
.loaf-frame--lg { max-width: 420px; margin-inline: auto; }
.loaf-frame--md { max-width: 340px; margin-inline: auto; }
.loaf-frame--sm { max-width: 100%; }
.loaf-frame--sm img { aspect-ratio: 1 / 1; }

.tilt-n1 { transform: rotate(-1.6deg); }
.tilt-n2 { transform: rotate(-2.4deg); }
.tilt-p1 { transform: rotate(1.6deg); }
.tilt-p2 { transform: rotate(2.2deg); }
.tilt-n1, .tilt-n2, .tilt-p1, .tilt-p2 { transition: transform .5s var(--ease); }
.tilt-n1:hover, .tilt-n2:hover, .tilt-p1:hover, .tilt-p2:hover { transform: rotate(0deg) scale(1.015); }

/* score-line divider — echoes bread scoring, used between sections */
.score-divider {
  display: block; width: 100%; height: 26px;
  color: var(--caramel);
}
.score-divider path { fill: none; stroke: currentColor; stroke-width: 2; opacity: .45; }
.score-divider--top { color: var(--flour); }
.score-divider--bottom { color: var(--flour); transform: scaleY(-1); }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .95em 1.7em;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .02em;
  border: 1.5px solid transparent;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn-primary { background: var(--caramel); color: var(--cream); }
.btn-primary:hover { background: var(--caramel-dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--walnut); border-color: var(--walnut); }
.btn-ghost:hover { background: var(--walnut); color: var(--cream); transform: translateY(-2px); }
/* same ghost button, recolored to read on the dark walnut Events background */
.btn-ghost--dark { color: var(--cream-on-dark); border-color: rgba(243,228,198,.5); }
.btn-ghost--dark:hover { background: var(--cream-on-dark); color: var(--walnut); }
.btn-sm { padding: .7em 1.3em; font-size: .85rem; }
.btn-block { width: 100%; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 500;
  background: rgba(251, 243, 227, .88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(46,27,15,.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand-mark { height: 54px; width: auto; }
.site-nav { display: flex; gap: 2.4rem; }
.site-nav a {
  font-size: .92rem; letter-spacing: .03em; color: var(--cocoa);
  position: relative; padding: .3em 0;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--caramel); transition: right .3s var(--ease);
}
.site-nav a:hover::after { right: 0; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--walnut); border-radius: 2px; transition: transform .25s var(--ease), opacity .25s var(--ease); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: 84px; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column; gap: 0;
    max-height: 0; overflow: hidden;
    border-bottom: 1px solid rgba(46,27,15,.08);
    transition: max-height .35s var(--ease);
  }
  .site-nav.is-open { max-height: 320px; }
  .site-nav a { padding: 1.1em 28px; border-top: 1px solid rgba(46,27,15,.06); }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; padding: 76px 0 0; overflow: hidden; }
.hero-inner {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center;
  padding-bottom: 64px;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.8rem; }
.hero-art { position: relative; }
.hero-badge {
  position: absolute; right: -6px; bottom: 6px;
  width: 96px; height: 96px; border-radius: 50%;
  background: var(--walnut); color: var(--cream-on-dark);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lift);
  transform: rotate(8deg);
}
.hero-badge-num { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.hero-badge-year { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; }

/* the logo mark itself is a wide wordmark (not a portrait photo), so it
   gets its own simple presentation rather than the loaf-frame treatment
   built for cropped, color-graded photography. It already includes its
   own "Est. 2026," so there's no separate hero-badge alongside it. */
.hero-logo-frame {
  max-width: 460px;
  margin-inline: auto;
  background: var(--paper);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: 48px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-logo-frame img { width: 100%; height: auto; }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-actions { justify-content: center; }
  .lede { margin-inline: auto; }
  .hero-art { max-width: 300px; margin: 0 auto; }
}

/* =========================================================
   ABOUT
   ========================================================= */
.about { background: var(--flour); padding: 88px 0; }
.about-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: center; }
.signoff { text-align: right; margin-top: 1.2em; }

@media (max-width: 860px) {
  .about-inner { grid-template-columns: 1fr; text-align: center; }
  .about-art { max-width: 280px; margin: 0 auto; }
  .signoff { text-align: center; }
}

/* =========================================================
   MENU / GALLERY
   ========================================================= */
.menu { padding: 96px 0; }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-sub { color: var(--walnut-soft); }
.section-note {
  margin: 1.1em auto 0;
  max-width: 52ch;
  font-size: .82rem;
  color: var(--caramel-dark);
  border-top: 1px dashed rgba(46,27,15,.18);
  padding-top: 1.1em;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
}
.menu-card { text-align: center; }
.menu-card h3 { margin-top: 1.1em; margin-bottom: .3em; }
.menu-card p { color: var(--walnut-soft); font-size: .95rem; max-width: 30ch; margin-inline: auto; }

.menu-card--cta {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--paper);
  border-radius: var(--radius-card);
  padding: 2.4em 1.6em;
  border: 1.5px dashed var(--caramel);
}
.menu-card--cta p { margin-bottom: 1.3em; }

@media (max-width: 900px) {
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .menu-grid { grid-template-columns: 1fr; max-width: 340px; margin-inline: auto; }
}

/* =========================================================
   PAGE INTRO (events.html and any future standalone page)
   ========================================================= */
.page-intro { padding: 116px 0 40px; text-align: center; }
.page-intro .wrap { max-width: 640px; }
.page-intro .lede { margin-inline: auto; }

/* =========================================================
   EVENTS
   ========================================================= */
.events {
  background: var(--walnut);
  color: var(--cream-on-dark);
  padding: 8px 0 0;
  position: relative;
}
.events .section-head h2 { color: var(--cream-on-dark); }
.events .section-sub { color: rgba(243,228,198,.72); }
.events .eyebrow { color: var(--honey); }
.events .wrap { padding-top: 72px; padding-bottom: 88px; }

.events-list { display: grid; gap: 20px; max-width: 760px; margin: 0 auto; }
.event-card {
  display: grid; grid-template-columns: 96px 1fr; gap: 24px; align-items: center;
  background: var(--walnut-soft);
  border: 1px solid rgba(243,228,198,.14);
  border-radius: var(--radius-card);
  padding: 22px 26px;
}
.event-date {
  text-align: center; font-family: var(--font-display); color: var(--honey);
  border-right: 1px dashed rgba(243,228,198,.25);
  padding-right: 20px;
}
.event-date .month { display: block; text-transform: uppercase; font-size: .72rem; letter-spacing: .12em; font-family: var(--font-body); }
.event-date .day { display: block; font-size: 2rem; font-weight: 600; line-height: 1; }
.event-body h3 { color: var(--cream-on-dark); margin-bottom: .25em; }
.event-body p { color: rgba(243,228,198,.75); margin-bottom: .2em; font-size: .95rem; }
.event-tag {
  display: inline-block; margin-top: .5em; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--honey); border: 1px solid rgba(221,168,79,.4); border-radius: 999px; padding: .3em .9em;
}

.events-more { text-align: center; margin-top: 40px; }

/* group labels split the dark events block into "every week" vs
   "upcoming pop-ups" without a second heading fighting the page-intro h1 */
.events-group-label {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .74rem;
  font-weight: 500;
  color: var(--honey);
  margin: 0 0 20px;
}
.events-group-label--spaced { margin-top: 56px; }

.weekly-list { display: grid; gap: 16px; max-width: 760px; margin: 0 auto; }
.weekly-card {
  display: grid; grid-template-columns: 76px 1fr; gap: 22px; align-items: center;
  background: var(--walnut-soft);
  border: 1px solid rgba(243,228,198,.14);
  border-radius: var(--radius-card);
  padding: 20px 26px;
}
.weekly-day {
  width: 76px; height: 76px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(221,168,79,.12);
  border: 1px solid rgba(221,168,79,.35);
  font-family: var(--font-display); font-weight: 600;
  color: var(--honey); font-size: .8rem; letter-spacing: .04em;
}
.weekly-body h3 { color: var(--cream-on-dark); margin-bottom: .25em; }
.weekly-body p { color: rgba(243,228,198,.78); margin-bottom: .2em; font-size: .95rem; }
.weekly-body .weekly-note { display: block; font-size: .78rem; color: rgba(243,228,198,.55); margin-top: .3em; }

.events-empty {
  text-align: center; max-width: 480px; margin: 0 auto;
  border: 1.5px dashed rgba(243,228,198,.3);
  border-radius: var(--radius-card);
  padding: 3em 2em;
}
.events-empty p { color: rgba(243,228,198,.75); margin-bottom: 0; }
.events-empty .script { display: block; margin-bottom: .4em; }

@media (max-width: 560px) {
  .event-card { grid-template-columns: 1fr; text-align: center; }
  .event-date { border-right: none; border-bottom: 1px dashed rgba(243,228,198,.25); padding-right: 0; padding-bottom: 14px; }
  .weekly-card { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact { padding: 96px 0; }
.contact-inner { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; }
.contact-copy p { max-width: 42ch; }
.email-link { color: var(--caramel-dark); border-bottom: 1px solid currentColor; }

.contact-facts { margin-top: 2rem; display: grid; gap: 1.1rem; }
.contact-facts li { font-size: .95rem; color: var(--walnut-soft); }
.contact-facts a { color: var(--caramel-dark); border-bottom: 1px solid currentColor; }
.fact-label {
  display: block; text-transform: uppercase; font-size: .68rem; letter-spacing: .14em;
  color: var(--caramel); margin-bottom: .2em;
}

.contact-form {
  background: var(--flour);
  border-radius: var(--radius-card);
  padding: 40px;
  box-shadow: var(--shadow-soft);
}
/* honeypot spam trap — off-screen, not display:none, since some bots skip hidden fields */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field { margin-bottom: 1.4rem; }
.field label {
  display: block; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--caramel-dark); margin-bottom: .5em;
}
.field input, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--walnut);
  background: var(--cream);
  border: 1.5px solid rgba(46,27,15,.14);
  border-radius: 10px;
  padding: .85em 1em;
  resize: vertical;
  transition: border-color .2s var(--ease);
}
.field input:focus, .field textarea:focus { border-color: var(--caramel); }
.form-note { margin: 1em 0 0; text-align: center; font-size: .85rem; color: var(--walnut-soft); }

@media (max-width: 860px) {
  .contact-inner { grid-template-columns: 1fr; }
  .contact-form { padding: 30px 24px; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--walnut); color: var(--cream-on-dark); padding: 56px 0 34px; }
.footer-inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.footer-mark { height: 46px; width: auto; filter: brightness(0) invert(1); opacity: .92; margin-bottom: .6rem; }
.footer-tag { font-size: 1.5rem; }
.footer-email { color: var(--honey); border-bottom: 1px solid rgba(221,168,79,.5); margin-top: .3rem; }
.footer-fine { margin-top: 1.4rem; font-size: .78rem; color: rgba(243,228,198,.5); }
