:root {
  --paper: #fff7fb;
  --canvas: #ffffff;
  --ink: #161018;
  --muted: #6f6473;
  --pink: #f06287;
  --pink-dark: #cf3f70;
  --blush: #ffe6ee;
  --lavender: #eef1ff;
  --blue: #747bbd;
  --cocoa: #4f332f;
  --line: rgba(75, 54, 70, 0.1);
  --shadow: 0 28px 70px rgba(199, 78, 117, 0.16);
  --soft-shadow: 0 16px 42px rgba(66, 45, 62, 0.09);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(115deg, rgba(255, 231, 238, 0.78), rgba(242, 246, 255, 0.9) 42%, rgba(255, 250, 250, 0.96) 68%),
    var(--paper);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before,
body::after {
  position: fixed;
  z-index: -1;
  display: block;
  width: 160px;
  height: 160px;
  color: rgba(240, 98, 135, 0.58);
  font-size: 5.5rem;
  line-height: 1;
  pointer-events: none;
}

body::before {
  content: "";
  top: 16vh;
  left: 3vw;
  background: currentColor;
  border-radius: 999px;
}

body::after {
  content: "";
  right: 4vw;
  bottom: 12vh;
  background: currentColor;
  border-radius: 999px;
  color: rgba(116, 123, 189, 0.42);
}

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

section[id] {
  scroll-margin-top: 112px;
}

main {
  width: min(1420px, calc(100% - 34px));
  margin: 0 auto 34px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 0 0 42px 42px;
  box-shadow: 0 40px 100px rgba(115, 83, 110, 0.12);
}

.site-header {
  position: sticky;
  top: 18px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1420px, calc(100% - 34px));
  margin: 18px auto 0;
  gap: 22px;
  padding: 20px clamp(18px, 4.5vw, 70px);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-bottom-color: rgba(221, 181, 199, 0.25);
  border-radius: 36px 36px 0 0;
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 60px rgba(139, 89, 118, 0.1);
}

.brand,
.footer-brand {
  color: var(--ink);
  font-family: "Lobster Two", Georgia, serif;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
}

.brand {
  position: relative;
  font-size: clamp(1.8rem, 3vw, 2.45rem);
}

.brand::after {
  content: ".";
  color: var(--pink);
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.6vw, 18px);
}

nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  color: var(--cocoa);
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

nav a.active,
nav a:hover {
  color: var(--pink-dark);
  background: #fff4f8;
  border-color: rgba(240, 98, 135, 0.24);
  box-shadow: 0 10px 28px rgba(240, 98, 135, 0.12);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(320px, 1.02fr);
  min-height: clamp(640px, 78vh, 840px);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  padding: clamp(62px, 8vw, 116px) clamp(22px, 6vw, 96px);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero::before {
  width: 18px;
  height: 18px;
  left: 43%;
  top: 33%;
  background: var(--blue);
  border-radius: 999px;
  opacity: 0.58;
}

.hero::after {
  width: 12px;
  height: 12px;
  right: 27%;
  top: 32%;
  background: var(--pink);
  border-radius: 999px;
  box-shadow: 92px 124px 0 rgba(116, 123, 189, 0.42), -340px 230px 0 rgba(240, 98, 135, 0.34);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 720px;
  min-width: 0;
}

.hero > *,
.order-hero > *,
.story article > * {
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--pink-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: none;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

h1,
h2 {
  margin-top: 0;
  color: var(--ink);
  font-family: "Lobster Two", Georgia, serif;
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(3.1rem, 5.6vw, 5.9rem);
  line-height: 1.1;
}

.hero p,
.page-title p,
.order-hero p {
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  max-width: 58ch;
}

.hero-media {
  position: relative;
  z-index: 1;
  min-height: 460px;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 9% 4% 6% 12%;
  background: linear-gradient(145deg, rgba(255, 232, 238, 0.78), rgba(239, 243, 255, 0.88));
  border-radius: 46% 54% 48% 52%;
  filter: blur(1px);
}

.hero-media img,
.order-hero img {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  aspect-ratio: 1 / 1;
  margin-left: auto;
  object-fit: cover;
  border: 12px solid #fff;
  border-radius: 999px;
  box-shadow: 0 32px 90px rgba(196, 72, 109, 0.24);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 24px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--pink-dark));
  border: 0;
  border-radius: 9px;
  box-shadow: 0 15px 28px rgba(240, 98, 135, 0.28);
  font-weight: 800;
  text-decoration: none;
}

