/* Sassy&Xin marketing site.
   A boutique shop front: the two bodysuits and the shop button share the first screen,
   set on a soft blush-to-lilac wash. Bodoni carries the class, Manrope keeps it plain and
   trustworthy, and the founders' photos carry the homegrown side. */

:root {
  --pearl: #fdf8fa;
  --blush: #f7dbe5;
  --lilac: #e2d8fb;
  --peony: #a23c5d;      /* 4.85:1 on pearl */
  --plum: #2b1236;
  --plum-soft: #5a3a66;  /* 7.6:1 on pearl */
  --line: rgb(43 18 54 / .14);

  --display: "Bodoni Moda", "Didot", Georgia, serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.7rem, 3vw, 2.3rem);
  --step-3: clamp(2.3rem, 4.6vw, 3.8rem);

  --gutter: clamp(1rem, 4vw, 3rem);
  --radius: 1.25rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  color: var(--plum);
  background:
    radial-gradient(60rem 40rem at 0% 0%, var(--blush), transparent 70%),
    radial-gradient(60rem 45rem at 100% 20%, var(--lilac), transparent 70%),
    var(--pearl);
  background-repeat: no-repeat;
  font: 400 var(--step-0)/1.6 var(--body);
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2 { font-family: var(--display); font-weight: 400; line-height: 1.08; margin: 0; }
p { margin: 0 0 1em; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--peony); outline-offset: 3px; border-radius: .4rem; }

/* Header: frosted bar that stays out of the way */
.top {
  position: sticky; top: 0; z-index: 5;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: .8rem var(--gutter);
  background: rgb(253 248 250 / .72);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.top__brand {
  display: flex; align-items: center; gap: .5rem; text-decoration: none;
  font-family: var(--display); font-size: var(--step-1);
}
.top__nav { display: flex; align-items: center; gap: 1.5rem; font-size: var(--step--1); font-weight: 500; }
.top__nav a { text-decoration: none; }
.top__hide:hover { text-decoration: underline; text-underline-offset: .3em; }
.top__shop { border: 1px solid var(--plum); border-radius: 999px; padding: .35rem 1rem; }
.top__shop:hover { background: var(--plum); color: var(--pearl); }

/* Button */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  padding: .9rem 1.8rem; border-radius: 999px;
  background: var(--plum); color: var(--pearl);
  transition: background-color .2s;
}
.btn:hover { background: var(--peony); }
.btn--line { background: transparent; color: var(--plum); border: 1px solid var(--plum); margin-top: 1.5rem; }
.btn--line:hover { background: var(--plum); color: var(--pearl); }

/* Hero: intro and both products on the first screen */
.hero {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(1.5rem, 4vw, 4rem); align-items: center;
  max-width: 80rem; margin: 0 auto;
  padding: clamp(1.5rem, 4vh, 3rem) var(--gutter) clamp(2.5rem, 6vh, 4.5rem);
}
.hero h1 { font-size: var(--step-3); margin-bottom: 1.1rem; }
.hero h1 em { display: block; color: var(--peony); }
.hero__sub { color: var(--plum-soft); max-width: 40ch; margin-bottom: 1.6rem; }

.hero__products {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(.75rem, 2vw, 1.5rem);
}
.card a { display: grid; gap: .15rem; text-decoration: none; }
.card__photo {
  display: block; overflow: hidden; border-radius: var(--radius); margin-bottom: .7rem;
  background: var(--blush);
  box-shadow: 0 1.25rem 2.5rem -1.5rem rgb(43 18 54 / .4);
}
.card--xin .card__photo { background: var(--lilac); }
.card img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 25%;
  max-height: 60svh;
  transition: transform .4s ease;
}
.card a:hover img { transform: scale(1.03); }
.card__name { font-family: var(--display); font-size: var(--step-1); line-height: 1.2; }
.card--xin .card__name { font-style: italic; }
.card__note { font-size: var(--step--1); color: var(--plum-soft); }
.card__price { font-weight: 700; margin-top: .2rem; }

