/* ============================================================
   STORIES — Instagram 9:16 templates for Duo
   Uses palette tokens from style.css (loaded first)
   Story base size: 720 × 1280
   ============================================================ */

/* ---------- STAGE WRAPPER ---------- */
.story {
  width: 720px;
  height: 1280px;
  background: var(--paper);
  position: relative;
  overflow: hidden;
  font-family: var(--font-sans);
  color: var(--ink);
  /* Each story is its own paint context so grain + circles don't leak */
  isolation: isolate;
  /* Stories live inside DCArtboard which sets background:#fff — we
     restore our paper here */
}
.story * { box-sizing: border-box; }

.story-grain {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: var(--grain-opacity, 0.05);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.17  0 0 0 0 0.12  0 0 0 0 0.09  0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  z-index: 5;
}

.story-pad {
  position: absolute;
  inset: 80px 64px 80px 64px;
  display: flex;
  flex-direction: column;
  z-index: 2;
}

/* ---------- HEADER BAR ---------- */
.story-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  letter-spacing: 0.04em;
}
.story-brand {
  display: flex; align-items: center; gap: 12px;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.story-mark {
  width: 32px; height: 24px;
  position: relative;
  display: inline-block;
}
.story-mark::before, .story-mark::after {
  content: ""; position: absolute; top: 0;
  width: 22px; height: 22px; border-radius: 50%;
  mix-blend-mode: multiply;
}
.story-mark::before { left: 0; background: var(--rose); }
.story-mark::after  { left: 10px; background: var(--peach); }

.story-meta {
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--mute);
}

/* ---------- FOOTER ---------- */
.story-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 500;
}
.story-foot .url {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: lowercase;
  font-size: 16px;
}

/* swipe-up indicator */
.story-swipe {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--terracotta);
}
.story-swipe svg { width: 14px; height: 14px; }

/* ---------- TYPOGRAPHY (story scale) ---------- */
.story h1, .story h2, .story h3, .story p { margin: 0; }
.story h1 {
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.94;
  font-size: 130px;
}
.story h2 {
  font-weight: 500;
  letter-spacing: -0.028em;
  line-height: 0.98;
  font-size: 84px;
}
.story h3 {
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-size: 56px;
}
.story p {
  font-size: 24px;
  line-height: 1.45;
  color: var(--ink-soft);
}
.story .lede {
  font-size: 28px;
  line-height: 1.45;
  color: var(--ink-soft);
}
.story em.it { font-style: italic; color: var(--terracotta); font-weight: 400; }
.story .eyebrow {
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.story .eyebrow::before {
  content: ""; width: 32px; height: 1px; background: currentColor; opacity: 0.5;
}

/* ---------- CIRCLE MOTIFS ---------- */
.story-circles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.story-circles .c {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: multiply;
}
.c-rose  { background: radial-gradient(circle at 35% 35%, var(--rose),  var(--rose-deep)  90%); }
.c-peach { background: radial-gradient(circle at 35% 35%, var(--peach), var(--clay) 90%); }
.c-sage  { background: radial-gradient(circle at 35% 35%, var(--sage), var(--sage-deep) 90%); }

/* ---------- POSTER LAUNCH ---------- */
.story-poster {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}
.story-poster h1 { text-wrap: balance; }
.story-poster .lede { margin-top: 40px; max-width: 24ch; }

/* ---------- TAG / PILL ---------- */
.story-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  padding: 12px 22px;
  border: 1.5px solid var(--hairline-strong);
  border-radius: 999px;
  background: rgba(255,255,255,0.5);
  align-self: flex-start;
}
.story-tag .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 0 5px rgba(215,136,120,0.20);
}

/* ---------- BUTTON (in-story CTA) ---------- */
.story-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 22px 36px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.005em;
  align-self: flex-start;
}
.story-btn svg { width: 22px; height: 22px; }

/* ---------- PHONE MOCKUP (smaller, fits in 720) ---------- */
.s-phone {
  width: 380px;
  height: 776px;
  background: linear-gradient(160deg, #1a1410, #0e0a07);
  border-radius: 56px;
  padding: 12px;
  box-shadow:
    0 40px 80px -20px rgba(43,31,24,0.45),
    0 12px 24px -10px rgba(43,31,24,0.25),
    inset 0 0 0 1.5px rgba(255,255,255,0.04);
  position: relative;
}
.s-phone::before {
  content: "";
  position: absolute;
  top: 26px; left: 50%;
  transform: translateX(-50%);
  width: 128px; height: 36px;
  background: #0a0805;
  border-radius: 22px;
  z-index: 5;
}
.s-phone-screen {
  width: 100%; height: 100%;
  border-radius: 44px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--paper) 0%, var(--cream) 100%);
  position: relative;
  padding: 76px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* mini app cards inside phone */
