:root {
  color-scheme: light;
  --cream: #fffaf1;
  --paper: #fffdf8;
  --linen: #fff1e8;
  --peach: #ffdccc;
  --rose: #fdb7ea;
  --sun: #fbf3b9;
  --mint: #dcefd7;
  --sky: #bfeaf1;
  --lavender: #b7b1f2;
  --lilac-soft: #eee9ff;
  --pink-soft: #ffe4f6;
  --leaf: #7e9468;
  --teal: #527f88;
  --berry: #9d5575;
  --charcoal: #3f3129;
  --muted: #7a665b;
  --line: #f0d9da;
  --shadow: 0 18px 45px rgba(90, 64, 84, 0.13);
  --soft-shadow: 0 10px 28px rgba(90, 64, 84, 0.1);
  --radius: 14px;
  --radius-sm: 10px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: Nunito, "Avenir Next Rounded", "Trebuchet MS", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(183, 177, 242, 0.62);
  outline-offset: 3px;
}

.skip-link {
  background: var(--charcoal);
  color: white;
  left: 1rem;
  padding: 0.65rem 1rem;
  position: fixed;
  top: 1rem;
  transform: translateY(-140%);
  z-index: 20;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.announcement {
  align-items: center;
  background: linear-gradient(90deg, var(--lilac-soft), var(--pink-soft) 42%, var(--sun));
  color: #5a4238;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  min-height: 46px;
  padding: 0.55rem 1rem 0.9rem;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 800;
  position: relative;
  z-index: 11;
}

.announcement::after {
  background: var(--cream);
  bottom: -1px;
  clip-path: ellipse(58% 58% at 50% 100%);
  content: "";
  height: 16px;
  left: -5%;
  position: absolute;
  width: 110%;
}

.announcement-note {
  color: #735c51;
  font-weight: 700;
}

.announcement span {
  position: relative;
  z-index: 1;
}

.site-header {
  background: rgba(255, 253, 248, 0.94);
  border-bottom: 1px solid var(--line);
  border-bottom-left-radius: 42% 1.2rem;
  border-bottom-right-radius: 42% 1.2rem;
  box-shadow: 0 12px 28px rgba(90, 64, 84, 0.08);
  overflow: hidden;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
}

.header-shell {
  align-items: center;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(220px, 1fr) auto minmax(100px, 1fr);
  margin: 0 auto;
  max-width: var(--max);
  padding: 1rem 1.25rem 0.75rem;
}

.header-shop-link {
  align-items: center;
  background: var(--lavender);
  border-radius: 999px;
  color: #342b46;
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 950;
  justify-self: end;
  min-height: 42px;
  padding: 0.65rem 1rem;
  transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.header-shop-link:hover,
.header-shop-link:focus-visible {
  background: #a9a1ec;
  box-shadow: var(--soft-shadow);
  transform: translateY(-1px);
}

.search {
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  display: flex;
  gap: 0.5rem;
  max-width: 360px;
  padding: 0.6rem 0.85rem;
}

.search input {
  background: transparent;
  border: 0;
  color: var(--charcoal);
  min-width: 0;
  outline: 0;
  width: 100%;
}

.search input::placeholder {
  color: #9a8f85;
}

.search-submit {
  align-items: center;
  background: var(--lavender);
  border: 0;
  border-radius: 999px;
  color: white;
  display: inline-flex;
  flex: 0 0 auto;
  height: 34px;
  justify-content: center;
  margin: -0.25rem -0.45rem -0.25rem 0;
  transition: background 180ms ease, transform 180ms ease;
  width: 34px;
}

.search-submit .icon {
  height: 17px;
  width: 17px;
}

.search-submit:hover,
.search-submit:focus-visible {
  background: #a9a1ec;
  transform: translateY(-1px);
}

.brand {
  align-items: center;
  display: inline-flex;
  justify-self: center;
  min-width: max-content;
}

.brand-logo {
  display: block;
  height: clamp(60px, 6vw, 84px);
  object-fit: contain;
  width: auto;
}

.icon-button {
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--charcoal);
  display: inline-flex;
  justify-self: end;
  min-height: 44px;
  padding: 0.65rem 0.8rem;
  position: relative;
}

.main-nav {
  display: flex;
  gap: 0.2rem;
  justify-content: center;
  margin: 0 auto;
  max-width: var(--max);
  overflow-x: auto;
  padding: 0 1.25rem 0.8rem;
  scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.main-nav a {
  border-radius: 999px;
  color: #6c5a51;
  flex: 0 0 auto;
  font-size: 0.94rem;
  font-weight: 800;
  padding: 0.4rem 0.72rem;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: var(--pink-soft);
  color: var(--charcoal);
  transform: translateY(-1px);
}

.icon {
  fill: none;
  height: 21px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
  width: 21px;
}

.hero {
  background:
    radial-gradient(circle at 12% 0%, rgba(183, 177, 242, 0.22), transparent 22rem),
    radial-gradient(circle at 90% 10%, rgba(253, 183, 234, 0.18), transparent 18rem);
  padding: 1.2rem 1.25rem 0.8rem;
  scroll-margin-top: 14rem;
}

.hero-visual {
  border-radius: clamp(1.25rem, 3vw, 2.1rem);
  box-shadow: var(--shadow);
  margin: 0 auto;
  max-width: min(1380px, calc(100vw - 2.5rem));
  min-height: 470px;
  overflow: hidden;
  position: relative;
}

.hero-banner {
  aspect-ratio: 2.42 / 1;
  background: var(--lilac-soft);
  border: 1px solid rgba(183, 177, 242, 0.42);
  clip-path: none;
  min-height: 0;
}

.hero-banner::before {
  display: none;
}

.real-hero {
  align-items: center;
  background:
    linear-gradient(115deg, rgba(255, 253, 247, 0.96) 0 34%, rgba(247, 236, 204, 0.82) 34% 58%, rgba(214, 232, 195, 0.8) 58% 100%),
    var(--linen);
  display: grid;
  gap: 1.4rem;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
  padding: 1rem;
}

.hero-visual::after {
  display: none;
}

.hero-banner::after {
  display: none;
}

.real-hero::after {
  display: none;
}

.hero-visual > img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.hero-banner > img {
  bottom: 0;
  height: 134%;
  left: 50%;
  object-fit: cover;
  object-position: center bottom;
  position: absolute;
  right: auto;
  top: auto;
  transform: translateX(-50%);
  width: 100%;
}

.hero-copy {
  max-width: 520px;
  padding: 2rem 2.25rem;
  position: relative;
  z-index: 1;
}

.hero-collage {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: minmax(0, 1.08fr) minmax(180px, 0.92fr);
  position: relative;
  z-index: 1;
}

.hero-card {
  background: var(--paper);
  border: 1px solid rgba(51, 45, 41, 0.12);
  border-radius: var(--radius);
  box-shadow: 0 14px 32px rgba(70, 48, 34, 0.14);
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.hero-card-main {
  aspect-ratio: 1.55 / 1;
  grid-row: span 2;
  object-position: center;
}

.hero-card-top,
.hero-card-bottom {
  aspect-ratio: 1.45 / 1;
}

.hero-card-top {
  object-position: 72% center;
}

.hero-card-bottom {
  object-position: 76% center;
}

.eyebrow {
  color: var(--berry);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  margin: 0 0 0.5rem;
  text-transform: uppercase;
}

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

h1 {
  font-size: 3.15rem;
  max-width: 12ch;
}

h2 {
  font-size: 2.35rem;
}

h3 {
  font-size: 1.35rem;
}

.hero-copy p:not(.eyebrow) {
  color: #594e46;
  font-size: 1.12rem;
  margin: 1.1rem 0 0;
  max-width: 34rem;
}

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

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  display: inline-flex;
  font-weight: 950;
  justify-content: center;
  min-height: 46px;
  padding: 0.75rem 1.05rem;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease, transform 180ms ease;
}

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

.button.primary {
  background: var(--lavender);
  color: #342b46;
}

.button.primary:hover {
  background: #a9a1ec;
  box-shadow: var(--soft-shadow);
}

.button.secondary {
  background: var(--paper);
  border-color: var(--line);
  color: var(--charcoal);
}

.button.secondary:hover {
  background: var(--pink-soft);
  border-color: #f4c9e8;
}

.section-pad {
  padding: 4.5rem 1.25rem;
}

.intro-section {
  padding-top: 2.35rem;
}

.section-shell {
  margin: 0 auto;
  max-width: var(--max);
}

.section-shell.narrow {
  max-width: 820px;
}

.intro-section {
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.96), rgba(255, 244, 249, 0.72)),
    radial-gradient(circle at 14% 16%, rgba(255, 220, 204, 0.34), transparent 22rem),
    radial-gradient(circle at 82% 32%, rgba(183, 177, 242, 0.2), transparent 20rem),
    var(--cream);
}

