:root {
  --berry: #ef5d8d;
  --berry-dark: #c83f6f;
  --berry-deep: #b52e61;
  --aqua: #57c4bb;
  --aqua-dark: #197b77;
  --lilac: #a34fa3;
  --butter: #ffc62f;
  --orange: #f79335;
  --paper: #fffefe;
  --plum: #754a78;
  --plum-soft: #756475;
  --line: rgba(117, 74, 120, 0.16);
  --shadow: 0 22px 50px rgba(163, 79, 163, 0.14);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Nunito Sans", "Avenir Next", Avenir, sans-serif;
}

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

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--plum);
  background:
    radial-gradient(circle at 83% 28%, rgba(87, 196, 187, 0.075), transparent 23rem),
    radial-gradient(circle at 10% 82%, rgba(239, 93, 141, 0.04), transparent 18rem),
    var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a:focus-visible {
  outline: 3px solid var(--butter);
  outline-offset: 4px;
  border-radius: 6px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-150%);
  border-radius: 8px;
  color: var(--paper);
  background: var(--plum);
  font-weight: 750;
}

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

.site-header,
.site-footer {
  width: min(calc(100% - 56px), 1390px);
  margin-inline: auto;
}

.site-header {
  display: flex;
  min-height: 112px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  min-height: 78px;
  align-items: center;
}

.brand-logo {
  display: block;
  width: clamp(270px, 27vw, 365px);
  height: auto;
}

.header-links {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 48px);
  font-size: 0.98rem;
  font-weight: 650;
}

.header-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  transition: color 160ms ease, transform 160ms ease;
}

.header-link:hover {
  color: var(--aqua-dark);
  transform: translateY(-1px);
}

.header-link-shop {
  color: var(--berry-dark);
}

.hero {
  display: grid;
  width: min(calc(100% - 56px), 1390px);
  min-height: calc(100svh - 172px);
  margin-inline: auto;
  grid-template-columns: minmax(0, 0.88fr) minmax(480px, 1.12fr);
  align-items: center;
  gap: clamp(24px, 4vw, 74px);
  padding-block: clamp(48px, 7vh, 84px) clamp(54px, 7vh, 78px);
}

.hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  max-width: 615px;
  padding-left: clamp(0px, 2vw, 30px);
}

h1 {
  display: grid;
  max-width: 690px;
  margin: 0;
  gap: 0.13em;
  color: var(--plum);
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 4.5vw, 4.65rem);
  font-weight: 750;
  letter-spacing: -0.055em;
  line-height: 0.94;
}

.hero-title-line {
  display: block;
}

.hero-title-accent {
  color: var(--berry);
}

.title-flourish {
  width: clamp(185px, 52%, 250px);
  height: 40px;
  margin: 18px 0 19px clamp(68px, 28%, 170px);
}

