/* Omuleț: the page is the stacking toy from the logo.
   The round logo is the wooden bead; each section is a wider ring below it. */

@font-face {
  font-family: "Baloo 2";
  src: url("/fonts/baloo-2-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: "Baloo 2";
  src: url("/fonts/baloo-2-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0100-02BA;
}

:root {
  /* Sampled from the logo, lightened where dark text sits on top. */
  --paper: #FDF8F2;
  --cocoa: #4A2F20;
  --cocoa-deep: #2E1B10;
  --blue: #B4D0DC;
  --pink: #F9D2C8;
  --sage: #C6D3B8;
  --yellow: #F7D48E;
  --coral: #F4A891;
  --white: #FFFFFF;
  --radius-ring: clamp(40px, 8vw, 128px);
  --pad-x: clamp(18px, 5vw, 72px);
  --pad-y: clamp(40px, 6vw, 80px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--cocoa);
  font-family: "Baloo 2", ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
  font-size: clamp(1.0625rem, 0.98rem + 0.3vw, 1.25rem);
  font-weight: 500;
  line-height: 1.45;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, p { margin: 0; }
h1, h2 { font-weight: 800; line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 1.5rem + 4.4vw, 5rem); }
h2 { font-size: clamp(1.9rem, 1.4rem + 2vw, 3rem); }
p { max-width: 34em; text-wrap: pretty; }

/* The stack */
.stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: clamp(16px, 3vw, 32px);
}

.top {
  position: relative;
  z-index: 10;
  width: 72%;
  display: flex;
  justify-content: center;
  margin-bottom: clamp(-44px, -3vw, -24px);
}

.bead {
  width: clamp(240px, 26vw, 360px);
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: 0 10px 0 rgba(74, 47, 32, .07);
  animation: land .7s cubic-bezier(.3, 1.5, .5, 1);
}
/* A short landing that keeps the logo on screen in every frame. */
@keyframes land {
  from { transform: translateY(-14px) scale(.94); }
}

/* Toys sitting on the first ring beside the bead, like those beside the child in the logo. */
.sticker {
  display: none;
  position: absolute;
  bottom: 12px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--white);
  border: 6px solid var(--white);
  box-shadow: 0 6px 0 rgba(74, 47, 32, .08);
}
.sticker--a { width: 19%; left: 2%; transform: rotate(-6deg); }
.sticker--b { width: 13%; left: 21%; transform: rotate(5deg); }
.sticker--c { width: 13%; right: 21%; transform: rotate(-5deg); }
.sticker--d { width: 19%; right: 2%; transform: rotate(6deg); }

.ring {
  position: relative;
  width: 100%;
  border-radius: var(--radius-ring);
  padding: var(--pad-y) var(--pad-x);
  /* Moulded look: a soft highlight on top and a shaded lip below. */
  box-shadow:
    inset 0 7px 0 rgba(255, 255, 255, .38),
    inset 0 -12px 0 rgba(74, 47, 32, .06);
}
.ring + .ring { margin-top: -6px; }

/* Each ring is wider and sits lower in the stacking order than the one above it. */
.ring--blue   { width: 72%; background: var(--blue);   z-index: 5; }
.ring--pink   { width: 78%; background: var(--pink);   z-index: 4; }
.ring--sage   { width: 84%; background: var(--sage);   z-index: 3; }
.ring--yellow { width: 92%; background: var(--yellow); z-index: 2; }
.ring--coral  {
  width: 100%;
  background: var(--coral);
  z-index: 1;
  border-radius: var(--radius-ring) var(--radius-ring) 0 0;
}