.button.secondary {
  color: var(--pink-dark);
  background: #fff;
  border: 1px solid rgba(240, 98, 135, 0.26);
  box-shadow: var(--soft-shadow);
}

.intro-band {
  margin: 0 clamp(22px, 6vw, 96px);
  padding: clamp(28px, 4vw, 44px);
  color: var(--ink);
  background: linear-gradient(100deg, #fff2f6, #f3f5ff);
  border: 1px solid rgba(240, 98, 135, 0.12);
  border-radius: 28px;
  box-shadow: var(--soft-shadow);
}

.intro-band p {
  max-width: 950px;
  margin: 0;
  font-family: "Lobster Two", Georgia, serif;
  font-size: clamp(1.9rem, 4vw, 3.9rem);
  line-height: 1.15;
}

.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 3vw, 28px);
  padding: clamp(36px, 6vw, 78px) clamp(22px, 6vw, 96px);
}

.spotlight-grid a {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  background: #fff;
  border: 10px solid #fff;
  border-radius: 28px;
  text-decoration: none;
  box-shadow: var(--soft-shadow);
}

.spotlight-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.spotlight-grid a:hover img {
  transform: scale(1.035);
}

.spotlight-grid span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 12px 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  font-weight: 800;
}

.page-title {
  max-width: 1040px;
  padding: clamp(54px, 7vw, 96px) clamp(22px, 6vw, 96px) 24px;
}

#gallery,
#about {
  border-top: 1px solid var(--line);
}

.page-title h1,
.order-hero h1 {
  font-size: clamp(3rem, 6vw, 6.4rem);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 28px);
  padding: 0 clamp(22px, 6vw, 96px) clamp(58px, 8vw, 104px);
}

.gallery-grid figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--canvas);
  border: 1px solid rgba(240, 98, 135, 0.11);
  border-radius: 28px;
  box-shadow: var(--soft-shadow);
}

.gallery-grid figure::after {
  content: "+";
  position: absolute;
  right: 14px;
  bottom: 16px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  background: var(--pink);
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 12px 22px rgba(240, 98, 135, 0.28);
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
}

.gallery-grid figcaption {
  min-height: 78px;
  padding: 16px 56px 16px 18px;
  color: var(--ink);
  font-family: "Lobster Two", Georgia, serif;
  font-size: 1.28rem;
  line-height: 1.15;
}

.story {
  display: grid;
  gap: 44px;
  padding: 0 clamp(22px, 6vw, 96px) clamp(58px, 8vw, 104px);
}

.story article {
  display: grid;
  grid-template-columns: minmax(240px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(24px, 5vw, 62px);
  align-items: center;
  max-width: 1120px;
}

.story article:nth-child(even) {
  margin-left: auto;
}

.story article:nth-child(even) img {
  order: 2;
}

.story img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 10px solid #fff;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.story h2,
.closing-note h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.8rem);
}

.story p,
.closing-note p {
  color: var(--muted);
}

.about-moments {
  display: grid;
  grid-template-columns: minmax(260px, 430px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  margin: clamp(8px, 4vw, 34px) clamp(22px, 6vw, 96px) clamp(46px, 7vw, 90px);
  padding: clamp(34px, 5vw, 68px);
  background: linear-gradient(120deg, #ffeaf0, #f1f4ff);
  border: 1px solid rgba(240, 98, 135, 0.15);
  border-radius: 34px;
  box-shadow: var(--soft-shadow);
}

.about-moments img {
  width: 100%;
  max-height: 620px;
  object-fit: contain;
  filter: drop-shadow(0 24px 34px rgba(90, 56, 47, 0.18));
}

.closing-note {
  max-width: 640px;
}

.order-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 470px);
  gap: clamp(26px, 5vw, 70px);
  align-items: center;
  padding: clamp(56px, 7vw, 96px) clamp(22px, 6vw, 96px) 34px;
  border-top: 1px solid var(--line);
}

