/*
 * jan — stylesheet
 * the quiet system. cream + ink + a soft sage accent used sparingly.
 * no bricolage grotesque. no neon green. no offset shadows. no rotation.
 */

:root {
  /* ground */
  --cream: #F7F1E5;
  --paper: #FBF7EE;
  --paper-soft: #F2EBDA;

  /* text */
  --ink: #1B1714;
  --ink-soft: #5C544A;
  --ink-faint: #948B7E;

  /* rules + accents */
  --rule: #E5DDCC;
  --rule-strong: #C8BEA9;
  --accent: #6F8266;          /* sage — used like a serif italic, not a highlight */
  --accent-warm: #B89169;     /* muted tan — the canonical tee color */
  --rose: #D49890;            /* the cheek color, used for warmth */

  /* type */
  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* metrics */
  --measure: 38rem;           /* ~640px reading width */
  --container: 68rem;         /* ~1088px wide layouts */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "kern", "liga", "calt";
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── nav ──────────────────────────────────────────────────────────── */

nav.site {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 241, 229, 0.85);
  backdrop-filter: saturate(120%) blur(10px);
  -webkit-backdrop-filter: saturate(120%) blur(10px);
  border-bottom: 1px solid var(--rule);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-size: 14px;
  color: var(--ink-soft);
  transition: color 0.15s ease;
  letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.cart-icon {
  position: relative;
  color: var(--ink-soft);
  padding: 6px;
  display: inline-flex;
  align-items: center;
  transition: color 0.15s ease;
}
.cart-icon:hover { color: var(--ink); }
.cart-count {
  position: absolute;
  top: -2px; right: -4px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 999px;
  min-width: 18px; height: 18px;
  font-size: 10px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-inner { padding: 16px 20px; }
}

/* ── buttons ──────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
  letter-spacing: 0.005em;
}
.btn-primary {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}
.btn-primary:hover { background: #2a2520; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-quiet {
  background: transparent;
  color: var(--ink-soft);
  border-color: var(--rule-strong);
  padding: 10px 18px;
  font-size: 14px;
}
.btn-quiet:hover { color: var(--ink); border-color: var(--ink); }
.btn-block { display: flex; width: 100%; justify-content: center; }

.btn-arrow { font-weight: 400; }
.btn-arrow .arrow { transition: transform 0.2s ease; }
.btn-arrow:hover .arrow { transform: translateX(3px); }

/* ── layout primitives ───────────────────────────────────────────── */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}
@media (max-width: 600px) {
  .container { padding: 0 18px; }
}
.measure {
  max-width: var(--measure);
  margin-left: auto;
  margin-right: auto;
}

.rule {
  height: 1px;
  background: var(--rule);
  border: none;
  margin: 0;
}

/* ── home: hero ──────────────────────────────────────────────────── */

.hero {
  padding: 96px 0 80px;
  text-align: center;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(72px, 14vw, 140px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-bottom: 24px;
}
.hero .tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 2.6vw, 26px);
  color: var(--ink);
  margin-bottom: 18px;
  letter-spacing: -0.005em;
}
.hero .three-details {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 40px;
  letter-spacing: 0.005em;
}
.hero .three-details .dot {
  display: inline-block;
  margin: 0 8px;
  color: var(--ink-faint);
}
.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── home: what this is ──────────────────────────────────────────── */

