/* ============================================================
   SEASONS — design tokens

   Palette: one neutral base (ink/cream) + one brand accent (gold) +
   four content-driven season accents. The seasons aren't decorative
   choices, they're the product itself (four distinct books), so they
   count as identity, not a "rainbow." Never more than 3 hues are ever
   on screen together — ink/cream/gold everywhere, one season swapped
   in at a time per section.
   ============================================================ */
:root {
  /* base (neutral) */
  --color-bg: #faf7f1;
  --color-bg-alt: #f1ebe0;
  --color-ink: #14110d;
  --color-ink-soft: #3a352c;
  --color-cream: #f6f1e7;
  --color-cream-dim: #cdc4b3;

  /* gold — the one brand accent */
  --color-gold: #ad8532;
  --color-gold-light: #dcb96f;
  --color-gold-dark: #7c5e20;

  /* winter — ice blue */
  --winter: #7fa4b5;
  --winter-deep: #1c333d;

  /* spring — blush pink */
  --spring: #d18b8b;
  --spring-deep: #3a2224;

  /* summer — ocean teal */
  --summer: #3f8f86;
  --summer-deep: #12302c;

  /* fall — amber */
  --fall: #c1782f;
  --fall-deep: #3a2510;

  /* type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* spacing (marketing / spacious scale) */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  /* motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 180ms;
  --dur-med: 420ms;
  --dur-slow: 900ms;

  color-scheme: light;
}

[data-season="winter"] { --season: var(--winter); --season-deep: var(--winter-deep); }
[data-season="spring"] { --season: var(--spring); --season-deep: var(--spring-deep); }
[data-season="summer"] { --season: var(--summer); --season-deep: var(--summer-deep); }
[data-season="fall"]   { --season: var(--fall);   --season-deep: var(--fall-deep); }

/* ============================================================
   Reset & base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
a { color: inherit; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-ink);
  color: var(--color-cream);
  padding: var(--space-sm) var(--space-md);
  z-index: 1000;
}
.skip-link:focus {
  left: var(--space-sm);
  top: var(--space-sm);
}

:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 3px;
}

.visually-hidden-if-empty {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  margin: 0 0 var(--space-sm);
}
.eyebrow--dark { color: var(--color-gold); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.9em 1.6em;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
  min-height: 44px;
  touch-action: manipulation;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--color-gold);
  color: var(--color-ink);
  box-shadow: 0 8px 24px -8px rgba(173, 133, 50, 0.6);
}
.btn--primary:hover { background: var(--color-gold-light); }

.btn--large { padding: 1.1em 2.2em; font-size: 1.05rem; }

.btn--ghost {
  background: transparent;
  color: var(--color-cream);
  border-color: rgba(246, 241, 231, 0.4);
}
.btn--ghost:hover { border-color: var(--color-cream); background: rgba(246, 241, 231, 0.08); }

.btn--season {
  background: var(--season);
  color: var(--color-ink);
}
.btn--season:hover { filter: brightness(1.12); }

/* Cursor-following glow — pointer devices only, see .btn-glow in script.js */
.btn--primary,
.btn--season {
  position: relative;
  overflow: hidden;
}
.btn--primary::before,
.btn--season::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(140px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.4), transparent 65%);
  opacity: 0;
  transition: opacity 300ms var(--ease-out);
  pointer-events: none;
}
.btn--primary:hover::before,
.btn--season:hover::before {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce), (pointer: coarse) {
  .btn--primary::before,
  .btn--season::before {
    display: none;
  }
}

/* ============================================================
   Reveal-on-scroll (respects reduced motion)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Hero sequence — a scroll-pinned walk through all four books.
   The section is 5 viewport-heights tall; the inner sticky panel
   pins in place while scroll position crossfades between an intro
   slide and one slide per season (background photo + title/quote).
   ============================================================ */
.hero-sequence {
  position: relative;
  height: calc(var(--steps, 5) * 100vh);
}
@media (max-width: 640px) {
  /* Phones get a shorter pin: touch scrolling covers distance faster
     than a trackpad or wheel does, so the full 5-screen pace that works
     on desktop just feels like a long slog to swipe through here. Same
     5 slides, ~30% less scroll distance to cycle through them. */
  .hero-sequence { --steps: 3.5; }
}
.hero-sequence__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: var(--color-ink);
  color: var(--color-cream);
}

