:root {
  --bg:      oklch(100.0% 0.000 89.9);
  --surface: oklch(97.9% 0.000 89.9);
  --fg:      oklch(29.7% 0.000 89.9);
  --muted:   oklch(68.6% 0.014 184.9);
  --border:  oklch(89.8% 0.000 89.9);
  --accent:  oklch(28.3% 0.047 181.3);

  --font-display: 'Tinos', Georgia, 'Times New Roman', serif;
  --font-body:    'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono:    ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  --coral: oklch(74.7% 0.157 36.9);
  --cream: oklch(96% 0.024 76);
  --biscuit: oklch(77% 0.070 65);
  --cocoa: oklch(50% 0.045 56);
  --lilac: oklch(72% 0.045 318);
  --rose: oklch(84% 0.050 18);
  --shadow: 0 18px 45px oklch(29.7% 0.000 89.9 / 0.07);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, oklch(100% 0 0) 0%, var(--surface) 54%, oklch(100% 0 0) 100%);
}

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

.page {
  overflow-x: hidden;
}

.shell {
  width: min(100% - 32px, 1120px);
  margin-inline: auto;
}

.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  background: oklch(100% 0 0 / 0.88);
  backdrop-filter: blur(14px);
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  gap: 18px;
}

.wordmark {
  display: grid;
  gap: 1px;
  font-family: var(--font-display);
  line-height: 1;
}

.wordmark strong {
  font-size: 22px;
  font-weight: 700;
}

.wordmark span {
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0;
}

.nav {
  display: none;
  align-items: center;
  gap: 22px;
  color: var(--fg);
  font-size: 14px;
}

.nav a {
  padding-block: 8px;
}

.nav a:hover {
  color: var(--accent);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: var(--accent);
  color: white;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: transform 160ms ease, background 160ms ease;
}

.button:hover {
  background: oklch(34.3% 0.055 182.2);
  transform: translateY(-1px);
}

.button--ghost {
  border-color: var(--border);
  background: white;
  color: var(--fg);
}

.button--ghost:hover {
  background: var(--surface);
  color: var(--accent);
}

.hero {
  position: relative;
  padding: 20px 0 18px;
  border-bottom: 1px solid var(--border);
}

.hero__grid {
  display: grid;
  gap: 22px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.2;
  text-transform: uppercase;
}

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

h1 {
  max-width: 10ch;
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  line-height: 0.95;
  text-wrap: balance;
}

.hero__deck {
  max-width: 640px;
  margin-top: 14px;
  color: var(--fg);
  font-size: 16px;
  line-height: 1.55;
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero__notes {
  display: none;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.hero__notes span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: white;
}

.toy-stage {
  position: relative;
  min-height: 258px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background-color: oklch(96% 0.018 74);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: var(--shadow);
  overflow: hidden;
  isolation: isolate;
}

.toy-stage:not(.toy-stage--has-image) {
  background-image: linear-gradient(180deg, oklch(99% 0.010 74) 0%, oklch(96% 0.018 74) 100%);
}

.toy-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, oklch(100% 0 0 / 0.08) 0%, oklch(88% 0.028 70 / 0.45) 100%);
  z-index: 0;
  pointer-events: none;
}

.toy-stage--has-image::before {
  background:
    linear-gradient(180deg, oklch(100% 0 0 / 0.12) 0%, oklch(28% 0.04 60 / 0.55) 100%);
}

.toy-stage__caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 14px;
  z-index: 1;
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid oklch(100% 0 0 / 0.65);
  border-radius: 6px;
  background: oklch(100% 0 0 / 0.74);
  backdrop-filter: blur(12px);
}

.toy-stage__caption strong {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1;
}

.toy-stage__caption span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.toy-svg {
  position: absolute;
  width: 300px;
  max-width: 84%;
  height: auto;
  filter: drop-shadow(0 22px 28px oklch(28% 0.04 60 / 0.14));
}

.toy-svg--hero-main {
  right: -16px;
  top: 14px;
  width: 228px;
  transform: rotate(3deg);
}

.toy-svg--hero-small {
  left: -36px;
  top: 88px;
  width: 145px;
  transform: rotate(-8deg);
  opacity: 0.92;
}

.section {
  padding: 36px 0 48px;
}