.intro-grid {
  align-items: center;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
  text-align: center;
}

.intro-grid p {
  color: var(--muted);
  margin: 1rem 0 0;
  max-width: 62ch;
}

.intro-grid p:not(.eyebrow) {
  margin-left: auto;
  margin-right: auto;
}

.line-banner {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
  max-height: 420px;
  object-fit: cover;
  width: 100%;
}

.character-parade {
  align-items: end;
  display: flex;
  gap: clamp(0.45rem, 2vw, 1.35rem);
  justify-content: center;
  margin-top: clamp(1.6rem, 4vw, 2.6rem);
  padding-inline: 1rem;
}

.character-parade img {
  filter: drop-shadow(0 9px 12px rgba(70, 48, 34, 0.1));
  height: clamp(62px, 9vw, 118px);
  object-fit: contain;
  transform: translateY(var(--character-lift, 0));
  width: auto;
}

.character-parade img:nth-child(2),
.character-parade img:nth-child(4) {
  --character-lift: -0.7rem;
}

.character-parade img:nth-child(3) {
  --character-lift: 0.3rem;
}

.shop-section {
  background:
    linear-gradient(180deg, var(--paper), #fff7fb 48%, var(--paper));
}

.section-heading {
  align-items: end;
  display: flex;
  gap: 1.25rem;
  justify-content: space-between;
  margin-bottom: 1.7rem;
}

.section-heading p {
  color: var(--muted);
  margin: 0;
  max-width: 42rem;
}

.section-heading .eyebrow {
  margin-bottom: 0.45rem;
}

.search-status {
  background: var(--sun);
  border: 1px solid #f3e9a5;
  border-radius: 999px;
  color: #5c493f;
  font-size: 0.9rem;
  font-weight: 800;
  padding: 0.45rem 0.75rem;
}

.product-section {
  border-top: 1px solid var(--line);
  padding-top: 1.75rem;
}

.product-section + .product-section {
  margin-top: 3.4rem;
}

.product-heading {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.product-heading a,
.text-link {
  color: var(--berry);
  font-weight: 950;
  text-decoration: underline;
  text-decoration-color: rgba(157, 85, 117, 0.25);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

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

.product-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  overflow: hidden;
  position: relative;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.product-card:hover,
.product-card:focus-visible,
.product-card:focus-within {
  border-color: #e8c1e1;
  box-shadow: var(--soft-shadow);
  transform: translateY(-3px);
}

.product-card:focus-visible {
  outline: 3px solid rgba(183, 177, 242, 0.48);
  outline-offset: 3px;
}

.product-media {
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, var(--pink-soft), var(--lilac-soft) 56%, var(--sun));
  display: grid;
  overflow: hidden;
  padding: 0.45rem;
  place-items: center;
  perspective: 900px;
}

.book-flip {
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  width: 100%;
}

.product-media img {
  height: 100%;
  object-fit: contain;
  object-position: center;
  position: absolute;
  inset: 0;
  width: 100%;
}

.product-cover {
  opacity: 1;
  transform: translateZ(0);
  transition: opacity 220ms ease, transform 220ms ease;
  z-index: 1;
}

.flip-pages {
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 2;
}

.flip-page {
  background: #fffdf8;
  border-radius: 0.45rem;
  box-shadow: 0 14px 28px rgba(70, 48, 34, 0.12);
  opacity: 0;
  transform: rotateY(-44deg) translateX(-8%) scale(0.96);
  transform-origin: left center;
}

.flip-page-1 {
  --flip-delay: 2s;
}

.flip-page-2 {
  --flip-delay: 4.3s;
}

.flip-page-3 {
  --flip-delay: 6.6s;
}

.product-card:hover .product-cover,
.product-card:focus-within .product-cover,
.product-card:focus-visible .product-cover {
  animation: coverRest 7.1s ease 2s infinite both;
}

.product-card:hover .flip-page,
.product-card:focus-within .flip-page,
.product-card:focus-visible .flip-page {
  animation: flipPagePeek 7.1s ease var(--flip-delay) infinite both;
}

.badge {
  background: linear-gradient(135deg, var(--sun), var(--peach));
  border-radius: 999px;
  color: #4d3826;
  font-size: 0.74rem;
  font-weight: 950;
  left: 0.75rem;
  padding: 0.28rem 0.55rem;
  position: absolute;
  top: 0.75rem;
}

.favorite-button {
  align-items: center;
  background: rgba(255, 253, 248, 0.92);
  border: 1px solid rgba(234, 223, 206, 0.95);
  border-radius: 999px;
  color: #5d5149;
  display: inline-flex;
  height: 40px;
  justify-content: center;
  position: absolute;
  right: 0.7rem;
  top: 0.7rem;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
  width: 40px;
  z-index: 4;
}

.favorite-button:hover,
.favorite-button[aria-pressed="true"] {
  background: #ffe9ee;
  color: var(--berry);
}

.favorite-button[aria-pressed="true"] .icon {
  fill: currentColor;
}

.favorite-button:hover {
  transform: scale(1.04);
}

.product-body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1rem;
}

.product-body h3 {
  font-size: 1.05rem;
  line-height: 1.2;
  margin: 0;
}

.product-type {
  color: var(--berry);
  font-size: 0.78rem;
  font-weight: 950;
  margin: 0;
  text-transform: uppercase;
}

.product-body p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

.price-row {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: auto;
}

.price {
  font-size: 1.08rem;
  font-weight: 950;
}

.sale-price {
  color: var(--berry);
  font-weight: 950;
}

.old-price {
  color: #93877d;
  text-decoration: line-through;
}

.purchase-links {
  display: grid;
  gap: 0.5rem;
}

.purchase-links-card {
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
}

.purchase-links-dialog {
  grid-template-columns: repeat(auto-fit, minmax(150px, max-content));
}

.purchase-link {
  background: var(--lavender);
  color: #342b46;
  font-size: 0.84rem;
  gap: 0.4rem;
  min-height: 40px;
  padding: 0.58rem 0.78rem;
  white-space: nowrap;
  z-index: 3;
}

.purchase-link .icon {
  flex: 0 0 auto;
  height: 16px;
  width: 16px;
}

.purchase-link:hover {
  background: #a9a1ec;
  box-shadow: var(--soft-shadow);
}

.purchase-link-etsy {
  background: var(--peach);
  color: #5a372d;
}

.purchase-link-etsy:hover {
  background: #ffcdb9;
}

.purchase-link-free {
  background: var(--pink-soft);
  color: #63384f;
}

.purchase-link-free:hover {
  background: #ffd4ef;
}

.purchase-link-waitlist {
  background: var(--mint);
  color: #3f4e36;
}

.purchase-link-waitlist:hover {
  background: #4d6742;
}

.free-pages-section {
  background:
    radial-gradient(circle at 85% 12%, rgba(183, 177, 242, 0.24), transparent 18rem),
    linear-gradient(135deg, var(--pink-soft), var(--sun) 52%, #eef8f2);
}

.free-pages-grid,
.newsletter-grid,
.shop-hero-grid,
.social-grid {
  align-items: center;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 1.05fr);
}

.free-pages-grid p,
.newsletter-grid p,
.shop-hero-grid p,
.social-grid p {
  color: var(--muted);
  margin: 1rem 0 1.35rem;
  max-width: 62ch;
}

.free-pages-grid img,
.shop-hero-grid img {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: clamp(1rem, 3vw, 1.8rem);
  box-shadow: var(--soft-shadow);
  object-fit: cover;
  width: 100%;
}

.shop-hero {
  background:
    linear-gradient(135deg, rgba(255, 253, 247, 0.95), rgba(247, 236, 204, 0.82)),
    var(--linen);
  padding-top: 3rem;
}

.shop-hero h1 {
  max-width: 14ch;
}

.shop-hero-grid img {
  aspect-ratio: 1898 / 829;
}

.shop-catalog {
  background: var(--paper);
}

.shop-toolbar {
  align-items: end;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.shop-toolbar .search-status {
  display: inline-flex;
  margin: 0.8rem 0 0;
}

.sort-control {
  color: #604e43;
  display: grid;
  flex: 0 0 min(260px, 100%);
  font-size: 0.86rem;
  font-weight: 900;
  gap: 0.35rem;
}

.sort-control select {
  appearance: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--charcoal);
  min-height: 46px;
  padding: 0.65rem 2.5rem 0.65rem 1rem;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0 0 1.4rem;
}

.filter-button {
  background: #fff5e6;
  border: 1px solid #f1debf;
  border-radius: 999px;
  color: #6a5545;
  font-weight: 900;
  min-height: 42px;
  padding: 0.55rem 0.85rem;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

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

.filter-button[aria-pressed="true"] {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: white;
}

.shop-empty {
  margin-top: 1rem;
}

.social-section {
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.95), rgba(255, 228, 246, 0.62)),
    var(--linen);
}