.what {
  padding: 80px 0 96px;
  border-top: 1px solid var(--rule);
}
.what .prose {
  text-align: center;
}
.what p {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(22px, 2.8vw, 28px);
  line-height: 1.45;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.what p + p { margin-top: 18px; }
.what p .soft { color: var(--ink-soft); }

/* ── home: the packs ─────────────────────────────────────────────── */

.packs {
  padding: 96px 0 120px;
  background: var(--paper);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.section-head {
  text-align: center;
  margin-bottom: 64px;
}
.section-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 12px;
  display: block;
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}
.section-head h2 em {
  font-style: italic;
  color: var(--ink-soft);
}
.section-head .sub {
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 30rem;
  margin: 0 auto;
}

.pack-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
@media (max-width: 760px) {
  .pack-list { grid-template-columns: 1fr; }
}

/* Live packs span the full row, with the sticker grid taking the spotlight.
   Cover sits left, info + read-cue sit right. Coming-soon packs stay 2-per-row. */
.pack-card.is-live {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  grid-template-areas:
    "cover info"
    "cover foot";
  gap: 16px 44px;
  padding: 36px;
  align-items: stretch;
}
.pack-card.is-live > .cover {
  grid-area: cover;
  aspect-ratio: 1 / 1;
  padding: 14px;
  gap: 8px;
}
.pack-card.is-live > div:not(.cover):not(.pack-foot) {
  grid-area: info;
  align-self: center;
}
.pack-card.is-live > .pack-foot {
  grid-area: foot;
  align-self: end;
  border-top: none;
  padding-top: 0;
}
.pack-card.is-live h3 {
  font-size: 38px;
  line-height: 1.05;
  margin-top: 4px;
  margin-bottom: 10px;
}
.pack-card.is-live .descriptor {
  font-size: 19px;
  line-height: 1.55;
}

@media (max-width: 760px) {
  .pack-card.is-live {
    grid-template-columns: 1fr;
    grid-template-areas: "cover" "info" "foot";
    padding: 24px;
    gap: 18px;
  }
  .pack-card.is-live > .pack-foot {
    border-top: 1px solid var(--rule);
    padding-top: 18px;
    align-self: stretch;
  }
  .pack-card.is-live h3 { font-size: 28px; }
  .pack-card.is-live .descriptor { font-size: 17px; }
}

.pack-card {
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.pack-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}
.pack-card.is-live { /* same as default — placeholder if we ever style live diff */ }
.pack-card.is-soon {
  opacity: 0.7;
}
.pack-card.is-soon:hover {
  border-color: var(--rule-strong);
  transform: none;
}

.pack-card .cover {
  aspect-ratio: 4 / 3;
  background: var(--paper-soft);
  border-radius: 8px;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 4px;
  padding: 10px;
  position: relative;
}
.pack-card .cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.pack-card .cover.single {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.pack-card .cover.single img {
  max-width: 80%;
  max-height: 100%;
}
.pack-card .cover.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--paper-soft) 0%, var(--cream) 100%);
}
.pack-card .cover.placeholder .placeholder-mark {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink-faint);
  font-size: 17px;
  letter-spacing: -0.005em;
}

