:root {
  color-scheme: light;
  --plum: #302b4d;
  --violet: #625b8c;
  --lavender: #a9a1d1;
  --mist: #e8e4f3;
  --background: #f8f5ff;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: #ffffff;
  --text: var(--plum);
  --muted: #625b8c;
  --accent: #7d4ca3;
  --accent-soft: #c07bc7;
  --border: rgba(98, 91, 140, 0.18);
  --shadow: 0 26px 70px rgba(48, 43, 77, 0.16);
}

* {
  box-sizing: border-box;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(165deg, rgba(232, 228, 243, 0.92), rgba(255, 255, 255, 0.96) 48%, rgba(169, 161, 209, 0.3)),
    var(--background);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

.home-page {
  position: relative;
  isolation: isolate;
}

.home-page .landing-motion {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  contain: paint;
}

.home-page .landing-motion::before,
.home-page .landing-motion::after {
  position: absolute;
  inset: -42%;
  content: "";
  pointer-events: none;
  will-change: transform, opacity;
}

.home-page .landing-motion::before {
  background:
    linear-gradient(112deg, transparent 7%, rgba(169, 161, 209, 0.5) 24%, transparent 40%, rgba(192, 123, 199, 0.3) 57%, transparent 76%),
    linear-gradient(28deg, transparent 12%, rgba(98, 91, 140, 0.2) 36%, transparent 60%);
  opacity: 0.86;
  transform: translate3d(-10%, -4%, 0) rotate(-4deg) scale(1.06);
  animation: auroraDrift 10s ease-in-out infinite alternate;
}

.home-page .landing-motion::after {
  inset: -32%;
  background:
    linear-gradient(70deg, transparent 16%, rgba(255, 255, 255, 0.68) 35%, transparent 52%),
    linear-gradient(142deg, transparent 40%, rgba(169, 161, 209, 0.34) 63%, transparent 82%);
  opacity: 0.68;
  transform: translate3d(8%, 3%, 0) rotate(2deg) scale(1.03);
  animation: auroraPulse 7s ease-in-out infinite alternate;
}

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

@keyframes auroraDrift {
  from {
    opacity: 0.68;
    transform: translate3d(-11%, -5%, 0) rotate(-5deg) scale(1.06);
  }

  to {
    opacity: 0.96;
    transform: translate3d(9%, 5%, 0) rotate(4deg) scale(1.12);
  }
}

@keyframes auroraPulse {
  from {
    opacity: 0.42;
    transform: translate3d(9%, 4%, 0) rotate(2deg) scale(1.02);
  }

  to {
    opacity: 0.82;
    transform: translate3d(-8%, -4%, 0) rotate(-3deg) scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .landing-motion::before,
  .home-page .landing-motion::after,
  .hero-logo-card::before,
  .hero-logo-card::after,
  .preserved-logo-image {
    animation: none;
  }

  .logo-mark-reveal,
  .logo-name-reveal {
    opacity: 0;
  }

  .logo-final-reveal {
    opacity: 1;
    transform: none;
  }
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.site-header,
.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: clamp(150px, 20vw, 232px);
  height: auto;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.site-nav a {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 8px 13px;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.site-nav a:hover,
.site-nav a:focus,
.site-nav a[aria-current="page"] {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.52);
  color: var(--plum);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: clamp(32px, 6vw, 76px);
  width: min(1180px, calc(100% - 32px));
  min-height: min(660px, calc(100vh - 84px));
  margin: 0 auto;
  align-items: center;
  padding: 18px 0 56px;
}

.hero-copy,
.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-copy {
  padding: 24px 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--violet);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 640px;
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.65rem, 5vw, 4.7rem);
  line-height: 0.98;
  overflow-wrap: break-word;
}

h2 {
  margin-bottom: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
  overflow-wrap: break-word;
}

.hero p,
.section p {
  max-width: 690px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero p {
  font-size: clamp(1.02rem, 1.55vw, 1.24rem);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 14px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--plum);
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.button:hover,
.button:focus {
  background: var(--violet);
}

.button-secondary {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.62);
  color: var(--plum);
  box-shadow: none;
}

.button-secondary:hover,
.button-secondary:focus {
  background: rgba(232, 228, 243, 0.86);
}

.hero-brand-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(98, 91, 140, 0.2);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(232, 228, 243, 0.82)),
    var(--surface-strong);
  box-shadow: var(--shadow);
}