.title-flourish svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.title-flourish-line,
.title-flourish-heart {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.title-flourish-line {
  stroke: var(--aqua);
  stroke-width: 4;
}

.title-flourish-heart {
  stroke: var(--berry);
  stroke-width: 2.6;
}

.intro {
  max-width: 590px;
  margin: 0 0 30px;
  color: var(--plum-soft);
  font-size: clamp(1.08rem, 1.45vw, 1.28rem);
  line-height: 1.62;
}

.actions {
  display: grid;
  max-width: 510px;
  gap: 13px;
}

.button {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 14px 22px;
  border: 2px solid transparent;
  border-radius: 12px;
  font-size: 1.02rem;
  font-weight: 750;
  line-height: 1.2;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.button svg {
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.button .icon-dot {
  fill: currentColor;
  stroke: none;
}

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

.button-primary {
  color: white;
  background: var(--berry-dark);
  box-shadow: 0 12px 24px rgba(200, 63, 111, 0.2);
}

.button-primary:hover {
  background: var(--berry-deep);
  box-shadow: 0 15px 29px rgba(181, 46, 97, 0.24);
}

.button-secondary {
  border-color: var(--aqua);
  color: var(--aqua-dark);
  background: rgba(255, 255, 255, 0.46);
}

.button-secondary:hover {
  background: rgba(87, 196, 187, 0.1);
}

.details {
  display: grid;
  max-width: 550px;
  margin-top: 28px;
  gap: 13px;
}

.details p {
  display: flex;
  margin: 0;
  align-items: center;
  gap: 13px;
  color: var(--plum-soft);
  font-size: 0.96rem;
  line-height: 1.45;
}

.details svg {
  width: 29px;
  height: 29px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--butter);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.details p:last-child svg {
  stroke: var(--aqua);
}

.kit-gallery {
  position: relative;
  display: grid;
  width: min(100%, 790px);
  aspect-ratio: 1.42;
  margin-left: auto;
  grid-template-columns: minmax(0, 1.55fr) minmax(150px, 0.82fr);
  grid-template-rows: 1fr 1fr;
  gap: clamp(10px, 1.2vw, 16px);
  isolation: isolate;
}

.kit-gallery::before {
  position: absolute;
  z-index: -2;
  inset: -5% -3% -6% 2%;
  border-radius: 49% 51% 46% 54% / 52% 39% 61% 48%;
  background:
    radial-gradient(circle at 82% 18%, rgba(87, 196, 187, 0.22), transparent 32%),
    radial-gradient(circle at 15% 84%, rgba(239, 93, 141, 0.16), transparent 36%),
    rgba(255, 198, 47, 0.09);
  content: "";
  transform: rotate(-3deg);
}

.kit-photo {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 7px solid rgba(255, 255, 255, 0.94);
  border-radius: 24px;
  background: white;
  box-shadow: 0 24px 48px rgba(117, 74, 120, 0.16);
  animation: gallery-enter 760ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.kit-photo-featured {
  z-index: 2;
  grid-row: 1 / span 2;
  transform: rotate(-1deg);
}

.kit-photo-finished {
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 198, 47, 0.18), transparent 45%),
    linear-gradient(145deg, #fffafd, #effbf9);
}

.kit-photo.kit-photo-finished img {
  padding: clamp(18px, 3vw, 36px);
  object-fit: contain;
  filter: drop-shadow(0 10px 10px rgba(117, 74, 120, 0.13));
}

.kit-photo-finished > span {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 6px 10px;
  border: 1px solid rgba(239, 93, 141, 0.2);
  border-radius: 999px;
  color: var(--berry-deep);
  background: rgba(255, 255, 255, 0.94);
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1;
}

.kit-photo-butterflies {
  margin-top: 14px;
  transform: rotate(1.8deg);
  animation-delay: 90ms;
}

.kit-photo-flowers {
  margin-bottom: 16px;
  transform: rotate(-1.6deg);
  animation-delay: 160ms;
}

.kit-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kit-gallery figcaption {
  position: absolute;
  z-index: 4;
  right: 4%;
  bottom: -18px;
  display: grid;
  max-width: min(84%, 430px);
  padding: 12px 18px 13px;
  border: 1px solid rgba(239, 93, 141, 0.2);
  border-radius: 15px;
  color: var(--plum-soft);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 30px rgba(117, 74, 120, 0.15);
  font-size: 0.9rem;
  line-height: 1.35;
}

.kit-gallery figcaption span {
  color: var(--aqua-dark);
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.kit-gallery figcaption strong {
  color: var(--plum);
  font-weight: 750;
}

.site-footer {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.14rem;
  font-weight: 750;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.9rem;
  font-weight: 650;
}

.footer-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

.footer-links a:first-child {
  color: var(--berry-dark);
}

@keyframes gallery-enter {
  from {
    opacity: 0;
    translate: 0 18px;
  }
}

@media (max-width: 1020px) {
  .hero {
    grid-template-columns: minmax(0, 0.95fr) minmax(400px, 1.05fr);
    gap: 10px;
  }

  .hero-copy {
    padding-left: 0;
  }

  h1 {
    font-size: clamp(3.2rem, 6.1vw, 4.25rem);
  }

  .kit-gallery {
    aspect-ratio: 1.3;
  }
}

@media (max-width: 800px) {
  body {
    background:
      radial-gradient(circle at 70% 62%, rgba(87, 196, 187, 0.08), transparent 19rem),
      radial-gradient(circle at 12% 28%, rgba(239, 93, 141, 0.035), transparent 14rem),
      var(--paper);
  }

  .site-header,
  .site-footer,
  .hero {
    width: min(calc(100% - 36px), 680px);
  }

  .site-header {
    min-height: 82px;
  }

  .header-links {
    gap: 18px;
    font-size: 0.86rem;
  }

  .header-link-shop {
    display: none;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 34px;
    padding-block: 48px 44px;
  }

  .hero-copy {
    max-width: 630px;
  }

  h1 {
    font-size: clamp(3.35rem, 12.3vw, 5rem);
  }

  .title-flourish {
    margin-left: clamp(100px, 38%, 230px);
  }

  .kit-gallery {
    width: min(100%, 650px);
    aspect-ratio: 1.42;
    margin-inline: auto;
  }
}

@media (max-width: 560px) {
  .site-header,
  .site-footer,
  .hero {
    width: min(calc(100% - 28px), 520px);
  }

  .site-header {
    min-height: 88px;
  }

  .brand {
    min-height: 62px;
  }

  .brand-logo {
    width: min(76vw, 285px);
  }

  .header-links {
    display: none;
  }

  .hero {
    gap: 20px;
    padding-top: 35px;
  }

  h1 {
    font-size: clamp(2rem, 10vw, 3.05rem);
    line-height: 0.98;
  }

  .title-flourish {
    width: min(61%, 220px);
    margin: 16px 0 17px auto;
  }

  .intro {
    margin-bottom: 24px;
    font-size: 1rem;
    line-height: 1.55;
  }

  .button {
    min-height: 56px;
    padding-inline: 17px;
    font-size: 0.96rem;
  }

  .details {
    margin-top: 23px;
  }

  .details p {
    align-items: flex-start;
    font-size: 0.88rem;
  }

  .details svg {
    margin-top: 1px;
  }

  .kit-gallery {
    aspect-ratio: auto;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 10px;
    padding-bottom: 0;
  }

  .kit-photo {
    border-width: 5px;
    border-radius: 18px;
    box-shadow: 0 16px 34px rgba(117, 74, 120, 0.14);
  }

  .kit-photo-featured {
    grid-row: auto;
    grid-column: 1 / -1;
    aspect-ratio: 4 / 3;
    transform: rotate(-0.7deg);
  }

  .kit-photo-butterflies,
  .kit-photo-flowers {
    aspect-ratio: 4 / 3;
    margin: 0;
  }

  .kit-photo-butterflies {
    transform: rotate(1deg);
  }

  .kit-photo-flowers {
    transform: rotate(-0.8deg);
  }

  .kit-gallery figcaption {
    position: static;
    grid-column: 1 / -1;
    max-width: none;
    margin-top: 2px;
    box-shadow: none;
  }

  .site-footer {
    min-height: 112px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding-block: 16px;
  }

  .footer-links {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.78rem;
  }
}

@media (max-height: 600px) and (orientation: landscape) and (min-width: 561px) {
  .site-header {
    min-height: 76px;
  }

  .brand-logo {
    width: clamp(235px, 29vw, 285px);
  }

  .hero {
    min-height: auto;
    align-items: start;
    padding-block: 30px 42px;
  }

  h1 {
    font-size: clamp(2.7rem, 5.8vw, 3.3rem);
  }

  .title-flourish {
    display: none;
  }

  .intro {
    margin-top: 18px;
    margin-bottom: 20px;
    font-size: 0.98rem;
    line-height: 1.5;
  }

  .button {
    min-height: 52px;
  }

  .details {
    margin-top: 20px;
  }

  .kit-gallery {
    aspect-ratio: 1.35;
  }
}

@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;
  }
}