.hero-wordmark-persistent {
  position: absolute;
  top: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold-light);
  opacity: 0;
}

.hero-sequence__grain {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}
.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-scene {
  position: absolute;
  inset: -2%;
  background-size: cover;
  background-position: center 32%;
  transform-origin: center;
  will-change: transform;
}
.hero-scene--intro {
  background:
    radial-gradient(circle at 20% 20%, var(--winter-deep), transparent 60%),
    radial-gradient(circle at 80% 25%, var(--spring-deep), transparent 60%),
    radial-gradient(circle at 75% 80%, var(--summer-deep), transparent 60%),
    radial-gradient(circle at 20% 80%, var(--fall-deep), transparent 60%);
  filter: blur(40px);
  animation: cycle-drift 36s linear infinite;
}
.hero-slide[data-season] .hero-scene {
  /* Light enough that each season's real color carries the moment —
     the title's own text-shadow does the legibility work instead of a
     heavy scrim flattening the photo. */
  background-image:
    linear-gradient(155deg, rgba(20, 17, 13, 0.28) 0%, rgba(20, 17, 13, 0.46) 100%),
    var(--scene-image);
}
@keyframes cycle-drift {
  0%   { transform: rotate(0deg) scale(1); }
  50%  { transform: rotate(180deg) scale(1.15); }
  100% { transform: rotate(360deg) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scene--intro { animation: none; }
  .hero-scene { transform: none !important; }
  .hero-step { transform: none !important; }
}

.hero-step__wordmark {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 15vw, 8rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 0.95;
  color: var(--color-gold-light);
  margin: 0 0 var(--space-lg);
  text-shadow: 0 2px 40px rgba(220, 185, 111, 0.25);
}

.hero-step {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 46rem;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
  will-change: transform;
}

.wordmark--small {
  font-size: 1.5rem;
  color: var(--color-gold);
  letter-spacing: 0.08em;
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 500;
  font-style: italic;
  margin-bottom: var(--space-md);
}

.hero__sub {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: var(--color-cream-dim);
  max-width: 34rem;
  margin: 0 auto var(--space-xl);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}

.hero-step__title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 17vw, 9.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--color-gold-light);
  margin: 0;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.65), 0 12px 60px rgba(0, 0, 0, 0.5);
}

.hero-progress {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.hero-progress__dot {
  width: 10px; height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(246, 241, 231, 0.35);
  cursor: pointer;
  transition: transform 200ms var(--ease-out), background 200ms var(--ease-out);
}
.hero-progress__dot .dot { width: 100%; height: 100%; }
.hero-progress__dot.is-active { transform: scale(1.5); background: var(--color-cream); }
.hero-progress__dot[data-jump="0"].is-active { background: var(--color-gold-light); }
.hero-progress__dot:not([data-jump="0"]).is-active { background: transparent; }

@media (prefers-reduced-motion: reduce) {
  .hero-sequence { height: auto; }
  .hero-sequence__sticky { position: static; height: auto; }
  .hero-slide {
    position: relative;
    height: 100vh;
    opacity: 1;
    pointer-events: auto;
  }
  .hero-wordmark-persistent { position: static; transform: none; margin: var(--space-lg) 0 0; text-align: center; opacity: 1; }
  .hero-progress { display: none; }
}

.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.dot--winter { background: var(--winter); }
.dot--spring { background: var(--spring); }
.dot--summer { background: var(--summer); }
.dot--fall   { background: var(--fall); }

/* ============================================================
   Premise
   ============================================================ */
.premise {
  padding: var(--space-3xl) var(--space-md);
  text-align: center;
}
.premise__inner { max-width: 48rem; margin: 0 auto; }
.premise__statement {
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  font-weight: 500;
  margin-bottom: var(--space-lg);
}
.premise__body {
  font-size: 1.15rem;
  color: var(--color-ink-soft);
  max-width: 38rem;
  margin: 0 auto var(--space-2xl);
}

.cycle-diagram {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: 1.1rem;
}
.cycle-diagram__item { display: flex; align-items: center; gap: 0.5em; }
.cycle-diagram__dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  opacity: 0.3;
  transform: scale(0.6);
  transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out);
}
.cycle-diagram__arrow { color: var(--color-cream-dim); opacity: 0.7; }
.cycle-diagram__arrow--loop {
  display: inline-block;
  color: var(--color-gold);
  font-size: 1.3rem;
}