.hero-brand-card::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0 32%, rgba(169, 161, 209, 0.22) 32% 54%, transparent 54% 100%),
    linear-gradient(35deg, rgba(98, 91, 140, 0.08), transparent 46%);
  content: "";
}

.hero-brand-card img {
  position: relative;
  display: block;
  width: 100%;
  padding: clamp(34px, 6vw, 70px);
}

.hero-logo-card {
  display: grid;
  place-items: center;
  min-height: clamp(280px, 33vw, 420px);
  padding: clamp(28px, 5vw, 58px);
  isolation: isolate;
  background:
    linear-gradient(148deg, rgba(32, 28, 43, 0.96), rgba(21, 18, 31, 0.98) 54%, rgba(50, 38, 68, 0.96)),
    var(--surface-strong);
}

.hero-logo-card::before {
  z-index: 0;
  inset: -36%;
  background:
    conic-gradient(
      from 218deg at 58% 44%,
      rgba(169, 161, 209, 0.1) 0 14%,
      rgba(240, 198, 239, 0.24) 20%,
      rgba(98, 91, 140, 0.22) 34%,
      transparent 47% 66%,
      rgba(169, 161, 209, 0.24) 78%,
      rgba(48, 43, 77, 0.02) 100%
    ),
    linear-gradient(124deg, transparent 6%, rgba(255, 255, 255, 0.12) 32%, transparent 58%);
  opacity: 0.82;
  animation: logoBackdropFlow 16s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

.hero-logo-card::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(118deg, transparent 0 30%, rgba(232, 228, 243, 0.16) 43%, transparent 58%),
    repeating-linear-gradient(155deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 34px);
  opacity: 0.64;
  content: "";
  animation: logoVeilShift 9s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

.preserved-logo-stage {
  position: relative;
  z-index: 1;
  width: min(88%, 600px);
  aspect-ratio: 4056 / 1811;
  isolation: isolate;
}

.hero-logo-card .preserved-logo-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  object-fit: contain;
}

.logo-mark-reveal {
  z-index: 1;
  opacity: 0;
  clip-path: inset(86% 0 0 60%);
  transform: translate3d(0, 16%, 0) scale(0.96);
  animation:
    actualLogoMarkGrow 2.15s cubic-bezier(0.2, 0.84, 0.26, 1) 0.15s forwards,
    partialLogoFade 520ms ease-out 3.55s forwards;
  will-change: clip-path, transform, opacity;
}

.logo-name-reveal {
  z-index: 2;
  opacity: 0;
  clip-path: inset(0 38% 0 0);
  transform: translate3d(-10%, 0, 0);
  animation:
    actualLogoNameSlide 1s cubic-bezier(0.18, 0.84, 0.28, 1) 2.18s forwards,
    partialLogoFade 520ms ease-out 3.55s forwards;
  will-change: clip-path, transform, opacity;
}

.logo-final-reveal {
  z-index: 3;
  opacity: 0;
  transform: scale(0.988);
  animation: finalLogoResolve 680ms ease-out 3.26s forwards;
  will-change: transform, opacity;
}

@keyframes logoBackdropFlow {
  from {
    opacity: 0.68;
    transform: translate3d(-5%, -4%, 0) rotate(-8deg) scale(1.04);
  }

  to {
    opacity: 0.9;
    transform: translate3d(5%, 4%, 0) rotate(8deg) scale(1.1);
  }
}

@keyframes logoVeilShift {
  from {
    opacity: 0.46;
    transform: translate3d(-4%, 0, 0);
  }

  to {
    opacity: 0.72;
    transform: translate3d(4%, 0, 0);
  }
}

