:root {
  --ink: #23201f;
  --muted: #6d6560;
  --paper: #fffaf5;
  --cream: #f6efe4;
  --berry: #b92f52;
  --mint: #3d7d73;
  --cocoa: #4a2f2a;
  --citrus: #e0a92f;
  --line: rgba(35, 32, 31, 0.14);
  --shadow: 0 20px 55px rgba(74, 47, 42, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 96px;
  padding: 0 5vw;
  background: rgba(255, 250, 245, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -42px;
  height: 43px;
  background-image: url("data:image/svg+xml,%3Csvg width='360' height='44' viewBox='0 0 360 44' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'%3E%3Cpath d='M0 0H360V14C330 50 300 -22 270 14C240 50 210 -22 180 14C150 50 120 -22 90 14C60 50 30 -22 0 14V0Z' fill='%23fffaf5'/%3E%3Cpath d='M0 14C30 -22 60 50 90 14C120 -22 150 50 180 14C210 -22 240 50 270 14C300 -22 330 50 360 14' fill='none' stroke='%23d95f78' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 360px 43px;
  pointer-events: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  position: absolute;
  left: 50vw;
  bottom: -96px;
  z-index: 2;
  width: 192px;
  height: 192px;
  padding: 8px;
  border: 5px solid #1f75d6;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 36px rgba(31, 117, 214, 0.28);
  transform: translateX(-50%);
  text-decoration: none;
}

.brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 700;
}

.mobile-nav {
  display: none;
}

.site-nav-left {
  grid-column: 1;
  justify-self: end;
  margin-right: 125px;
}

.site-nav-right {
  grid-column: 3;
  justify-self: start;
  margin-left: 125px;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--berry);
}

.nav-toggle {
  display: none;
  grid-column: 1;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: calc(100vh - 96px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--cocoa);
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(19, 15, 14, 0.76), rgba(19, 15, 14, 0.3) 56%, rgba(19, 15, 14, 0.1)),
    linear-gradient(0deg, rgba(19, 15, 14, 0.5), rgba(19, 15, 14, 0));
}

.hero-overlay {
  position: relative;
  z-index: 1;
  width: min(760px, 90vw);
  padding: 11vh 5vw 13vh;
  color: white;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--berry);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.hero .eyebrow {
  color: #ffd9df;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  line-height: 0.96;
}

h1 {
  max-width: 650px;
  font-size: clamp(3.2rem, 8vw, 6.8rem);
}

.hero h1 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.1em;
  font-size: clamp(3.4rem, 7vw, 6.2rem);
  line-height: 1;
  letter-spacing: 0;
}

.hero-word {
  display: inline-block;
}

.hero-word.mono {
  font-family: "Space Mono", monospace;
  font-size: 0.76em;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-word.script {
  font-family: "Great Vibes", cursive;
  font-weight: 400;
  text-transform: none;
  font-size: 1.12em;
}


h2 {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
}

h3 {
  margin: 18px 0 8px;
  font-size: 1.18rem;
}

.hero-copy {
  max-width: 590px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  color: white;
  background: var(--berry);
}

.button.primary:hover {
  background: #9f2846;
}

.button.secondary {
  color: white;
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.12);
}

.section {
  padding: 92px 5vw;
}

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

.menu-eyebrow {
  margin-bottom: 0;
  color: var(--ink);
  font-family: "Great Vibes", cursive;
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  font-weight: 400;
  line-height: 1;
  text-transform: none;
  letter-spacing: 0;
  text-shadow: 0 3px 0 rgba(31, 117, 214, 0.12);
}