/* A light travels the loop once the diagram scrolls into view, then the
   loop mark spins gently forever — the one place motion literally is
   the point (seasons repeat). */
.premise.is-visible .cycle-diagram__dot {
  opacity: 1;
  transform: scale(1);
  transition-delay: calc(var(--i, 0) * 140ms);
}
.premise.is-visible .cycle-diagram__arrow--loop {
  animation: loop-spin 8s linear calc(var(--i, 6) * 140ms + 500ms) infinite;
}
@keyframes loop-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .cycle-diagram__dot { opacity: 1; transform: none; transition: none; }
  .premise.is-visible .cycle-diagram__arrow--loop { animation: none; }
}

/* ============================================================
   Book panels
   ============================================================ */
.books { display: flex; flex-direction: column; }

.panel {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100dvh;
  background: linear-gradient(155deg, var(--color-ink) 0%, var(--season-deep) 100%);
  color: var(--color-cream);
  scroll-margin-top: 0;
}
@media (min-width: 900px) {
  .panel { grid-template-columns: 1fr 1fr; }
  .panel:nth-of-type(even) .panel__media { order: 2; }
}

.panel__media {
  position: relative;
  min-height: 50vh;
  background: linear-gradient(160deg, var(--season) 0%, var(--season-deep) 100%);
  overflow: hidden;
  cursor: pointer;
}
.panel__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.1);
  transition: transform 1400ms var(--ease-out);
}
.panel__media.is-visible .panel__photo {
  transform: scale(1);
}
/* Hovering (or focusing) the cover itself leans in and offers the buy
   hint below — the photo is the product, so it should feel clickable. */
.panel__media.is-visible:hover .panel__photo,
.panel__media.is-visible:focus-visible .panel__photo {
  transform: scale(1.06);
}
.panel__media-hint {
  position: absolute;
  left: 50%;
  bottom: var(--space-lg);
  z-index: 2;
  background: rgba(20, 17, 13, 0.75);
  color: var(--color-cream);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  padding: 0.6em 1.3em;
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, 10px);
  transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out);
  pointer-events: none;
}
.panel__media:hover .panel__media-hint,
.panel__media:focus-visible .panel__media-hint {
  opacity: 1;
  transform: translate(-50%, 0);
}
/* Media settles like a photograph developing; content still fades up */
.panel__media.reveal {
  opacity: 1;
  transform: none;
  transition: none;
}
@media (prefers-reduced-motion: reduce) {
  .panel__photo { transform: none; transition: none; }
  .panel__media.is-visible:hover .panel__photo,
  .panel__media.is-visible:focus-visible .panel__photo { transform: none; }
}
@media (min-width: 900px) {
  .panel__media { min-height: 100%; }
}

.panel__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-2xl) var(--space-md);
  max-width: 34rem;
}
@media (min-width: 900px) {
  .panel__content { padding: var(--space-2xl); }
}

.panel__eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--season);
  margin-bottom: var(--space-sm);
}
.panel__title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}
.panel__subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--color-cream-dim);
  margin-bottom: var(--space-lg);
}
.panel__body {
  margin-bottom: var(--space-lg);
  color: var(--color-cream-dim);
}
.panel__quote {
  margin: 0 0 var(--space-lg);
  padding-left: var(--space-md);
  border-left: 3px solid var(--season);
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  color: var(--color-cream);
}
.panel__format-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-cream-dim);
  margin-bottom: var(--space-xs);
}

.format-select {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}
.format-select__option {
  border: 1px solid rgba(246, 241, 231, 0.35);
  background: transparent;
  color: var(--color-cream);
  border-radius: 999px;
  padding: 0.65em 1.2em;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.format-select__option:hover { border-color: var(--color-cream); }
.format-select__option.is-active {
  background: var(--season);
  border-color: var(--season);
  color: var(--color-ink);
}

.panel__buy {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}
.panel__price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-gold-light);
}
.panel__shipping-note {
  margin-top: var(--space-xs);
  font-size: 0.8rem;
  color: var(--color-cream-dim);
}
.panel__upsell {
  display: inline-block;
  margin-top: var(--space-sm);
  font-size: 0.85rem;
  color: var(--color-cream-dim);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(246, 241, 231, 0.35);
}
.panel__upsell:hover {
  color: var(--color-cream);
  text-decoration-color: var(--color-cream);
}

