:root {
  color-scheme: light;
  --page: #fffbf1;
  --surface: #fffdf8;
  --surface-2: #f4ecd8;
  --hero: #e9cf85;
  --hero-deep: #d28084;
  --hero-ink: #572b1a;
  --ink: #572b1a;
  --ink-soft: #7a594c;
  --accent: #572b1a;
  --accent-dark: #3d1d12;
  --accent-ink: #572b1a;
  --pink: #d28084;
  --butter: #e9cf85;
  --pistachio: #a3aa8b;
  --cream: #fffbf1;
  --line: rgba(87, 43, 26, 0.18);
  --shadow: 0 24px 70px rgba(87, 43, 26, 0.11);
  --radius: 26px;
  --page-width: 1240px;
  --font-display: "Iowan Old Style", Lora, Georgia, serif;
  --font-body: "Avenir Next", Montserrat, Avenir, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
}

body.dialog-open {
  overflow: hidden;
}

::selection {
  background: var(--pink);
  color: var(--accent-dark);
}

button,
input,
textarea {
  font: inherit;
}

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

a {
  color: inherit;
}

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

:focus-visible {
  outline: 3px solid #572b1a;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 20;
  transform: translateY(-150%);
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--page);
  font-weight: 800;
}

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

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  width: min(calc(100% - 48px), var(--page-width));
  min-height: 80px;
  margin: 0 auto;
  color: var(--hero-ink);
}

.brand {
  display: block;
  text-decoration: none;
}

.brand img {
  width: 145px;
  height: auto;
}

.site-nav {
  display: flex;
  justify-content: flex-end;
  gap: clamp(18px, 2.5vw, 38px);
  white-space: nowrap;
}