@keyframes actualLogoMarkGrow {
  0% {
    opacity: 0;
    clip-path: inset(86% 0 0 60%);
    transform: translate3d(0, 16%, 0) scale(0.96);
  }

  48% {
    opacity: 1;
    clip-path: inset(42% 0 0 60%);
    transform: translate3d(0, 7%, 0) scale(0.98);
  }

  100% {
    opacity: 1;
    clip-path: inset(0 0 0 60%);
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes actualLogoNameSlide {
  0% {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    transform: translate3d(-10%, 0, 0);
  }

  100% {
    opacity: 1;
    clip-path: inset(0 38% 0 0);
    transform: translate3d(0, 0, 0);
  }
}

@keyframes finalLogoResolve {
  0% {
    opacity: 0;
    transform: scale(0.988);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes partialLogoFade {
  to {
    opacity: 0;
  }
}

.intro {
  max-width: 880px;
}

.section {
  padding: 68px 0;
}

.section + .section {
  border-top: 1px solid var(--border);
}

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

.section-heading {
  max-width: 780px;
  margin-bottom: 32px;
}

.panel {
  min-height: 260px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  padding: clamp(24px, 4vw, 38px);
  box-shadow: 0 18px 50px rgba(48, 43, 77, 0.08);
}

.panel-number {
  display: inline-flex;
  margin-bottom: 38px;
  color: var(--lavender);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.82;
}

.panel h2 {
  font-size: clamp(1.6rem, 3vw, 2.55rem);
}

.product-showcase {
  display: grid;
}

.category-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -8px 0 30px;
}

.category-menu a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  padding: 8px 16px;
  color: var(--plum);
  font-size: 0.92rem;
  font-weight: 900;
  text-decoration: none;
}

.category-menu a:hover,
.category-menu a:focus {
  border-color: rgba(98, 91, 140, 0.38);
  background: rgba(255, 255, 255, 0.9);
}

.catalog-category + .catalog-category {
  margin-top: 42px;
  border-top: 1px solid var(--border);
  padding-top: 34px;
}

.catalog-category-header {
  display: flex;
  gap: 20px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 18px;
}

.catalog-category-header h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.05;
}

.catalog-category-header p {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  min-width: 0;
}

.catalog-card {
  display: flex;
  overflow: hidden;
  min-height: 100%;
  min-width: 0;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 50px rgba(48, 43, 77, 0.1);
}

.catalog-card-image {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--mist);
}

.catalog-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: filter 180ms ease;
}

.catalog-card:hover .catalog-card-image img,
.catalog-card:focus-within .catalog-card-image img {
  filter: saturate(1.04) brightness(1.02);
}

.catalog-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: 22px;
}

.catalog-card h3 {
  margin-bottom: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 2.3vw, 2.18rem);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.catalog-card .text-link {
  margin-top: auto;
}

.product-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.62fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 24px 70px rgba(48, 43, 77, 0.12);
}

.product-card-image {
  display: block;
  min-height: 460px;
  background: var(--mist);
}

.product-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(26px, 5vw, 56px);
}

