/* Little Nest Creations: styles shared by every page (index.html and gallery.html) */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond-latin-variable.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("fonts/jost-latin-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Ephesis";
  src: url("fonts/ephesis-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Brand colours (taken from the logo and business card) ---------- */
:root {
  --cream: #FAFBF5;      /* card background */
  --white: #FFFFFF;
  --blush-50: #FBF0EE;
  --blush-100: #F6E0DD;
  --blush-300: #F4B6B3;  /* logo pink */
  --rose-500: #C06A65;   /* script accents (large text only) */
  --rose-700: #A9534F;   /* links */
  --sage-50: #F0F2E8;
  --sage-100: #E3E6D8;
  --sage-300: #B0B29A;
  --sage-400: #A1A38A;   /* logo green */
  --sage-600: #7A8065;
  --sage-650: #6A7157;   /* wordmark text */
  --sage-700: #5E6650;   /* headings, buttons */
  --sage-800: #525A45;
  --ink: #454B3B;        /* body text */
  --muted: #646B52;

  --font-serif: "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --font-sans: "Jost", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-script: "Ephesis", "Brush Script MT", cursive;

  --radius: 18px;
  --shadow: 0 14px 34px -18px rgba(69, 75, 59, .35);
  --container: 1120px;
  --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html:has(.lightbox[open]) { overflow: hidden; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--rose-700); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--sage-800); }
:focus-visible { outline: 2px solid var(--rose-700); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--sage-700);
  line-height: 1.12;
  margin: 0 0 .5em;
}
h2, .page-title { font-size: clamp(2.2rem, 1.7rem + 2vw, 3.1rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
/* anything with the hidden attribute stays hidden, even if a rule below gives it a display */
[hidden] { display: none !important; }
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--sage-700); color: #fff; padding: .6rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; color: #fff; }
.script { font-family: var(--font-script); font-weight: 400; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font: 500 1rem/1 var(--font-sans);
  letter-spacing: .03em;
  padding: 1rem 1.65rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn svg { width: 1.1em; height: 1.1em; }
.btn--primary { background: var(--sage-700); color: #fff; box-shadow: 0 10px 22px -12px rgba(82, 90, 69, .8); }
.btn--primary:hover { background: var(--sage-800); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: rgba(255, 255, 255, .7); color: var(--sage-700); border-color: var(--sage-400); }
.btn--ghost:hover { background: var(--white); color: var(--sage-800); border-color: var(--sage-700); }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 251, 245, .9);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--sage-100); box-shadow: 0 8px 24px -20px rgba(69, 75, 59, .6); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: inherit; }
.brand img { width: 52px; height: 52px; }
.brand__text { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.brand__name {
  font-family: var(--font-serif); font-weight: 500; text-transform: uppercase;
  letter-spacing: .22em; margin-right: -.22em; font-size: 1.08rem; color: var(--sage-650);
}
.brand__script { font-family: var(--font-script); color: var(--rose-500); font-size: 1.55rem; margin-top: -.12em; }
.nav { display: flex; align-items: center; gap: clamp(.85rem, 2.6vw, 2.1rem); list-style: none; margin: 0; padding: 0; }
.nav a {
  position: relative; display: inline-block; padding: .35rem 0;
  color: var(--ink); text-decoration: none; font-size: .98rem; letter-spacing: .03em;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .15rem; height: 1px;
  background: var(--rose-500); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }
.nav .nav__cta { padding: .5rem 1.15rem; border: 1.5px solid var(--sage-400); border-radius: 999px; color: var(--sage-700); }
.nav .nav__cta::after { display: none; }
.nav .nav__cta:hover { background: var(--sage-700); border-color: var(--sage-700); color: #fff; }
/* the page you're on (aria-current="page" in the nav) */
.nav a[aria-current="page"] { color: var(--sage-800); font-weight: 500; }
.nav a[aria-current="page"]::after { transform: scaleX(1); }
@media (max-width: 720px) {
  :root { --header-h: 62px; }
  .brand__text { display: none; }
  .brand img { width: 44px; height: 44px; }
  .nav { gap: .9rem; }
  .nav a { font-size: .9rem; letter-spacing: .01em; }
  .nav .nav__cta { padding: .4rem .8rem; }
}
/* Small phones: tighten the header so all four links still fit */
@media (max-width: 359px) {
  .header__inner { gap: .5rem; }
  .brand img { width: 40px; height: 40px; }
  .nav { gap: .7rem; }
  .nav .nav__cta { padding: .35rem .65rem; }
}
/* Very narrow screens (like the front screen of a folding phone): About leaves the menu but stays on the home page */
@media (max-width: 319px) { .nav li:nth-child(3) { display: none; } }

/* ---------- Hero (based on the business card) ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  text-align: center; background: var(--cream);
  padding: clamp(1rem, 3.5vh, 2.75rem) 0 calc(max(100vw, 900px) * .17 + 1.25rem);
}
.hero__inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.hero__logo { width: clamp(220px, min(30vw, 40vh), 350px); margin: 0 0 .25rem; }
.hero__title {
  font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem);
  font-weight: 500; letter-spacing: .005em;
  margin: .2rem 0 .6rem;
}
.hero__title .script { color: var(--rose-500); font-size: 1.3em; line-height: .8; white-space: nowrap; }
.hero__kicker { margin: 0; }
.hero__intro { max-width: 34rem; color: var(--muted); font-size: clamp(1.06rem, 1rem + .3vw, 1.2rem); margin-bottom: 1.6rem; text-wrap: balance; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; }
.hero__meadow {
  position: absolute; z-index: 1; bottom: 0; left: 50%;
  width: max(100%, 900px); max-width: none; transform: translateX(-50%);
  pointer-events: none; user-select: none;
}
@media (max-width: 575px) { .hero__meadow { width: 577px; } } /* centre crop, same scale as 900px */
@media (min-width: 2000px) {
  .hero__meadow {
    width: 2000px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  }
  .hero { padding-bottom: calc(2000px * .17 + 1.25rem); }
}
.butterfly { position: absolute; z-index: 1; pointer-events: none; animation: flutter 7s ease-in-out infinite alternate; }
.butterfly--pink { width: clamp(52px, 8.5vw, 140px); top: clamp(.75rem, 6%, 4.5rem); right: clamp(.5rem, 7vw, 8rem); }
.butterfly--yellow { width: clamp(34px, 4.8vw, 82px); top: 42%; left: clamp(.25rem, 17vw, 19rem); animation-duration: 9s; animation-delay: -4s; }
@keyframes flutter {
  0%   { transform: translate(0, 0) rotate(-4deg); }
  50%  { transform: translate(6px, -12px) rotate(3deg); }
  100% { transform: translate(-5px, 4px) rotate(-1deg); }
}
@media (max-width: 1099px) { .butterfly--yellow { top: 24%; left: 7vw; } }
@media (max-width: 640px) { .butterfly--yellow { top: 13.5rem; left: .75rem; } }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(4rem, 9vw, 7rem) 0; }
.section__header { text-align: center; max-width: 42rem; margin: 0 auto clamp(2rem, 4.5vw, 3.25rem); }
.section__lead { color: var(--muted); font-size: 1.1rem; margin: 0; }
.kicker {
  font-family: var(--font-script); color: var(--rose-500);
  font-size: clamp(2rem, 1.7rem + 1vw, 2.5rem); line-height: 1; margin: 0 0 .15em;
}
.divider { display: flex; align-items: center; justify-content: center; gap: .7rem; color: var(--blush-300); margin: .2rem 0 1.2rem; }
.divider::before, .divider::after { content: ""; width: 2.75rem; height: 1px; background: var(--sage-300); }
.divider svg { width: 14px; height: 14px; }
.split .divider, .contact__intro .divider, .order__intro .divider { justify-content: flex-start; }

/* ---------- Shop (creations) ---------- */
/* the free gift and flat shipping notes above the shop */
.shop-perks {
  list-style: none; max-width: 36rem; margin: 0 auto clamp(2.75rem, 6vw, 4rem); padding: .2rem 1.5rem .2rem 1rem;
  background: var(--blush-50); border: 1.5px dashed var(--blush-300); border-radius: var(--radius);
}
.shop-perk { display: flex; align-items: center; gap: 1rem; padding: .8rem 0; }
.shop-perk + .shop-perk { border-top: 1px dashed var(--blush-300); }
.shop-perk__icon {
  flex: none; display: grid; place-items: center; width: 3.1rem; height: 3.1rem; border-radius: 50%;
  background: var(--white); color: var(--rose-700);
}
.shop-perk__icon svg { width: 1.5rem; height: 1.5rem; }
.shop-perk p { margin: 0; line-height: 1.45; }
.shop-perk strong { display: block; font: 600 1.35rem/1.2 var(--font-serif); color: var(--sage-800); font-variant-numeric: lining-nums; }
.shop-perk p span { color: var(--muted); font-size: .98rem; }

.shop-group + .shop-group { margin-top: clamp(3.5rem, 8vw, 5.5rem); }
.shop-group__header { text-align: center; max-width: 36rem; margin: 0 auto clamp(1.4rem, 3vw, 2rem); }
.shop-group__header h3 { font-size: clamp(1.8rem, 1.5rem + 1vw, 2.25rem); margin-bottom: .3rem; }
.shop-group__header p { margin: 0; color: var(--muted); }

.products {
  --cols: 2;
  --gap: clamp(.75rem, 1.8vw, 1.25rem);
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; /* a part-filled last row sits in the middle */
  gap: calc(var(--gap) * 1.4) var(--gap);
}
@media (min-width: 720px) { .products { --cols: 3; } }
@media (min-width: 1024px) { .products { --cols: 4; } }
.product {
  position: relative; flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); min-width: 0;
  display: flex; flex-direction: column;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.product__media { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--sage-100); }
