:root {
  --ink: #091b2b;
  --paper: #fff6d8;
  --orange: #ff8b00;
  --yellow: #ffd23f;
  --blue: #20a8d8;
  --purple: #3b2268;
  --pink: #e84b91;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
}

a { color: inherit; }

.feature-nav {
  position: absolute;
  z-index: 10;
  inset: 0 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 4rem);
  color: white;
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.feature-nav a { text-decoration: none; }
.feature-nav a:hover,
.feature-nav a:focus-visible { color: var(--yellow); }

.feature-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .72fr);
  align-items: center;
  min-height: 76svh;
  padding: clamp(6rem, 10vw, 9rem) clamp(1.2rem, 7vw, 7rem) clamp(3rem, 6vw, 5rem);
  color: white;
  background: var(--purple);
}

.feature-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .22;
  background: repeating-linear-gradient(125deg, transparent 0 32px, var(--blue) 32px 36px);
}

.feature-copy { max-width: 760px; }

.kicker {
  margin: 0 0 .7rem;
  color: var(--yellow);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
.feature-button {
  font-family: "Arial Black", Arial, Helvetica, sans-serif;
  text-transform: uppercase;
}

h1 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(3.4rem, 8vw, 8rem);
  line-height: .84;
  letter-spacing: -.065em;
}

.six-page h1 {
  font-size: clamp(3.4rem, 6.5vw, 6.8rem);
}

.toy-page h1 {
  font-size: clamp(3.2rem, 5.6vw, 5.8rem);
}

.feature-lede {
  max-width: 660px;
  margin: 1.6rem 0 2rem;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 700;
  line-height: 1.45;
}

.feature-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.6rem;
  padding: .8rem 1.25rem;
  border: 4px solid var(--ink);
  color: var(--ink);
  background: var(--yellow);
  box-shadow: .45rem .45rem 0 var(--blue);
  font-size: .85rem;
  text-decoration: none;
}

.feature-button:hover,
.feature-button:focus-visible {
  transform: translate(.15rem, .15rem);
  box-shadow: .3rem .3rem 0 var(--blue);
}

.feature-art {
  position: relative;
  justify-self: center;
  width: min(100%, 460px);
  max-height: 68svh;
  object-fit: cover;
  border: .55rem solid var(--ink);
  background: var(--yellow);
  box-shadow: 1rem 1rem 0 var(--orange);
  transform: rotate(2deg);
}

.mechanic {
  padding: clamp(3.5rem, 7vw, 6rem) clamp(1.2rem, 7vw, 7rem);
}

.mechanic-heading {
  display: grid;
  grid-template-columns: .65fr 1fr;
  gap: 2rem;
  align-items: end;
  margin-bottom: 2rem;
}

.mechanic h2 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: .9;
}

.mechanic-heading p {
  max-width: 650px;
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.5;
}

.six-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: .7rem;
}

.six-grid article {
  min-height: 180px;
  padding: 1.1rem;
  border: 4px solid var(--ink);
  background: white;
  box-shadow: .35rem .35rem 0 var(--ink);
}

.six-grid article:nth-child(2n) { background: var(--yellow); }
.six-grid article:nth-child(3n) { background: #b9ecff; }

.six-grid span {
  display: block;
  color: var(--pink);
  font-family: "Arial Black", sans-serif;
  font-size: 2.5rem;
}

.six-grid h3 {
  margin: .5rem 0;
  font-size: 1rem;
}

.six-grid p {
  margin: 0;
  font-size: .9rem;
  line-height: 1.4;
}

.feature-close {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: clamp(3rem, 7vw, 6rem) clamp(1.2rem, 7vw, 7rem);
  color: white;
  background: var(--ink);
}

.feature-close h2 {
  margin: 0 0 .7rem;
  font-size: clamp(2.2rem, 5vw, 5rem);
  line-height: .9;
}

.feature-close p {
  max-width: 680px;
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.5;
}

.feature-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem clamp(1.2rem, 4vw, 4rem);
  font-size: .8rem;
  font-weight: 700;
}

.toy-page .feature-hero { background: #422e75; }

.toy-page .feature-hero::before {
  opacity: .35;
  background:
    linear-gradient(rgba(39,207,255,.55) 2px, transparent 2px),
    linear-gradient(90deg, rgba(39,207,255,.55) 2px, transparent 2px);
  background-size: 58px 58px;
  transform: perspective(300px) rotateX(55deg) scale(1.5);
  transform-origin: bottom;
}

.toy-page .feature-art {
  max-height: 72svh;
  object-position: top;
  box-shadow: 1rem 1rem 0 var(--pink);
}

.commercial-break {
  padding: clamp(4rem, 8vw, 7rem) clamp(1.2rem, 7vw, 7rem);
  background: var(--yellow);
}

.commercial-break h2 {
  max-width: 14ch;
  margin: 0 0 1.5rem;
  font-size: clamp(2.7rem, 6vw, 6rem);
  line-height: .86;
}

.commercial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.commercial-grid article {
  padding: 1.5rem;
  border: 5px solid var(--ink);
  background: var(--paper);
  box-shadow: .5rem .5rem 0 var(--purple);
}

.commercial-grid strong {
  display: block;
  margin-bottom: .5rem;
  color: var(--pink);
  font-family: "Arial Black", sans-serif;
  font-size: 1.3rem;
  text-transform: uppercase;
}

.commercial-grid p { line-height: 1.45; }

.ancestry {
  padding: clamp(4rem, 8vw, 7rem) clamp(1.2rem, 7vw, 7rem);
  color: white;
  background: var(--purple);
  text-align: center;
}

.ancestry h2 {
  margin: 0 auto 1rem;
  font-size: clamp(2.5rem, 6vw, 6rem);
  line-height: .88;
}

.ancestry p {
  max-width: 760px;
  margin: 0 auto 1.8rem;
  font-size: 1.15rem;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .feature-hero,
  .mechanic-heading,
  .feature-close {
    grid-template-columns: 1fr;
  }

  .feature-art {
    max-height: none;
    margin-top: 2rem;
  }

  .six-grid { grid-template-columns: repeat(3, 1fr); }
  .commercial-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .feature-nav { font-size: .65rem; }
  h1 { font-size: clamp(3.2rem, 18vw, 5.2rem); }
  .six-page h1 { font-size: clamp(3rem, 12.5vw, 4.5rem); }
  .six-grid { grid-template-columns: 1fr 1fr; }
  .feature-close .feature-button { width: 100%; }
  .feature-footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