/* Ticker on the fold between the products and the story */
.ticker {
  overflow: hidden; background: var(--plum); color: #cdb9f7;
  border-block: 1px solid var(--plum);
}
.ticker__track { display: flex; width: max-content; animation: ticker 32s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__run { display: flex; list-style: none; margin: 0; padding: 0; }
.ticker__run li {
  display: flex; align-items: center; white-space: nowrap;
  padding: .85rem 0; font-size: var(--step--1); font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
}
.ticker__run li::after {
  content: ""; width: .75rem; height: .75rem; margin: 0 2.75rem; flex: none;
  background: #f4a3c3;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* Story */
.story {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 5rem); align-items: center;
  max-width: 76rem; margin: 0 auto; padding: clamp(3rem, 8vw, 6rem) var(--gutter);

}
.story__photos { margin: 0; }
.story__main { width: 88%; border-radius: var(--radius); }
.story__text { max-width: 32rem; }
.story h2 { font-size: var(--step-2); margin-bottom: 1.25rem; }
.story strong { font-family: var(--display); font-weight: 500; font-size: 1.08em; }
.story__close, .page-close { font-family: var(--display); font-style: italic; font-size: var(--step-1); margin-top: 1.25rem; }
.story__sign { font-family: var(--display); font-style: italic; font-size: var(--step-1); color: var(--peony); margin: 1.5rem 0 0; }

/* Details */
.details {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start;
  max-width: 76rem; margin: 0 auto; padding: clamp(3rem, 7vw, 5rem) var(--gutter);
  border-top: 1px solid var(--line);
}
.details h2 { font-size: var(--step-1); margin-bottom: .9rem; }
.specs { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.specs li { padding-left: 1.2rem; position: relative; }
.specs li::before {
  content: ""; position: absolute; left: 0; top: .6em; width: .45rem; height: .45rem; border-radius: 50%;
  background: var(--peony);
}
.details__backs { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.details__backs figure { margin: 0; }
.details__backs img { border-radius: var(--radius); aspect-ratio: 2 / 3; object-fit: cover; }

/* Footer */
.foot {
  display: flex; flex-direction: column; align-items: center; gap: 1.25rem;
  padding: 2.5rem var(--gutter) 4rem; border-top: 1px solid var(--line);
}
.foot img { width: min(18rem, 70vw); }

@media (max-width: 820px) {
  .top__hide { display: none; }
  .hero { grid-template-columns: 1fr; gap: 1.5rem; padding-top: 1.25rem; }
  .hero h1 { font-size: 2.1rem; margin-bottom: .6rem; }
  .hero__sub { font-size: var(--step--1); margin-bottom: 1rem; }
  .hero__intro .btn { padding: .8rem 1.5rem; }
  .card img { max-height: none; }
  .card__photo { margin-bottom: .5rem; border-radius: 1rem; }
  .card__name { font-size: 1rem; }
  .card__note { font-size: .8rem; }
  .story { grid-template-columns: 1fr; }
  .story__main { width: 100%; }

  .details { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card img { transition: none; }
  .ticker__track { animation: none; }
  .card a:hover img { transform: none; }
}

/* ---------- Our story page ---------- */
.story--page { padding-top: clamp(2rem, 5vw, 4rem); border-top: 0; }
.page-title { font-size: var(--step-3); margin-bottom: 1rem; }
.page-lede { font-family: var(--display); font-style: italic; font-size: var(--step-1); color: var(--peony); }
.page-close { margin-top: 1rem; }

.sides {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 3vw, 2.5rem);
  max-width: 76rem; margin: 0 auto; padding: 0 var(--gutter) clamp(3rem, 7vw, 5rem);
}
.side { border-radius: var(--radius); overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.side--sassy { background: var(--blush); }
.side--xin { background: var(--plum); color: var(--pearl); }
.side img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 25%; }
.side__text { padding: clamp(1.25rem, 3vw, 2.25rem); }
.side h2 { font-size: var(--step-2); margin-bottom: .5rem; }
.side__lede { font-family: var(--display); font-style: italic; font-size: var(--step-1); }
.side--sassy .side__lede { color: var(--peony); }
.side--xin .side__lede { color: #cdb9f7; }
.side--xin .btn--line { color: var(--pearl); border-color: var(--pearl); }
.side--xin .btn--line:hover { background: var(--pearl); color: var(--plum); }

.together {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: center;
  max-width: 76rem; margin: 0 auto; padding: clamp(3rem, 7vw, 5rem) var(--gutter);
  border-top: 1px solid var(--line);
}
.together__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.together__photos img { border-radius: var(--radius); aspect-ratio: 2 / 3; object-fit: cover; }
.together__photos img:last-child { margin-top: 3rem; }
.together h2 { font-size: var(--step-2); margin-bottom: 1rem; }
.together h2 em { color: var(--peony); }
.together .btn { margin-top: 1rem; }

/* ---------- Product pages ---------- */
.product {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start;
  max-width: 80rem; margin: 0 auto; padding: clamp(1.5rem, 4vw, 3rem) var(--gutter) clamp(3rem, 7vw, 5rem);
}
.product__gallery { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.product__gallery img { border-radius: var(--radius); aspect-ratio: 2 / 3; object-fit: cover; }
.product__gallery img:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 5; object-position: center 25%; }
.product__info { position: sticky; top: 5.5rem; }
.product__back { font-size: var(--step--1); margin-bottom: 1rem; }
.product__back a { color: var(--plum-soft); }
.product h1 { font-size: var(--step-2); margin-bottom: .4rem; }
.product--xin h1 em { font-style: italic; }
.product__price { font-weight: 700; font-size: var(--step-1); margin-bottom: 1rem; }
.product--sassy .side__lede { color: var(--peony); }
.product--xin .side__lede { color: #7b4fc9; }
.product .btn { margin: .25rem 0 1.5rem; }
.product h2 { font-size: var(--step-1); margin: 1.5rem 0 .6rem; }

.also { max-width: 80rem; margin: 0 auto; padding: 0 var(--gutter) clamp(3rem, 7vw, 5rem); }
.also__card {
  display: flex; align-items: center; gap: 1.25rem; text-decoration: none;
  max-width: 26rem; padding: .6rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: rgb(255 255 255 / .5);
}
.also__card img { width: 5.5rem; aspect-ratio: 4 / 5; object-fit: cover; border-radius: calc(var(--radius) - .5rem); }
.also__card span { display: grid; font-size: var(--step--1); color: var(--plum-soft); }
.also__card strong { font-family: var(--display); font-weight: 400; font-size: var(--step-1); color: var(--plum); }

@media (max-width: 820px) {
  .sides, .together, .product { grid-template-columns: 1fr; }
  .product__info { position: static; }
  .product { gap: 1.25rem; padding-top: 1rem; }
  .product__gallery {
    display: flex; gap: .6rem; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); scrollbar-width: none;
  }
  .product__gallery img, .product__gallery img:first-child {
    flex: 0 0 72%; aspect-ratio: 4 / 5; scroll-snap-align: start;
  }
  .product__back { margin-bottom: .5rem; }
  .together__photos img:last-child { margin-top: 1.5rem; }
}