/* Hero ring */
.hero {
  padding-top: clamp(64px, 6.5vw, 96px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(14px, 1.6vw, 22px);
}
.hero .actions { margin-top: 10px; justify-content: center; }

/* Product shelves */
.shelf {
  display: grid;
  gap: clamp(12px, 2vw, 28px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.intro {
  grid-column: 1 / -1;
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 0 clamp(4px, 1vw, 14px) 6px;
}
.intro .btn { margin-top: 6px; max-width: 100%; }

.card {
  display: block;
  border-radius: clamp(18px, 2.2vw, 30px);
  background: var(--white);
  overflow: hidden;
  box-shadow: 0 6px 0 rgba(74, 47, 32, .1);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card img { width: 100%; }
.card:nth-of-type(odd) { transform: rotate(-.7deg); }
.card:nth-of-type(even) { transform: rotate(.7deg); }
.card:hover { transform: translateY(-6px) rotate(0); box-shadow: 0 12px 0 rgba(74, 47, 32, .12); }
.card:active { transform: translateY(2px) rotate(0); box-shadow: 0 2px 0 rgba(74, 47, 32, .12); }

/* Buttons press down like a toy's push buttons */
.actions { display: flex; flex-wrap: wrap; gap: 14px 16px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 56px;
  padding: 10px 28px 8px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  transition: transform .1s ease, box-shadow .1s ease, background-color .15s ease;
}
.btn--main {
  background: var(--cocoa);
  color: var(--paper);
  box-shadow: 0 5px 0 var(--cocoa-deep);
}
.btn--main:hover { background: #5C3C2A; }
.btn--main:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--cocoa-deep); }
.btn--ig {
  background: var(--white);
  color: var(--cocoa);
  box-shadow: 0 5px 0 rgba(74, 47, 32, .28);
}
.btn--ig:hover { background: var(--paper); }
.btn--ig:active { transform: translateY(4px); box-shadow: 0 1px 0 rgba(74, 47, 32, .28); }
.btn svg { flex: none; margin-top: -2px; }

a:focus-visible {
  outline: 4px solid var(--cocoa);
  outline-offset: 4px;
}

/* Base of the stack */
.base {
  padding-bottom: 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(20px, 2.4vw, 30px);
  box-shadow: inset 0 7px 0 rgba(255, 255, 255, .38);
}
.base h2 { max-width: 20em; }
.base .actions { justify-content: center; }
.base small { margin-top: clamp(14px, 3vw, 36px); font-size: 1rem; }

/* Phones: two columns; the first feeding photo runs full width so five cards leave no gap. */
@media (max-width: 699px) {
  .top { width: 100%; }
  .ring--blue   { width: calc(100% - 32px); }
  .ring--pink   { width: calc(100% - 24px); }
  .ring--sage   { width: calc(100% - 16px); }
  .ring--yellow { width: calc(100% - 8px); }
  .actions, .actions .btn, .intro .btn { width: 100%; }
  .shelf--masa .card:nth-of-type(1) { grid-column: 1 / -1; }
}

/* Tablets and small laptops: the intro sits above the cards on a six-column grid. */
@media (min-width: 700px) and (max-width: 1099px) {
  .shelf { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .card { grid-column: span 2; }
  .shelf--somn .card { grid-column: span 3; }
  .shelf--masa .card:nth-of-type(4) { grid-column: 2 / span 2; }
  .shelf--masa .card:nth-of-type(5) { grid-column: 4 / span 2; }
}

@media (min-width: 700px) and (max-width: 1299px) {
  .top, .ring--blue { width: 82%; }
  .ring--pink   { width: 86%; }
  .ring--sage   { width: 90%; }
  .ring--yellow { width: 95%; }
}

@media (min-width: 1100px) {
  .sticker { display: block; }
  .shelf--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shelf--3 .intro { grid-column: auto; padding-right: 10px; }
  .shelf--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .shelf--4 .intro { grid-column: span 2; padding-right: 28px; }
}

/* Keep the stack proportioned on very wide screens. */
@media (min-width: 1800px) {
  .top, .ring--blue { width: 1300px; }
  .ring--pink { width: 1400px; }
  .ring--sage { width: 1510px; }
  .ring--yellow { width: 1650px; }
}

@media (prefers-reduced-motion: reduce) {
  .bead { animation: none; }
  .card, .btn { transition: none; }
}