.pack-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pack-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.pack-card .descriptor {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.pack-foot {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}
.pack-card.is-soon .pack-foot {
  justify-content: flex-start;
}
.pack-price {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.pack-price .small {
  font-size: 13px;
  color: var(--ink-faint);
  margin-left: 4px;
  font-weight: 400;
}
.pack-link {
  font-size: 14px;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 1px;
}
.pack-link:hover { color: var(--accent); border-color: var(--accent); }
.pack-soon-tag {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 500;
}

.bundle-row {
  margin-top: 28px;
  padding: 22px 28px;
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.bundle-row .bundle-text {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 19px;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.bundle-row .bundle-text em {
  font-style: italic;
  color: var(--ink-soft);
}

/* ── side-quest detail page (sq-NN.html) ─────────────────────────── */

/* SQ pages use the same .moment / .sticker-frame layout as arc packs,
   but the body is a one-line italic caption (sq-caption) instead of
   80–120 words of prose. Slightly tighter vertical rhythm. */

.sq-grid .moment {
  margin-bottom: 56px;
}

.sq-moment .sq-caption {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.45;
  color: var(--ink);
  letter-spacing: -0.005em;
  text-align: center;
  max-width: 30rem;
  margin: 0 auto;
}

@media (max-width: 760px) {
  .sq-grid .moment { margin-bottom: 44px; }
  .sq-moment .sq-caption { font-size: 19px; }
}

/* ── home: side quests shelf ─────────────────────────────────────── */

.side-quests {
  padding: 96px 0 72px;
  /* no special bg — sits on the page cream between .packs (paper) and .sunday */
}

/* Side-quest live cards stay in the responsive auto-fit grid — they don't
   span the full row like arc live cards do. Reset the .is-live overrides
   that .packs uses. */
.side-quests .pack-card.is-live {
  grid-column: auto;
  display: flex;
  flex-direction: column;
  grid-template-columns: none;
  grid-template-areas: none;
  gap: 20px;
  padding: 28px 28px 24px;
  align-items: stretch;
}
.side-quests .pack-card.is-live > .cover {
  grid-area: auto;
  aspect-ratio: 4 / 3;
  padding: 10px;
  gap: 4px;
}
.side-quests .pack-card.is-live > div:not(.cover):not(.pack-foot) {
  grid-area: auto;
  align-self: auto;
}
.side-quests .pack-card.is-live > .pack-foot {
  grid-area: auto;
  align-self: auto;
  border-top: 1px solid var(--rule);
  padding-top: 20px;
}
.side-quests .pack-card.is-live h3 {
  font-size: 26px;
  margin-top: 0;
  margin-bottom: 6px;
}
.side-quests .pack-card.is-live .descriptor {
  font-size: 15px;
  line-height: 1.55;
}
.side-quests .section-head {
  margin-bottom: 48px;
}
.side-quests .section-head h2 em {
  font-style: italic;
  color: var(--accent);
}
.side-quests .pack-list {
  /* responsive: fit as many cards as can sit at min 320px each, fallback to 1-up on narrow */
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
@media (max-width: 760px) {
  .side-quests .pack-list { grid-template-columns: 1fr; }
}

/* ── home: closing footer line ───────────────────────────────────── */

.sunday {
  padding: 96px 0 64px;
  text-align: center;
}
.sunday p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(22px, 3vw, 28px);
  color: var(--ink);
  letter-spacing: -0.005em;
}
.sunday p .by {
  display: block;
  margin-top: 14px;
  font-style: normal;
  font-size: 13px;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── about / prose pages ────────────────────────────────────────── */

.page-head {
  padding: 80px 0 24px;
  text-align: center;
}
.page-head .eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 14px;
  display: block;
}
.page-head h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(56px, 10vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.page-head h1 em { font-style: italic; color: var(--ink-soft); }

.page-body {
  padding: 24px 0 96px;
}
.page-body p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 22px;
}
.page-body p.lead {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 22px;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 28px;
  letter-spacing: -0.005em;
}
.page-body h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 32px;
  letter-spacing: -0.02em;
  margin: 56px 0 16px;
  color: var(--ink);
}
.page-body em { color: var(--ink-soft); font-style: italic; }
.page-body .signoff {
  margin-top: 56px;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink-soft);
  font-size: 17px;
}
.page-body .disclosure {
  margin: 56px 0;
  padding: 24px 28px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 12px;
}
.page-body .disclosure p {
  font-size: 16px;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.page-body .disclosure p:last-child { margin-bottom: 0; }
.page-body .disclosure .label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 8px;
  display: block;
}

/* ── pack detail page ────────────────────────────────────────────── */

.pack-hero {
  padding: 72px 0 48px;
  text-align: center;
}
@media (max-width: 760px) {
  .pack-hero { padding: 40px 0 28px; }
  .pack-hero .pack-sub { margin-bottom: 16px; }
  .pack-hero .pack-intro { margin-bottom: 20px; font-size: 16px; }
}
.pack-hero .eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 12px;
  display: block;
}
.pack-hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(56px, 10vw, 92px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin-bottom: 18px;
}
.pack-hero .pack-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(20px, 2.4vw, 24px);
  color: var(--ink-soft);
  margin-bottom: 32px;
  letter-spacing: -0.005em;
}
.pack-hero .pack-intro {
  max-width: var(--measure);
  margin: 0 auto 36px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.pack-hero .pack-buy {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 18px 24px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 14px;
}
.pack-hero .pack-buy .price {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.pack-hero .pack-buy .meta {
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
}

.pack-grid {
  padding: 48px 0 96px;
}
@media (max-width: 760px) {
  .pack-grid { padding: 28px 0 48px; }
}

.moment {
  max-width: var(--measure);
  margin: 0 auto 72px;
  text-align: center;
}
.moment:last-child { margin-bottom: 0; }

.moment .sticker-frame {
  margin: 0 auto 28px;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.moment .sticker-frame img,
.moment .sticker-frame video {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  border-radius: 4px;
  /* a very soft drop so the sticker reads as floating slightly above the page */
  filter: drop-shadow(0 6px 14px rgba(27, 23, 20, 0.06));
}
.moment .sticker-frame video {
  /* let users tap to toggle mute — small native cursor cue */
  cursor: pointer;
  /* kill the initial-paint black flash some browsers do before the poster + first
     video frame paint. cream matches the page bg so any moment of un-decoded
     video reads as "still loading" rather than a hard black rectangle. */
  background-color: var(--cream);
  /* lock the color space hint so the poster JPG (sRGB) and the video frames
     (decoded to sRGB by the browser) match exactly, no perceived shift on play. */
  color-scheme: light;
}

.moment .moment-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 10px;
}
.moment h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 36px;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
  color: var(--ink);
}
.moment p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  text-align: left;
}
.moment p em { font-style: italic; color: var(--ink-soft); }