.product-type {
  margin-bottom: 10px;
  color: var(--violet);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.35;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.product-card h3 {
  margin-bottom: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
}

.product-price {
  color: var(--plum);
  font-size: 1.28rem;
  font-weight: 900;
}

.text-link {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin-top: 14px;
  border-bottom: 2px solid var(--lavender);
  color: var(--plum);
  font-weight: 900;
  line-height: 1.35;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.text-link:hover,
.text-link:focus {
  border-bottom-color: var(--plum);
}

.product-page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 24px 0 10px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.breadcrumb a {
  text-decoration: none;
}

.breadcrumb a:hover,
.breadcrumb a:focus {
  color: var(--plum);
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
  padding: 30px 0 82px;
}

.product-detail > * {
  min-width: 0;
}

.product-gallery {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.product-main-image {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--mist);
  box-shadow: 0 24px 70px rgba(48, 43, 77, 0.12);
  object-fit: contain;
}

.product-thumbnails {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.thumbnail-button {
  overflow: hidden;
  min-width: 0;
  aspect-ratio: 1;
  border: 2px solid transparent;
  border-radius: 18px;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.thumbnail-button.is-active,
.thumbnail-button:hover,
.thumbnail-button:focus {
  border-color: var(--accent);
}

.thumbnail-button img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  object-fit: contain;
}

.product-info {
  padding-top: 10px;
}

.product-info h1 {
  max-width: 680px;
}

.product-price-large {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.product-summary {
  color: var(--muted);
  font-size: clamp(1.06rem, 1.55vw, 1.24rem);
}

.product-specs {
  display: grid;
  gap: 12px;
  margin: 30px 0;
}

.product-specs div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.product-specs dt {
  color: var(--violet);
  font-weight: 900;
}

.product-specs dd {
  margin: 0;
  color: var(--plum);
}

.product-description {
  border-top: 1px solid var(--border);
  padding-top: 28px;
}

.product-description h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.product-size-section {
  padding: 0 0 86px;
}

.size-chart-card {
  display: grid;
  grid-template-columns: minmax(250px, 0.62fr) minmax(300px, 1fr);
  gap: clamp(22px, 4vw, 46px);
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 28px;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.88), rgba(232, 228, 243, 0.78)),
    var(--surface-strong);
  padding: clamp(22px, 4vw, 42px);
  box-shadow: 0 22px 62px rgba(48, 43, 77, 0.12);
}

.size-chart-card img {
  display: block;
  width: 100%;
  border: 1px solid rgba(98, 91, 140, 0.2);
  border-radius: 18px;
  background: #ffffff;
}

.size-chart-copy p {
  max-width: 520px;
  color: var(--muted);
}

.size-chart-copy h2 {
  font-size: clamp(1.7rem, 3vw, 2.45rem);
}

.launch {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 36px;
  align-items: end;
  padding-bottom: 80px;
}

.site-footer {
  padding: 28px 0 36px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer p {
  margin: 0;
}

.story-page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.story-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: end;
  padding: 56px 0 64px;
}

.story-hero h1 {
  max-width: 780px;
}

.story-lede {
  margin-bottom: 8px;
  color: var(--violet);
  font-size: clamp(1.16rem, 2vw, 1.48rem);
  line-height: 1.55;
}

.story-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 78px);
  align-items: start;
  border-top: 1px solid var(--border);
  padding: 68px 0;
}

.story-mark {
  position: sticky;
  top: 28px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(232, 228, 243, 0.75)),
    var(--surface-strong);
  box-shadow: 0 18px 48px rgba(48, 43, 77, 0.1);
}

.story-mark img {
  display: block;
  width: 100%;
  padding: 30px;
}

.story-body {
  max-width: 760px;
}

.story-body p {
  margin-bottom: 26px;
  color: var(--plum);
  font-size: clamp(1.06rem, 1.5vw, 1.24rem);
  line-height: 1.85;
}

.story-body p:first-child {
  border-left: 4px solid var(--lavender);
  padding-left: 22px;
  color: var(--violet);
  font-size: clamp(1.12rem, 1.65vw, 1.34rem);
}

.story-signoff {
  border-top: 1px solid var(--border);
  padding: 42px 0 82px;
  text-align: center;
}

.story-signoff p {
  margin-bottom: 4px;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1;
}

.story-signoff span,
.story-signoff small {
  display: block;
  color: var(--violet);
}

.story-signoff span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  font-style: italic;
}

.story-signoff small {
  margin-top: 18px;
  font-size: 0.96rem;
}

.checkout-page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.checkout-hero {
  max-width: 820px;
  padding: 34px 0 28px;
}

.checkout-hero p {
  color: var(--muted);
  font-size: clamp(1.06rem, 1.6vw, 1.22rem);
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.72fr);
  gap: clamp(22px, 4vw, 44px);
  align-items: start;
  min-width: 0;
  padding: 10px 0 86px;
}

.checkout-layout > * {
  min-width: 0;
}

.checkout-card,
.checkout-summary {
  border: 1px solid var(--border);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(232, 228, 243, 0.62)),
    var(--surface-strong);
  box-shadow: 0 22px 62px rgba(48, 43, 77, 0.12);
}

.checkout-card {
  display: grid;
  gap: 28px;
  padding: clamp(22px, 4vw, 38px);
}

