/* mypukki — house style.
   Palette, type and motion tokens are the MYPUKKI SPEC §1.3–§1.4 contract.
   Rules that are load-bearing, not taste: no pure white (#FDFAF5 is the white),
   no pure black (#3B2A33 is the black), no text-transform: uppercase anywhere,
   --pk-jam appears exactly once per screen, cream is ~70% of every viewport. */

:root {
  --pk-cream: #FDFAF5;
  --pk-oat: #F5EFE6;
  --pk-blush: #F7D9E1;
  --pk-jam: #C25C79;
  --pk-jam-dk: #A94764;
  --pk-plum: #B4609E;
  --pk-butter: #F6E3A1;
  --pk-butterscotch: #C08A3E;
  --pk-sage: #C6D8C4;
  --pk-sage-ink: #2F6B50;
  --pk-sky: #C8DCEF;
  --pk-lilac: #DCD0EE;
  --pk-cocoa: #3B2A33;
  --pk-body: #574451;
  --pk-muted: #8B7883;
  --pk-line: #F0E2E7;

  --pk-r-card: 28px;
  --pk-r-button: 999px;
  --pk-r-thumb: 20px;

  --pk-ease: cubic-bezier(.34, 1.2, .64, 1);
  --pk-slow: 400ms;
  --pk-settle: 180ms;

  --pk-display: "Fraunces", Georgia, "Times New Roman", serif;
  --pk-ui: "Nunito", ui-rounded, "Segoe UI", system-ui, sans-serif;
  --pk-hand: "Caveat", "Bradley Hand", cursive;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--pk-cream);
  background-image: url("/assets/pk/ui/PK-UI-01.png");
  background-repeat: repeat;
  background-size: 420px 420px;
  color: var(--pk-body);
  font-family: var(--pk-ui);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--pk-display);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 96;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--pk-cocoa);
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2.4rem, 7vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }
a { color: var(--pk-jam); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--pk-jam-dk); }
img { max-width: 100%; display: block; }

.wrap { width: min(1080px, 92vw); margin-inline: auto; }

/* ---------------------------------------------------------------- header */

.masthead {
  position: relative;
  padding: 2rem 0 1rem;
  text-align: center;
}

.masthead-art {
  position: absolute;
  inset: 0 auto auto 50%;
  transform: translateX(-50%);
  width: min(1400px, 128vw);
  opacity: .9;
  pointer-events: none;
  z-index: 0;
}

.wordmark {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: baseline;
  gap: .5rem;
  font-family: var(--pk-display);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 96;
  font-weight: 600;
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  letter-spacing: -0.015em;
  color: var(--pk-cocoa);
  text-decoration: none;
  min-width: 96px;
}
.wordmark:hover { color: var(--pk-cocoa); opacity: .82; transition: opacity 200ms; }
.wordmark .bao { width: 1.4em; height: 1.4em; align-self: center; }

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  text-align: center;
  padding: 2.5rem 0 4rem;
}

.hero h1 { max-width: 16ch; margin-inline: auto; }

.hero .sub {
  max-width: 46ch;
  margin: 0 auto 1.2rem;
  font-size: 1.15rem;
  color: var(--pk-body);
}

.hero .aside {
  font-family: var(--pk-hand);
  font-weight: 500;
  font-size: 1.3rem;
  color: var(--pk-butterscotch);
  margin: 1rem 0 0;
}

.hero-doll {
  width: min(320px, 62vw);
  margin: 1.5rem auto .5rem;
  filter: drop-shadow(0 18px 26px rgba(59, 42, 51, .10));
  transition: transform var(--pk-settle) var(--pk-ease);
}
.hero-doll:hover { transform: scale(.97); }

/* the one loud thing on screen */
.btn-primary {
  display: inline-block;
  padding: .95rem 2.4rem;
  border: 0;
  border-radius: var(--pk-r-button);
  background: linear-gradient(180deg, var(--pk-jam) 0%, var(--pk-plum) 180%);
  box-shadow: inset 0 0 0 4px rgba(253, 250, 245, .55),
              0 5px 0 0 rgba(169, 71, 100, .35);
  color: var(--pk-cream);
  font-family: var(--pk-ui);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--pk-settle) var(--pk-ease),
              box-shadow var(--pk-settle) var(--pk-ease);
}
.btn-primary:hover { color: var(--pk-cream); transform: translateY(-2px); }
.btn-primary:active {
  transform: translateY(4px);
  box-shadow: inset 0 0 0 4px rgba(253, 250, 245, .45),
              0 1px 0 0 rgba(169, 71, 100, .35);
}