.order-hero img {
  border-radius: 34px;
}

.order-panel {
  max-width: 980px;
  margin: 0 clamp(22px, 6vw, 96px) clamp(58px, 8vw, 104px);
  padding: clamp(26px, 4vw, 46px);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(240, 98, 135, 0.14);
  border-radius: 28px;
  box-shadow: var(--soft-shadow);
}

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

.form-row {
  display: grid;
  gap: 8px;
}

.form-row.full,
.form-submit,
.form-note {
  grid-column: 1 / -1;
}

.form-row label {
  color: var(--cocoa);
  font-size: 0.92rem;
  font-weight: 800;
}

.form-row label span {
  color: var(--pink-dark);
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 13px 14px;
  color: var(--ink);
  background: #fff9fb;
  border: 1px solid rgba(199, 78, 117, 0.15);
  border-radius: 12px;
  font: inherit;
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(240, 98, 135, 0.12);
  outline: none;
}

.form-submit {
  justify-self: start;
  cursor: pointer;
}

.form-submit[disabled] {
  cursor: wait;
  opacity: 0.72;
}

.form-messages {
  margin-bottom: 20px;
}

.form-message {
  display: grid;
  gap: 3px;
  padding: 14px 16px;
  border-radius: 16px;
}

.form-message[hidden] {
  display: none;
}

.form-message.success {
  color: #2f5d46;
  background: #edf8f1;
  border: 1px solid rgba(47, 93, 70, 0.2);
}

.form-message.error {
  color: #8a2f2f;
  background: #fff0ee;
  border: 1px solid rgba(138, 47, 47, 0.2);
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.site-footer {
  width: min(1420px, calc(100% - 34px));
  margin: 0 auto 22px;
  padding: 34px clamp(22px, 5vw, 70px);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 34px;
  box-shadow: var(--soft-shadow);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px 36px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1.9rem;
}

.footer-brand::after {
  content: ".";
  color: var(--pink);
}

.site-footer p {
  max-width: 520px;
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

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

.footer-links a:hover {
  color: var(--pink-dark);
}

.copyright {
  grid-column: 1 / -1;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: rgba(111, 100, 115, 0.82);
  font-size: 0.92rem;
}

@media (max-width: 960px) {
  .hero,
  .order-hero,
  .story article {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    min-height: 0;
  }

  .hero-media img,
  .order-hero img {
    width: min(560px, 100%);
    margin-inline: auto;
  }

  .story article:nth-child(even) img {
    order: 0;
  }

  .spotlight-grid,
  .gallery-grid,
  .about-moments,
  .cake-form {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  main,
  .site-header,
  .site-footer {
    width: calc(100% - 18px);
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    top: 8px;
    margin-top: 8px;
    border-radius: 24px 24px 0 0;
  }

  nav {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 5px;
  }

  nav a {
    min-height: 34px;
    padding: 6px 8px;
    font-size: 0.82rem;
  }

  h1 {
    font-size: 2.45rem;
    line-height: 1.14;
    max-width: 320px;
  }

  .hero p,
  .page-title p,
  .order-hero p {
    max-width: 31ch;
  }


  .hero,
  .page-title,
  .order-hero,
  .spotlight-grid,
  .gallery-grid,
  .story,
  .about-moments,
  .order-panel {
    padding-left: 16px;
    padding-right: 16px;
  }

  .intro-band,
  .about-moments,
  .order-panel {
    margin-left: 16px;
    margin-right: 16px;
  }

  .spotlight-grid a {
    min-height: 250px;
  }
}