.checkout-summary {
  position: sticky;
  top: 24px;
  padding: clamp(22px, 4vw, 34px);
}

.checkout-summary h2 {
  font-size: clamp(1.65rem, 2.6vw, 2.35rem);
}

.form-section {
  display: grid;
  gap: 14px;
}

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

.form-grid-full {
  grid-column: 1 / -1;
}

.checkout-form label {
  display: grid;
  gap: 7px;
  color: var(--violet);
  font-size: 0.92rem;
  font-weight: 900;
}

.checkout-form input,
.checkout-form select,
.checkout-form textarea {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  border: 1px solid rgba(98, 91, 140, 0.24);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--plum);
  font: inherit;
  padding: 11px 13px;
}

.checkout-form textarea {
  resize: vertical;
}

.checkout-form input:focus,
.checkout-form select:focus,
.checkout-form textarea:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(169, 161, 209, 0.34);
}

.checkout-confirmation {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  border: 1px solid rgba(98, 91, 140, 0.18);
  border-radius: 18px;
  background: rgba(232, 228, 243, 0.58);
  padding: 16px;
}

.checkout-confirmation input {
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
  accent-color: var(--accent);
}

.checkout-submit {
  width: fit-content;
  min-width: 240px;
  border: 0;
  cursor: pointer;
}

.checkout-status {
  min-height: 24px;
  margin: 0;
  color: var(--violet);
  font-weight: 800;
}

.cart-actions,
.cart-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.cart-heading .eyebrow {
  margin: 0;
}