.moment-divider {
  width: 36px;
  margin: 0 auto 64px;
  border: none;
  height: 1px;
  background: var(--rule-strong);
}

.pack-foot-cta {
  padding: 64px 0 96px;
  text-align: center;
  background: var(--paper);
  border-top: 1px solid var(--rule);
}
.pack-foot-cta h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 5vw, 44px);
  letter-spacing: -0.025em;
  margin-bottom: 14px;
  color: var(--ink);
}
.pack-foot-cta p {
  color: var(--ink-soft);
  margin-bottom: 28px;
  font-size: 17px;
}

/* ── cart page ───────────────────────────────────────────────────── */

.cart-page { padding: 64px 0 96px; }
.cart-page h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(56px, 10vw, 84px);
  letter-spacing: -0.035em;
  line-height: 0.95;
  margin-bottom: 32px;
}

.cart-empty {
  padding: 64px 32px;
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 14px;
}
.cart-empty p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--ink-soft);
  margin-bottom: 28px;
}

.cart-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 36px;
}
@media (max-width: 800px) {
  .cart-grid { grid-template-columns: 1fr; }
}

.cart-items { display: flex; flex-direction: column; gap: 16px; }
.cart-item {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 18px;
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 18px;
  align-items: center;
}
@media (max-width: 600px) {
  .cart-item { grid-template-columns: 64px 1fr; gap: 14px; }
  .cart-item-controls { grid-column: 1 / -1; justify-content: space-between; }
}
.cart-item-img {
  width: 80px; height: 80px;
  object-fit: contain;
  background: var(--cream);
  border-radius: 10px;
  border: 1px solid var(--rule);
  padding: 6px;
}
.cart-item-info h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.015em;
  margin-bottom: 4px;
}
.cart-item-info p {
  font-size: 13px;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}
.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}
.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: var(--cream);
  padding: 2px;
}
.qty-btn {
  background: none;
  border: none;
  width: 28px; height: 28px;
  font-size: 16px;
  color: var(--ink-soft);
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.qty-btn:hover { color: var(--ink); }
.qty {
  min-width: 22px;
  text-align: center;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  font-size: 14px;
}
.cart-item-price {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  min-width: 56px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.remove-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: var(--ink-faint);
  line-height: 1;
  padding: 4px 6px;
}
.remove-btn:hover { color: var(--ink); }

.cart-summary {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 26px;
  align-self: start;
  position: sticky;
  top: 96px;
}
.cart-summary h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.015em;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}
.line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.line span:last-child {
  color: var(--ink);
  font-weight: 500;
}
.line-total {
  font-family: var(--font-display);
  font-size: 22px;
  padding-top: 18px;
  margin-top: 12px;
  border-top: 1px solid var(--rule);
  color: var(--ink);
}
.line-total span { font-weight: 500; }
.ship-note {
  font-size: 13px;
  color: var(--accent);
  background: rgba(111, 130, 102, 0.08);
  padding: 10px 14px;
  border-radius: 8px;
  margin: 6px 0 18px;
}
.continue-link {
  display: block;
  text-align: center;
  margin-top: 14px;
  color: var(--ink-faint);
  font-size: 13px;
}
.continue-link:hover { color: var(--ink); }

/* ── checkout / thanks placeholder ──────────────────────────────── */

.simple-page { padding: 96px 0; text-align: center; }
.simple-page h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 8vw, 72px);
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}
.simple-page p {
  color: var(--ink-soft);
  font-size: 17px;
  margin-bottom: 28px;
  max-width: 30rem;
  margin-left: auto;
  margin-right: auto;
}

/* ── footer ──────────────────────────────────────────────────────── */

footer.site {
  background: var(--paper);
  border-top: 1px solid var(--rule);
  padding: 56px 0 28px;
  margin-top: auto;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.footer-grid .col-brand p {
  font-size: 14px;
  color: var(--ink-soft);
  max-width: 22rem;
  margin-top: 12px;
  line-height: 1.6;
}
footer h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 14px;
}
footer ul { list-style: none; }
footer li { margin-bottom: 8px; }
footer li a {
  font-size: 14px;
  color: var(--ink-soft);
}
footer li a:hover { color: var(--ink); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}
.footer-bottom .quiet-line {
  font-family: var(--font-display);
  font-style: italic;
  letter-spacing: -0.005em;
  font-size: 13px;
}

/* ── shared toast (injected by cart.js, but theme it here too) ──── */