/* ============================================================
   Format section
   ============================================================ */
.format {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  padding: var(--space-3xl) var(--space-md);
  background: var(--color-bg-alt);
  align-items: center;
}
@media (min-width: 900px) {
  .format { grid-template-columns: 1fr 1fr; padding: var(--space-3xl) var(--space-2xl); }
}
.format h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 500; margin-bottom: var(--space-md); }
.format__body { color: var(--color-ink-soft); margin-bottom: var(--space-lg); font-size: 1.05rem; }
.format__list { display: flex; flex-direction: column; gap: var(--space-sm); }
.format__list li {
  position: relative;
  padding-left: 1.6em;
  color: var(--color-ink-soft);
}
.format__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.5em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-gold);
}

.format__mock { display: flex; justify-content: center; }
.page-mock {
  background: var(--color-cream);
  border: 1px solid var(--color-cream-dim);
  border-radius: 12px;
  padding: var(--space-lg);
  width: min(100%, 22rem);
  box-shadow: 0 24px 48px -24px rgba(20, 17, 13, 0.35);
  transition: transform 320ms var(--ease-out), box-shadow 320ms var(--ease-out);
}
.format__mock:hover .page-mock {
  transform: translateY(-6px) rotate(-0.6deg);
  box-shadow: 0 32px 60px -20px rgba(20, 17, 13, 0.45);
}
@media (prefers-reduced-motion: reduce) {
  .format__mock:hover .page-mock { transform: none; }
}
.page-mock__day {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  margin-bottom: var(--space-sm);
}
.page-mock__rule { height: 1px; background: var(--color-cream-dim); margin-bottom: var(--space-md); }
.page-mock__epigraph {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  margin-bottom: var(--space-lg);
  opacity: 0;
  transition: opacity 500ms var(--ease-out) 450ms;
}
.format__mock.is-visible .page-mock__epigraph {
  opacity: 1;
}
.page-mock__prompt {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
  margin-bottom: var(--space-sm);
}
.page-mock__lines { display: flex; flex-direction: column; gap: var(--space-md); }
.page-mock__lines span {
  display: block;
  height: 1px;
  background: var(--color-cream-dim);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 650ms var(--ease-out);
}
/* Reflection lines rule themselves in, like being drawn onto the page */
.format__mock.is-visible .page-mock__lines span { transform: scaleX(1); }
.format__mock.is-visible .page-mock__lines span:nth-child(1) { transition-delay: 700ms; }
.format__mock.is-visible .page-mock__lines span:nth-child(2) { transition-delay: 850ms; }
.format__mock.is-visible .page-mock__lines span:nth-child(3) { transition-delay: 1000ms; }
@media (prefers-reduced-motion: reduce) {
  .page-mock__epigraph { opacity: 1; transition: none; }
  .page-mock__lines span { transform: none; transition: none; }
}

/* ============================================================
   Gift finder
   ============================================================ */
.gift-finder {
  padding: var(--space-3xl) var(--space-md);
  text-align: center;
  max-width: 44rem;
  margin: 0 auto;
}
.gift-finder h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 500; margin-bottom: var(--space-md); }
.gift-finder__body { color: var(--color-ink-soft); margin-bottom: var(--space-xl); font-size: 1.05rem; }

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  justify-content: center;
  margin-bottom: var(--space-xl);
}
.chip {
  border: 1px solid var(--color-cream-dim);
  background: var(--color-cream);
  border-radius: 999px;
  padding: 0.7em 1.3em;
  font-size: 0.9rem;
  cursor: pointer;
  min-height: 44px;
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.chip:hover { border-color: var(--color-gold); }
.chip[aria-pressed="true"] {
  background: var(--color-ink);
  color: var(--color-cream);
  border-color: var(--color-ink);
}

.gift-result {
  background: linear-gradient(155deg, var(--color-ink) 0%, var(--season-deep, var(--color-ink)) 100%);
  color: var(--color-cream);
  border-radius: 16px;
  padding: var(--space-xl);
  text-align: left;
  opacity: 0;
  transform: scale(0.96) translateY(12px);
  transition: opacity 480ms var(--ease-out), transform 480ms var(--ease-out), background 600ms var(--ease-out);
}
.gift-result.is-open {
  opacity: 1;
  transform: scale(1) translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .gift-result { transition: none; }
}
.gift-result__lead { font-size: 1.4rem; font-family: var(--font-display); margin-bottom: var(--space-sm); }
.gift-result__season { color: var(--color-gold-light); text-transform: capitalize; }
.gift-result__quote {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-cream-dim);
  margin-bottom: var(--space-lg);
}
.gift-result__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }

/* ============================================================
   Testimonials
   ============================================================ */
.testimonials {
  padding: var(--space-3xl) var(--space-md);
  text-align: center;
}
.testimonial-carousel {
  max-width: 68rem;
  margin: var(--space-lg) auto 0;
}
.testimonial-track {
  position: relative;
}
.testimonial-page {
  display: grid;
  gap: var(--space-lg);
  text-align: left;
  transition: opacity 220ms var(--ease-out);
}
.testimonial-page[hidden] { display: none; }
@media (min-width: 800px) {
  .testimonial-page { grid-template-columns: repeat(3, 1fr); }
}
.testimonial-card {
  margin: 0;
  background: var(--color-cream);
  border: 1px solid var(--color-cream-dim);
  border-radius: 12px;
  padding: var(--space-lg);
  box-shadow: 0 0 0 rgba(20, 17, 13, 0);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 550ms var(--ease-out), transform 320ms var(--ease-out), box-shadow 320ms var(--ease-out);
}
.testimonials.is-visible .testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 40px -20px rgba(20, 17, 13, 0.3);
}
@media (prefers-reduced-motion: reduce) {
  .testimonials.is-visible .testimonial-card:hover { transform: none; box-shadow: none; }
}
/* Cards settle one after another instead of all popping at once */
.testimonials.is-visible .testimonial-card { opacity: 1; transform: translateY(0); }
.testimonials.is-visible .testimonial-card:nth-child(1) { transition-delay: 0ms; }
.testimonials.is-visible .testimonial-card:nth-child(2) { transition-delay: 140ms; }
.testimonials.is-visible .testimonial-card:nth-child(3) { transition-delay: 280ms; }
@media (prefers-reduced-motion: reduce) {
  .testimonial-card { opacity: 1; transform: none; transition: none; }
}
.testimonial-card p { font-family: var(--font-display); font-style: italic; margin-bottom: var(--space-md); }
.testimonial-card cite { font-size: 0.85rem; color: var(--color-ink-soft); font-style: normal; }

.testimonial-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}
.testimonial-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-cream-dim);
  background: var(--color-cream);
  color: var(--color-ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background 200ms var(--ease-out), border-color 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.testimonial-arrow:hover {
  border-color: var(--color-gold);
  transform: translateY(-2px);
}
.testimonial-dots {
  display: flex;
  gap: var(--space-xs);
}
.testimonial-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--color-cream-dim);
  cursor: pointer;
  transition: transform 200ms var(--ease-out), background 200ms var(--ease-out);
}
.testimonial-dot:hover { background: var(--color-gold-dark); }
.testimonial-dot.is-active {
  background: var(--color-gold);
  transform: scale(1.4);
}

/* ============================================================
   Author
   ============================================================ */
.author {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-3xl) var(--space-md);
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
}
@media (min-width: 700px) {
  .author { flex-direction: row; text-align: left; max-width: 50rem; }
}
.author__mark {
  flex-shrink: 0;
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--color-ink);
  color: var(--color-gold-light);
  font-family: var(--font-display);
  font-size: 1.9rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
}
.author h2 { font-size: 1.8rem; font-weight: 500; margin-bottom: var(--space-sm); }
.author p { color: var(--color-ink-soft); }

/* ============================================================
   Bundle / close
   ============================================================ */