.s-app-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 4px;
}
.s-app-row .who { font-size: 13px; color: var(--mute); }
.s-app-row .names { font-size: 18px; font-weight: 600; }
.s-app-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  position: relative; overflow: hidden;
  background: var(--cream-deep);
}
.s-app-avatar::before, .s-app-avatar::after {
  content: ""; position: absolute; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%; mix-blend-mode: multiply;
}
.s-app-avatar::before { left: -2px; background: var(--rose); }
.s-app-avatar::after  { left: 14px; background: var(--peach); }

.s-app-card {
  background: rgba(255,255,255,0.75);
  border-radius: 18px;
  padding: 14px;
  border: 1px solid var(--hairline);
}
.s-app-card .ttl {
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.s-app-checkins { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.s-app-checkin {
  padding: 10px;
  border-radius: 14px;
  text-align: center;
  background: var(--cream);
}
.s-app-checkin.alt { background: var(--rose-soft); }
.s-app-checkin .emoji { font-size: 22px; }
.s-app-checkin .lab { font-size: 9px; color: var(--mute); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 2px; }
.s-app-checkin .val { font-size: 14px; font-weight: 600; color: var(--terracotta); }
.s-app-checkin.alt .val { color: var(--rose-deep); }

.s-app-mimu {
  background: linear-gradient(135deg, rgba(215,136,120,0.18), rgba(226,178,137,0.18));
  border-radius: 16px;
  padding: 12px 14px;
  border: 1px solid var(--hairline);
}
.s-app-mimu .head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.s-app-mimu .dot {
  width: 18px; height: 18px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--rose), var(--rose-deep));
  color: white; font-size: 9px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.s-app-mimu .name { font-size: 11px; font-weight: 600; color: var(--terracotta); letter-spacing: 0.06em; text-transform: uppercase; }
.s-app-mimu p { font-size: 13px; line-height: 1.4; color: var(--ink); margin: 0; }

/* ---------- CHAT CARD (mimu story) ---------- */
.s-chat {
  background: var(--paper);
  border-radius: 36px;
  padding: 36px;
  box-shadow: 0 30px 60px -20px rgba(43,31,24,0.22);
  border: 1px solid var(--hairline);
  width: 100%;
  max-width: 540px;
}
.s-chat-head {
  display: flex; align-items: center; gap: 14px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--hairline);
}
.s-chat-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  position: relative; overflow: hidden;
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--hairline-strong);
}
.s-chat-avatar::before, .s-chat-avatar::after {
  content: ""; position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%; mix-blend-mode: multiply;
}
.s-chat-avatar::before { left: -3px; background: var(--rose); }
.s-chat-avatar::after  { left: 20px; background: var(--peach); }
.s-chat-head .name { font-weight: 600; font-size: 19px; }
.s-chat-head .role { font-size: 14px; color: var(--mute); }
.s-chat-status {
  margin-left: auto;
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; color: var(--sage-deep); font-weight: 500;
}
.s-chat-status .pulse {
  width: 9px; height: 9px; border-radius: 50%; background: var(--sage);
}
.s-chat-body {
  padding: 24px 0 8px;
  display: flex; flex-direction: column; gap: 16px;
}
.s-bubble {
  font-size: 18px;
  line-height: 1.45;
  padding: 16px 22px;
  border-radius: 24px;
  max-width: 90%;
}
.s-bubble.me {
  background: var(--rose-soft);
  align-self: flex-end;
  border-bottom-right-radius: 8px;
  color: var(--ink);
}
.s-bubble.them {
  background: var(--cream);
  align-self: flex-start;
  border-bottom-left-radius: 8px;
  color: var(--ink);
  border: 1px solid var(--hairline);
}

/* ---------- STICKY NOTE ---------- */
.s-note {
  background: var(--note-yellow);
  padding: 28px 32px;
  border-radius: 6px;
  box-shadow: 0 12px 30px rgba(43,31,24,0.18);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.35;
  color: #6e5b1a;
  position: relative;
}
.s-note::before {
  content: "";
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 80px; height: 18px;
  background: rgba(215,136,120,0.32);
  border-radius: 3px;
}
.s-note.pink  { background: var(--note-pink);  color: var(--rose-deep); }
.s-note.sage  { background: var(--note-sage);  color: var(--sage-deep); }
.s-note.peach { background: var(--peach-soft); color: var(--terracotta); }
.s-note .from {
  font-size: 16px;
  margin-top: 14px;
  font-weight: 500;
  opacity: 0.7;
  font-style: italic;
}