.jan-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translate(-50%, 100px);
  background: var(--ink);
  color: var(--cream);
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.005em;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 9999;
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  max-width: 90vw;
  pointer-events: none;
}
.jan-toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

/* ── tiny utilities ──────────────────────────────────────────────── */

.center { text-align: center; }
.muted { color: var(--ink-soft); }
.italic { font-style: italic; }
.serif { font-family: var(--font-display); }
.no-wrap { white-space: nowrap; }

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

/* ── seasons nav (index page tabs) ─────────────────────────────────── */

.seasons-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  padding: 1rem 0 0.75rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2.5rem;
  align-items: baseline;
}
.season-tab {
  background: none;
  border: none;
  padding: 0.5rem 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink-faint);
  cursor: pointer;
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.season-tab:hover { color: var(--ink-soft); }
.season-tab.is-active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}
.season-tab-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.05rem;
}
.season-tab-name {
  font-weight: 500;
  letter-spacing: 0.01em;
}

.season-section {
  display: none;
}
.season-section.is-active {
  display: block;
}
.season-empty {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink-faint);
  text-align: center;
  padding: 3rem 1rem;
}

/* ── pack-nav (prev/next at bottom of each pack page) ──────────────── */

.pack-nav {
  border-top: 1px solid var(--rule);
  margin-top: 3rem;
  padding: 2.5rem 0 4rem;
}
.pack-nav .container {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.pack-nav-link {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-decoration: none;
  color: var(--ink);
  flex: 1 1 16rem;
  max-width: 24rem;
  padding: 1rem 0;
  transition: color 0.2s ease;
}
.pack-nav-link:hover { color: var(--ink-soft); }
.pack-nav-prev { text-align: left; }
.pack-nav-next { text-align: right; margin-left: auto; }
.pack-nav-eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.pack-nav-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 400;
}
.pack-nav-spacer { flex: 1 1 16rem; }

@media (max-width: 600px) {
  .pack-nav { padding: 1.2rem 0 2rem; margin-top: 1.5rem; }
  .pack-nav .container { flex-direction: column; gap: 0; }
  .pack-nav-link { padding: 0.6rem 0; flex: none; max-width: none; }
  .pack-nav-next { margin-left: 0; text-align: left; }
  .pack-nav-spacer { display: none; }
}

/* ── a) Sticker fan hover ────────────────────────────────────────── */
/* At rest: the 9 images stay in the 3×3 grid (no transform).
   On card hover each image fans out with a unique translate+rotate. */

.pack-card .cover img {
  transition: transform 0.28s cubic-bezier(0.34, 1.2, 0.64, 1), opacity 0.2s ease;
  transform-origin: center center;
}

.pack-card:hover .cover img:nth-child(1)  { transform: translate(-22px, -18px) rotate(-12deg); }
.pack-card:hover .cover img:nth-child(2)  { transform: translate(0px,  -26px) rotate(-4deg); }
.pack-card:hover .cover img:nth-child(3)  { transform: translate(22px, -18px) rotate(10deg); }
.pack-card:hover .cover img:nth-child(4)  { transform: translate(-28px,  0px) rotate(-8deg); }
.pack-card:hover .cover img:nth-child(5)  { transform: translate(0px,    6px) rotate(0deg)  scale(1.06); }
.pack-card:hover .cover img:nth-child(6)  { transform: translate(28px,   0px) rotate(9deg); }
.pack-card:hover .cover img:nth-child(7)  { transform: translate(-22px, 20px) rotate(11deg); }
.pack-card:hover .cover img:nth-child(8)  { transform: translate(0px,   28px) rotate(3deg); }
.pack-card:hover .cover img:nth-child(9)  { transform: translate(22px,  20px) rotate(-10deg); }

/* Don't fan side-quest single-image covers */
.pack-card .cover.single:hover img,
.pack-card .cover.placeholder:hover img { transform: none; }

/* ── b) Season palette shifts ────────────────────────────────────── */

:root {
  --season-tint:   #F7F1E5;
  --season-accent: #B89169;
}