.bundle {
  position: relative;
  background: var(--color-ink);
  color: var(--color-cream);
  padding: var(--space-3xl) var(--space-md);
  text-align: center;
  overflow: hidden;
}
@media (min-width: 900px) {
  .bundle {
    padding: var(--space-3xl) var(--space-2xl);
    text-align: left;
  }
}
.bundle__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: var(--space-2xl);
  max-width: 72rem;
  margin: 0 auto;
}
@media (min-width: 900px) {
  .bundle__inner {
    /* The photo carries more visual weight than the copy here, so give
       it the larger share of the row instead of splitting 50/50. */
    grid-template-columns: 1.15fr 1fr;
  }
}
.bundle__cycle {
  position: absolute; inset: -25%;
  background: conic-gradient(from 0deg, var(--winter-deep), var(--spring-deep), var(--summer-deep), var(--fall-deep), var(--winter-deep));
  opacity: 0.35;
  filter: blur(60px);
  animation: bundle-spin 46s linear infinite;
}
/* The wheel of seasons turns once more at the close — a quiet callback
   to the hero's motion. */
@keyframes bundle-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .bundle__cycle { animation: none; }
}
.bundle__media {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1400px;
}
.bundle__badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  z-index: 3;
  background: var(--color-gold);
  color: var(--color-ink);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.5em 1em;
  border-radius: 999px;
  box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.5);
}
.bundle__media img {
  width: 100%;
  max-width: 42rem;
  border-radius: 16px;
  cursor: pointer;
  transform: rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)) scale(var(--bundle-scale, 1));
  box-shadow:
    0 40px 80px -24px rgba(0, 0, 0, 0.6),
    var(--shadow-x, 0px) var(--shadow-y, 24px) 40px -12px rgba(0, 0, 0, 0.5);
  transition: transform 500ms var(--ease-out), box-shadow 500ms var(--ease-out);
  will-change: transform;
}
.bundle__media.is-tilting img {
  transition: transform 90ms linear, box-shadow 90ms linear;
}
.bundle__media:hover img {
  --bundle-scale: 1.03;
}
/* A soft light sweep tracks the cursor across the covers, like glare on
   a glossy hardcover — the one place this section invites a touch. */
.bundle__media::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 100%;
  max-width: 42rem;
  aspect-ratio: 1536 / 1024;
  border-radius: 16px;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.25), transparent 60%);
  opacity: 0;
  transition: opacity 300ms var(--ease-out);
  pointer-events: none;
}
.bundle__media:hover::after {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce), (pointer: coarse) {
  .bundle__media img { transform: none !important; transition: none; }
  .bundle__media::after { display: none; }
}
.bundle__content { position: relative; max-width: 32rem; margin: 0 auto; }
@media (min-width: 900px) {
  .bundle__content { margin: 0; }
}
.bundle h2 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 500; margin-bottom: var(--space-md); }
.bundle__body { color: var(--color-cream-dim); margin-bottom: var(--space-xl); font-size: 1.05rem; }

.collection-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}
@media (min-width: 560px) {
  .collection-cards { grid-template-columns: 1fr 1fr; }
}
.collection-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-xs);
  background: rgba(246, 241, 231, 0.06);
  border: 1px solid rgba(246, 241, 231, 0.16);
  border-radius: 16px;
  padding: var(--space-lg) var(--space-md);
}
@media (min-width: 900px) {
  .collection-card { align-items: flex-start; text-align: left; }
}
/* The hardcover card carries the "premium" weight visually (gold
   border + filled badge) without claiming a popularity stat we don't
   have data for. */
.collection-card--premium {
  border-color: var(--color-gold);
  background: rgba(173, 133, 50, 0.1);
}
.collection-card__badge {
  align-self: center;
  background: var(--color-gold);
  color: var(--color-ink);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4em 0.9em;
  border-radius: 999px;
  margin-bottom: var(--space-xs);
}
@media (min-width: 900px) {
  .collection-card__badge { align-self: flex-start; }
}
.collection-card__eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold-light);
}
.collection-card__desc { color: var(--color-cream-dim); font-size: 0.95rem; }
.collection-card__price {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  margin-top: var(--space-xs);
}
.collection-card__price-now { font-family: var(--font-display); font-size: 2rem; color: var(--color-gold-light); }
.collection-card__price-was { text-decoration: line-through; color: var(--color-cream-dim); font-size: 0.95rem; }
.collection-card__save {
  font-weight: 600;
  color: var(--color-cream);
  margin-bottom: var(--space-sm);
}
.collection-card .btn { width: 100%; justify-content: center; }
@media (min-width: 900px) {
  .collection-card .btn { width: auto; }
}