/* ---------- POLAROID ---------- */
.s-polaroid {
  background: #fff;
  padding: 12px 12px 56px;
  box-shadow: 0 18px 38px rgba(43,31,24,0.20);
  border-radius: 4px;
  position: relative;
}
.s-polaroid image-slot {
  display: block;
  width: 100%;
  height: 100%;
}
.s-polaroid .cap {
  position: absolute;
  bottom: 18px;
  left: 0; right: 0;
  text-align: center;
  font-size: 16px;
  font-style: italic;
  color: var(--ink-soft);
}

/* ---------- IMAGE SLOT — story sized ---------- */
.story image-slot {
  --slot-bg: var(--cream-deep);
  --slot-border: var(--hairline-strong);
  --slot-color: var(--mute);
}

/* ---------- QUOTE STORY ---------- */
.s-quote {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  z-index: 2;
}
.s-quote .mark {
  font-size: 180px;
  line-height: 0.6;
  color: var(--terracotta);
  font-style: italic;
  margin-bottom: -10px;
  font-weight: 400;
}
.s-quote blockquote {
  font-size: 56px;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
  color: var(--ink);
}
.s-quote blockquote em { font-style: italic; color: var(--terracotta); font-weight: 400; }

/* ---------- TIP STORY ---------- */
.s-tip {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 36px;
  position: relative;
  z-index: 2;
}
.s-tip .step-num {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
}
.s-tip h2 { max-width: 14ch; text-wrap: balance; }
.s-tip .ex {
  margin-top: 16px;
  padding: 28px 32px;
  background: var(--cream);
  border-radius: 22px;
  border: 1px solid var(--hairline);
  font-size: 24px;
  line-height: 1.4;
  color: var(--ink);
  position: relative;
}
.s-tip .ex .role {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mute);
  font-weight: 500;
  margin-bottom: 10px;
}
.s-tip .ex em { font-style: italic; color: var(--terracotta); }

/* ---------- STAT / FACT STORY ---------- */
.s-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}
.s-stat .big {
  font-size: 280px;
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.86;
  color: var(--terracotta);
}
.s-stat .big em { font-style: italic; }

/* ---------- DUO MARK BIG (decorative) ---------- */
.s-bigmark {
  position: relative;
  width: 260px; height: 180px;
  margin-bottom: 60px;
}
.s-bigmark .c1, .s-bigmark .c2 {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 180px; height: 180px; border-radius: 50%;
  mix-blend-mode: multiply;
}
.s-bigmark .c1 { left: 0;   background: var(--rose); }
.s-bigmark .c2 { left: 80px; background: var(--peach); }

/* ---------- BACKGROUND COLOR VARIANTS ---------- */
.story.bg-cream     { background: var(--cream); }
.story.bg-shell     { background: var(--shell); }
.story.bg-rose-soft { background: var(--rose-soft); }
.story.bg-ink       { background: var(--ink); color: var(--paper); }

/* ============================================================
   FEED POSTS — Instagram 1:1 (720 × 720)
   ============================================================ */
.feed {
  width: 720px;
  height: 720px;
  background: var(--paper);
  position: relative;
  overflow: hidden;
  font-family: var(--font-sans);
  color: var(--ink);
  isolation: isolate;
}
.feed * { box-sizing: border-box; }
.feed.bg-cream     { background: var(--cream); }
.feed.bg-shell     { background: var(--shell); }
.feed.bg-rose-soft { background: var(--rose-soft); }
.feed.bg-ink       { background: var(--ink); color: var(--paper); }
.feed.bg-ink .story-meta,
.feed.bg-ink .story-foot { color: rgba(251,246,238,0.55); }
.feed.bg-ink .story-foot .url { color: var(--paper); }
.feed.bg-ink h1,
.feed.bg-ink h2,
.feed.bg-ink h3 { color: var(--paper); }
.feed.bg-ink p,
.feed.bg-ink .lede { color: rgba(251,246,238,0.70); }
.feed.bg-ink em.it { color: var(--peach); }
.feed.bg-ink .story-tag {
  background: rgba(251,246,238,0.06);
  border-color: rgba(251,246,238,0.20);
  color: var(--peach);
}
.feed.bg-ink .story-btn {
  background: var(--paper); color: var(--ink);
}
.feed.bg-ink .story-mark::before,
.feed.bg-ink .story-mark::after { mix-blend-mode: screen; opacity: 0.95; }