.product__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s cubic-bezier(.2, .7, .2, 1);
}
.product__media:hover img, .product__media:focus-visible img { transform: scale(1.045); }
.product__media:focus-visible { outline-offset: -4px; outline-color: var(--white); }
.product__zoom {
  position: absolute; right: .65rem; bottom: .65rem;
  display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 50%;
  background: rgba(250, 251, 245, .94); color: var(--rose-700);
  opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s;
}
.product__zoom svg { width: 1.05rem; height: 1.05rem; }
.product__media:hover .product__zoom, .product__media:focus-visible .product__zoom { opacity: 1; transform: none; }
@media (hover: none) { .product__zoom { display: none; } }
.product__tag {
  position: absolute; z-index: 1; top: .65rem; left: .65rem; margin: 0; pointer-events: none;
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .32rem .75rem .32rem .6rem; border-radius: 999px;
  background: rgba(250, 251, 245, .95); color: var(--sage-800);
  font-size: .8rem; font-weight: 500; letter-spacing: .03em; line-height: 1.2;
  box-shadow: 0 4px 12px -6px rgba(44, 48, 38, .45);
}
.product__tag::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: #6E9A58; box-shadow: 0 0 0 3px rgba(110, 154, 88, .22); }
.product__body { flex: 1; display: flex; flex-direction: column; gap: .7rem; padding: .9rem 1rem 1rem; }
.product__title { font: 600 1.22rem/1.2 var(--font-serif); color: var(--sage-700); margin: 0; text-wrap: balance; }
.product__note { margin: -.15rem 0 0; font-size: .88rem; line-height: 1.4; color: var(--muted); }
.product__note > svg, .swatches { vertical-align: middle; margin-right: .4rem; }
.product__note > svg { display: inline-block; width: 1rem; height: 1rem; }
.product__note--deal { color: var(--rose-700); font-weight: 500; }
/* the size line, e.g. "Size: 8 cm tall" */
.product__note--size { color: var(--sage-800); padding-left: 1.4rem; text-indent: -1.4rem; }
.product__note--size strong { font-weight: 600; }
.swatches { display: inline-flex; }
.swatch { width: 1rem; height: 1rem; border-radius: 50%; background: var(--swatch); border: 2px solid var(--white); box-shadow: 0 0 0 1px rgba(44, 48, 38, .14); }
.swatch + .swatch { margin-left: -.3rem; }
.swatch--yellow { --swatch: #F0DCA8; }
.swatch--blush { --swatch: #E8BDBC; }
.swatch--blue { --swatch: #BED4DC; }
.swatch--grey { --swatch: #D2D4D3; }
.product__buy { margin-top: auto; display: grid; gap: .7rem; padding-top: .1rem; }
.product__price { margin: 0; line-height: 1.3; color: var(--muted); font-size: .92rem; }
.product__price strong { margin-right: .1rem; font: 600 1.5rem/1 var(--font-serif); color: var(--sage-800); font-variant-numeric: lining-nums; }
.product__buy .btn { width: 100%; }
/* cards with colour choices: a little drawing of the piece in the chosen colours sits beside the price */
.product__buy.has-toy { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.product__buy.has-toy .btn { grid-column: 1 / -1; }
.product__buy .toy { width: 2.9rem; height: 2.9rem; margin: -.45rem -.2rem -.3rem 0; }
/* a photo in the chosen colour fades in over the one before */
.product__media .is-next { position: absolute; inset: 0; opacity: 0; transition: opacity .4s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.product__media .is-next.is-in { opacity: 1; }
/* a card linked to from the gallery (e.g. index.html#shop-bunny-toy) glows for a moment */
.product:target { animation: spotlight 2.6s ease-out; }
@keyframes spotlight {
  0%, 55% { box-shadow: 0 0 0 3px var(--blush-300), var(--shadow); }
  100% { box-shadow: var(--shadow); }
}
.btn--sm { padding: .68rem 1.15rem; font-size: .92rem; }
.shop-group__more { margin: clamp(1.5rem, 3vw, 2rem) 0 0; text-align: center; }

/* Colour choices: body and collar swatches (and a Bunny | Bear switch) on the bunny and comforter cards, and under
   their Add buttons in "Your order". script.js makes them from the colours listed on "Your order" in the order form. */
.picker { display: grid; gap: .7rem; }
.picker__kinds {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding: 3px;
  border-radius: 999px; background: var(--sage-50); box-shadow: inset 0 0 0 1px var(--sage-100);
}
.picker__kind { position: relative; }
.picker__kind input, .picker__swatch input {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer;
}
.picker__kind span {
  display: block; padding: .3rem .4rem; border-radius: 999px; text-align: center;
  font-size: .88rem; font-weight: 500; line-height: 1.3; color: var(--muted);
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.picker__kind:hover span { color: var(--sage-800); }
.picker__kind input:checked + span { background: var(--white); color: var(--sage-800); box-shadow: 0 1px 4px -1px rgba(69, 75, 59, .35); }
.picker__kind input:focus-visible + span { outline: 2px solid var(--rose-700); outline-offset: 1px; }
/* On a shop card the Bunny | Bear switch sits on the bottom of the photo, which changes with it, so the swatches line
   up with the card beside it. The photo is 3:4, so its bottom edge is 4/3 of the card's width down. */
.product .picker__kinds {
  position: absolute; z-index: 1; top: 0; left: .65rem; max-width: calc(100% - 1.3rem);
  margin-top: calc(400% / 3 - .65rem); transform: translateY(-100%);
  background: rgba(250, 251, 245, .95); box-shadow: 0 4px 12px -6px rgba(44, 48, 38, .45);
}
.product .picker__kind span { padding-inline: .85rem; color: var(--sage-800); }
.product .picker__kind input:checked + span { background: var(--sage-700); color: var(--white); box-shadow: none; }
/* "BODY  Soft yellow": the part, then the colour chosen (or the one under the pointer) */
.picker__label { display: flex; align-items: baseline; gap: .45rem; min-width: 0; margin: 0 0 .3rem; line-height: 1.3; }
.picker__name { flex: none; font-size: .72rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--sage-700); }
.picker__chosen { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; font-weight: 500; color: var(--sage-800); }
.picker__chosen.is-preview { color: var(--muted); font-weight: 400; }
.picker__swatches { --gap: .25rem; container-type: inline-size; display: flex; flex-wrap: wrap; gap: var(--gap); }
.picker__swatch { --size: 2rem; position: relative; flex: none; width: var(--size); height: var(--size); }
/* five swatches fill the row, from 22px up to 36px each (on phones they sit closer, so five still fit on a 360px screen) */
@supports (width: 1cqi) { .picker__swatch { --size: clamp(1.375rem, calc((100cqi - 4 * var(--gap) - .5px) / 5), 2.25rem); } }
@media (max-width: 479px) { .picker__swatches { --gap: .125rem; } }
.picker__swatch span {
  --edge: inset 0 0 0 1px rgba(44, 48, 38, .14), inset 0 -3px 5px -2px rgba(44, 48, 38, .2);
  position: absolute; inset: 3px; border-radius: 50%; pointer-events: none;
  background: var(--swatch, var(--sage-100)); box-shadow: var(--edge);
  transition: box-shadow .15s, transform .15s;
}
.picker__swatch:hover span { transform: scale(1.08); }
.picker__swatch input:checked + span { box-shadow: var(--edge), 0 0 0 2px var(--white), 0 0 0 3.5px var(--sage-700); transform: none; }
.picker__swatch input:focus-visible + span { outline: 2px solid var(--rose-700); outline-offset: 4px; }
/* pressing Order (or Add to order) before a colour is chosen */
.picker__part.is-missing .picker__name { color: var(--rose-700); }
.picker__part.is-missing .picker__swatch span { box-shadow: var(--edge), 0 0 0 2px var(--white), 0 0 0 3.5px var(--blush-300); }
.picker__part.is-missing .picker__swatches { animation: nudge .45s ease; }
@keyframes nudge {
  0%, 100% { transform: none; }
  20%, 60% { transform: translateX(-3px); }
  40%, 80% { transform: translateX(3px); }
}
.picker__hint { margin: 0; font-size: .85rem; line-height: 1.35; font-weight: 500; color: var(--rose-700); }
.picker__hint:empty { display: none; }
.picker__hint.is-tip { color: var(--sage-800); font-weight: 400; }

/* A little drawing of the bunny or bear in the chosen colours (script.js) */
.toy { display: block; flex: none; width: 2.6rem; height: 2.6rem; overflow: visible; }
.toy__body { fill: var(--body, var(--sage-50)); stroke: rgba(69, 75, 59, .38); stroke-width: .8; transition: fill .25s; }
.toy__shade { fill: rgba(69, 75, 59, .1); }
.toy__collar circle { fill: var(--collar, var(--sage-100)); stroke: rgba(69, 75, 59, .3); stroke-width: .6; transition: fill .25s; }

@media (max-width: 479px) {
  .product__body { padding: .8rem .75rem .85rem; }
  .product__title { font-size: 1.12rem; }
  .product__note { font-size: .84rem; }
  .picker__kind span { padding-inline: .25rem; font-size: .84rem; }
  .product .picker__kind span { padding-inline: .6rem; }
}

/* ---------- Gallery page (photos only, no prices) ---------- */
.gallery-page { padding-top: clamp(2.25rem, 5vw, 4rem); }
.gallery-wrap { container-type: inline-size; }
.gallery {
  --cols: 2;
  --gap: clamp(.65rem, 1.6vw, 1.15rem);
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: var(--gap);
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  grid-auto-rows: 20rem;
  grid-auto-flow: dense;
}
@supports (width: 1cqi) {
  /* every row is exactly as tall as a 2:3 portrait tile */
  .gallery { grid-auto-rows: calc((100cqi - (var(--cols) - 1) * var(--gap)) / var(--cols) * 1.5); }
}
@media (min-width: 700px) { .gallery { --cols: 4; } }
.gallery__item {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--sage-100); box-shadow: var(--shadow);
}
.gallery__item--wide { grid-column: span 2; }
.gallery__link { display: block; height: 100%; color: inherit; border-radius: inherit; }
.gallery__link img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s cubic-bezier(.2, .7, .2, 1);
}
.gallery__link:hover img, .gallery__link:focus-visible img { transform: scale(1.045); }
.gallery__link:focus-visible { outline-offset: -4px; outline-color: var(--white); }
.gallery__caption {
  position: absolute; left: .75rem; right: .75rem; bottom: .75rem;
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .6rem .6rem .6rem 1rem; border-radius: 12px;
  background: rgba(250, 251, 245, .93); color: var(--ink);
  font-size: .93rem; line-height: 1.3; text-align: left;
  opacity: 0; transform: translateY(10px); transition: opacity .3s, transform .3s;
}
.gallery__caption svg { flex: none; width: 1.9rem; height: 1.9rem; padding: .4rem; border-radius: 50%; background: var(--blush-50); color: var(--rose-700); }
.gallery__link:hover .gallery__caption, .gallery__link:focus-visible .gallery__caption { opacity: 1; transform: none; }
@media (hover: none) { .gallery__caption { display: none; } }
.gallery-cta { background: var(--blush-50); text-align: center; }
.gallery-cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; }
.gallery-cta__more { margin: 1.75rem 0 0; color: var(--muted); }

/* ---------- Split layout (custom requests) ---------- */
.custom { background: var(--blush-50); }
.split { display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 5fr 6fr; } }
.split__text .kicker, .split__text h2 { text-align: left; }
.frame { position: relative; margin: 0 1rem 1rem 0; }
.frame::before {
  content: ""; position: absolute; inset: 1rem -1rem -1rem 1rem; z-index: 0;
  border: 1.5px solid var(--blush-300); border-radius: calc(var(--radius) + 4px);
}
.frame img {
  position: relative; z-index: 1; width: 100%; aspect-ratio: 2 / 3; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.steps { list-style: none; counter-reset: step; margin: 1.6rem 0 2.1rem; padding: 0; display: grid; gap: 1rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.6rem 1fr; gap: 1rem; align-items: start; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: var(--white); border: 1.5px solid var(--blush-300); color: var(--rose-700);
  font: 600 1.3rem/1 var(--font-serif); font-variant-numeric: lining-nums;
}
.steps strong { display: block; font-weight: 500; color: var(--sage-800); }
.steps span { color: var(--muted); }

/* ---------- About ---------- */
.about { overflow: hidden; }
.about__card {
  position: relative; z-index: 1; max-width: 48rem; margin: 0 auto; text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.4rem, 6vw, 4.5rem);
  background: var(--white); border-radius: 28px; box-shadow: var(--shadow);
}
.about__mark { width: 84px; height: 84px; margin: 0 auto .5rem; }
.about__card p:not(.kicker):not(.signature) { font-size: 1.1rem; }
.signature { font-family: var(--font-script); color: var(--rose-500); font-size: 2.6rem; line-height: 1; margin: 1.6rem 0 0; }
.signature span { display: block; font: 400 .95rem/1.4 var(--font-sans); color: var(--muted); letter-spacing: .04em; margin-bottom: .2rem; }
.about__bouquet {
  position: absolute; z-index: 0; left: 0; bottom: 0;
  width: clamp(150px, 24vw, 330px); pointer-events: none; user-select: none;
}
.about__bouquet--right { left: auto; right: 0; transform: scaleX(-1); width: clamp(110px, 16vw, 230px); opacity: .9; }

/* ---------- Care ---------- */
.care { background: var(--sage-50); }
.care__grid {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr));
}
.care__item { background: var(--white); border-radius: var(--radius); padding: 1.8rem 1.4rem 1.6rem; text-align: center; }
.care__icon {
  display: grid; place-items: center; width: 3.4rem; height: 3.4rem; margin: 0 auto 1rem;
  border-radius: 50%; background: var(--blush-50); color: var(--rose-500);
}
.care__icon svg { width: 1.6rem; height: 1.6rem; }
.care__item h3 { font-size: 1.4rem; margin-bottom: .35rem; }
.care__item p { margin: 0; color: var(--muted); font-size: .98rem; }

