:root {
  --cream: #fffafa;
  --pink: #ffccd3;
  --red: #cc4156;
  --green: #9bcca3;
  --placeholder: #c4c4c4;
  --black: #000000;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--black);
  background: var(--cream);
  font-family: "Inter", sans-serif;
}

.page-view[hidden] {
  display: none;
}

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

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

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 118px;
  padding: 0 107px 0 0;
  background: var(--cream);
}

.brand {
  display: flex;
  width: 309px;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--red);
  line-height: 1;
  text-align: center;
  text-shadow: 0 3.7px 3.7px rgb(0 0 0 / 25%);
}

.brand-name {
  margin-top: -12px;
  font-family: "Pacifico", cursive;
  font-size: 44.6px;
}

.brand-tagline {
  margin-top: 4px;
  font-family: "Nunito", sans-serif;
  font-size: 22.3px;
  font-style: normal;
  font-weight: 900;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 58px;
  margin-top: -10px;
  font-size: 18px;
}

.primary-nav a {
  transition: color 160ms ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--red);
}

.menu-button {
  display: none;
}

.hero {
  height: 690px;
  background: var(--cream);
}

.hero-content {
  display: grid;
  max-width: 1260px;
  height: 100%;
  margin: 0 auto;
  padding: 49px 0;
  grid-template-columns: 603px 522px;
  align-items: center;
  justify-content: space-between;
}

.hero-image {
  display: block;
  width: 603px;
  height: 592px;
  border-radius: 50px;
  object-fit: cover;
}

.hero h1 {
  width: 522px;
  margin: 0;
  text-align: center;
}

.hero-heading-main {
  display: block;
  font-family: "Nunito", sans-serif;
  font-size: clamp(42px, 3.8vw, 60px);
  font-style: italic;
  font-weight: 700;
  line-height: 1.15;
}

.hero-heading-script {
  display: block;
  margin-top: 10px;
  font-family: "Caveat", cursive;
  font-size: clamp(50px, 4.6vw, 72px);
  font-style: normal;
  font-weight: 400;
  line-height: 1.05;
}

.bakery-section {
  position: relative;
  min-height: 900px;
  overflow: hidden;
  background: rgb(255 204 211 / 50%);
}

.scallops {
  position: absolute;
  top: -191px;
  left: 50%;
  width: max(1501px, 104vw);
  height: 421px;
  transform: translateX(-50%);
}

.section-content {
  position: relative;
  z-index: 1;
  max-width: 1220px;
  margin: 0 auto;
  padding-top: 230px;
}

.special-orders h2 {
  color: var(--red);
}

.special-orders {
  display: grid;
  min-height: 600px;
  margin-top: 0;
  grid-template-columns: 1fr 598px;
  align-items: center;
  gap: 78px;
}

.special-orders-copy {
  align-self: start;
  padding-top: 86px;
}

.special-orders h2 {
  margin: 0;
  font-size: 40px;
}

.special-orders p {
  width: 522px;
  margin: 24px 0 0;
  font-family: "Nunito", sans-serif;
  font-size: 32px;
  font-style: italic;
  line-height: 1.35;
}

.order-button {
  display: inline-flex;
  min-width: 290px;
  height: 80px;
  margin-top: 148px;
  align-items: center;
  justify-content: center;
  padding: 0 55px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--green);
  font-size: 25px;
  font-weight: 700;
  transition: transform 160ms ease, filter 160ms ease;
}

.order-button:hover,
.order-button:focus-visible {
  filter: brightness(0.94);
  transform: translateY(-2px);
}

.special-order-image {
  display: block;
  width: 598px;
  height: 528px;
  aspect-ratio: 598 / 528;
  object-fit: cover;
  -webkit-mask: url("../assets/special-order-mask.svg") center / 100% 100% no-repeat;
  mask: url("../assets/special-order-mask.svg") center / 100% 100% no-repeat;
}

.site-footer {
  padding: 58px max(40px, 7vw) 24px;
  border-top: 4px solid var(--pink);
  color: #ffffff;
  background: #2f2226;
}

.footer-main,
.footer-bottom {
  width: min(1280px, 100%);
  margin: 0 auto;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(250px, 1.2fr) minmax(190px, 0.8fr) auto;
  align-items: start;
  gap: 64px;
}

.footer-brand {
  display: flex;
  width: fit-content;
  flex-direction: column;
  color: var(--pink);
  line-height: 1;
}

