:root {
  color-scheme: light;
  --ink: #182332;
  --muted: #657384;
  --paper: #fffdf8;
  --line: #dde5e9;
  --turquoise: #16bdc8;
  --teal-deep: #077782;
  --orange: #ff9f1c;
  --grape: #6f45d9;
  --mint: #c9f5df;
  --shadow: 0 18px 45px rgba(24, 35, 50, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 253, 248, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 900;
}

.brand__logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.brand__text {
  font-size: clamp(1rem, 2vw, 1.25rem);
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(10px, 2vw, 22px);
  color: var(--muted);
  font-weight: 800;
}

.site-nav a {
  padding: 8px 2px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--teal-deep);
}

.cart-button,
.button,
.icon-button {
  border: 0;
  cursor: pointer;
}

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
}

.cart-button strong {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--orange);
  color: var(--ink);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.cart-button.has-new-item strong {
  transform: scale(1.14);
  box-shadow: 0 0 0 5px rgba(255, 159, 28, 0.22);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
  min-height: calc(100svh - 82px);
  padding: clamp(44px, 8vw, 88px) clamp(18px, 5vw, 72px) 64px;
  overflow: hidden;
}

.hero__copy {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal-deep);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  line-height: 1.02;
  letter-spacing: 0;
}

h1 {
  max-width: 10ch;
  font-size: clamp(3.3rem, 9vw, 7.8rem);
}

h2 {
  font-size: clamp(2rem, 5vw, 4rem);
}

.hero__lead {
  max-width: 58ch;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.button--primary {
  background: var(--orange);
  color: var(--ink);
  box-shadow: 0 12px 26px rgba(255, 159, 28, 0.28);
}

.button--secondary {
  background: white;
  color: var(--teal-deep);
  box-shadow: inset 0 0 0 1px var(--line);
}

.button--secondary.is-added {
  background: var(--teal-deep);
  color: white;
  box-shadow: 0 10px 24px rgba(7, 119, 130, 0.2);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.hero__showcase {
  position: relative;
  display: grid;
  min-height: 520px;
  place-items: center;
}

.hero__showcase::before {
  position: absolute;
  inset: 9% 0 auto auto;
  width: 72%;
  aspect-ratio: 1;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    var(--mint);
  background-size: 28px 28px;
  border-radius: 50%;
}

.hero__showcase img {
  position: relative;
  width: min(92vw, 500px);
  border-radius: 50%;
  box-shadow: var(--shadow);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
  background: white;
}

.trust-strip span {
  min-height: 72px;
  display: grid;
  place-items: center;
  padding: 14px;
  color: var(--teal-deep);
  font-weight: 900;
  text-align: center;
  border-right: 1px solid var(--line);
}

.trust-strip span:last-child {
  border-right: 0;
}

.section {
  padding: clamp(56px, 8vw, 96px) clamp(18px, 5vw, 72px);
}

.section__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

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

.product-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 440px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 10px 28px rgba(24, 35, 50, 0.08);
}

.product-card__art {
  display: grid;
  height: 180px;
  place-items: center;
  background: var(--art-bg);
  color: white;
  overflow: hidden;
}

.product-card__photo {
  height: 180px;
  overflow: hidden;
  background: #eef6f6;
}

.product-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.toy-art {
  position: relative;
  width: 116px;
  height: 96px;
}

.toy-art span {
  position: absolute;
  display: block;
}

.toy-art--dragon span:nth-child(1) {
  left: 18px;
  top: 22px;
  width: 58px;
  height: 48px;
  border-radius: 50% 45% 48% 46%;
  background: var(--grape);
  box-shadow: inset 0 -7px 0 rgba(24, 35, 50, 0.14);
}

.toy-art--dragon span:nth-child(2) {
  right: 8px;
  bottom: 18px;
  width: 64px;
  height: 22px;
  border-radius: 999px;
  background: var(--grape);
}

.toy-art--dragon span:nth-child(3) {
  left: 36px;
  top: 2px;
  width: 16px;
  height: 36px;
  border-radius: 999px 999px 4px 4px;
  background: var(--orange);
  transform: rotate(-18deg);
}

.toy-art--dragon span:nth-child(4) {
  right: 20px;
  top: 28px;
  width: 34px;
  height: 46px;
  border-radius: 8px 44px 8px 44px;
  background: var(--orange);
  transform: rotate(18deg);
}

.toy-art--unicorn span:nth-child(1) {
  left: 28px;
  top: 30px;
  width: 58px;
  height: 38px;
  border-radius: 50% 45% 48% 46%;
  background: white;
  box-shadow: inset 0 -7px 0 rgba(24, 35, 50, 0.12);
}

.toy-art--unicorn span:nth-child(2) {
  right: 24px;
  top: 20px;
  width: 30px;
  height: 24px;
  border-radius: 50%;
  background: white;
}

.toy-art--unicorn span:nth-child(3) {
  right: 26px;
  top: 4px;
  width: 14px;
  height: 32px;
  border-radius: 999px 999px 4px 4px;
  background: var(--orange);
  transform: rotate(16deg);
}

.toy-art--unicorn span:nth-child(4) {
  left: 20px;
  top: 42px;
  width: 18px;
  height: 38px;
  border-radius: 999px;
  background: var(--grape);
  box-shadow: 28px 4px 0 var(--grape), 52px 1px 0 var(--grape);
}

.toy-art--blanket span {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: white;
  box-shadow:
    34px 0 0 var(--orange),
    68px 0 0 white,
    0 34px 0 var(--orange),
    34px 34px 0 white,
    68px 34px 0 var(--orange),
    inset 0 -5px 0 rgba(24, 35, 50, 0.13);
}

.toy-art--blanket span:nth-child(1) {
  left: 8px;
  top: 16px;
}

.toy-art--blanket span:nth-child(2),
.toy-art--blanket span:nth-child(3),
.toy-art--blanket span:nth-child(4) {
  display: none;
}

.product-card__body {
  padding: 18px;
}

.product-card h3 {
  margin: 0 0 8px;
  font-size: 1.28rem;
  line-height: 1.15;
}

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

.product-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 18px 18px;
}