.feed-pad {
  position: absolute;
  inset: 56px 56px 56px 56px;
  display: flex;
  flex-direction: column;
  z-index: 2;
}
.feed image-slot {
  --slot-bg: var(--cream-deep);
  --slot-border: var(--hairline-strong);
  --slot-color: var(--mute);
}

/* Feed typography — slightly smaller than story scale since less height */
.feed h1 {
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.96;
  font-size: 96px;
  margin: 0;
}
.feed h2 {
  font-weight: 500;
  letter-spacing: -0.028em;
  line-height: 1.00;
  font-size: 64px;
  margin: 0;
}
.feed h3 {
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.06;
  font-size: 44px;
  margin: 0;
}
.feed p { margin: 0; font-size: 22px; line-height: 1.45; color: var(--ink-soft); }
.feed .lede { font-size: 24px; line-height: 1.5; color: var(--ink-soft); }
.feed em.it { font-style: italic; color: var(--terracotta); font-weight: 400; }
.feed .eyebrow {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.feed .eyebrow::before {
  content: ""; width: 32px; height: 1px; background: currentColor; opacity: 0.5;
}

/* Feed "letter" treatment — paper card */
.feed-letter {
  background: var(--paper);
  border-radius: 24px;
  padding: 56px;
  box-shadow: 0 30px 60px -20px rgba(43,31,24,0.22), 0 10px 20px -10px rgba(43,31,24,0.08);
  border: 1px solid var(--hairline);
  position: relative;
  margin: 0;
}
.feed-letter::before {
  content: "";
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 88px; height: 18px;
  background: rgba(215,136,120,0.32);
  border-radius: 3px;
}
.feed-letter .salutation {
  font-style: italic;
  color: var(--terracotta);
  font-size: 22px;
  margin-bottom: 16px;
}
.feed-letter .sign {
  margin-top: 28px;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--mute);
}

/* Story-sized letter (taller, more breath) */
.story-letter {
  background: var(--paper);
  border-radius: 28px;
  padding: 60px 56px;
  box-shadow: 0 40px 80px -20px rgba(43,31,24,0.25), 0 14px 26px -10px rgba(43,31,24,0.10);
  border: 1px solid var(--hairline);
  position: relative;
}
.story-letter::before {
  content: "";
  position: absolute;
  top: -16px; left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 110px; height: 22px;
  background: rgba(215,136,120,0.36);
  border-radius: 3px;
  box-shadow: 0 3px 8px rgba(43,31,24,0.10);
}
.story-letter .salutation {
  font-style: italic;
  color: var(--terracotta);
  font-size: 26px;
  margin-bottom: 24px;
  letter-spacing: -0.005em;
}
.story-letter h3 {
  font-size: 50px;
  font-weight: 500;
  letter-spacing: -0.022em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}
.story-letter p {
  font-size: 22px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 22px 0 0;
  text-wrap: pretty;
}
.story-letter p.body-ink { color: var(--ink); font-weight: 400; }
.story-letter em.it { font-style: italic; color: var(--terracotta); font-weight: 400; }
.story-letter .sign {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--mute);
}

/* Founder signature — handwritten-feel sign-off */
.story-letter .founder-sign {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  gap: 16px;
}
.story-letter .founder-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--cream-deep);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  font-weight: 600;
  color: var(--terracotta);
  font-style: italic;
  letter-spacing: -0.01em;
  flex-shrink: 0;
  border: 1px solid var(--hairline-strong);
}
.story-letter .founder-info { display: flex; flex-direction: column; gap: 4px; }
.story-letter .founder-info .name {
  font-size: 22px;
  font-weight: 500;
  font-style: italic;
  color: var(--terracotta);
  letter-spacing: -0.01em;
  line-height: 1;
}
.story-letter .founder-info .role {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--mute);
}