[data-season="1"] { --season-tint: #F7F1E5; --season-accent: #B89169; }
[data-season="2"] { --season-tint: #F4EFE2; --season-accent: #8C9E7A; }
[data-season="3"] { --season-tint: #F2EBD8; --season-accent: #7E9B8A; }
[data-season="4"] { --season-tint: #EDE6D6; --season-accent: #8B7355; }
[data-season="5"] { --season-tint: #EAE3D0; --season-accent: #6F8266; }
[data-season="6"] { --season-tint: #E8E2D0; --season-accent: #8A9080; }

/* Body-level season tint shifts the page background subtly */
body[data-season] { background: var(--season-tint); }

/* ── c) Scrapbook moment layout ──────────────────────────────────── */

.moment-spread {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "sticker prose"
    "audio   prose";
  column-gap: 60px;
  row-gap: 0;
  align-items: start;
  max-width: var(--container);
  margin: 0 auto 80px;
  text-align: left;
}
.moment-spread:last-child { margin-bottom: 0; }

/* Even moments — sticker on right */
.moment-spread:nth-child(even) {
  grid-template-areas:
    "prose  sticker"
    "prose  audio";
}

.moment-spread .moment-sticker {
  grid-area: sticker;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.moment-spread .moment-sticker img {
  width: 100%;
  max-width: 520px;
  height: auto;
  transform: rotate(var(--sticker-rotate, -1deg));
  filter: drop-shadow(0 8px 20px rgba(27, 23, 20, 0.08));
  transition: transform 0.3s ease;
}

/* Audio player sits below sticker in the image column */
.moment-spread > .moment-audio {
  grid-area: audio;
  border-top: 1px solid var(--rule);
  padding-top: 16px;
  align-self: start;
}

.moment-spread .moment-prose {
  grid-area: prose;
  padding-top: 20px;
}
.moment-spread .moment-prose .moment-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 10px;
}
.moment-spread .moment-prose h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3.5vw, 40px);
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  color: var(--ink);
  line-height: 1.1;
}
.moment-spread .moment-prose .moment-lead {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 14px;
  letter-spacing: -0.005em;
}
.moment-spread .moment-prose .moment-body {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft);
}
.moment-spread .moment-prose .moment-body em { font-style: italic; color: var(--ink-soft); }

@media (max-width: 760px) {
  .moment-spread {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas: none;
    gap: 0;
    margin-bottom: 60px;
  }
  .moment-spread:nth-child(even) { grid-template-areas: none; }
  .moment-spread .moment-sticker,
  .moment-spread > .moment-audio,
  .moment-spread .moment-prose    { grid-area: auto; }
  .moment-spread .moment-sticker  { justify-content: center; margin-bottom: 20px; }
  .moment-spread .moment-sticker img { max-width: min(340px, 90vw); }
  .moment-spread > .moment-audio  {
    border-top: 1px solid var(--rule);
    padding: 16px 0 0;
    margin-bottom: 24px;
  }
  .moment-spread .moment-prose { padding-top: 0; }
}

/* ── e) Purchase ribbon ──────────────────────────────────────────── */

.purchase-ribbon {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--cream);
  border-top: 1px solid var(--rule);
  display: none; /* shown via JS on pack pages */
}
.purchase-ribbon.is-visible { display: block; }

.ribbon-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.ribbon-meta {
  font-size: 14px;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}

.ribbon-btn {
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 760px) {
  /* Always visible on pack pages on mobile — controlled by JS adding .is-visible */
  .pack-page .purchase-ribbon { display: block; }
  .ribbon-inner { padding: 12px 20px; }
  .ribbon-meta { font-size: 13px; }
}

/* ── f) Season interlude ─────────────────────────────────────────── */

.season-interlude {
  position: relative;
  width: 100%;
  padding: 120px 0;
  text-align: center;
  overflow: hidden;
}

.season-interlude .interlude-num {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 180px;
  font-weight: 400;
  color: var(--ink);
  opacity: 0.07;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.season-interlude .interlude-inner {
  position: relative;
  z-index: 1;
}

.season-interlude .interlude-year {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 14px;
}

.season-interlude .interlude-age {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 32px;
  color: var(--ink);
  letter-spacing: -0.015em;
  margin-bottom: 16px;
}

.season-interlude .interlude-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 20px;
}

.season-interlude .interlude-line {
  display: block;
  font-size: 20px;
  color: var(--ink-soft);
  max-width: 28rem;
  margin: 0 auto;
  line-height: 1.55;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  letter-spacing: -0.005em;
}

/* Scroll-reveal */
.season-interlude {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.season-interlude.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ── g) Timeline page styles ─────────────────────────────────────── */

.timeline-page {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

.timeline-header {
  padding: 72px 28px 48px;
  max-width: var(--container);
  margin: 0 auto;
}
.timeline-header h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 7vw, 72px);
  letter-spacing: -0.035em;
  line-height: 1.0;
  margin-bottom: 16px;
  color: var(--ink);
}
.timeline-header h1 em { font-style: italic; color: var(--ink-soft); }
.timeline-header p {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 36rem;
}

.timeline-outer {
  position: relative;
  padding-bottom: 40px;
}

.timeline-bands {
  display: flex;
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 0;
}
.timeline-band {
  flex: 1 0 0;
  opacity: 0.25;
}
.timeline-band[data-season="1"] { background: var(--season-tint, #F7F1E5); }
.timeline-band[data-season="2"] { background: #F4EFE2; }
.timeline-band[data-season="3"] { background: #F2EBD8; }
.timeline-band[data-season="4"] { background: #EDE6D6; }
.timeline-band[data-season="5"] { background: #EAE3D0; }
.timeline-band[data-season="6"] { background: #E8E2D0; }

.timeline-ruler {
  display: flex;
  justify-content: space-between;
  padding: 0 60px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.timeline-ruler span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  text-transform: uppercase;
}

.timeline-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 40px 60px;
  min-height: 320px;
  gap: 16px;
  position: relative;
  z-index: 1;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--rule-strong) transparent;
}
.timeline-track::-webkit-scrollbar { height: 6px; }
.timeline-track::-webkit-scrollbar-track { background: transparent; }
.timeline-track::-webkit-scrollbar-thumb { background: var(--rule-strong); border-radius: 3px; }

.timeline-pack {
  scroll-snap-align: start;
  flex: 0 0 200px;
  cursor: pointer;
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 16px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.timeline-pack:hover {
  transform: translateY(-4px);
  border-color: var(--ink);
  box-shadow: 0 8px 24px rgba(27, 23, 20, 0.08);
}
.timeline-pack.is-active {
  border-color: var(--ink);
  background: var(--paper);
}

.timeline-pack-stickers {
  position: relative;
  height: 80px;
}
.timeline-pack-stickers img {
  position: absolute;
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 6px;
}
.timeline-pack-stickers img:nth-child(1) { left: 0;    top: 6px;  transform: rotate(-6deg); }
.timeline-pack-stickers img:nth-child(2) { left: 28px; top: 0;    transform: rotate(1deg); z-index: 1; }
.timeline-pack-stickers img:nth-child(3) { left: 56px; top: 8px;  transform: rotate(7deg); }

.timeline-pack-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tl-pack-num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  text-transform: uppercase;
}
.tl-pack-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
}
.tl-pack-age {
  font-size: 12px;
  color: var(--ink-faint);
  margin-top: 2px;
}

.timeline-age-bar {
  display: flex;
  justify-content: space-between;
  padding: 0 60px 24px;
  position: relative;
  z-index: 1;
}
.timeline-age-bar::before {
  content: '';
  position: absolute;
  top: 7px;
  left: 60px;
  right: 60px;
  height: 1px;
  background: var(--rule-strong);
}
.timeline-age-tick {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.timeline-age-tick::before {
  content: '';
  width: 1px;
  height: 8px;
  background: var(--rule-strong);
}
.timeline-age-tick span {
  font-size: 11px;
  color: var(--ink-faint);
  font-weight: 500;
}

.timeline-preview {
  position: fixed;
  top: 0;
  right: 0;
  width: 380px;
  height: 100vh;
  background: var(--cream);
  border-left: 1px solid var(--rule);
  overflow-y: auto;
  z-index: 300;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -8px 0 32px rgba(27, 23, 20, 0.08);
}
.timeline-preview.is-open {
  transform: translateX(0);
}

.preview-close {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: flex-end;
  background: var(--cream);
  padding: 16px 20px 12px;
  border: none;
  cursor: pointer;
  font-size: 24px;
  color: var(--ink-faint);
  font-family: inherit;
  line-height: 1;
  width: 100%;
  transition: color 0.15s ease;
}
.preview-close:hover { color: var(--ink); }

.preview-content {
  padding: 0 24px 40px;
}
.preview-pack-num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.preview-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 6px;
  line-height: 1.1;
}
.preview-stamp {
  font-size: 13px;
  color: var(--ink-faint);
  margin-bottom: 24px;
}
.preview-stickers {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.preview-stickers img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--paper-soft);
  padding: 4px;
}
.preview-desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 28px;
}
.preview-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 1px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.preview-link:hover { color: var(--accent); border-color: var(--accent); }

@media (max-width: 720px) {
  .timeline-preview { width: 100vw; }
  .timeline-header { padding: 48px 20px 32px; }
  .timeline-track { padding: 24px 20px; }
  .timeline-ruler { padding: 0 20px; }
  .timeline-age-bar { padding: 0 20px 20px; }
  .timeline-age-bar::before { left: 20px; right: 20px; }
}

/* ── h) Characters page styles ───────────────────────────────────── */

.characters-page {
  padding: 0 0 80px;
}

.characters-header {
  padding: 72px 28px 48px;
  max-width: var(--container);
  margin: 0 auto;
}
.characters-header h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 7vw, 72px);
  letter-spacing: -0.035em;
  line-height: 1.0;
  margin-bottom: 14px;
  color: var(--ink);
}
.characters-header h1 em { font-style: italic; color: var(--ink-soft); }
.characters-header p {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 36rem;
}

.character-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px 56px;
}
@media (max-width: 900px) {
  .character-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .character-grid { grid-template-columns: 1fr; padding: 0 20px 40px; }
}