.social-card-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.social-card {
  align-items: center;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.92), rgba(255, 253, 248, 0.76)),
    var(--social-bg, var(--paper));
  border: 1px solid var(--line);
  border-radius: clamp(1rem, 2.5vw, 1.5rem);
  box-shadow: 0 8px 20px rgba(90, 64, 84, 0.07);
  display: grid;
  gap: 0.55rem;
  grid-template-rows: 1fr auto auto;
  min-height: 210px;
  overflow: hidden;
  padding: 1rem;
  position: relative;
  text-align: center;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.social-character {
  align-self: end;
  filter: drop-shadow(0 12px 14px rgba(90, 64, 84, 0.15));
  height: 104px;
  justify-self: center;
  max-width: 92%;
  object-fit: contain;
  transform: translateY(0.15rem);
  transition: transform 180ms ease;
}

.social-card:hover .social-character,
.social-card:focus-visible .social-character {
  transform: translateY(-0.15rem) rotate(-2deg);
}

.social-card:hover,
.social-card:focus-visible {
  box-shadow: var(--soft-shadow);
  transform: translateY(-3px);
}

.social-card-icon {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 950;
  justify-self: center;
  min-height: 56px;
  padding: 0 0.85rem;
}

.social-card.instagram .social-card-icon {
  background: var(--pink-soft);
  color: #8f4d70;
}