/* App Store availability badge */
.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px 16px 22px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 16px;
  font-family: var(--font-sans);
  box-shadow: 0 8px 20px rgba(43,31,24,0.22);
  text-decoration: none;
}
.appstore-badge svg { width: 32px; height: 32px; color: var(--paper); }
.appstore-badge .stack { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.appstore-badge .top {
  font-size: 11px;
  letter-spacing: 0.08em;
  opacity: 0.7;
  font-weight: 500;
  text-transform: lowercase;
}
.appstore-badge .bot {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 4px;
}

/* Feed "duet" — two halves with circles */
.feed-duet {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
  position: relative;
}
.feed-duet .col {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.feed-duet .col + .col { border-left: 1px dashed var(--hairline-strong); }
.feed-duet .circle {
  width: 120px; height: 120px;
  border-radius: 50%;
  margin-bottom: 28px;
  mix-blend-mode: multiply;
}
.feed-duet .circle.left  { background: radial-gradient(circle at 35% 35%, var(--rose),  var(--rose-deep)  90%); }
.feed-duet .circle.right { background: radial-gradient(circle at 35% 35%, var(--peach), var(--clay) 90%); }
.feed-duet .label {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 500;
  margin-bottom: 18px;
}
.feed-duet h3 {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}

/* Feed photo overlay treatment */
.feed-photo-slot {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.feed-photo-slot image-slot {
  width: 100% !important;
  height: 100% !important;
  display: block;
}
.feed-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(43,31,24,0) 0%, rgba(43,31,24,0.05) 40%, rgba(43,31,24,0.65) 100%);
  z-index: 2;
}
.feed-photo-text {
  position: absolute;
  bottom: 56px; left: 56px; right: 56px;
  z-index: 3;
  color: var(--paper);
}
.feed-photo-text .eyebrow { color: rgba(251,246,238,0.65); }
.feed-photo-text .eyebrow::before { background: rgba(251,246,238,0.65); }
.feed-photo-text h2 { color: var(--paper); margin-top: 20px; }
.feed-photo-text em.it { color: var(--peach-soft); }
.feed-photo-text .url { color: var(--paper); font-weight: 600; }

/* Soft watermark for emotional cards */
.feed-watermark {
  position: absolute;
  top: 36px;
  right: 36px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  z-index: 3;
  color: var(--ink);
}
.feed.bg-ink .feed-watermark { color: var(--paper); }
.feed-photo-text + .feed-watermark { color: var(--paper); }

/* Foot of feed */
.feed-foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 500;
}
.feed-foot .url {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: lowercase;
  font-size: 16px;
}
.feed.bg-ink .feed-foot .url { color: var(--paper); }
.story.bg-ink .story-meta,
.story.bg-ink .story-foot { color: rgba(251,246,238,0.55); }
.story.bg-ink .story-foot .url { color: var(--paper); }
.story.bg-ink h1,
.story.bg-ink h2,
.story.bg-ink h3 { color: var(--paper); }
.story.bg-ink p,
.story.bg-ink .lede { color: rgba(251,246,238,0.70); }
.story.bg-ink em.it { color: var(--peach); }
.story.bg-ink .s-quote blockquote { color: var(--paper); }
.story.bg-ink .s-quote blockquote em { color: var(--peach); }
.story.bg-ink .s-quote .mark { color: var(--peach); }
.story.bg-ink .story-tag {
  background: rgba(251,246,238,0.06);
  border-color: rgba(251,246,238,0.20);
  color: var(--peach);
}
.story.bg-ink .story-btn {
  background: var(--paper); color: var(--ink);
}
.story.bg-ink .story-mark::before,
.story.bg-ink .story-mark::after { mix-blend-mode: screen; opacity: 0.95; }

/* ---------- BIG QUOTE MARK CORNER ---------- */
.s-quote-mark-deco {
  position: absolute;
  top: 120px; right: 64px;
  font-size: 360px;
  line-height: 1;
  color: var(--rose-soft);
  font-style: italic;
  z-index: 1;
  font-weight: 400;
  pointer-events: none;
  user-select: none;
}

/* ---------- LARGE BG CIRCLES POSITION HELPERS ---------- */
.story-circles.c-tl .c { top: -180px; left: -160px; }
.story-circles.c-br .c { bottom: -200px; right: -160px; }

/* ============================================================
   APP CHROME — page around the canvas
   ============================================================ */
body.stories-page {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  overflow: hidden;
  height: 100vh;
}

.stories-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(251, 246, 238, 0.78);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--hairline);
}
.stories-topbar .brand {
  display: flex; align-items: center; gap: 12px;
  font-weight: 600; font-size: 17px;
  letter-spacing: -0.01em;
}
.stories-topbar .title {
  font-size: 15px;
  color: var(--ink-soft);
  font-weight: 500;
}
.stories-topbar .hint {
  font-size: 13px;
  color: var(--mute);
  letter-spacing: 0.04em;
}
.stories-canvas-wrap {
  position: fixed;
  inset: 64px 0 0 0;
}