.character-card {
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 28px;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.character-card:hover {
  border-color: var(--rule-strong);
}
.character-card.is-active {
  border-color: var(--ink);
  box-shadow: 0 4px 20px rgba(27, 23, 20, 0.08);
}

.character-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 4px;
}
.character-range {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 14px;
}
.character-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.character-packs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.character-pack-pill {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--rule);
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}

.characters-packs-section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}
.characters-packs-section .section-head {
  margin-bottom: 40px;
}

.pack-card[data-characters] {
  /* All pack cards start visible; JS toggles display:none for filtered-out ones */
  transition: opacity 0.2s ease;
}
.pack-card.is-filtered-out {
  display: none;
}


/* ── Pack page: Paper grain overlay ─────────────────────────── */
body.pack-page::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9990;
  pointer-events: none;
  opacity: 0.032;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n' x='0' y='0'><feTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  background-size: 200px 200px;
}

/* ── Pack page: Drop cap on first moment ─────────────────────── */
.moment-spread:first-child .moment-lead::first-letter {
  font-family: var(--font-display);
  font-size: 3.4em;
  line-height: 0.78;
  float: left;
  margin: 0.06em 0.1em 0 0;
  color: var(--ink);
  font-weight: 400;
  font-style: normal;
}

/* ── Pack page: Alternating sticker sides ────────────────────── */
/* Even moments: prose left, sticker right — scrapbook rhythm */
/* even alternation handled via grid-template-areas above */