.price {
  font-size: 1.2rem;
  font-weight: 900;
}

.color-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.swatch-button {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 7px 8px;
  background: #f8fbfb;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.1;
  text-align: left;
}

.swatch-button.is-selected {
  border-color: var(--teal-deep);
  box-shadow: 0 0 0 2px rgba(22, 189, 200, 0.18);
}

.swatch {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line);
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.about__panel p {
  max-width: 60ch;
  color: var(--muted);
  font-size: 1.08rem;
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.about__stats div {
  display: grid;
  gap: 4px;
  min-height: 150px;
  place-items: center;
  padding: 18px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.about__stats div:last-child {
  border-right: 0;
}

.about__stats strong {
  color: var(--grape);
  font-size: 2rem;
}

.about__stats span {
  color: var(--muted);
  font-weight: 800;
}

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 30;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(420px, 100vw);
  height: 100dvh;
  background: white;
  box-shadow: -24px 0 55px rgba(24, 35, 50, 0.22);
  transform: translateX(104%);
  transition: transform 200ms ease;
}

.cart-panel.is-open {
  transform: translateX(0);
}

.cart-panel__header,
.cart-panel__footer {
  padding: 20px;
}

.cart-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.cart-panel__header h2 {
  font-size: 1.35rem;
}

.icon-button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: #f0f5f6;
  color: var(--ink);
  font-weight: 900;
}

.cart-items {
  overflow: auto;
  padding: 12px 20px;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item strong,
.cart-item span {
  display: block;
}

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

.cart-item button {
  border: 0;
  background: transparent;
  color: var(--teal-deep);
  cursor: pointer;
  font-weight: 900;
}

.cart-panel__footer {
  display: grid;
  gap: 14px;
  border-top: 1px solid var(--line);
}

.cart-panel__footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.order-form {
  display: grid;
  gap: 10px;
}

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

.order-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.order-form__hint {
  padding: 10px 12px;
  border: 1px solid rgba(22, 189, 200, 0.28);
  border-radius: var(--radius);
  background: #eefafa;
  color: var(--teal-deep);
  font-weight: 800;
}

.order-form label span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: none;
}

.order-form input,
.order-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 11px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  text-transform: none;
}

.order-form textarea {
  resize: vertical;
}

.checkout-status {
  min-height: 1.3em;
  color: var(--teal-deep);
  font-weight: 800;
}

.payment-details {
  display: grid;
  gap: 10px;
}

.payment-method,
.payment-note {
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7fbfb;
}

.payment-method span,
.payment-note span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.payment-method strong,
.payment-note strong {
  overflow-wrap: anywhere;
}

.payment-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 36px;
  margin-top: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-size: 0.9rem;
  font-weight: 900;
}

.payment-copy {
  width: fit-content;
  min-height: 32px;
  margin-top: 6px;
  border: 0;
  border-radius: 999px;
  padding: 7px 10px;
  background: white;
  color: var(--teal-deep);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px var(--line);
}

.empty-cart {
  color: var(--muted);
}

.checkout-result {
  display: grid;
  min-height: 100svh;
  align-content: center;
  justify-items: start;
  gap: 18px;
  max-width: 720px;
  padding: clamp(32px, 8vw, 86px);
}

.checkout-result__logo {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  box-shadow: var(--shadow);
}

.checkout-result h1 {
  max-width: 11ch;
  font-size: clamp(3rem, 8vw, 6rem);
}

.checkout-result p:not(.eyebrow) {
  max-width: 58ch;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-weight: 900;
}

.scrim {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  background: rgba(24, 35, 50, 0.38);
}

.scrim.is-open {
  display: block;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 800;
}

@media (max-width: 980px) {
  .hero,
  .about {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero__showcase {
    min-height: 420px;
  }

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

  .trust-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .site-nav {
    width: 100%;
    justify-content: space-between;
    font-size: 0.9rem;
  }

  .brand__logo {
    width: 44px;
    height: 44px;
  }

  .hero {
    padding-top: 36px;
  }

  h1 {
    max-width: 9ch;
  }

  .hero__showcase {
    min-height: 330px;
  }

  .product-grid,
  .trust-strip,
  .about__stats {
    grid-template-columns: 1fr;
  }

  .about__stats div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .about__stats div:last-child {
    border-bottom: 0;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