.footer-brand-name {
  font-family: "Pacifico", cursive;
  font-size: 35px;
}

.footer-brand-tagline {
  margin-top: 7px;
  font-family: "Nunito", sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.contact-block h2,
.social-block h2 {
  margin: 0 0 16px;
  color: rgb(255 255 255 / 58%);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-block a {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font-size: 16px;
  transition: color 160ms ease;
}

.contact-block a:hover,
.contact-block a:focus-visible {
  color: var(--pink);
}

.contact-block img {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
  object-fit: contain;
}

.social-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  font-size: 16px;
  transition: color 160ms ease;
}

.social-row:hover,
.social-row:focus-visible {
  color: var(--pink);
}

.social-row img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 46px;
  padding-top: 20px;
  border-top: 1px solid rgb(255 255 255 / 12%);
}

.footer-bottom p {
  margin: 0;
  color: rgb(255 255 255 / 55%);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-legal a {
  color: rgb(255 255 255 / 72%);
  font-size: 12px;
  letter-spacing: 0.04em;
  transition: color 160ms ease;
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: var(--pink);
}

@media (max-width: 1280px) {
  .hero-content,
  .section-content {
    width: calc(100% - 88px);
  }

  .hero-content {
    grid-template-columns: minmax(420px, 1.08fr) minmax(360px, 0.92fr);
    gap: 64px;
  }

  .hero-image,
  .hero h1,
  .special-orders p {
    width: 100%;
  }

  .special-orders {
    grid-template-columns: minmax(360px, 1fr) minmax(460px, 598px);
  }

  .special-order-image {
    width: 100%;
    height: auto;
  }
}

@media (max-width: 900px) {
  .site-header {
    height: 96px;
    padding-right: 28px;
  }

  .brand {
    width: 240px;
  }

  .brand-name {
    font-size: 34px;
  }

  .brand-tagline {
    font-size: 16px;
  }

  .menu-button {
    display: grid;
    width: 46px;
    height: 42px;
    padding: 9px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .menu-button span:not(.sr-only) {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: var(--red);
  }

  .primary-nav {
    position: absolute;
    top: 96px;
    right: 0;
    left: 0;
    display: none;
    margin: 0;
    padding: 25px 28px 30px;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    background: var(--cream);
    box-shadow: 0 12px 18px rgb(0 0 0 / 8%);
  }

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

  .hero {
    height: auto;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 50px;
    padding: 45px 0 120px;
  }

  .hero-image {
    height: min(68vw, 520px);
  }

  .hero h1 {
    max-width: 600px;
    font-size: 34px;
  }

  .bakery-section {
    min-height: 0;
  }

  .scallops {
    top: -185px;
  }

  .section-content {
    padding: 220px 0 100px;
  }

  .special-orders {
    grid-template-columns: 1fr;
    gap: 70px;
  }

  .special-orders-copy {
    padding-top: 0;
  }

  .special-orders p {
    max-width: 522px;
  }

  .order-button {
    margin-top: 60px;
  }

  .special-order-image {
    max-width: 560px;
    justify-self: center;
  }
}

@media (max-width: 560px) {
  .site-header {
    height: 84px;
    padding-right: 18px;
  }

  .brand {
    width: 195px;
  }

  .brand-name {
    margin-top: -6px;
    font-size: 29px;
  }

  .brand-tagline {
    font-size: 13px;
  }

  .primary-nav {
    top: 84px;
  }

  .hero-content,
  .section-content {
    width: calc(100% - 40px);
  }

  .hero-content {
    gap: 36px;
    padding: 32px 0 100px;
  }

  .hero-image {
    height: 95vw;
    max-height: 430px;
    border-radius: 35px;
  }

  .hero h1 {
    font-size: 29px;
  }

  .scallops {
    top: -200px;
    width: 1120px;
  }

  .section-content {
    padding-top: 195px;
  }

  .special-orders {
    gap: 60px;
  }

  .special-orders h2 {
    font-size: 32px;
  }

  .special-orders p {
    font-size: 26px;
  }

  .order-button {
    min-width: 0;
    height: 64px;
    padding: 0 34px;
    font-size: 20px;
  }

  .site-footer {
    padding: 48px 24px 24px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    margin-top: 40px;
  }

  .footer-legal {
    flex-wrap: wrap;
  }
}

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

  .primary-nav a,
  .order-button {
    transition: none;
  }
}