/* ── Pack page: Moment lead subtle left accent ───────────────── */
.moment-spread .moment-prose .moment-lead {
  position: relative;
}
.moment-spread .moment-prose .moment-lead::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--season-accent, #B89169);
  opacity: 0.5;
  border-radius: 2px;
}
.moment-spread .moment-prose {
  padding-left: 20px;
}

/* ── Reduced motion: no entrance animation ────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .j-page.is-entering .j-left,
  .j-page.is-entering .j-right { animation: none; }
  .j-sticker:hover img { transform: none !important; }
}

/* ── Pack hero image (cover sticker) ─────────────────────────────── */
.pack-hero-img {
  padding: 0 0 64px;
  text-align: center;
}

.hero-sticker {
  display: inline-block;
  max-width: 480px;
  width: 72%;
  transform: rotate(var(--rot, -1deg));
  filter: drop-shadow(0 12px 32px rgba(27,23,20,0.10));
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), filter 0.3s ease;
  border-radius: 4px;
  overflow: hidden;
  cursor: default;
}

.hero-sticker svg,
.hero-sticker img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 760px) {
  .pack-hero-img { padding: 0 0 40px; }
  .hero-sticker { width: 60%; max-width: 260px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-sticker { transition: none; }
  .j-hero-card { transition: none; }
}

/* ── Moment audio player ─────────────────────────────────────────── */
.moment-audio {
  display: flex;
  align-items: center;
  gap: 10px;
}
.moment-audio-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--rule-strong);
  background: var(--cream);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  color: var(--ink);
  padding: 0;
}
.moment-audio-btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}
.moment-audio-btn svg {
  width: 13px;
  height: 13px;
  display: block;
}
.moment-audio-track {
  flex: 1;
  height: 2px;
  background: var(--rule);
  border-radius: 1px;
  cursor: pointer;
  position: relative;
}
.moment-audio-bar {
  height: 100%;
  background: var(--ink);
  border-radius: 1px;
  width: 0%;
  pointer-events: none;
}
.moment-audio-time {
  font-size: 11px;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  min-width: 30px;
  text-align: right;
}
