:root {
  --bg: #efe5dc;
  --bg-soft: #f7f1eb;
  --panel: rgba(255, 251, 247, 0.88);
  --panel-strong: #fffaf6;
  --ink: #5f3e34;
  --ink-soft: #7c5c51;
  --accent: #b9a1c9;
  --accent-strong: #9d84af;
  --accent-soft: rgba(185, 161, 201, 0.18);
  --line: rgba(95, 62, 52, 0.18);
  --line-strong: rgba(95, 62, 52, 0.36);
  --shadow: 0 26px 70px rgba(95, 62, 52, 0.12);
  --shadow-soft: 0 16px 38px rgba(95, 62, 52, 0.08);
  --radius-xl: 2rem;
  --radius-lg: 1.35rem;
  --radius-md: 1rem;
  --max-width: 72rem;
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-script: "Allura", "Brush Script MT", cursive;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-serif);
  color: var(--ink);
  line-height: 1.5;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.5), transparent 30%),
    radial-gradient(circle at 85% 20%, rgba(211, 191, 209, 0.26), transparent 22%),
    radial-gradient(circle at 20% 80%, rgba(224, 202, 187, 0.24), transparent 20%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, #efe6de 0%, #ead8cc 48%, #efe7df 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.45;
  background-image:
    linear-gradient(115deg, rgba(255, 255, 255, 0.08), transparent 32%),
    linear-gradient(245deg, rgba(255, 255, 255, 0.04), transparent 36%),
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.05) 0,
      rgba(255, 255, 255, 0.05) 1px,
      transparent 1px,
      transparent 11px
    );
}

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

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

:focus-visible {
  outline: 3px solid rgba(157, 132, 175, 0.45);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3.5rem;
  z-index: 20;
  padding: 0.7rem 1rem;
  background: var(--panel-strong);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}

.skip-link:focus {
  top: 1rem;
}

.site-shell {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding: clamp(1.5rem, 3vw, 2.75rem) 0 clamp(3rem, 6vw, 5rem);
}

.site-header {
  position: relative;
  z-index: 1;
  margin-bottom: clamp(2rem, 4vw, 3.4rem);
  text-align: center;
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header__eyebrow,
.section-heading__eyebrow {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.22rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.site-header__eyebrow {
  margin-bottom: 0.7rem;
}

.brand-mark {
  display: inline-flex;
  position: relative;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  min-width: min(100%, 31rem);
  padding: 1rem clamp(1.2rem, 4vw, 2.2rem) 0.6rem;
  font-family: var(--font-script);
  font-size: clamp(3.75rem, 9vw, 7.2rem);
  line-height: 1;
}

.brand-mark::before {
  content: "";
  position: absolute;
  top: 48%;
  left: 50%;
  z-index: 0;
  width: clamp(11rem, 56%, 17rem);
  aspect-ratio: 913 / 754;
  transform: translate(-50%, -50%);
  opacity: 0.18;
  pointer-events: none;
  background: url("assets/moth.svg") center / contain no-repeat;
}

.brand-mark__text {
  position: relative;
  z-index: 1;
  display: block;
  text-align: center;
}

.section-panel {
  background: linear-gradient(180deg, rgba(255, 252, 249, 0.97), rgba(249, 241, 236, 0.93));
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero {
  margin-bottom: clamp(3rem, 5vw, 4.8rem);
}

.hero__frame {
  --hero-frame-inset: clamp(0.95rem, 2vw, 1.4rem);
  --hero-corner-offset: clamp(1.2rem, 3vw, 1.8rem);
  --hero-corner-size: clamp(2.75rem, 6vw, 4rem);
  position: relative;
  width: min(100%, 64rem);
  margin: 0 auto;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(2.75rem, 7vw, 5.5rem) clamp(1.5rem, 5vw, 4.75rem);
  text-align: center;
  border-radius: calc(var(--radius-xl) + 0.2rem);
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.82), transparent 52%),
    linear-gradient(180deg, rgba(255, 253, 251, 0.995), rgba(250, 243, 238, 0.955));
}

.hero__frame::before,
.hero__frame::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.hero__frame::before {
  inset: var(--hero-frame-inset);
  border: 1px solid rgba(95, 62, 52, 0.24);
  border-radius: calc(var(--radius-xl) - 0.1rem);
}

.hero__frame::after {
  inset: calc(var(--hero-frame-inset) + 0.42rem);
  border-radius: calc(var(--radius-xl) - 0.45rem);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.68);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(100%, 50rem);
  margin: 0 auto;
}

