:root {
  --paper: #fff8f2;
  --milk: #fffdf8;
  --cream: #fff1d6;
  --brand-brown: #7a432d;
  --brand-brown-dark: #5e311d;
  --brown-soft: #eadbd2;
  --brown-wash: #f7eee8;
  --butter: #f6d985;
  --cocoa: #4d3128;
  --ink: #2f2926;
  --line: rgba(77, 49, 40, 0.16);
  --shadow: 0 20px 50px rgba(77, 49, 40, 0.12);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(122, 67, 45, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(122, 67, 45, 0.05) 1px, transparent 1px),
    var(--paper);
  background-size: 54px 54px;
  font-family: "Noto Sans SC", "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  transform: translateY(-150%);
  padding: 0.7rem 1rem;
  border-radius: var(--radius);
  background: var(--cocoa);
  color: var(--milk);
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 248, 242, 0.92);
  backdrop-filter: blur(18px);
}

.header-inner,
.section-band,
.quick-links,
.site-footer {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
}

.header-inner {
  min-height: 128px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--cocoa);
  text-decoration: none;
}

.brand-mark {
  width: 106px;
  height: 106px;
  display: grid;
  place-items: center;
  overflow: visible;
  border: 0;
  border-radius: 50%;
  background: transparent;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(77, 49, 40, 0.1));
}

.brand-name {
  display: block;
  font-family: "Shippori Mincho", "Noto Serif SC", serif;
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
}

.nav-links a {
  border-radius: 999px;
  padding: 0.62rem 0.92rem;
  color: rgba(47, 41, 38, 0.72);
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: var(--milk);
  color: var(--cocoa);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.language-toggle {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.24rem;
  padding: 0.24rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--milk);
}

.language-button,
.filter-button {
  cursor: pointer;
  border: 0;
  color: var(--cocoa);
  background: transparent;
}

.language-button {
  min-width: 48px;
  min-height: 40px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
}

.language-button.is-active {
  background: var(--cocoa);
  color: var(--milk);
}

.header-wa {
  display: inline-grid;
  min-width: 50px;
  min-height: 50px;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-brown);
  color: var(--milk);
  font-weight: 700;
  text-decoration: none;
}

.header-wa svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.header-wa:hover,
.header-wa:focus-visible {
  background: var(--brand-brown-dark);
}

.hero-slider {
  position: relative;
  padding: 3.4rem 0 4.8rem;
}

.hero-slide {
  display: none;
  min-height: 0;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 1.08fr);
  align-items: center;
  gap: 3rem;
}

.hero-slide.is-active {
  display: grid;
  animation: slideFade 0.55s ease both;
}

@keyframes slideFade {
  from {
    opacity: 0;
    transform: translateX(18px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.85rem;
  color: var(--brand-brown);
  font-family: "Noto Serif SC", "Shippori Mincho", serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0;
}

.hero-copy h1,
.section-heading h2,
.story h2,
.contact h2 {
  margin: 0;
  color: var(--cocoa);
  font-family: "Shippori Mincho", "Noto Serif SC", serif;
  font-weight: 700;
  letter-spacing: 0;
}

.hero-copy h1 {
  max-width: 710px;
  font-size: 4.65rem;
  line-height: 1.02;
}

.hero-text {
  max-width: 590px;
  margin: 1.35rem 0 0;
  color: rgba(47, 41, 38, 0.74);
  font-size: 1.1rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.82rem 1.15rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.button.primary {
  background: var(--brand-brown);
  color: var(--milk);
  box-shadow: 0 12px 28px rgba(94, 49, 29, 0.2);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--brand-brown-dark);
}

.button.secondary {
  border-color: var(--line);
  background: var(--milk);
  color: var(--cocoa);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  border-color: rgba(77, 49, 40, 0.34);
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.35rem;
}

.hero-notes span,
.pill-row span,
.product-tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.78);
  color: var(--cocoa);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
}

.hero-notes span {
  padding: 0.55rem 0.75rem;
}

.hero-media {
  position: relative;
  min-height: 560px;
}

.cake-frame {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(77, 49, 40, 0.1);
  border-radius: var(--radius);
  background: var(--milk);
  box-shadow: var(--shadow);
}

.cake-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cake-frame-sourdough img {
  object-position: center 44%;
}

.cake-frame-large {
  inset: 0 8% auto auto;
  width: 78%;
  aspect-ratio: 1 / 1;
}

.cake-frame-small {
  right: 0;
  bottom: 2%;
  width: 43%;
  aspect-ratio: 1 / 1;
  border: 8px solid var(--paper);
}

.hero-controls {
  position: absolute;
  left: 0;
  bottom: 2rem;
  display: flex;
  gap: 0.45rem;
}

.hero-dot {
  width: 36px;
  height: 8px;
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  background: rgba(77, 49, 40, 0.2);
}

