:root {
  --bg: #fff7ed;
  --surface: #fffdf8;
  --text: #38251f;
  --muted: #71584c;
  --accent: #a2462c;
  --accent-contrast: #ffffff;
  --border: #e6cdbb;
  --radius: 24px;
  --shadow: 0 16px 40px rgb(77 43 25 / 8%);
  --peach: #f5dfce;
  --sand: #f4eadd;
  --display: Georgia, 'Iowan Old Style', serif;
  --body: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 1rem; line-height: 1.6; }
svg, img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 5px; }
a, .product-card { transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; border-radius: 4px; }
::selection { background: var(--peach); color: var(--text); }
h1, h2, h3 { margin: 0 0 1rem; font-family: var(--display); font-weight: 400; line-height: 1.1; letter-spacing: -.035em; text-wrap: balance; }
h1 { font-size: clamp(3rem, 6vw, 4.8rem); }
h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
h3 { font-size: clamp(1.7rem, 2.5vw, 2.1rem); }
p { max-width: 65ch; margin: 0 0 1.25rem; }
figure { margin: 0; }
.container { width: min(1200px, calc(100% - 3rem)); margin-inline: auto; }
.section { padding-block: clamp(4rem, 7vw, 7rem); }
.eyebrow { margin-bottom: 1.1rem; color: var(--accent); font-size: .75rem; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; }
.skip-link { position: fixed; left: 1rem; top: 1rem; z-index: 100; padding: .8rem 1.3rem; background: var(--text); color: var(--surface); transform: translateY(-180%); border-radius: 8px; }
.skip-link:focus { transform: translateY(0); color: var(--surface); }

.site-header { position: sticky; top: 0; z-index: 20; background: rgb(255 247 237 / 94%); border-bottom: 1px solid var(--border); backdrop-filter: blur(16px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-block: 1.1rem; }
.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; }
.brand-icon { flex: 0 0 46px; }
.brand-text { display: grid; gap: .1rem; }
.brand-text strong { font-family: var(--display); font-size: 1.65rem; line-height: 1.15; letter-spacing: -.04em; }
.tagline { color: var(--muted); font-size: .73rem; }
.main-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 1.7rem; }
.main-nav a { padding-block: .6rem; font-size: .9rem; font-weight: 650; text-decoration: none; }
.main-nav .nav-contact { padding: .7rem 1.1rem; border: 1px solid var(--border); border-radius: 999px; }
.nav-contact span { margin-left: .6rem; }
.nav-contact:hover { background: var(--peach); }

.hero { background: radial-gradient(ellipse at 85% 30%, #fbe8d8 0, transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.08fr; align-items: center; gap: clamp(2rem, 5vw, 5rem); }
.hero-content h1 em { color: var(--accent); font-weight: 400; }
.hero-content > p:not(.eyebrow) { color: var(--muted); }
.hero-description { margin-top: 1.5rem; margin-bottom: .75rem; font-size: clamp(1.15rem, 2vw, 1.35rem); }
.button-group { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 1.2rem; padding: .9rem 1.5rem; border: 1px solid transparent; border-radius: 999px; font-weight: 650; text-decoration: none; }
.button-primary { background: var(--accent); color: var(--accent-contrast); box-shadow: 0 6px 16px rgb(162 70 44 / 14%); }
.button-primary:hover { background: #843720; color: var(--accent-contrast); transform: translateY(-2px); }
.button-secondary { border-color: var(--border); background: var(--surface); }
.button-secondary:hover { background: var(--peach); transform: translateY(-2px); }
.hero-content .hero-note { margin: 1.35rem 0 0; font-size: .8rem; }
.hero-visual { position: relative; min-width: 0; }
.bakery-illustration { width: 100%; filter: drop-shadow(0 18px 20px rgb(110 63 36 / 8%)); }
.visual-caption { margin-top: .7rem; text-align: center; color: var(--muted); font-family: var(--display); font-size: 1.1rem; font-style: italic; }

/* Keep the entire hero in normal flow with unconstrained content height. */
#home.hero {
  display: block;
  position: relative;
  height: auto;
  min-height: 0;
  max-height: none;
  overflow: visible;
  contain: none;
  padding-block: clamp(4rem, 7vw, 7rem);
}
#home > .hero-grid {
  position: static;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  grid-template-rows: auto;
  height: auto;
  min-height: 0;
  max-height: none;
  overflow: visible;
}
#home .hero-content,
#home .hero-visual {
  position: relative;
  inset: auto;
  display: block;
  min-width: 0;
  height: auto;
  max-height: none;
  overflow: visible;
  visibility: visible;
  opacity: 1;
  transform: none;
}
#home .bakery-illustration {
  display: block;
  position: static;
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: 600 / 520;
}