.collection-upgrade-note {
  margin-top: var(--space-lg);
  font-size: 0.9rem;
  color: var(--color-cream-dim);
  text-align: center;
}
@media (min-width: 900px) {
  .collection-upgrade-note { text-align: left; }
}
.collection-upgrade-note strong { color: var(--color-gold-light); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--color-bg-alt);
  padding: var(--space-xl) var(--space-md);
  text-align: center;
  color: var(--color-ink-soft);
  font-size: 0.9rem;
}
.site-footer p { margin: var(--space-sm) 0; }
.site-footer nav { display: flex; gap: var(--space-md); justify-content: center; flex-wrap: wrap; }
.site-footer nav a { text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   Mobile sticky CTA — phone-only, see index.html comment
   ============================================================ */
.mobile-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  background: var(--color-cream);
  border-top: 1px solid var(--color-cream-dim);
  padding: var(--space-sm) var(--space-md);
  padding-bottom: calc(var(--space-sm) + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -12px 30px -12px rgba(20, 17, 13, 0.25);
  transform: translateY(110%);
  transition: transform 280ms var(--ease-out);
}
.mobile-cta.is-visible { transform: translateY(0); }
.mobile-cta__text { display: flex; flex-direction: column; line-height: 1.2; }
.mobile-cta__label { font-size: 0.8rem; font-weight: 600; color: var(--color-ink-soft); }
.mobile-cta__price { font-family: var(--font-display); font-size: 1.2rem; color: var(--color-gold-dark); }
.mobile-cta .btn { flex-shrink: 0; }
@media (min-width: 900px) {
  /* Desktop already keeps a buy path visible within every section it
     scrolls through, so the persistent bar isn't needed there. */
  .mobile-cta { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-cta { transition: none; }
}

/* ============================================================
   Cart badge — fixed, only shown once the cart holds an item
   ============================================================ */
.cart-badge {
  position: fixed;
  top: var(--space-md);
  right: var(--space-md);
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  background: var(--color-ink);
  color: var(--color-cream);
  cursor: pointer;
  box-shadow: 0 12px 30px -10px rgba(20, 17, 13, 0.5);
  transition: transform var(--dur-fast) var(--ease-out);
}
.cart-badge[hidden] { display: none; }
.cart-badge:hover { transform: translateY(-2px); }
.cart-badge__icon { width: 22px; height: 22px; }
.cart-badge__count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--color-gold);
  color: var(--color-ink);
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   Checkout modal (reused for the cart)
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(20, 17, 13, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  z-index: 100;
  opacity: 0;
  transition: opacity 200ms var(--ease-out);
}
.modal-overlay[hidden] { display: none; }
/* Enter is slightly slower than exit — a closing UI should feel snappier
   than one arriving. */
.modal-overlay.is-open {
  opacity: 1;
  transition: opacity 320ms var(--ease-out);
}

.modal {
  background: var(--color-cream);
  border-radius: 16px;
  padding: var(--space-xl);
  max-width: 26rem;
  width: 100%;
  position: relative;
  box-shadow: 0 40px 80px -24px rgba(0,0,0,0.5);
  opacity: 0;
  transform: scale(0.94) translateY(12px);
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.modal-overlay.is-open .modal {
  opacity: 1;
  transform: scale(1) translateY(0);
  transition: opacity 320ms var(--ease-out) 40ms, transform 320ms var(--ease-out) 40ms;
}
@media (prefers-reduced-motion: reduce) {
  .modal-overlay, .modal { transition: none; }
}
.modal__close {
  position: absolute;
  top: var(--space-sm); right: var(--space-sm);
  width: 44px; height: 44px;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-ink-soft);
  border-radius: 50%;
}
.modal__close:hover { background: var(--color-bg-alt); }

.modal h2 { font-size: 1.6rem; font-weight: 500; margin-bottom: var(--space-lg); }

.modal--cart {
  max-width: 30rem;
  max-height: calc(100dvh - var(--space-xl));
  overflow-y: auto;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}
.cart-item {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: var(--space-sm);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-cream-dim);
}
.cart-item__info { display: flex; flex-direction: column; }
.cart-item__name { font-weight: 600; }
.cart-item__format { font-size: 0.8rem; color: var(--color-ink-soft); }
.cart-item__qty {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}
.cart-item__qty-btn {
  width: 28px; height: 28px;
  border: 1px solid var(--color-cream-dim);
  background: var(--color-cream);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}