.hero-dot.is-active,
.hero-dot:hover,
.hero-dot:focus-visible {
  background: var(--brand-brown);
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.quick-links a {
  min-height: 64px;
  display: grid;
  place-items: center;
  background: rgba(255, 253, 248, 0.86);
  color: var(--cocoa);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.quick-links a:hover,
.quick-links a:focus-visible {
  background: var(--brand-brown);
  color: var(--milk);
}

.section-band {
  padding: 6rem 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 2.4rem;
}

.section-heading h2,
.story h2,
.contact h2 {
  font-size: 3rem;
  line-height: 1.12;
}

.section-heading p,
.story-copy p,
.contact-panel p {
  margin: 1rem 0 0;
  color: rgba(47, 41, 38, 0.72);
  font-size: 1.03rem;
}

.seasonal-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2rem;
  align-items: stretch;
}

.feature-photo,
.feature-details,
.product-card,
.order-steps article,
.order-note,
.story-values div,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 8px 26px rgba(77, 49, 40, 0.05);
}

.feature-photo {
  margin: 0;
  overflow: hidden;
}

.feature-photo img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.feature-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.pill-row span,
.product-tag {
  padding: 0.48rem 0.65rem;
}

.feature-details h3 {
  margin: 1.4rem 0 0.7rem;
  color: var(--cocoa);
  font-family: "Shippori Mincho", "Noto Serif SC", serif;
  font-size: 2.1rem;
  line-height: 1.12;
}

.feature-details p {
  margin: 0;
  color: rgba(47, 41, 38, 0.74);
}

.product-facts {
  display: grid;
  gap: 0.8rem;
  margin: 1.4rem 0 1.7rem;
}

.product-facts div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0.8rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.product-facts dt {
  color: var(--brand-brown);
  font-weight: 700;
}

.product-facts dd {
  margin: 0;
  color: rgba(47, 41, 38, 0.72);
}

.catalogue {
  border-top: 1px solid rgba(77, 49, 40, 0.08);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.6rem;
}

.filter-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 0.88rem;
  background: rgba(255, 253, 248, 0.78);
  font-weight: 700;
}

.filter-button.is-active,
.filter-button:hover,
.filter-button:focus-visible {
  border-color: transparent;
  background: var(--brand-brown);
  color: var(--milk);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.product-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
}

.product-card figure {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--cream);
}

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover img {
  transform: scale(1.035);
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1rem;
}

.product-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.product-card h3 {
  margin: 0.75rem 0 0;
  color: var(--cocoa);
  font-family: "Shippori Mincho", "Noto Serif SC", serif;
  font-size: 1.38rem;
  line-height: 1.18;
}

.product-price {
  color: var(--brand-brown);
  font-weight: 700;
  white-space: nowrap;
}

.product-card p {
  margin: 0.75rem 0 1rem;
  color: rgba(47, 41, 38, 0.72);
}

.product-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
}

.product-whatsapp {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.9);
  color: var(--brand-brown);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.product-whatsapp svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.product-whatsapp:hover,
.product-whatsapp:focus-visible {
  border-color: transparent;
  background: var(--brand-brown);
  color: var(--milk);
  transform: translateY(-1px);
}

.order {
  border-top: 1px solid rgba(77, 49, 40, 0.08);
}

.order-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.order-steps article {
  padding: 1.2rem;
}

.order-steps span {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(122, 67, 45, 0.14);
  background: var(--brown-soft);
  color: var(--brand-brown-dark);
  font-weight: 700;
}

.order-steps h3 {
  margin: 1rem 0 0.35rem;
  color: var(--cocoa);
  font-family: "Shippori Mincho", "Noto Serif SC", serif;
  font-size: 1.3rem;
}

.order-steps p,
.order-note p,
.story-values p {
  margin: 0;
  color: rgba(47, 41, 38, 0.72);
}

.order-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  margin-top: 1rem;
  padding: 1.1rem;
  background: var(--brown-soft);
}

.story {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2rem;
  align-items: start;
}

.story-values {
  display: grid;
  gap: 1rem;
}

.story-values div {
  position: relative;
  padding: 1.35rem 1.35rem 1.35rem 4.45rem;
}

.story-values span {
  position: absolute;
  left: 1rem;
  top: 1.35rem;
  width: 34px;
  height: 34px;
  background: url("assets/five-loaves-cookie.png") center / contain no-repeat;
}

.story-values h3 {
  margin: 0 0 0.35rem;
  color: var(--cocoa);
  font-family: "Shippori Mincho", "Noto Serif SC", serif;
  font-size: 1.25rem;
}

.contact {
  padding-top: 2rem;
}

.contact-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: 1.4rem;
  background:
    radial-gradient(circle, rgba(122, 67, 45, 0.13) 1px, transparent 1.5px),
    var(--milk);
  background-size: 24px 24px;
}

.terms-hero {
  padding-bottom: 3rem;
}