.hero__corner {
  position: absolute;
  width: var(--hero-corner-size);
  aspect-ratio: 1;
  z-index: 1;
  pointer-events: none;
  background: url("assets/corner-ornament.svg") center / contain no-repeat;
  opacity: 0.32;
  filter: saturate(0.88);
  transform-origin: center;
}

.hero__corner--tl {
  top: var(--hero-corner-offset);
  left: var(--hero-corner-offset);
}

.hero__corner--tr {
  top: var(--hero-corner-offset);
  right: var(--hero-corner-offset);
  transform: rotate(90deg);
}

.hero__corner--br {
  right: var(--hero-corner-offset);
  bottom: var(--hero-corner-offset);
  transform: rotate(180deg);
}

.hero__corner--bl {
  left: var(--hero-corner-offset);
  bottom: var(--hero-corner-offset);
  transform: rotate(270deg);
}

.hero h1 {
  max-width: 18ch;
  margin: 0 auto 2rem;
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  line-height: 0.96;
  font-weight: 600;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.6rem;
  padding: 0.95rem 2rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    background-color 220ms ease,
    color 220ms ease,
    border-color 220ms ease;
}

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

.button--primary {
  background: linear-gradient(135deg, var(--accent), #cab8d6);
  color: #fff;
  box-shadow: 0 16px 34px rgba(157, 132, 175, 0.34);
}

.button--primary:hover,
.button--primary:focus-visible {
  background: linear-gradient(135deg, var(--accent-strong), #b79cc9);
  box-shadow: 0 18px 36px rgba(157, 132, 175, 0.42);
}

.button--secondary {
  border: 1px solid rgba(157, 132, 175, 0.35);
  background: rgba(185, 161, 201, 0.18);
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(157, 132, 175, 0.16);
}

.button--secondary:hover,
.button--secondary:focus-visible {
  background: rgba(185, 161, 201, 0.28);
  border-color: rgba(157, 132, 175, 0.52);
}

.section-divider {
  display: flex;
  justify-content: center;
  margin-top: 1.6rem;
}

.section-divider img {
  width: min(100%, 18rem);
  opacity: 0.86;
}

.section-heading {
  margin-bottom: 1.6rem;
  text-align: center;
}

.section-heading__eyebrow {
  margin-bottom: 0.55rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2.15rem, 5vw, 3.6rem);
  line-height: 1;
  font-weight: 600;
}

.featured {
  margin-bottom: clamp(3rem, 5vw, 4.8rem);
  padding: clamp(1.35rem, 4vw, 2.25rem);
}

.featured-grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.55rem);
  grid-template-columns: 1fr;
}

.cake-card {
  margin: 0;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 249, 245, 0.98), rgba(243, 231, 223, 0.94));
  box-shadow: var(--shadow-soft);
  transition:
    transform 280ms ease,
    box-shadow 280ms ease,
    border-color 280ms ease;
}

.cake-card__image {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--bg-soft);
  border-radius: calc(var(--radius-lg) - 0.35rem);
}

.cake-card__image--cake1 {
  object-position: center 60%;
}

.cake-card__image--cake2 {
  object-position: center 62%;
}

.cake-card__image--cake3 {
  object-position: center 58%;
}

.cake-card figcaption {
  padding: 0.85rem 0.1rem 0.2rem;
  text-align: center;
  font-size: 1.26rem;
  letter-spacing: 0.04em;
}

.cake-card:hover,
.cake-card:focus-within {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(95, 62, 52, 0.28);
  box-shadow: 0 20px 48px rgba(95, 62, 52, 0.14);
}

