:root {
  color-scheme: light;
  --ink: #26191d;
  --muted: #715c62;
  --rose: #cf0f59;
  --rose-soft: #fff0f6;
  --cream: #fff9f3;
  --gold: #b88736;
  --cocoa: #432419;
  --mint: #d7ead8;
  --line: rgba(67, 36, 25, 0.16);
  --shadow: 0 18px 46px rgba(67, 36, 25, 0.13);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 249, 243, 0.92);
  backdrop-filter: blur(16px);
}

.nav {
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
}

.brand img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(67, 36, 25, 0.14);
}

.brand strong {
  display: block;
  font-size: 1rem;
  line-height: 1.1;
}

.brand span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.nav-links a {
  min-height: 38px;
  padding: 10px 13px;
  border-radius: 999px;
  color: #4c343a;
  font-size: 0.9rem;
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: var(--rose);
}

.button,
button.button,
.file-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 17px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--rose);
  font: inherit;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(207, 15, 89, 0.24);
}

.button.secondary {
  color: var(--cocoa);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: none;
}

.hero {
  position: relative;
  min-height: clamp(360px, 52vw, 690px);
  background: url("assets/home-bakery-hero-banner-v2.webp") center / cover no-repeat;
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(38, 25, 29, 0.5), rgba(38, 25, 29, 0.14) 38%, rgba(38, 25, 29, 0) 70%);
}

.hero-banner-copy {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  min-height: inherit;
  margin: 0 auto;
  padding: 44px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  color: #fff;
}

.hero-banner-copy p {
  margin: 0 0 12px;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-banner-copy h2 {
  max-width: 610px;
  margin-bottom: 24px;
  color: #fff;
  font-size: clamp(2.35rem, 4.8vw, 4.25rem);
  text-shadow: 0 4px 22px rgba(38, 25, 29, 0.36);
}

.home-intro {
  padding: 42px 0 48px;
  background: var(--cream);
}

.home-intro-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: 38px;
}

.home-intro-copy {
  display: grid;
  gap: 22px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--rose);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.04;
}

h1 {
  color: var(--cocoa);
  max-width: 610px;
  font-size: clamp(2.35rem, 4.8vw, 4.25rem);
}

.home-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 1.13rem;
  line-height: 1.65;
}

.hero-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.actions {
  margin-top: 18px;
}

.page-title {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 66px 0 34px;
}

.page-title h1 {
  color: var(--cocoa);
  font-size: clamp(2.8rem, 6vw, 5rem);
}

.page-title p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.section {
  padding: 58px 0;
}

.section.tint {
  background: #fff;
}

.wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-head h2 {
  color: var(--cocoa);
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.section-head p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.feature-grid,
.shop-grid,
.gallery-grid {
  display: grid;
  gap: 18px;
}

.feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.shop-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature,
.shop-item,
.gallery-item,
.contact-panel,
.story-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.feature {
  padding: 22px;
}

.feature .icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  color: var(--rose);
  background: var(--rose-soft);
  font-size: 1.25rem;
}

.feature h3,
.shop-item h3,
.gallery-item strong {
  color: var(--cocoa);
  font-size: 1.06rem;
}

.feature p,
.shop-item p,
.gallery-item span,
.story-panel p,
.contact-panel p {
  color: var(--muted);
  line-height: 1.55;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 34px;
  align-items: center;
}

.portrait {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.story-panel {
  padding: 32px;
}

.story-panel h2 {
  color: var(--cocoa);
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.story-panel p {
  font-size: 1.04rem;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.fact {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--rose-soft);
}

.fact strong {
  display: block;
  color: var(--rose);
  font-size: 1.4rem;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.fact span {
  display: block;
  margin-top: 4px;
}

.shop-item img,
.gallery-item .thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--rose-soft);
}

.shop-item .body,
.gallery-item .body {
  padding: 18px;
}

.price {
  display: inline-flex;
  margin-top: 8px;
  color: var(--rose);
  font-weight: 900;
}

.category-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px;
}

.chip {
  min-height: 38px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--cocoa);
  background: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.chip.active {
  color: #fff;
  border-color: var(--rose);
  background: var(--rose);
}

.gallery-item {
  min-height: 300px;
}

.gallery-item.empty {
  border-style: dashed;
  box-shadow: none;
}

.gallery-item.empty .thumb {
  display: grid;
  place-items: center;
  color: var(--rose);
  background:
    linear-gradient(135deg, rgba(207, 15, 89, 0.1), rgba(184, 135, 54, 0.12)),
    var(--rose-soft);
  font-size: 2rem;
  font-weight: 900;
}

.upload-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.upload-panel p {
  margin: 4px 0 0;
  color: var(--muted);
}

.upload-panel input {
  display: none;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 24px;
}

.contact-panel {
  padding: 28px;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.contact-row {
  display: flex;
  gap: 12px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
}

.contact-row b {
  display: block;
}

.contact-row span {
  color: var(--muted);
}

form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--cocoa);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

textarea {
  min-height: 128px;
  resize: vertical;
}

.footer {
  padding: 34px 0;
  color: #fff;
  background: var(--cocoa);
}

.footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer a {
  color: #ffd6e5;
  font-weight: 800;
}

@media (max-width: 900px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 0;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .home-intro-inner {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .feature-grid,
  .shop-grid,
  .gallery-grid,
  .split,
  .contact-layout {
    grid-template-columns: 1fr 1fr;
  }

  .story-panel {
    padding: 24px;
  }
}

@media (max-width: 620px) {
  .nav-links a {
    padding: 9px 10px;
    font-size: 0.82rem;
  }

  .hero {
    min-height: 320px;
    background-position: 58% center;
  }

  .hero::before {
    background: linear-gradient(90deg, rgba(38, 25, 29, 0.56), rgba(38, 25, 29, 0.18) 70%);
  }

  .hero-banner-copy {
    padding: 28px 0;
  }

  .hero-banner-copy h2 {
    max-width: 330px;
    margin-bottom: 18px;
    font-size: 2.1rem;
  }

  .home-intro {
    padding: 30px 0 36px;
  }

  .home-intro p {
    font-size: 1rem;
  }

  h1 {
    font-size: 2.1rem;
  }

  .section-head,
  .upload-panel,
  .footer .wrap {
    align-items: flex-start;
    flex-direction: column;
  }

  .feature-grid,
  .shop-grid,
  .gallery-grid,
  .split,
  .facts,
  .contact-layout {
    grid-template-columns: 1fr;
  }
}