/* ---------- Contact & order ---------- */
.contact__grid, .order__grid { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
@media (min-width: 900px) {
  .contact__grid, .order__grid { grid-template-columns: 5fr 7fr; }
  .order__intro { position: sticky; top: calc(var(--header-h) + 2rem); }
}
.contact__intro .kicker, .contact__intro h2, .order__intro .kicker, .order__intro h2 { text-align: left; }
.order { background: var(--sage-50); }
.order .steps { margin-bottom: 0; }
.socials { display: grid; gap: .75rem; margin-top: 1.75rem; }
.socials__title { font-size: .9rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 .1rem; }
.social {
  display: flex; align-items: center; gap: 1rem; padding: .9rem 1.1rem;
  background: var(--white); border: 1px solid var(--sage-100); border-radius: 16px;
  color: var(--ink); text-decoration: none;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.social:hover { color: var(--ink); border-color: var(--blush-300); transform: translateY(-2px); box-shadow: var(--shadow); }
.social__badge {
  flex: none; display: grid; place-items: center; width: 2.7rem; height: 2.7rem; border-radius: 50%;
  background: var(--blush-50); color: var(--rose-700);
}
.social__badge svg { width: 1.3rem; height: 1.3rem; }
.social__label { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.social__label strong { font-weight: 500; color: var(--sage-800); }
.social__label span { color: var(--muted); font-size: .92rem; overflow-wrap: anywhere; }
.social__arrow { margin-left: auto; flex: none; width: 1.15rem; height: 1.15rem; color: var(--sage-600); }

.form-card {
  position: relative; background: var(--white); border-radius: 26px;
  padding: clamp(1.5rem, 4vw, 2.6rem); box-shadow: var(--shadow);
}
.form-grid { display: grid; gap: 1.15rem; }
@media (min-width: 600px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .field--full { grid-column: 1 / -1; }
}
.field label { display: block; margin-bottom: .4rem; font-size: .95rem; font-weight: 500; color: var(--sage-800); }
.field .optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--cream); border: 1.5px solid var(--sage-100); border-radius: 12px;
  padding: .85rem 1rem;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { min-height: 9.5rem; resize: vertical; }
.field select {
  -webkit-appearance: none; appearance: none; padding-right: 2.75rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235E6650' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 1.1rem;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--sage-300); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; background: var(--white); border-color: var(--sage-600);
  box-shadow: 0 0 0 4px rgba(161, 163, 138, .28);
}
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--rose-700); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.25rem; margin-top: 1.5rem; }
.form-status { margin: 0; font-size: .98rem; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--rose-700); }
.form-note { margin: 1.1rem 0 0; font-size: .88rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-success { text-align: center; padding: 1.5rem 0 1rem; }
.form-success img { width: 88px; height: 88px; margin: 0 auto .75rem; }
.form-success h3 { font-size: 2rem; outline: none; }
.form-success p { color: var(--muted); max-width: 26rem; margin: 0 auto 1.6rem; }
/* the order number on the thank-you message (a tap selects all of it, ready to copy) */
.form-success .order-number {
  display: flex; flex-direction: column; align-items: center; gap: .1rem;
  width: fit-content; margin-top: -.3rem; padding: .75rem 1.5rem .8rem;
  background: var(--sage-50); border: 1.5px dashed var(--sage-300); border-radius: 12px;
}
.order-number__label { font-size: .72rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--sage-700); }
.order-number__value {
  font-size: 1.45rem; font-weight: 600; letter-spacing: .06em; font-variant-numeric: tabular-nums; color: var(--sage-800);
  -webkit-user-select: all; user-select: all;
}
.order-number__hint { font-size: .85rem; text-wrap: balance; }
.field .textarea--short { min-height: 6rem; }