.about { background: var(--sand); border-block: 1px solid var(--border); }
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 7vw, 7rem); align-items: start; }
.about-grid h2 { margin-bottom: 0; }
.lead { font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.7; }
.text-link { display: inline-flex; gap: 1rem; align-items: center; color: var(--accent); font-weight: 650; }
.text-link:hover { color: var(--text); }
.section-heading { margin-bottom: 2.5rem; text-align: center; }
.section-heading p { margin-inline: auto; }
.section-heading > p:last-child { color: var(--muted); }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.product-card { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.product-visual { overflow: hidden; }
.product-visual svg { width: 100%; }
.product-content { padding: clamp(1.5rem, 3vw, 2.25rem); }
.product-content .eyebrow { margin-bottom: .7rem; font-size: .68rem; }
.product-content p:last-child { color: var(--muted); margin-bottom: 0; }
@media (hover: hover) {
  .product-card:hover { transform: translateY(-5px); box-shadow: 0 22px 45px rgb(77 43 25 / 12%); }
}

.contact { padding-top: 0; }
.contact-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; padding: clamp(2rem, 5vw, 4rem); border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(125deg, var(--peach), #faeddd); }
.contact-intro p:last-child { margin-bottom: 0; color: var(--muted); }
.contact-links { display: grid; gap: 1rem; min-width: 0; }
.contact-card { display: flex; align-items: center; gap: 1rem; padding: 1.2rem; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); text-decoration: none; }
.contact-card > svg { flex: 0 0 28px; color: var(--accent); }
.contact-card > span:nth-child(2) { min-width: 0; overflow-wrap: anywhere; }
.contact-card > span:last-child { margin-left: auto; }
.contact-label { display: block; color: var(--muted); font-size: .75rem; }
.contact-card strong { font-size: .95rem; font-weight: 650; }
.contact-card:hover { transform: translateX(3px); box-shadow: var(--shadow); }

.site-footer { background: var(--text); color: var(--bg); padding-top: clamp(3rem, 6vw, 5rem); }
.footer-grid { display: grid; grid-template-columns: 1.5fr .7fr 1fr; gap: 3rem; padding-bottom: 3rem; }
.footer-brand .brand { margin-bottom: 1rem; font-family: var(--display); font-size: 2rem; }
.footer-brand p { margin-bottom: .4rem; color: #e0cbbd; font-size: .9rem; }
.footer-heading { font-family: var(--body); font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1.2rem; }
.footer-nav { display: grid; justify-items: start; gap: .55rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #f4bb91; text-decoration: underline; }
.site-footer a:focus-visible { outline-color: #f4bb91; }
.site-footer address { font-style: normal; line-height: 2; overflow-wrap: anywhere; }
.footer-nav, .site-footer address { color: #e0cbbd; font-size: .9rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1.5rem; border-top: 1px solid #6a5145; color: #e0cbbd; font-size: .8rem; }
.footer-bottom p { margin: 0; }

@media (max-width: 900px) {
  .header-inner { gap: 1rem; }
  .main-nav { gap: 1rem; }
  .tagline { max-width: 24ch; }
  .hero-grid { gap: 1.5rem; }
  .contact-panel { gap: 2rem; }
  .contact-card { gap: .7rem; padding: 1rem; }
  .footer-grid { gap: 2rem; }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 160px; }
  .container { width: min(1200px, calc(100% - 2rem)); }
  .header-inner { flex-direction: column; align-items: flex-start; padding-block: .8rem; gap: .65rem; }
  .tagline { max-width: none; }
  .brand-text strong { font-size: 1.45rem; }
  .main-nav { width: 100%; justify-content: space-between; gap: .35rem; }
  .main-nav a { font-size: .8rem; padding-block: .45rem; }
  .main-nav .nav-contact { padding: .45rem .65rem; }
  .nav-contact span { margin-left: .2rem; }
  .hero-grid, .about-grid, .contact-panel { grid-template-columns: 1fr; gap: 2rem; }
  #home > .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero, #home.hero { padding-top: 3rem; }
  .hero-visual { width: min(100%, 500px); margin-inline: auto; }
  .hero-content { max-width: 34rem; }
  .product-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .section-heading { text-align: left; }
  .section-heading p { margin-inline: 0; }
  .contact-panel { padding: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 400px) {
  .contact-card { gap: .6rem; padding: .85rem; }
  .contact-card strong { font-size: .85rem; }
  .contact-card > svg { flex-basis: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: .6rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .button:hover, .product-card:hover, .contact-card:hover { transform: none; }
}