.terms-hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--cocoa);
  font-family: "Shippori Mincho", "Noto Serif SC", serif;
  font-size: 4rem;
  line-height: 1.05;
}

.terms-hero p {
  max-width: 680px;
  margin: 1rem 0 1.6rem;
  color: rgba(47, 41, 38, 0.72);
  font-size: 1.06rem;
}

.terms-content {
  display: grid;
  gap: 1rem;
  padding-top: 0;
}

.terms-block,
.terms-notice {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 8px 26px rgba(77, 49, 40, 0.05);
}

.terms-block {
  padding: 1.4rem;
}

.terms-block h2 {
  margin: 0 0 0.8rem;
  color: var(--cocoa);
  font-family: "Shippori Mincho", "Noto Serif SC", serif;
  font-size: 1.55rem;
  line-height: 1.18;
}

.terms-block ul {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding-left: 1.2rem;
  color: rgba(47, 41, 38, 0.74);
}

.terms-block li::marker {
  color: var(--brand-brown);
}

.terms-notice {
  margin: 0;
  padding: 1rem 1.2rem;
  color: var(--brand-brown-dark);
  font-weight: 700;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2.4rem 0 7rem;
  color: rgba(47, 41, 38, 0.66);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

.footer-brand {
  color: var(--cocoa);
  font-family: "Shippori Mincho", "Noto Serif SC", serif;
  font-size: 1.15rem;
  font-weight: 700;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  justify-content: flex-end;
}

.social-links a {
  color: var(--cocoa);
  font-weight: 700;
  text-decoration: none;
}

.social-links a:hover,
.social-links a:focus-visible {
  color: var(--brand-brown);
}

.social-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.88);
}

.social-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.social-icon:hover,
.social-icon:focus-visible {
  border-color: transparent;
  background: var(--brand-brown);
  color: var(--milk);
}

.social-links .social-icon:hover,
.social-links .social-icon:focus-visible {
  color: var(--milk);
}

.social-icon-xhs span:not(.sr-only) {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0;
}

.footer-terms-link {
  margin-left: 0.3rem;
}

.mobile-wa {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 9;
  display: none;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.78rem 1rem;
  background: var(--brand-brown);
  color: var(--milk);
  box-shadow: 0 12px 34px rgba(47, 41, 38, 0.24);
  font-weight: 700;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.mobile-wa.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1020px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    min-height: 122px;
    padding: 0.7rem 0;
  }

  .nav-links {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.15rem;
  }

  .header-actions {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .hero-slide {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-copy h1 {
    font-size: 3.45rem;
  }

  .hero-media {
    min-height: 500px;
  }

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

  .seasonal-grid,
  .story,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    margin-top: 0;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 15px;
    background-size: 42px 42px;
  }

  .header-inner,
  .section-band,
  .quick-links,
  .site-footer {
    width: min(100% - 28px, var(--max));
  }

  .brand-mark {
    width: 76px;
    height: 76px;
  }

  .brand-name {
    font-size: 1.08rem;
  }

  .header-actions {
    gap: 0.4rem;
  }

  .language-button {
    min-width: 42px;
    min-height: 36px;
  }

  .header-wa {
    display: none;
  }

  .nav-links a {
    padding: 0.45rem 0.42rem;
    font-size: 0.88rem;
  }

  .hero-slider {
    padding: 2.6rem 0 3rem;
  }

  .hero-copy h1 {
    font-size: 2.58rem;
    line-height: 1.08;
  }

  .hero-text {
    font-size: 1rem;
  }

  .button {
    width: 100%;
  }

  .hero-media {
    min-height: 320px;
  }

  .cake-frame-large {
    width: 82%;
    right: 7%;
  }

  .cake-frame-small {
    width: 38%;
    bottom: 0;
  }

  .hero-controls {
    bottom: 1rem;
  }

  .quick-links {
    grid-template-columns: 1fr;
  }

  .quick-links a {
    min-height: 54px;
  }

  .section-band {
    padding: 4rem 0;
  }

  .section-heading h2,
  .story h2,
  .contact h2,
  .terms-hero h1 {
    font-size: 2.25rem;
  }

  .feature-photo img {
    min-height: 360px;
  }

  .feature-details {
    padding: 1.1rem;
  }

  .product-facts div {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .filter-button {
    flex: 0 0 auto;
  }

  .product-grid,
  .order-steps {
    grid-template-columns: 1fr;
  }

  .order-note {
    align-items: stretch;
    flex-direction: column;
  }

  .story-values div {
    padding: 1rem 1rem 1rem 4rem;
  }

  .contact-panel {
    padding: 1.1rem;
  }

  .site-footer {
    flex-direction: column;
    padding-bottom: 6rem;
  }

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

  .mobile-wa {
    display: inline-flex;
    left: 1rem;
  }
}

@media (max-width: 380px) {
  .hero-copy h1 {
    font-size: 2.45rem;
  }

  .hero-media {
    min-height: 370px;
  }
}