.btn-quiet {
  display: inline-block;
  padding: .8rem 1.9rem;
  border-radius: var(--pk-r-button);
  border: 2px solid var(--pk-line);
  background: var(--pk-cream);
  color: var(--pk-cocoa);
  font-weight: 700;
  text-decoration: none;
  transition: background var(--pk-slow) var(--pk-ease),
              border-color var(--pk-slow) var(--pk-ease);
}
.btn-quiet:hover { background: var(--pk-blush); border-color: var(--pk-blush); color: var(--pk-cocoa); }

/* --------------------------------------------------------------- panels */

section { padding: 3.5rem 0; }
section.oat { background: var(--pk-oat); }

.panel {
  background: var(--pk-cream);
  border: 2px solid var(--pk-line);
  border-radius: var(--pk-r-card);
  padding: 2rem;
  box-shadow: 0 4px 0 0 rgba(247, 217, 225, .5);
}

.steps {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 2rem;
}
.step { text-align: center; }
.step .sticker { width: 92px; height: 92px; margin: 0 auto .8rem; object-fit: contain; }
.step .n {
  font-family: var(--pk-hand);
  font-size: 1.25rem;
  color: var(--pk-muted);
}
.step p { color: var(--pk-body); margin-bottom: 0; }

/* the wardrobe peek strip */
.peek {
  display: grid;
  gap: .9rem;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  margin-top: 2rem;
}
.peek figure {
  margin: 0;
  background: var(--pk-cream);
  border: 2px solid var(--pk-line);
  border-radius: var(--pk-r-thumb);
  padding: .7rem;
  text-align: center;
  transition: transform var(--pk-slow) var(--pk-ease),
              border-color var(--pk-slow) var(--pk-ease);
}
.peek figure:hover { transform: translateY(-4px); border-color: var(--pk-blush); }
.peek img { aspect-ratio: 3 / 4; object-fit: contain; width: 100%; }
.peek figcaption { font-size: .82rem; color: var(--pk-muted); margin-top: .4rem; }

/* size ladder */
.ladder {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin-top: 2rem;
}
.tier {
  background: var(--pk-cream);
  border: 2px solid var(--pk-line);
  border-radius: var(--pk-r-card);
  padding: 1.5rem;
  text-align: center;
  transition: border-color var(--pk-slow) var(--pk-ease);
}
.tier:hover { border-color: var(--pk-blush); }
.tier.most { border-color: var(--pk-blush); background: #FFF6F8; }
.tier .price { font-family: var(--pk-display); font-size: 2rem; color: var(--pk-cocoa); }
.tier .size { color: var(--pk-muted); font-size: .95rem; }
.tier .tag {
  display: inline-block;
  margin-top: .6rem;
  padding: .15rem .8rem;
  border-radius: var(--pk-r-button);
  background: #FFF3DC;
  color: #9A6516;      /* 5.0:1 on #FFF3DC */
  font-size: .82rem;
  font-weight: 700;
}

.reassure {
  margin-top: 1.6rem;
  padding: .9rem 1.2rem;
  border-radius: var(--pk-r-thumb);
  background: rgba(198, 216, 196, .3);
  color: var(--pk-sage-ink);          /* 6.0:1 on the sage tint */
  font-weight: 700;
  text-align: center;
}

/* --------------------------------------------------------------- footer */

.foot {
  background: var(--pk-oat);
  border-top: 2px solid var(--pk-line);
  padding: 3rem 0 2.5rem;
  font-size: .95rem;
  color: var(--pk-muted);
}
.foot nav { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-bottom: 1.2rem; }
.foot a { color: var(--pk-body); }
.foot .family { color: var(--pk-muted); }
.foot .sister { font-family: var(--pk-hand); font-size: 1.15rem; }

/* --------------------------------------------------------------- legal */

.legal { max-width: 70ch; padding: 3rem 0 4rem; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.legal h2 { font-size: 1.35rem; margin-top: 2.2rem; }
.legal .updated { color: var(--pk-muted); font-size: .9rem; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: .5em; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: 1ms !important; }
  html { scroll-behavior: auto; }
}
