/* ==========================================================================
   TinyTeesTheory — mobile-first, no build step.
   Palette and type lifted directly from the design canvas.
   ========================================================================== */

:root {
  --cream:        #FCF2E0;
  --card:         #FFFDF7;
  --line:         #E4D6BC;
  --teal:         #2E7181;
  --sky:          #9FC5CE;
  --coral:        #E8664A;
  --coral-dark:   #D4553B;
  --mustard:      #E9A82E;
  --ink:          #2B2B2B;
  --on-coral:     #FFF8F0;

  --font-display: 'Baloo 2', 'Trebuchet MS', system-ui, sans-serif;
  --font-body:    'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap: 1120px;
  --tint: #F1E7D2;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

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

h1, h2, h3, p { margin: 0; }

a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--coral); }

:focus-visible {
  outline: 3px solid var(--mustard);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 20;
  padding: 12px 20px; border-radius: 99px;
  background: var(--coral); color: var(--on-coral);
  font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none;
  transition: top .2s ease;
}
.skip-link:focus-visible { top: 12px; color: var(--on-coral); }

.eyebrow {
  font-size: 11px; font-weight: 800; letter-spacing: .24em;
  text-transform: uppercase; color: var(--teal);
}


/* ── Banner ──────────────────────────────────────────────────────────── */

.banner {
  position: relative;
  background: var(--teal);
}
.banner__img {
  width: 100%; height: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}
/* Shown only if the banner image is missing or fails to load. */
.banner__wordmark {
  position: absolute; inset: 0;
  display: grid; place-content: center;
  padding: 24px; text-align: center;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(26px, 7vw, 54px); line-height: 1.1;
  color: var(--cream);
}
.banner picture { position: relative; }


/* ── Ticker ──────────────────────────────────────────────────────────── */

.ticker {
  display: flex; flex-wrap: wrap; gap: 10px 24px;
  align-items: center; justify-content: center;
  padding: 12px 20px;
  background: var(--teal); color: var(--cream);
  font-size: 11px; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; text-align: center;
}
.ticker__dot { opacity: .5; }
.ticker__link {
  color: var(--mustard); text-decoration: none;
  border-bottom: 1.5px solid var(--mustard);
  padding-bottom: 2px; letter-spacing: .16em;
  transition: color .2s ease, border-color .2s ease;
}
.ticker__link:hover { color: var(--cream); border-bottom-color: var(--cream); }


/* ── Hero ────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  max-width: 760px; margin: 0 auto;
  padding: 56px 24px 48px;
  text-align: center;
  animation: ttFade .6s ease both;
}
.hero__title {
  margin: 18px 0 0;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(30px, 5.6vw, 50px); line-height: 1.12;
  text-wrap: balance;
}
.hero__lede {
  margin: 22px auto 0; max-width: 540px;
  font-size: 17px; line-height: 1.65;
  color: var(--ink); opacity: .82; text-wrap: pretty;
}
.hero__spark { position: absolute; pointer-events: none; }
.hero__spark--lg { left: 2%; top: 20px; width: 120px; height: 120px; opacity: .12; color: var(--teal); }
.hero__spark--sm { right: 5%; bottom: 18px; width: 64px; height: 64px; opacity: .14; color: var(--mustard); }
.hero__dot { position: absolute; border-radius: 99px; }
.hero__dot--blue  { right: 16%; top: 44px;   width: 9px;  height: 9px;  background: var(--sky);   opacity: .5; }
.hero__dot--coral { left: 20%;  bottom: 36px; width: 13px; height: 13px; background: var(--coral); opacity: .25; }

@media (max-width: 640px) {
  .hero__spark--lg { width: 76px; height: 76px; left: -8px; }
  .hero__spark--sm { width: 44px; height: 44px; right: -4px; }
}

@keyframes ttFade {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}


/* ── Catalog ─────────────────────────────────────────────────────────── */

.catalog {
  max-width: var(--wrap); margin: 0 auto;
  padding: 0 20px 72px;
  animation: ttFade .6s ease .08s both;
}

.chips {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center; margin: 0 0 32px;
}
.chip {
  min-height: 44px; padding: 0 22px; border-radius: 99px;
  font-family: var(--font-body);
  font-size: 12px; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; cursor: pointer;
  background: var(--cream); color: var(--teal);
  border: 1.5px solid var(--teal);
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.chip:hover { background: var(--sky); }
.chip[aria-pressed="true"] {
  background: var(--coral); color: var(--on-coral); border-color: var(--coral);
}

.notice {
  max-width: 620px; margin: 0 auto 28px;
  padding: 16px 20px; border-radius: 16px;
  border: 1.5px dashed var(--sky); background: var(--card);
  font-size: 15px; line-height: 1.6; text-align: center; text-wrap: pretty;
}

.grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(min(288px, 100%), 1fr));
}
@media (min-width: 700px) { .grid { gap: 28px; } }


/* ── Product card ────────────────────────────────────────────────────── */