.menu-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-scroll {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: white;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.menu-scroll:hover {
  color: white;
  background: var(--berry);
}

.menu-scroll span {
  font-size: 1.8rem;
  line-height: 1;
}

.menu-carousel {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.menu-carousel::-webkit-scrollbar {
  display: none;
}

.menu-grid {
  display: flex;
  gap: 18px;
  width: max-content;
  padding-bottom: 6px;
}

.menu-card {
  flex: 0 0 300px;
  min-height: 260px;
  padding: 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  scroll-snap-align: start;
}

.menu-card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  background: var(--cream);
}

.menu-card p {
  min-height: 76px;
  color: var(--muted);
  line-height: 1.6;
}

.menu-card span {
  color: var(--mint);
  font-weight: 800;
}

.swatch {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 7px solid var(--cream);
}

.swatch.berry {
  background: var(--berry);
}

.swatch.cocoa {
  background: var(--cocoa);
}

.swatch.citrus {
  background: var(--citrus);
}

.swatch.pistachio {
  background: var(--mint);
}

.occasions {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: 64px;
  background: #edf7f2;
}

.occasion-list {
  display: grid;
  gap: 18px;
}

.occasion-list div {
  padding: 22px 0;
  border-bottom: 1px solid rgba(61, 125, 115, 0.28);
}

.occasion-list strong {
  font-size: 1.05rem;
}

.occasion-list p,
.gallery-section .section-heading p {
  color: var(--muted);
  line-height: 1.7;
}

.gallery-section .section-heading p {
  max-width: 390px;
  margin: 0;
}

.cake-gallery {
  width: 100%;
  overflow: hidden;
}

.cake-gallery-track {
  display: flex;
  width: max-content;
  gap: 22px;
  animation: cake-slide 34s linear infinite;
}

.cake-gallery:hover .cake-gallery-track {
  animation-play-state: paused;
}

.cake-gallery figure {
  flex: 0 0 auto;
  width: 3in;
  height: 3in;
  margin: 0;
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

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

@keyframes cake-slide {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 11px));
  }
}

.site-footer {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 44px;
  margin-top: 42px;
  padding: 76px 5vw 42px;
  color: white;
  background: var(--ink);
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -42px;
  height: 43px;
  background-image: url("data:image/svg+xml,%3Csvg width='300' height='44' viewBox='0 0 300 44' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'%3E%3Cpath d='M0 44H300V28C275 -10 250 66 225 28C200 -10 175 66 150 28C125 -10 100 66 75 28C50 -10 25 66 0 28V44Z' fill='%2323201f'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 300px 43px;
  pointer-events: none;
}

.site-footer h2 {
  margin: 0 0 16px;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.08rem;
  line-height: 1.2;
}

.site-footer p {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.7;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  color: #ffd9df;
}

.footer-brand {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 14px;
}

.footer-brand img {
  width: 116px;
  height: 116px;
  padding: 5px;
  border: 4px solid #1f75d6;
  border-radius: 50%;
  background: white;
  object-fit: contain;
}

.footer-brand p {
  max-width: 260px;
  margin: 0;
  font-size: 0.85rem;
}

.footer-contact {
  justify-self: end;
  text-align: right;
}

.social-links {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 18px;
}

.social-links a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: white;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
}

.social-links a:hover {
  color: white;
  background: #1f75d6;
}

.social-links svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
    grid-column: 3;
    justify-self: end;
  }

  .site-nav {
    display: none;
  }

  .mobile-nav {
    position: absolute;
    top: 96px;
    left: 5vw;
    right: 5vw;
    z-index: 25;
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 14px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .mobile-nav.is-open {
    display: flex;
  }

  .site-nav-left {
    display: none;
  }

  .mobile-nav a {
    padding: 12px;
    text-decoration: none;
    font-weight: 700;
  }

  .menu-grid,
  .occasions {
    grid-template-columns: 1fr;
  }

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .menu-controls {
    align-self: flex-start;
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 84px;
  }

  .brand {
    bottom: -84px;
    width: 168px;
    height: 168px;
    padding: 7px;
  }

  .mobile-nav {
    top: 84px;
  }

  .hero {
    min-height: calc(100vh - 84px);
  }

  .hero-overlay {
    padding-top: 20vh;
    padding-bottom: 12vh;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .menu-card {
    flex-basis: min(86vw, 300px);
  }

  .section {
    padding: 68px 5vw;
  }

  .cake-gallery figure {
    width: min(3in, 90vw);
    height: min(3in, 90vw);
  }

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .footer-contact {
    justify-self: center;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }
}