.social-card.tiktok .social-card-icon {
  background: var(--lilac-soft);
  color: #5a538e;
}

.social-card.pinterest .social-card-icon {
  background: var(--sun);
  color: #755640;
}

.social-card.instagram {
  --social-bg: #fff1f8;
}

.social-card.tiktok {
  --social-bg: #efedff;
}

.social-card.pinterest {
  --social-bg: #fff5d6;
}

.newsletter-section {
  background:
    radial-gradient(circle at 8% 24%, rgba(253, 183, 234, 0.22), transparent 18rem),
    radial-gradient(circle at 92% 20%, rgba(183, 177, 242, 0.18), transparent 18rem),
    var(--cream);
}

.product-card .button {
  align-self: start;
  margin-top: 0.15rem;
  min-height: 42px;
  padding: 0.58rem 0.9rem;
  position: relative;
  z-index: 3;
}

@keyframes coverRest {
  0%,
  5% {
    opacity: 1;
    transform: scale(1);
  }

  14%,
  82% {
    opacity: 0;
    transform: scale(0.985);
  }

  92%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes flipPagePeek {
  0%,
  12% {
    opacity: 0;
    transform: rotateY(-48deg) translateX(-9%) scale(0.95);
  }

  22%,
  42% {
    opacity: 1;
    transform: rotateY(0deg) translateX(0) scale(1);
  }

  55%,
  100% {
    opacity: 0;
    transform: rotateY(28deg) translateX(8%) scale(0.98);
  }
}

.no-results {
  background: #fff5e6;
  border: 1px dashed #dfc4a2;
  border-radius: var(--radius);
  color: #654f40;
  display: none;
  font-weight: 850;
  grid-column: 1 / -1;
  padding: 1rem;
}

.collections-section {
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.6), rgba(255, 250, 242, 0.95)),
    var(--linen);
}