.cart-clear,
.cart-remove {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.cart-items {
  display: grid;
  gap: 14px;
}

.cart-item {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(98, 91, 140, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  padding: 16px;
}

.cart-item-details {
  display: grid;
  gap: 5px;
  color: var(--plum);
}

.cart-item-details span,
.cart-empty {
  color: var(--muted);
}

.cart-item-controls {
  display: grid;
  grid-template-columns: minmax(86px, 0.36fr) minmax(180px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.checkout-summary-list {
  display: grid;
  gap: 0;
  margin: 22px 0 26px;
}

.checkout-summary-list div {
  display: grid;
  grid-template-columns: minmax(118px, 0.55fr) minmax(0, 1fr);
  gap: 14px;
  border-top: 1px solid var(--border);
  padding: 13px 0;
}

.checkout-summary-list dt {
  color: var(--violet);
  font-weight: 900;
}

.checkout-summary-list dd {
  margin: 0;
  color: var(--plum);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.checkout-summary-list .checkout-total-row {
  border-top-color: rgba(98, 91, 140, 0.32);
  padding-top: 16px;
}

.checkout-total-row dt,
.checkout-total-row dd {
  color: var(--ink);
  font-size: 1.05rem;
}

.cod-card {
  border: 1px solid rgba(125, 76, 163, 0.18);
  border-radius: 20px;
  background: rgba(232, 228, 243, 0.64);
  padding: 18px;
}

.cod-card h3 {
  margin-bottom: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  line-height: 1.08;
}

.cod-card p {
  margin: 0;
  color: var(--muted);
}

.product-actions,
.catalog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.product-actions {
  margin-top: 22px;
}

.catalog-actions {
  margin-top: auto;
}

.catalog-actions .text-link {
  margin-top: 0;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --plum: #f3ecff;
    --violet: #d2c8ee;
    --lavender: #d9b4f0;
    --mist: #24202f;
    --background: #17141f;
    --surface: rgba(34, 30, 45, 0.84);
    --surface-strong: #211d2b;
    --text: #f3ecff;
    --muted: #d7cdec;
    --accent: #e3a3e8;
    --accent-soft: #f0c6ef;
    --border: rgba(217, 180, 240, 0.22);
    --shadow: 0 26px 70px rgba(5, 4, 8, 0.46);
  }

  body {
    background:
      linear-gradient(165deg, rgba(30, 26, 40, 0.98), rgba(18, 16, 25, 0.98) 52%, rgba(68, 51, 92, 0.46)),
      var(--background);
  }

  .home-page .landing-motion::before {
    opacity: 0.58;
  }

  .home-page .landing-motion::after {
    opacity: 0.38;
  }

  .brand-logo {
    content: url("../img/momly-logo-dark.png");
    filter: drop-shadow(0 12px 28px rgba(227, 163, 232, 0.16));
  }

  .hero-brand-card img {
    content: url("../img/momly-logo-dark.png");
  }

  .story-mark img {
    content: url("../img/momly-mark-dark.png");
    filter: drop-shadow(0 18px 42px rgba(227, 163, 232, 0.2));
  }

  .hero-brand-card,
  .story-mark {
    background:
      linear-gradient(145deg, rgba(38, 34, 50, 0.96), rgba(26, 23, 36, 0.92)),
      var(--surface-strong);
  }

  .hero-logo-card {
    background:
      linear-gradient(148deg, rgba(31, 27, 42, 0.98), rgba(20, 17, 30, 0.98) 54%, rgba(45, 34, 61, 0.96)),
      var(--surface-strong);
  }

  .hero-logo-card::before {
    opacity: 0.66;
  }

  .hero-logo-card::after {
    opacity: 0.52;
  }

  .site-nav a:hover,
  .site-nav a:focus,
  .site-nav a[aria-current="page"],
  .category-menu a,
  .panel,
  .catalog-card,
  .product-card,
  .size-chart-card,
  .checkout-card,
  .checkout-summary {
    background: rgba(39, 34, 52, 0.78);
  }

  .button-secondary {
    background: rgba(39, 34, 52, 0.78);
    color: var(--plum);
  }

  .button-secondary:hover,
  .button-secondary:focus,
  .category-menu a:hover,
  .category-menu a:focus {
    background: rgba(65, 56, 88, 0.9);
  }

  .checkout-form input,
  .checkout-form select,
  .checkout-form textarea {
    border-color: rgba(217, 180, 240, 0.24);
    background: rgba(23, 20, 31, 0.72);
    color: var(--text);
  }

  .checkout-confirmation,
  .cod-card {
    background: rgba(232, 228, 243, 0.08);
  }

  .catalog-card-image,
  .product-card-image,
  .product-main-image,
  .thumbnail-button {
    background: rgba(232, 228, 243, 0.08);
  }

  .button {
    background: #ead8ff;
    color: #18131f;
  }

  .button:hover,
  .button:focus {
    background: #f4eaff;
  }

  .text-link {
    border-bottom-color: rgba(217, 180, 240, 0.72);
  }

  .text-link:hover,
  .text-link:focus {
    border-bottom-color: #f0c6ef;
  }

  .size-chart-card img {
    background: #ffffff;
  }
}

@media (max-width: 960px) {
  .hero,
  .section-grid,
  .product-detail,
  .checkout-layout,
  .launch,
  .story-hero,
  .story-section {
    grid-template-columns: 1fr;
  }

  .checkout-summary {
    position: static;
  }

  .hero {
    min-height: auto;
    padding: 42px 0 64px;
  }

  .hero-brand-card {
    max-width: 620px;
  }

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

  .product-info h1 {
    max-width: 760px;
  }

  .size-chart-card {
    grid-template-columns: 1fr;
  }

  .story-mark {
    position: static;
    max-width: 420px;
  }
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .hero {
    padding: 42px 0 60px;
  }

  .hero-copy {
    padding: 0;
  }

  .hero-brand-card img {
    padding: 28px;
  }

  .hero-logo-card {
    min-height: 320px;
    padding: 30px 24px;
  }

  .preserved-logo-stage {
    width: min(94%, 520px);
  }

  .product-card,
  .product-detail {
    grid-template-columns: 1fr;
  }

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

  .catalog-category-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .catalog-card {
    border-radius: 16px;
  }

  .catalog-card-image {
    aspect-ratio: 4 / 5;
  }

  .catalog-card-content {
    padding: 12px;
  }

  .catalog-card h3 {
    margin-bottom: 8px;
    font-size: 1.12rem;
    line-height: 1.05;
  }

  .catalog-card .product-type {
    margin-bottom: 6px;
    font-size: 0.64rem;
    letter-spacing: 0.04em;
    line-height: 1.25;
  }

  .catalog-card .product-price {
    font-size: 0.92rem;
  }

  .catalog-card-content > p:not(.product-type):not(.product-price) {
    display: none;
  }

  .catalog-card .text-link {
    margin-top: 10px;
    font-size: 0.78rem;
    line-height: 1.25;
  }

  .product-card-image {
    min-height: 380px;
  }

  .product-specs div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .launch {
    gap: 12px;
  }

  .story-hero {
    padding: 42px 0 48px;
  }

  .story-section {
    padding: 48px 0;
  }

  .story-mark {
    max-width: 310px;
  }

  .story-body p:first-child {
    padding-left: 18px;
  }
}

@media (max-width: 520px) {
  .site-header,
  .site-footer,
  .hero,
  .hero-copy,
  .section,
  .product-page,
  .checkout-page,
  .story-page {
    width: min(1180px, calc(100% - 24px));
  }

  .site-header {
    gap: 16px;
    padding: 14px 0;
  }

  .brand-logo {
    width: min(176px, 58vw);
  }

  .site-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    font-size: 0.88rem;
  }

  .site-nav a {
    min-width: 0;
    padding: 7px 8px;
    overflow-wrap: anywhere;
    text-align: center;
  }

  h1 {
    font-size: 2.32rem;
    line-height: 1.02;
  }

  h2 {
    font-size: 1.92rem;
  }

  .hero {
    gap: 28px;
    padding: 34px 0 50px;
  }

  .hero-logo-card {
    min-height: 270px;
    border-radius: 22px;
    padding: 26px 20px;
  }

  .preserved-logo-stage {
    width: min(96%, 430px);
  }

  .hero p,
  .section p {
    font-size: 1rem;
  }

  .section {
    padding: 48px 0;
  }

  .section-heading {
    margin-bottom: 24px;
  }

  .product-grid {
    gap: 10px;
  }

  .form-grid,
  .cart-item-controls,
  .checkout-summary-list div {
    grid-template-columns: 1fr;
  }

  .checkout-card,
  .checkout-summary {
    border-radius: 20px;
    min-width: 0;
  }

  .checkout-hero h1 {
    max-width: 100%;
    font-size: clamp(2rem, 9vw, 2.32rem);
  }

  .checkout-submit {
    width: 100%;
    min-width: 0;
  }

  .product-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .product-actions .button {
    width: 100%;
  }

  .catalog-card-content {
    padding: 10px;
  }

  .catalog-card h3 {
    font-size: 1rem;
  }

  .catalog-card .product-type {
    font-size: 0.58rem;
  }

  .catalog-card .product-price {
    font-size: 0.86rem;
  }

  .catalog-card .text-link {
    font-size: 0.72rem;
  }

  .breadcrumb {
    gap: 6px;
    font-size: 0.86rem;
    line-height: 1.4;
  }

  .product-detail {
    gap: 20px;
    padding: 22px 0 58px;
  }

  .product-main-image {
    border-radius: 20px;
  }

  .product-thumbnails {
    gap: 8px;
  }

  .thumbnail-button {
    border-radius: 12px;
  }

  .product-info h1 {
    font-size: 2.2rem;
    line-height: 1.04;
  }

  .product-specs div {
    padding: 12px 0;
  }

  .size-chart-card {
    border-radius: 20px;
    padding: 18px;
  }

  .size-chart-card img {
    border-radius: 12px;
  }

  .story-body p,
  .story-body p:first-child {
    font-size: 1rem;
    line-height: 1.75;
  }

  .story-signoff p {
    font-size: 2.3rem;
  }
}

@media (max-width: 380px) {
  .site-nav {
    font-size: 0.82rem;
  }

  .product-grid {
    gap: 8px;
  }

  .catalog-card-content {
    padding: 9px;
  }

  .catalog-card h3 {
    font-size: 0.92rem;
  }

  .catalog-card .product-type {
    font-size: 0.52rem;
  }

  .catalog-card .text-link {
    font-size: 0.68rem;
  }
}