.story {
  display: grid;
  gap: 1.7rem;
  align-items: center;
  margin-bottom: clamp(3rem, 5vw, 4.8rem);
}

.story__content {
  padding: 0.25rem 0.3rem;
}

.story__content h2 {
  max-width: 12ch;
  margin: 0.4rem 0 1rem;
  font-size: clamp(2.35rem, 5vw, 4.15rem);
  line-height: 0.96;
  font-weight: 600;
}

.story__content p {
  margin: 0 0 1rem;
  font-size: clamp(1.14rem, 2vw, 1.34rem);
  color: var(--ink-soft);
}

.accent-script {
  font-family: var(--font-script);
  font-size: 1em;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.story__image-frame {
  padding: 0.8rem;
}

.story__image {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 52%;
  background: var(--bg-soft);
  border-radius: calc(var(--radius-lg) - 0.25rem);
}

.story__image--cake4 {
  object-position: center 56%;
}

.order {
  margin-bottom: clamp(2rem, 5vw, 3rem);
  padding: clamp(1.65rem, 4vw, 2.5rem);
}

.order-steps {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.order-step {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow-soft);
}

.order-step__number {
  margin: 0 0 0.55rem;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1;
  font-weight: 600;
}

.order-step h3 {
  margin: 0 0 0.45rem;
  font-size: 1.6rem;
  font-weight: 600;
}

.order-step p {
  margin: 0;
  font-size: 1.18rem;
  color: var(--ink-soft);
}

.order__cta {
  display: flex;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
}

.site-footer {
  padding: clamp(1.55rem, 4vw, 2rem);
  text-align: center;
}

.contact-grid {
  display: grid;
  gap: 1rem;
  margin: 1.2rem 0 1rem;
}

.contact-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  min-height: 4.5rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.54);
  box-shadow: var(--shadow-soft);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.contact-link:hover,
.contact-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(95, 62, 52, 0.28);
  box-shadow: 0 18px 40px rgba(95, 62, 52, 0.12);
}

.contact-link__icon {
  display: grid;
  place-items: center;
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--accent-soft);
}

.contact-link__icon svg {
  width: 1.28rem;
  height: 1.28rem;
}

.contact-link__label {
  font-size: clamp(1rem, 2vw, 1.25rem);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 720ms ease,
    transform 720ms cubic-bezier(0.215, 0.61, 0.355, 1);
}

[data-reveal="fade-left"] {
  transform: translateX(36px);
}

[data-reveal="fade-right"] {
  transform: translateX(-36px);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (min-width: 42rem) {
  .featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (min-width: 64rem) {
  .featured-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 50rem) {
  .order-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 58rem) {
  .story {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 2.4rem;
  }
}

@media (max-width: 41.99rem) {
  .site-shell {
    width: min(calc(100% - 1rem), var(--max-width));
  }

  .brand-mark {
    min-width: 100%;
    padding-inline: 0.25rem;
  }

  .brand-mark::before {
    top: 49%;
    width: min(12rem, 60%);
    opacity: 0.16;
  }

  .hero__frame {
    --hero-frame-inset: 0.85rem;
    --hero-corner-offset: 1rem;
    --hero-corner-size: 2.35rem;
    padding: clamp(2.2rem, 9vw, 3rem) 1.15rem;
  }

  .hero__frame::before {
    inset: var(--hero-frame-inset);
  }

  .hero__frame::after {
    inset: calc(var(--hero-frame-inset) + 0.38rem);
  }

  .hero h1 {
    max-width: 13ch;
  }

  .hero__corner {
    opacity: 0.18;
  }

  .section-divider {
    margin-top: 1.2rem;
  }

  .story__content {
    text-align: center;
  }

  .story__content h2 {
    max-width: 100%;
  }

  .contact-link {
    justify-content: flex-start;
  }
}

@media (max-width: 32rem) {
  .hero__corner {
    display: none;
  }

  .hero__frame {
    padding-block: 2.15rem;
  }
}

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

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

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