.cart-item__qty-btn:hover { border-color: var(--color-gold); }
.cart-item__qty-value { min-width: 1.2em; text-align: center; font-weight: 600; }
.cart-item__price { font-weight: 600; white-space: nowrap; }
.cart-item__remove {
  border: none;
  background: transparent;
  color: var(--color-ink-soft);
  font-size: 1.2rem;
  cursor: pointer;
  width: 32px; height: 32px;
  border-radius: 50%;
}
.cart-item__remove:hover { background: var(--color-bg-alt); color: var(--color-ink); }

.cart-empty {
  text-align: center;
  color: var(--color-ink-soft);
  padding: var(--space-lg) 0;
}

.cart-upsell {
  background: var(--color-bg-alt);
  border-radius: 12px;
  padding: var(--space-md);
  margin-bottom: var(--space-md);
}
.cart-upsell[hidden] { display: none; }
.cart-upsell__lead {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  margin-bottom: var(--space-sm);
}
.cart-upsell__options { display: flex; flex-direction: column; gap: var(--space-xs); }
.cart-upsell__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  background: var(--color-cream);
  border: 1px solid var(--color-cream-dim);
  border-radius: 10px;
  padding: var(--space-sm) var(--space-md);
  cursor: pointer;
  font-weight: 600;
  text-align: left;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.cart-upsell__option:hover { border-color: var(--color-gold); }
.cart-upsell__option span:last-child { color: var(--color-gold-dark); }

.cart-summary { margin-bottom: var(--space-lg); }
.cart-summary__row {
  display: flex;
  justify-content: space-between;
  padding: 0.35em 0;
  font-size: 0.95rem;
}
.cart-summary__row--note span:last-child { color: var(--color-ink-soft); font-size: 0.85rem; }
.cart-summary__row--total {
  border-top: 1px solid var(--color-cream-dim);
  margin-top: var(--space-xs);
  padding-top: var(--space-sm);
  font-size: 1.1rem;
  font-weight: 700;
}

.modal .btn { width: 100%; justify-content: center; }
.modal .btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.modal .btn[disabled]:hover { transform: none; }
.modal__note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-ink-soft);
  margin-top: var(--space-sm);
}
.modal__note--warn { color: var(--fall); font-weight: 600; }
.modal__note--policy { margin-top: var(--space-xs); }
.modal__note--policy a { text-decoration: underline; text-underline-offset: 2px; }

/* ============================================================
   Legal pages — privacy.html, terms.html
   ============================================================ */
.legal-header {
  padding: var(--space-md);
  text-align: center;
  border-bottom: 1px solid var(--color-bg-alt);
}
.legal-header a { text-decoration: none; color: var(--color-gold-dark); }
.legal {
  max-width: 44rem;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md) var(--space-2xl);
  color: var(--color-ink-soft);
  line-height: 1.7;
}
.legal h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 500;
  color: var(--color-ink);
  line-height: 1.15;
  margin: var(--space-xs) 0 var(--space-xs);
}
.legal__updated { font-size: 0.9rem; margin-bottom: var(--space-lg); }
.legal h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--color-ink);
  margin: var(--space-lg) 0 var(--space-xs);
  scroll-margin-top: var(--space-md);
}
.legal p, .legal ul { margin-bottom: var(--space-sm); }
.legal ul { padding-left: 1.25rem; list-style: disc; }
.legal li { margin-bottom: 0.35rem; }
.legal a { color: var(--color-gold-dark); text-decoration: underline; text-underline-offset: 3px; }
.legal strong { color: var(--color-ink); }
.legal__callout {
  background: var(--color-cream);
  border-left: 3px solid var(--color-gold);
  border-radius: 0 8px 8px 0;
  padding: var(--space-sm) var(--space-md);
  margin: var(--space-sm) 0 var(--space-md);
}
.legal__callout p:last-child { margin-bottom: 0; }
.author__text p + p { margin-top: var(--space-sm); }