/* ---------- Order form: "Your order" list ---------- */
#order-form { scroll-margin-top: clamp(1.75rem, 4vw, 2.85rem); }
.basket { margin: 0 0 1.75rem; padding: 0; border: 0; min-width: 0; }
.basket__title { float: left; width: 100%; padding: 0; margin: 0 0 .9rem; font: 600 1.75rem/1.15 var(--font-serif); color: var(--sage-700); }
.basket__title ~ * { clear: both; }
.basket__note { margin: 0 0 .8rem; padding: .55rem .95rem; border-radius: 12px; background: var(--blush-50); color: var(--sage-800); font-size: .95rem; }
.basket__note:empty { display: none; }
.basket__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.basket__item {
  display: grid; grid-template-columns: 3.4rem minmax(0, 1fr) auto; align-items: center; gap: .9rem;
  padding: .55rem .7rem .55rem .55rem; border: 1.5px solid var(--sage-100); border-radius: 14px; background: var(--white);
  transition: background-color .6s, border-color .6s;
}
.basket__item img { width: 3.4rem; height: 3.4rem; object-fit: cover; border-radius: 10px; }
.basket__label { font-weight: 500; color: var(--sage-800); line-height: 1.3; cursor: pointer; }
.basket__price { display: block; font-weight: 400; font-size: .92rem; color: var(--muted); }
.basket__size { display: block; font-weight: 400; font-size: .85rem; color: var(--muted); }
.basket__item.is-selected { background: var(--sage-50); border-color: var(--sage-400); }
.basket__item.is-flash { background: var(--blush-50); border-color: var(--rose-500); transition: none; }
.qty { display: flex; align-items: center; gap: .15rem; }
.qty__btn {
  flex: none; display: grid; place-items: center; width: 2.35rem; height: 2.35rem; padding: 0;
  border-radius: 50%; border: 1.5px solid var(--sage-300); background: var(--white); color: var(--sage-700);
  cursor: pointer; transition: background-color .2s, border-color .2s, color .2s, opacity .2s;
}
.qty__btn:hover { background: var(--sage-700); border-color: var(--sage-700); color: #fff; }
.qty__btn svg { width: 1rem; height: 1rem; }
.basket__item:not(.is-selected) .qty__btn[data-step="-1"] { opacity: .4; }
.qty__input {
  width: 2.5rem; padding: .3rem 0; border: 0; border-radius: 8px; background: transparent;
  font: 500 1.1rem/1 var(--font-sans); color: var(--ink); text-align: center; font-variant-numeric: tabular-nums;
  -moz-appearance: textfield; appearance: textfield;
}
.qty__input::-webkit-outer-spin-button, .qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.basket__summary { margin-top: .9rem; padding: .85rem 1.1rem; border-radius: 14px; background: var(--blush-50); }
/* Subtotal, Shipping and Total, with the amounts on the right */
.basket__sums { display: grid; gap: .2rem; margin: 0; }
.basket__line { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; color: var(--muted); }
.basket__line dt, .basket__line dd { margin: 0; }
.basket__line dt span { font-size: .85rem; }
.basket__line dd { font-weight: 500; color: var(--sage-800); font-variant-numeric: lining-nums tabular-nums; }
.basket__line--total { margin-top: .35rem; padding-top: .6rem; border-top: 1px solid var(--blush-300); color: var(--sage-800); font-weight: 500; }
.basket__line--total dd { font: 600 1.6rem/1 var(--font-serif); font-variant-numeric: lining-nums; }
.basket__gift { margin: .75rem 0 0; display: flex; align-items: center; gap: .45rem; color: var(--rose-700); font-size: .95rem; font-weight: 500; }
.basket__gift svg { flex: none; width: 1.15rem; height: 1.15rem; }
.basket__deal { margin: .7rem 0 0; padding-top: .6rem; border-top: 1px dashed var(--blush-300); font-size: .93rem; color: var(--sage-800); }
.basket__deal strong { font-weight: 600; color: var(--rose-700); }
/* Bunnies and comforters in "Your order" (made by script.js): an Add button that opens the colour swatches,
   then one line for each colour combination, each with its own - and + */
.basket__item--colours > .qty { display: none; }
.basket__item--colours .basket__label { cursor: default; }
.basket__add {
  display: inline-flex; align-items: center; gap: .35rem; justify-self: end;
  min-height: 2.35rem; padding: .35rem .95rem .35rem .75rem; border-radius: 999px;
  border: 1.5px solid var(--sage-300); background: var(--white); color: var(--sage-700);
  font: 500 .92rem/1.2 var(--font-sans); white-space: nowrap; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.basket__add svg { flex: none; width: 1rem; height: 1rem; }
.basket__add:hover, .basket__add[aria-expanded="true"] { background: var(--sage-700); border-color: var(--sage-700); color: #fff; }
.chooser {
  grid-column: 1 / -1; display: grid; gap: .85rem; margin-top: -.2rem;
  padding: .85rem .9rem .9rem; border-radius: 12px; background: var(--white);
  box-shadow: 0 0 0 1px var(--sage-100), 0 8px 20px -14px rgba(69, 75, 59, .45);
  transition: box-shadow .6s;
}
.chooser.is-flash { box-shadow: 0 0 0 1.5px var(--rose-500), 0 8px 20px -14px rgba(69, 75, 59, .45); transition: none; }
/* Body and Collar side by side when there's room */
.chooser .picker { grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr)); gap: .75rem 1.25rem; }
.chooser .picker__hint { grid-column: 1 / -1; }
.chooser__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; }
.chooser__actions .toy { width: 2.4rem; height: 2.4rem; }
.chooser__cancel {
  padding: .4rem .2rem; border: 0; background: none; color: var(--muted); cursor: pointer;
  font: inherit; font-size: .92rem; text-decoration: underline; text-underline-offset: .2em;
}
.chooser__cancel:hover { color: var(--sage-800); }
.variants { grid-column: 1 / -1; display: grid; gap: .4rem; margin: -.25rem 0 0; padding: 0; list-style: none; }
.variants:empty { display: none; }
.variant {
  display: grid; grid-template-columns: 2.4rem minmax(0, 1fr) auto; align-items: center; gap: .6rem;
  padding: .3rem .35rem .3rem .45rem; border-radius: 11px; background: var(--white);
  box-shadow: 0 0 0 1px var(--sage-100); transition: background-color .6s, box-shadow .6s;
}
.variant.is-flash { background: var(--blush-50); box-shadow: 0 0 0 1.5px var(--rose-500); transition: none; }
.variant .toy { width: 2.4rem; height: 2.4rem; }
.variant__text { font-size: .92rem; line-height: 1.3; color: var(--muted); }
.variant__colour { font-weight: 500; color: var(--sage-800); }
/* the - turns into a bin when there's just one */
.variant .qty__btn svg + svg { display: none; }
.variant.is-one .qty__btn[data-step="-1"] svg:first-child { display: none; }
.variant.is-one .qty__btn[data-step="-1"] svg + svg { display: block; }
@media (max-width: 479px) {
  .basket__item { grid-template-columns: 2.6rem minmax(0, 1fr) auto; gap: .65rem; padding-right: .5rem; }
  .basket__item img { width: 2.6rem; height: 2.6rem; border-radius: 8px; }
  .qty__btn { width: 2.2rem; height: 2.2rem; }
  .qty__input { width: 2.1rem; }
  .basket__add { padding-inline: .6rem .8rem; }
  .chooser { padding: .75rem .7rem .8rem; }
  .chooser__actions { column-gap: .5rem; }
  .chooser__actions .toy { width: 2rem; height: 2rem; }
  .variant { grid-template-columns: 2rem minmax(0, 1fr) auto; gap: .45rem; }
  .variant .toy { width: 2rem; height: 2rem; }
}
@media (max-width: 359px) {
  .basket__item { grid-template-columns: minmax(0, 1fr) auto; padding-left: .8rem; }
  .basket__item img { display: none; }
  .variant { grid-template-columns: minmax(0, 1fr) auto; padding-left: .6rem; }
  .variant .toy, .chooser__actions .toy { display: none; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--sage-50); border-top: 1px solid var(--sage-100); padding: 3.25rem 0 2.25rem; text-align: center; }