.card { display: flex; }
.card__link {
  display: flex; flex-direction: column; flex: 1;
  background: var(--card);
  border: 1.5px solid var(--line); border-radius: 20px;
  overflow: hidden; text-decoration: none; color: inherit;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card__link:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 28px rgba(46, 113, 129, .14);
  border-color: var(--sky);
  color: inherit;
}

.media {
  position: relative;
  aspect-ratio: 4 / 5;
  padding: 22px;
  background: var(--tint);
}
.media img {
  width: 100%; height: 100%;
  object-fit: contain; border-radius: 12px;
  opacity: 0; transition: opacity .3s ease;
}
.media img.is-loaded { opacity: 1; }

.stamp {
  position: absolute; top: 14px; left: 14px;
  display: grid; place-content: center;
  width: 66px; height: 66px;
  border: 1.5px dashed var(--teal); border-radius: 99px;
  background: var(--cream); color: var(--teal);
  font-size: 8.5px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; text-align: center; line-height: 1.35;
  pointer-events: none;
}

.badge {
  position: absolute; top: 16px; right: 14px;
  padding: 6px 12px; border-radius: 99px;
  background: var(--mustard); color: var(--ink);
  font-size: 9.5px; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; pointer-events: none;
}

.card__body {
  display: flex; flex-direction: column; gap: 8px; flex: 1;
  padding: 20px 22px 24px;
}
.card__collection {
  font-size: 10px; font-weight: 800; letter-spacing: .2em;
  text-transform: uppercase; color: var(--teal); opacity: .75;
}
.card__name {
  font-family: var(--font-display); font-weight: 700;
  font-size: 24px; line-height: 1.2;
}
.card__hook {
  font-size: 15px; line-height: 1.55; flex: 1;
  color: var(--ink); opacity: .78; text-wrap: pretty;
}
.card__foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; margin-top: 8px;
}
.price {
  font-family: var(--font-display); font-weight: 700;
  font-size: 20px; color: var(--teal);
}
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 26px; border-radius: 99px;
  background: var(--coral); color: var(--on-coral);
  font-size: 12px; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase;
}


/* ── Empty / error states ────────────────────────────────────────────── */

.empty { padding: 60px 20px; text-align: center; }
.empty__mark {
  display: inline-grid; place-content: center;
  width: 88px; height: 88px; margin-bottom: 22px;
  border: 1.5px dashed var(--teal); border-radius: 99px;
  color: var(--teal);
  font-family: var(--font-display); font-size: 34px; font-weight: 800;
}
.empty__title { font-family: var(--font-display); font-size: 24px; font-weight: 700; text-wrap: balance; }
.empty__note { margin-top: 10px; font-size: 15px; opacity: .72; }
.empty .btn { margin-top: 26px; }


/* ── Perks ───────────────────────────────────────────────────────────── */

.perks {
  background: var(--card);
  border-top: 1.5px solid var(--line);
  border-bottom: 1.5px solid var(--line);
  padding: 48px 0;
}
.perks__heading { margin: 0 0 26px; text-align: center; }
.perks__rail {
  display: flex; gap: 18px; margin: 0; padding: 0 20px 10px;
  list-style: none; overflow-x: auto;
  scroll-snap-type: x mandatory;
  justify-content: safe center;
}
.perk {
  flex: 0 0 236px; scroll-snap-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 22px 16px; text-align: center;
  background: var(--cream);
  border: 1.5px solid var(--line); border-radius: 18px;
}
.perk__icon {
  display: grid; place-content: center;
  width: 58px; height: 58px; border-radius: 99px; background: var(--tint);
}
.perk__icon svg { width: 28px; height: 28px; color: var(--teal); }
.perk__label {
  font-size: 11px; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; color: var(--teal);
}
.perk__note { font-size: 14px; line-height: 1.5; opacity: .78; }

[data-scroll]::-webkit-scrollbar { height: 6px; }
[data-scroll]::-webkit-scrollbar-thumb { background: var(--sky); border-radius: 99px; }


/* ── Detail view ─────────────────────────────────────────────────────── */