.site-nav a,
.footer-links a {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.site-nav a::after,
.footer-links a::after {
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 2px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.site-nav a:hover::after,
.footer-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-button,
.dialog-close {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.menu-button {
  display: none;
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  cursor: pointer;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

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

.button:active {
  transform: translateY(1px) scale(0.98);
}

.button--berry {
  background: var(--accent);
  box-shadow: 0 10px 28px rgba(24, 22, 23, 0.18);
  color: var(--cream);
}

.button--berry:hover {
  background: var(--accent-dark);
}

.button--light {
  background: var(--cream);
  box-shadow: 0 8px 24px rgba(24, 22, 23, 0.12);
  color: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100dvh;
  justify-items: center;
  gap: 0;
  overflow: hidden;
  padding: 108px max(24px, calc((100vw - var(--page-width)) / 2)) 54px;
  background: var(--hero);
  color: var(--hero-ink);
}

.hero::before {
  position: absolute;
  inset: 0;
  background-image: url("assets/flower-watermark-transparent.png");
  background-position: center top;
  background-repeat: repeat;
  background-size: 360px 360px;
  content: "";
  opacity: 0.43;
  pointer-events: none;
}

.hero::after {
  position: absolute;
  inset: auto auto -150px -110px;
  width: 340px;
  height: 340px;
  border: 58px solid rgba(255, 251, 241, 0.28);
  border-radius: 50%;
  content: "";
}

.hero-copy {
  position: relative;
  z-index: 3;
  width: 100%;
  text-align: center;
}

.eyebrow {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--font-display);
  letter-spacing: -0.018em;
  font-weight: 600;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

h1 {
  max-width: 690px;
  margin-inline: auto;
  margin-bottom: 22px;
  font-size: clamp(56px, 6.2vw, 88px);
  line-height: 0.92;
}

.hero-intro {
  max-width: 400px;
  margin-inline: auto;
  margin-bottom: 22px;
  font-size: clamp(16px, 1.4vw, 19px);
  font-weight: 700;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.hero-stage {
  position: relative;
  left: 0;
  z-index: 2;
  display: grid;
  width: min(100%, 620px);
  height: auto;
  padding: 22px 0 16px;
  place-items: center;
}

.hero-cake {
  position: relative;
  z-index: 2;
  width: min(62vw, 340px);
  height: auto;
  max-height: 100%;
  object-fit: cover;
  filter: drop-shadow(0 22px 22px rgba(42, 35, 31, 0.16));
  animation: cake-arrive 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-note {
  position: relative;
  z-index: 3;
  width: min(100%, 480px);
  max-width: none;
  padding-top: 14px;
  border-top: 2px solid rgba(87, 43, 26, 0.52);
  text-align: center;
}

.hero-note strong,
.hero-note span {
  display: block;
}

.hero-note strong {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.hero-note span {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
}

.section-shell {
  width: min(calc(100% - 48px), var(--page-width));
  margin: 0 auto;
}

.cakes {
  padding-block: clamp(84px, 10vw, 150px);
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-heading h2,
.process h2,
.reviews h2,
.questions h2,
.closing h2 {
  margin-bottom: 16px;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 0.98;
}

.section-heading p,
.process-copy > p,
.reviews-heading > p:last-child {
  max-width: 58ch;
  color: var(--ink-soft);
  font-size: 17px;
}

.product-stage {
  position: relative;
  padding: 24px;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 20%, color-mix(in srgb, var(--pink) 35%, transparent), transparent 45%),
    var(--surface-2);
  box-shadow: var(--shadow);
}

.product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) repeat(3, minmax(0, 0.94fr));
  gap: 16px;
}

.product-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  text-align: center;
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.product-card:first-child {
  background: color-mix(in srgb, var(--pink) 16%, var(--surface));
}

.product-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1.06;
  padding: 12px 12px 0;
  object-fit: contain;
  filter: drop-shadow(0 14px 14px rgba(27, 24, 25, 0.14));
  transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover {
  border-color: rgba(87, 43, 26, 0.34);
  box-shadow: 0 18px 38px rgba(87, 43, 26, 0.12);
  transform: translateY(-4px);
}

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

.product-card-copy {
  padding: 16px;
}

.product-card-copy span {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 900;
}

.product-card-copy p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.process {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 760px;
  background: var(--surface-2);
}

.process-photo {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.process-photo img,
.process-photo video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.process-copy {
  align-self: center;
  max-width: 570px;
  padding: 80px clamp(36px, 7vw, 110px);
}

.process-list {
  display: grid;
  gap: 22px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: cake-steps;
}

.process-list li {
  position: relative;
  padding: 0 0 22px 52px;
  border-bottom: 1px solid var(--line);
  counter-increment: cake-steps;
}

.process-list li::before {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--pink);
  color: var(--accent-dark);
  content: counter(cake-steps);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 900;
}

.process-list strong,
.process-list span {
  display: block;
}

.process-list strong {
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-size: 18px;
}

.process-list span {
  color: var(--ink-soft);
  font-size: 14px;
}

.reviews {
  padding-top: clamp(100px, 12vw, 160px);
  padding-bottom: 0;
}

.reviews-heading {
  max-width: 720px;
  margin-bottom: 48px;
}

.reviews-heading h2 {
  margin-block: 0 18px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.review-card {
  grid-column: span 4;
  display: flex;
  min-height: 420px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}

.review-card--featured {
  grid-column: span 8;
  display: grid;
  grid-template-columns: minmax(250px, 0.9fr) minmax(0, 1.1fr);
  background: var(--pink);
  box-shadow: var(--shadow);
  color: var(--accent-dark);
}

.review-card--featured .review-rating,
.review-card--featured blockquote footer span {
  color: currentColor;
}

.review-card:nth-child(2) {
  grid-column: span 4;
  background: var(--hero);
}

.review-photo {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center 68%;
}

.review-card--featured .review-photo {
  height: 100%;
  min-height: 420px;
  object-position: center 66%;
}

.review-card:nth-child(5) .review-photo {
  object-position: center 78%;
}

.review-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(24px, 3vw, 38px);
}

.review-rating {
  margin-bottom: 34px;
  color: var(--accent);
  font-size: 18px;
  letter-spacing: 0.16em;
}

.review-card blockquote {
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: space-between;
  margin: 0;
}

.review-card blockquote p {
  margin-bottom: 30px;
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 600;
  line-height: 1.35;
}

.review-card blockquote footer strong,
.review-card blockquote footer span {
  display: block;
}

.review-card blockquote footer strong {
  font-size: 15px;
  font-weight: 900;
}

.review-card blockquote footer span {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.questions {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 72px;
  padding-block: clamp(90px, 12vw, 160px);
}

.questions h2 {
  position: static;
  align-self: center;
}

.faq-list {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

details {
  border-bottom: 1px solid var(--line);
}

summary {
  position: relative;
  padding: 26px 56px 26px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  transition: color 180ms ease;
}

summary:hover {
  text-decoration: underline;
  text-decoration-color: var(--pink);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  position: absolute;
  right: 2px;
  top: 26px;
  content: "+";
  color: var(--accent);
  font-size: 26px;
  line-height: 1;
}

details[open] summary::after {
  content: "−";
}

details p {
  max-width: 60ch;
  padding: 0 50px 26px 0;
  color: var(--ink-soft);
}

.closing {
  position: relative;
  display: grid;
  min-height: 560px;
  place-items: center;
  overflow: hidden;
  padding: 80px 24px;
  background: var(--pistachio);
  color: var(--hero-ink);
  text-align: center;
}

.closing::before {
  position: absolute;
  inset: 0;
  background-image: url("assets/flower-ribbon-pistachio.png");
  background-position: center;
  background-repeat: repeat;
  background-size: 480px 480px;
  content: "";
  opacity: 0.3;
  pointer-events: none;
}

.closing-copy {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  max-width: 760px;
}

.closing h2 {
  font-size: clamp(48px, 7vw, 88px);
}

.footer {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr auto;
  align-items: center;
  gap: 34px;
  padding: 54px max(24px, calc((100vw - var(--page-width)) / 2));
  background: var(--surface);
}

.footer .brand img {
  width: 190px;
}

.footer p,
.footer small {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.order-dialog {
  width: min(94vw, 680px);
  max-height: 90dvh;
  overflow: auto;
  border: 0;
  border-radius: var(--radius);
  padding: 0;
  background: var(--surface);
  box-shadow: 0 30px 90px rgba(18, 18, 20, 0.36);
  color: var(--ink);
}

.order-dialog::backdrop {
  background: rgba(87, 43, 26, 0.72);
  backdrop-filter: blur(5px);
}

.dialog-close {
  position: sticky;
  z-index: 2;
  top: 18px;
  display: block;
  margin: 18px 18px -40px auto;
  padding: 10px;
  color: var(--ink);
}

.dialog-inner {
  padding: 50px clamp(24px, 7vw, 64px) 56px;
}

.dialog-inner h2 {
  max-width: 520px;
  margin-bottom: 12px;
  font-size: clamp(36px, 6vw, 58px);
  line-height: 0.98;
}

.dialog-inner > p:not(.eyebrow) {
  color: var(--ink-soft);
}

.order-form {
  display: grid;
  gap: 20px;
  margin-top: 30px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  font-size: 14px;
  font-weight: 900;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
  background: var(--page);
  color: var(--ink);
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  outline: 3px solid color-mix(in srgb, var(--accent) 25%, transparent);
}

.field small {
  color: var(--ink-soft);
  font-size: 12px;
}

.field .field-error {
  color: #8b1e2d;
  font-weight: 800;
}

.form-status {
  min-height: 24px;
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 900;
}

.submit-button[disabled] {
  cursor: wait;
  opacity: 0.68;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1), transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

@keyframes cake-arrive {
  from { opacity: 0; transform: translateY(50px) rotate(-2deg); }
  to { opacity: 1; transform: translateY(0) rotate(0); }
}

@media (max-width: 1050px) {
  .site-nav { gap: 18px; }
  .site-nav a { font-size: 12px; }
  .hero { grid-template-columns: 1fr; }
  .hero-note { display: block; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer { grid-template-columns: 1fr 1fr; }
  .footer-links { justify-self: end; }
  .footer small { justify-self: end; }
}

@media (max-width: 767px) {
  .site-header {
    position: absolute;
    grid-template-columns: 1fr auto;
    width: calc(100% - 32px);
    min-height: 84px;
  }

  .brand img { width: 148px; }
  .menu-button { display: block; }

  .site-nav {
    position: absolute;
    top: 82px;
    right: 0;
    left: 0;
    display: none;
    padding: 20px;
    border-radius: var(--radius);
    background: var(--cream);
    box-shadow: var(--shadow);
    color: var(--ink);
  }

  .site-nav.is-open {
    display: grid;
    gap: 16px;
  }

  .site-nav a { font-size: 15px; }

  .hero {
    grid-template-columns: 1fr;
    min-height: 100dvh;
    align-content: start;
    padding: 112px 16px 56px;
  }

  .hero-copy { text-align: center; }
  .hero-copy .eyebrow { margin-bottom: 12px; }
  h1 { margin-inline: auto; font-size: clamp(42px, 13vw, 64px); }
  .hero-intro { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-stage { left: 0; height: auto; min-height: 0; padding: 22px 0 20px; }
  .hero-cake { width: min(72vw, 300px); max-height: none; }
  .hero-note { width: min(88vw, 420px); }

  .section-shell { width: calc(100% - 32px); }
  .cakes { padding-block: 80px; }
  .section-heading { margin-bottom: 28px; text-align: left; }
  .section-heading h2, .process h2, .reviews h2, .questions h2, .closing h2 { font-size: clamp(38px, 12vw, 58px); }
  .product-stage { padding: 12px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product-card img { padding: 8px 8px 0; }
  .product-card-copy { padding: 12px 10px 14px; }
  .product-card-copy span { font-size: 15px; }
  .product-card-copy p { font-size: 12px; }

  .process { grid-template-columns: 1fr; min-height: 0; }
  .process-photo { min-height: 420px; border-radius: 0; }
  .process-copy { width: 100%; max-width: none; padding: 68px 16px 80px; }
  .process-copy > p { max-width: 60ch; }

  .reviews { padding-top: 90px; padding-bottom: 0; }
  .reviews-heading { margin-bottom: 30px; }
  .reviews-grid { grid-template-columns: 1fr; }
  .review-card,
  .review-card--featured,
  .review-card:nth-child(2) { grid-column: auto; min-height: 0; }
  .review-card--featured { grid-template-columns: 1fr; }
  .review-photo,
  .review-card--featured .review-photo { height: 220px; min-height: 0; }
  .review-rating { margin-bottom: 24px; }

  .questions { grid-template-columns: 1fr; gap: 34px; padding-block: 90px; }
  .questions h2 { position: static; }
  summary { font-size: 18px; }

  .closing { min-height: 520px; padding-inline: 16px; }
  .closing::before { background-size: 360px 360px; }

  .footer { grid-template-columns: 1fr; gap: 24px; padding: 46px 20px; }
  .footer-links { flex-wrap: wrap; justify-self: start; }
  .footer small { justify-self: start; }

  .dialog-inner { padding-top: 40px; }
}

@media (max-width: 540px) {
  .product-grid { grid-template-columns: 1fr; }
  .product-card img { max-height: 360px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