.footer__mark { width: 64px; height: 64px; margin: 0 auto .4rem; }
.footer__brand { display: flex; flex-direction: column; align-items: center; line-height: 1; margin: 0 0 .9rem; }
.footer__brand .brand__name { font-size: 1.15rem; }
.footer__brand .brand__script { font-size: 1.7rem; }
.footer__tagline { color: var(--muted); margin-bottom: 1.1rem; }
.footer__links { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem 1.5rem; list-style: none; margin: 0 0 1.6rem; padding: 0; }
.footer__links a { color: var(--sage-700); text-decoration: none; font-weight: 500; }
.footer__links a:hover { color: var(--rose-700); text-decoration: underline; }
.footer__small { font-size: .88rem; color: var(--muted); margin: 0; }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100%; height: 100%; max-width: 100vw; max-height: 100vh; max-height: 100dvh;
  margin: 0; padding: 0; border: 0; overflow: hidden;
  background: rgba(44, 48, 38, .94); color: #F4F5EE;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(44, 48, 38, .5); }
.lightbox__figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: 4.5rem 4.5rem 2rem; }
.lightbox__img {
  width: auto; height: auto; max-width: min(100%, 1200px);
  max-height: calc(100vh - 10rem); max-height: calc(100dvh - 10rem);
  border-radius: 14px; box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .7);
}
.lightbox__caption { font: 500 1.4rem/1.3 var(--font-serif); text-align: center; }
.lightbox__count { position: absolute; top: 1.4rem; left: 1.5rem; margin: 0; font-size: .9rem; letter-spacing: .12em; opacity: .75; }
.lightbox__btn {
  position: absolute; display: grid; place-items: center; width: 3rem; height: 3rem; padding: 0;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .08);
  color: #fff; cursor: pointer; transition: background-color .2s;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .2); }
.lightbox__btn svg { width: 1.35rem; height: 1.35rem; }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev, .lightbox__next { top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: 1rem; }
.lightbox__next { right: 1rem; }
@media (max-width: 640px) {
  .lightbox__figure { padding: 4.25rem .75rem 6rem; }
  .lightbox__img { max-height: calc(100vh - 13rem); max-height: calc(100dvh - 13rem); }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 1.25rem; transform: none; }
  .lightbox__prev { left: calc(50% - 3.75rem); }
  .lightbox__next { right: calc(50% - 3.75rem); }
}

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