.collection-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 920px;
}

.collection-tile {
  align-items: center;
  background: var(--tile-bg, #fffdf8);
  border: 1px solid rgba(51, 45, 41, 0.1);
  border-radius: 999px 999px var(--radius) var(--radius);
  box-shadow: 0 8px 20px rgba(70, 48, 34, 0.07);
  color: var(--charcoal);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 230px;
  overflow: hidden;
  padding: 1.1rem 1rem 1rem;
  position: relative;
  text-align: center;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.collection-tile::after {
  background: rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  content: "";
  height: 132px;
  position: absolute;
  right: -26px;
  top: -28px;
  width: 132px;
}

.collection-tile:hover,
.collection-tile:focus-visible {
  box-shadow: var(--soft-shadow);
  transform: translateY(-3px);
}

.collection-character {
  filter: drop-shadow(0 12px 14px rgba(70, 48, 34, 0.13));
  height: 155px;
  max-width: 100%;
  object-fit: contain;
  position: relative;
  transition: transform 180ms ease;
  z-index: 1;
}

.collection-tile:hover .collection-character,
.collection-tile:focus-visible .collection-character {
  transform: translateY(-4px) rotate(-2deg);
}

.collection-label {
  background: rgba(255, 253, 248, 0.78);
  border: 1px solid rgba(51, 45, 41, 0.08);
  border-radius: 999px;
  font-size: 1.03rem;
  font-weight: 950;
  padding: 0.45rem 0.8rem;
  z-index: 1;
}

.freebie-section {
  background: linear-gradient(135deg, var(--pink-soft), var(--sun) 48%, var(--lilac-soft));
}

.kooki-banner-section {
  background: linear-gradient(180deg, var(--linen), #fff8ef);
  padding: 0 1rem 3rem;
}

.kooki-banner {
  aspect-ratio: 1898 / 829;
  border: 1px solid rgba(51, 45, 41, 0.1);
  border-radius: clamp(1.1rem, 3vw, 2rem);
  box-shadow: var(--soft-shadow);
  display: block;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.freebie-grid {
  align-items: center;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 1.05fr);
}

.freebie-grid p {
  color: #615349;
  max-width: 60ch;
}

.signup-form {
  background: rgba(255, 253, 248, 0.9);
  border: 1px solid rgba(240, 217, 218, 0.9);
  border-radius: clamp(1rem, 2.5vw, 1.4rem);
  box-shadow: var(--soft-shadow);
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(150px, 1fr) minmax(190px, 1.15fr);
  padding: clamp(1rem, 2vw, 1.25rem);
}

.signup-form .button {
  grid-column: 1 / -1;
  justify-self: start;
  min-width: min(100%, 220px);
  white-space: normal;
}

.field-group {
  display: grid;
  gap: 0.35rem;
}

.field-group label {
  color: #614b43;
  font-size: 0.86rem;
  font-weight: 900;
}

input {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--charcoal);
  min-height: 46px;
  padding: 0.72rem 0.95rem;
}

.form-note {
  color: var(--muted);
  font-size: 0.9rem;
  grid-column: 1 / -1;
  margin: 0;
}

.faq-list {
  border-top: 1px solid var(--line);
  margin-top: 1.5rem;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-button {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--charcoal);
  display: flex;
  font-weight: 950;
  justify-content: space-between;
  min-height: 66px;
  padding: 1rem 0;
  text-align: left;
  width: 100%;
}

.faq-button .icon {
  flex: 0 0 auto;
  transition: transform 180ms ease;
}

.faq-button[aria-expanded="true"] .icon {
  transform: rotate(45deg);
}

.faq-panel {
  color: var(--muted);
  display: none;
  padding: 0 0 1rem;
}

.faq-panel[aria-hidden="false"] {
  display: block;
}

.site-footer {
  background:
    linear-gradient(180deg, #574239, #3f3129),
    var(--charcoal);
  border-top-left-radius: 48% 2.1rem;
  border-top-right-radius: 48% 2.1rem;
  box-shadow: 0 -14px 36px rgba(90, 64, 84, 0.1);
  color: #fff9f1;
  margin-top: 0;
  overflow: hidden;
  padding: 4rem 1.25rem 1.5rem;
  position: relative;
}

.site-footer::before {
  background:
    radial-gradient(circle at 10% 100%, rgba(251, 243, 185, 0.16), transparent 28%),
    radial-gradient(circle at 88% 0%, rgba(253, 183, 234, 0.14), transparent 30%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.site-footer::after {
  background: var(--cream);
  clip-path: ellipse(58% 65% at 50% 0%);
  content: "";
  height: 22px;
  left: -5%;
  position: absolute;
  top: -1px;
  width: 110%;
  z-index: 0;
}

.site-footer .brand {
  background: var(--paper);
  border-radius: var(--radius);
  justify-self: start;
  padding: 0.25rem 0.45rem;
}

.site-footer .brand-logo {
  height: 68px;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(260px, 1.4fr) minmax(140px, 0.7fr) minmax(160px, 0.7fr);
  position: relative;
  z-index: 1;
}

.footer-grid h2 {
  font-size: 1rem;
  margin: 0 0 0.65rem;
}

.footer-grid a {
  color: #ffe4f6;
  display: block;
  font-weight: 750;
  margin: 0.38rem 0;
}

.footer-grid a:hover {
  color: white;
}

.footer-brand p {
  color: #ead8cb;
  margin: 0.9rem 0 0;
}

.footer-domain {
  font-weight: 950;
}

.footer-newsletter {
  display: grid;
  gap: 0.7rem;
  position: relative;
}

.footer-character {
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.16));
  justify-self: start;
  margin-bottom: -0.25rem;
  max-width: 86px;
}

.footer-newsletter input {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: white;
}

.footer-newsletter input::placeholder {
  color: #d7c2ae;
}

.footer-newsletter .button.secondary {
  background: #fff7ee;
  color: #332d29;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.social-links a {
  align-items: center;
  background: rgba(255, 228, 246, 0.12);
  border: 1px solid rgba(255, 228, 246, 0.22);
  border-radius: 999px;
  color: #fff7ee;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  margin: 0;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
  width: 42px;
}

.social-links a:hover,
.social-links a:focus-visible {
  background: var(--pink-soft);
  color: #332d29;
  transform: translateY(-2px);
}

.social-icon {
  fill: none;
  height: 21px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  width: 21px;
}

.copyright {
  color: #e3cfc3;
  font-size: 0.9rem;
  margin: 2.5rem auto 0;
  max-width: var(--max);
  position: relative;
  z-index: 1;
}

dialog {
  border: 0;
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(24, 18, 14, 0.34);
  color: var(--charcoal);
  max-width: min(880px, calc(100vw - 2rem));
  padding: 0;
}

dialog::backdrop {
  background: rgba(36, 29, 24, 0.45);
  backdrop-filter: blur(3px);
}

.dialog-close {
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--charcoal);
  display: inline-flex;
  height: 42px;
  justify-content: center;
  position: absolute;
  right: 0.8rem;
  top: 0.8rem;
  width: 42px;
  z-index: 2;
}

.dialog-product {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.1fr);
  padding: 1rem;
}

.dialog-main-image {
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #fff4df, #e4f0d4);
  border-radius: var(--radius-sm);
  object-fit: contain;
  width: 100%;
}

.preview-strip {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 1rem 0;
}

.preview-strip img {
  aspect-ratio: 1 / 1;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  object-fit: contain;
  width: 100%;
}

.dialog-info {
  padding: 1rem 2.5rem 1rem 0;
}

.dialog-info h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.dialog-info p {
  color: var(--muted);
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.dialog-actions .purchase-links {
  flex: 1 1 100%;
}

@media (max-width: 1060px) {
  .product-grid,
  .featured-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

@media (max-width: 820px) {
  .announcement {
    align-items: center;
    flex-direction: column;
    gap: 0;
    min-height: 48px;
  }

  .header-shell {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .brand {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .brand-logo {
    height: 68px;
  }

  .search {
    grid-column: 1;
    grid-row: 2;
    max-width: none;
    width: 100%;
  }

  .header-shop-link {
    grid-column: 2;
    grid-row: 2;
    min-width: max-content;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .hero {
    padding: 0.8rem 0.8rem 0.4rem;
    scroll-margin-top: 19rem;
  }

  .hero-visual {
    max-width: calc(100vw - 1.6rem);
    min-height: 0;
  }

  .hero-banner {
    aspect-ratio: 1.45 / 1;
    border-radius: 1.2rem;
    clip-path: none;
  }

  .real-hero {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 0.85rem;
  }

  .hero-collage {
    gap: 0.55rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-card,
  .hero-card-main,
  .hero-card-top,
  .hero-card-bottom {
    aspect-ratio: 1 / 1;
    grid-column: auto;
    grid-row: auto;
  }

  .hero-copy {
    padding: 1rem 0.65rem 0.25rem;
  }

  h1 {
    font-size: 2.7rem;
  }

  h2 {
    font-size: 2rem;
  }

  .intro-grid,
  .free-pages-grid,
  .newsletter-grid,
  .shop-hero-grid,
  .social-grid,
  .freebie-grid,
  .dialog-product {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .signup-form {
    grid-template-columns: 1fr;
  }

  .signup-form .button {
    justify-self: stretch;
    width: 100%;
  }

  .shop-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .sort-control {
    flex-basis: auto;
  }

  .social-card-grid {
    grid-template-columns: 1fr;
  }

  .social-card {
    min-height: 190px;
  }

  .social-character {
    height: 94px;
  }

  .dialog-info {
    padding: 0 0.4rem 0.5rem;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .section-pad {
    padding: 3.3rem 1rem;
  }

  .header-shell {
    padding-inline: 0.9rem;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    height: 60px;
  }

  .product-grid,
  .featured-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-visual {
    min-height: 0;
  }

  .hero-banner {
    aspect-ratio: 1.22 / 1;
  }

  .hero-banner > img {
    bottom: 0;
    height: 128%;
  }

  h1 {
    font-size: 2.3rem;
  }

  .hero-copy p:not(.eyebrow) {
    font-size: 0.98rem;
    margin-top: 0.85rem;
  }

  .hero-actions {
    margin-top: 1rem;
  }

  .product-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}