.detail__nav { max-width: var(--wrap); margin: 0 auto; padding: 24px 20px 0; }
.back {
  display: inline-flex; align-items: center;
  min-height: 44px;
  font-size: 12px; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; color: var(--teal);
  text-decoration: none; border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.back:hover { color: var(--coral); border-bottom-color: var(--coral); }

.detail {
  max-width: var(--wrap); margin: 0 auto;
  padding: 22px 20px 64px;
  display: grid; gap: 36px;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  align-items: start;
  animation: ttFade .5s ease both;
}

.detail__stage {
  position: relative;
  aspect-ratio: 3 / 4;
  width: 100%; max-width: 450px;
  padding: 26px; border-radius: 22px;
  background: var(--tint);
}
.detail__stage img {
  width: 100%; height: 100%;
  object-fit: contain; border-radius: 14px;
  opacity: 0; transition: opacity .3s ease;
}
.detail__stage img.is-loaded { opacity: 1; }

.thumbs { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.thumb {
  width: 70px; height: 93px; padding: 7px;
  border-radius: 12px; cursor: pointer;
  background: var(--tint); border: 2px solid transparent;
  transition: border-color .18s ease;
}
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb[aria-pressed="true"] { border-color: var(--coral); }

.detail__meta {
  margin: 0 0 12px;
  font-size: 11px; font-weight: 800; letter-spacing: .2em;
  text-transform: uppercase; color: var(--teal);
}
.detail__title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(32px, 6vw, 46px); line-height: 1.1;
  text-wrap: balance;
}
.detail__title:focus { outline: none; }
.detail__price {
  margin: 14px 0 0;
  font-family: var(--font-display); font-weight: 700;
  font-size: 26px; color: var(--coral);
}
.detail__hook {
  margin: 22px 0 0;
  font-size: 18px; line-height: 1.55; font-weight: 600; text-wrap: pretty;
}

.abstract {
  margin: 22px 0 0; padding: 22px 24px;
  border: 1.5px dashed var(--sky); border-radius: 16px;
  background: var(--card);
}
.abstract__label {
  margin: 0 0 10px;
  font-size: 10px; font-weight: 800; letter-spacing: .2em;
  text-transform: uppercase; color: var(--teal);
}
.abstract__text { font-size: 16px; line-height: 1.7; opacity: .86; text-wrap: pretty; }

.specs { display: flex; flex-wrap: wrap; gap: 32px; margin: 28px 0 0; }
.specs__label {
  margin: 0 0 10px;
  font-size: 10px; font-weight: 800; letter-spacing: .2em;
  text-transform: uppercase; color: var(--teal);
}
.specs__row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.size {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 46px; height: 40px; padding: 0 8px;
  border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--card);
  font-size: 13px; font-weight: 800; letter-spacing: .06em;
}
.swatch {
  width: 30px; height: 30px; border-radius: 99px;
  display: inline-block; border: 1.5px solid rgba(43, 43, 43, .14);
}
.swatch--named {
  width: auto; height: 30px; border-radius: 99px; padding: 0 14px;
  display: inline-flex; align-items: center;
  border: 1.5px solid var(--line); background: var(--card);
  font-size: 12px; font-weight: 700;
}
.detail__fineprint { margin: 14px 0 0; font-size: 13.5px; opacity: .7; }
.detail__reassure { margin: 12px 0 0; text-align: center; font-size: 12.5px; opacity: .66; }

.related { max-width: var(--wrap); margin: 0 auto; padding: 0 20px 72px; }
.related__heading { margin: 0 0 24px; }
.related .grid { grid-template-columns: repeat(auto-fill, minmax(min(272px, 100%), 1fr)); }


/* ── Buttons ─────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 30px; border-radius: 99px;
  font-size: 13px; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background .2s ease, transform .2s ease, color .2s ease;
}
.btn--coral { background: var(--coral); color: var(--on-coral); }
.btn--coral:hover { background: var(--coral-dark); color: var(--on-coral); transform: translateY(-2px); }
.btn--ghost { border-color: var(--sky); color: var(--cream); }
.btn--ghost:hover { background: rgba(159, 197, 206, .18); color: var(--cream); }
.btn--buy { display: flex; width: 100%; min-height: 58px; margin: 26px 0 0; font-size: 14px; }


/* ── Footer ──────────────────────────────────────────────────────────── */

.footer { background: var(--teal); color: var(--cream); padding: 48px 20px 36px; }
.footer a { color: var(--cream); }
.footer__top {
  max-width: var(--wrap); margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 36px;
  justify-content: space-between; align-items: flex-start;
}
.footer__brand { max-width: 420px; }
.footer__name { font-family: var(--font-display); font-weight: 800; font-size: 28px; line-height: 1.15; }
.footer__blurb { margin-top: 10px; font-size: 15px; line-height: 1.6; opacity: .85; text-wrap: pretty; }
.footer__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.footer__meta { display: flex; flex-direction: column; gap: 16px; max-width: 320px; }
.footer__label {
  margin-bottom: 6px;
  font-size: 10px; font-weight: 800; letter-spacing: .2em;
  text-transform: uppercase; color: var(--sky);
}
.footer__text { font-size: 14.5px; line-height: 1.6; opacity: .88; }
.footer__bottom {
  max-width: var(--wrap); margin: 32px auto 0; padding-top: 22px;
  border-top: 1px solid rgba(159, 197, 206, .35);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: 12.5px; opacity: .7;
}


/* ── Wider screens ───────────────────────────────────────────────────── */

@media (min-width: 641px) {
  .banner__img { aspect-ratio: 4 / 1; }
  .hero { padding: 84px 24px 64px; }
  .catalog { padding-bottom: 80px; }
  .chips { margin-bottom: 40px; }
  .detail { gap: 44px; padding: 26px 20px 72px; }
  .perks { padding: 56px 0; }
  .footer { padding: 56px 20px 40px; }
}


/* ── Motion preferences ──────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