.section__head {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.section__head h2 {
  max-width: 760px;
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1.05;
  text-wrap: balance;
}

.section__head p {
  max-width: 650px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  text-wrap: pretty;
}

.catalog {
  display: grid;
  gap: 16px;
}

.toy-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
}

.toy-card__media {
  position: relative;
  min-height: 270px;
  background-color: oklch(98% 0.008 78);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.toy-card__media:not(.toy-card__media--has-image) {
  background-image: linear-gradient(180deg, var(--card-wash), oklch(98% 0.008 78));
}

.toy-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--card-wash) 0%, transparent 42%, oklch(98% 0.008 78 / 0.25) 100%);
  pointer-events: none;
  z-index: 0;
}

.toy-card__media--has-image::after {
  background: linear-gradient(180deg, oklch(100% 0 0 / 0.1) 0%, transparent 38%, oklch(28% 0.04 60 / 0.2) 100%);
}

.toy-card__media .toy-svg {
  z-index: 1;
  left: 50%;
  top: 50%;
  width: 248px;
  transform: translate(-50%, -50%) rotate(var(--tilt));
}

.toy-card__label {
  position: absolute;
  z-index: 1;
  left: 14px;
  top: 14px;
  min-height: 28px;
  padding: 7px 10px 6px;
  border: 1px solid oklch(100% 0 0 / 0.8);
  border-radius: 4px;
  background: oklch(100% 0 0 / 0.78);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1;
  text-transform: uppercase;
}

.toy-card__body {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.toy-card__top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.toy-card h3 {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.02;
  text-wrap: balance;
}

.price {
  flex: 0 0 auto;
  padding-top: 3px;
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.toy-card__text {
  color: oklch(38% 0.006 80);
  font-size: 15px;
  line-height: 1.62;
  text-wrap: pretty;
}

.specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.specs li {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--fg);
  font-size: 12px;
  line-height: 1;
  background: var(--surface);
  white-space: nowrap;
}

.contact {
  padding: 42px 0 0;
}

.contact__panel {
  display: grid;
  gap: 22px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--accent);
  color: white;
}

.contact__panel h2 {
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1;
  text-wrap: balance;
}

.contact__panel p {
  max-width: 620px;
  color: oklch(100% 0 0 / 0.78);
  font-size: 16px;
  line-height: 1.6;
  text-wrap: pretty;
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact__panel .button {
  background: white;
  color: var(--accent);
}

.contact__panel .button--ghost {
  border-color: oklch(100% 0 0 / 0.34);
  background: transparent;
  color: white;
}

.footer {
  padding: 28px 0 34px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.footer a {
  color: var(--fg);
}

@media (min-width: 700px) {
  .shell {
    width: min(100% - 56px, 1120px);
  }

  .nav {
    display: flex;
  }

  .hero {
    padding: 54px 0 56px;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 0.98fr) minmax(360px, 0.86fr);
    gap: 42px;
  }

  h1 {
    font-size: 78px;
  }

  .hero__deck {
    font-size: 20px;
  }

  .hero__notes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .toy-stage {
    min-height: 520px;
  }

  .toy-svg--hero-main {
    right: -10px;
    top: 32px;
    width: 380px;
  }

  .toy-svg--hero-small {
    left: -26px;
    top: 164px;
    width: 220px;
  }

  .section {
    padding: 68px 0;
  }

  .section__head {
    grid-template-columns: minmax(0, 0.82fr) minmax(280px, 0.58fr);
    align-items: end;
    gap: 36px;
    margin-bottom: 30px;
  }

  .section__head h2,
  .contact__panel h2 {
    font-size: 48px;
  }

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

  .toy-card__media {
    min-height: 320px;
  }

  .toy-card__media .toy-svg {
    width: 280px;
  }

  .contact__panel {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 36px;
  }

  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 1020px) {
  .hero {
    padding-top: 66px;
  }

  h1 {
    font-size: 92px;
  }

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

  .toy-card {
    grid-template-rows: auto 1fr;
  }

  .toy-card__top {
    display: grid;
    gap: 10px;
  }

  .toy-card__media {
    min-height: 245px;
  }

  .toy-card__media .toy-svg {
    width: 220px;
  }

  .toy-card h3 {
    font-size: 28px;
  }
}

.nav a.is-hidden {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
