/* Spread Love concept mock-up by InSite Scan.
   Palette A "Night and petal" (default) and Palette B "Wreath", switchable in place. */

@font-face { font-family: "Caprasimo"; src: url("../fonts/Caprasimo-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/Newsreader-normal.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/Newsreader-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }

:root {
  /* warm, not cold (22 Oct 2026): a good news station, not a night thriller */
  --night: #2e1d2b;
  --rain: #d9c4cb;
  --petal: #ee5a86;
  --petal-deep: #c2325f;
  --dawn: #f8e8e2;
  --page: #fdf8f5;
  --lamp: #f3b04a;

  --display: "Caprasimo", "Cooper Black", Georgia, serif;
  --text: "Newsreader", Georgia, "Times New Roman", serif;

  --gutter: clamp(16px, 4.2vw, 64px);
  --max: 1320px;
  --head-h: 64px;
  --dial-h: 72px;

  --fs-small: 0.9375rem;
  --fs-body: clamp(1.125rem, 1.06rem + 0.28vw, 1.25rem);
  --fs-lede: clamp(1.25rem, 1.08rem + 0.75vw, 1.65rem);
  --fs-h3: clamp(1.5rem, 1.2rem + 1.2vw, 2.15rem);
  --fs-h2: clamp(2.6rem, 1.5rem + 4.6vw, 5.75rem);
  --fs-chapter: clamp(2.85rem, 1.3rem + 6.6vw, 7.25rem);
  --fs-quote: clamp(1.7rem, 1.05rem + 2.55vw, 3.55rem);

  color-scheme: light;
}

:root[data-palette="b"] {
  --night: #12302a;
  --rain: #a9c3b4;
  --petal: #f4b23a;
  --petal-deep: #8f5200;
  --dawn: #f3eedf;
  --page: #fbf8f0;
  --lamp: #e8553d;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--night);
  font-family: var(--text);
  font-size: var(--fs-body);
  font-optical-sizing: auto;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, ol, ul, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ol, ul { list-style: none; }

.display, h2, .chapter__title, .quote__lines, .brand__word, .price {
  font-family: var(--display);
  font-weight: 400;
  font-style: normal;
  font-synthesis: none;
  letter-spacing: -0.005em;
  text-transform: none;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--page); color: var(--night); padding: 10px 16px; border-radius: 8px;
}
.skip:focus { top: 12px; }

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

[hidden] { display: none !important; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Owner placeholders: deliberately loud so nothing slips through. */
.ph {
  font-style: normal;
  background: color-mix(in srgb, var(--lamp) 38%, transparent);
  box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--night) 55%, transparent);
  padding: 0 0.25em;
  border-radius: 3px;
  white-space: normal;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 50px; padding: 0.7em 1.35em;
  border: 0; border-radius: 999px;
  font: 600 1.0625rem/1.1 var(--text);
  letter-spacing: 0.005em;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
.btn--petal { background: var(--petal); color: var(--night); }
.btn--petal:hover { background: color-mix(in srgb, var(--petal) 86%, var(--page)); }
.btn--line { background: transparent; color: currentColor; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--line:hover { background: color-mix(in srgb, currentColor 12%, transparent); }
.btn--night { background: var(--night); color: var(--dawn); }
.btn--night:hover { background: color-mix(in srgb, var(--night) 84%, var(--page)); }
.btn--small { min-height: 42px; padding: 0.5em 1.05em; font-size: 1rem; }

.link {
  color: inherit; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.18em;
}
.link:hover { text-decoration-color: var(--petal); }

/* ---------- Header ---------- */
.top {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--head-h);
  display: flex; align-items: center; gap: 12px;
  padding: 0 var(--gutter);
  color: var(--dawn);
  transition: background-color 0.25s ease, color 0.25s ease;
}
.top.is-solid { background: var(--night); color: var(--dawn); }
.top.is-dark { color: var(--night); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; margin-right: auto; }
.brand img { width: 38px; height: 38px; }
.brand__word { font-size: 1.3rem; line-height: 1; white-space: nowrap; }
.top .btn--petal { white-space: nowrap; }
@media (max-width: 899px) { .wide-only { display: none; } }
.top__nav { display: none; }
.top__nav a, .top__plain {
  background: none; border: 0; padding: 8px 2px; cursor: pointer;
  font-size: 1.0625rem; font-weight: 500; text-decoration: none; color: inherit;
}
.top__nav a:hover, .top__plain:hover { text-decoration: underline; text-underline-offset: 0.25em; text-decoration-thickness: 1.5px; }
.top .btn--petal { min-height: 42px; padding: 0.45em 1em; font-size: 0.98rem; }
.icon-btn {
  position: relative; display: inline-grid; place-items: center;
  width: 44px; height: 44px; border: 0; border-radius: 999px; background: transparent; color: inherit; cursor: pointer;
}
.icon-btn:hover { background: color-mix(in srgb, currentColor 12%, transparent); }
.icon-btn svg { width: 24px; height: 24px; }
.count {
  position: absolute; top: 3px; right: 1px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 999px; background: var(--petal); color: var(--night);
  font: 700 0.75rem/19px var(--text); text-align: center;
}
.count[data-n="0"] { display: none; }
.top__bag { display: none; }

@media (max-width: 379px) { .brand__word { display: none; } }
@media (min-width: 900px) {
  :root { --head-h: 76px; }
  .brand img { width: 44px; height: 44px; }
  .brand__word { font-size: 1.5rem; }
  .top { gap: 22px; }
  .top__nav { display: flex; gap: 26px; margin-right: 6px; }
  .top__menu { display: none; }
  .top__bag { display: inline-grid; }
  .top .btn--petal { min-height: 46px; font-size: 1.0625rem; padding: 0.5em 1.2em; }
}

/* Phone menu */
.menu {
  position: fixed; inset: 0; z-index: 60;
  background: var(--night); color: var(--dawn);
  padding: 18px var(--gutter) 32px;
  display: flex; flex-direction: column;
}
.menu[hidden] { display: none; }
.menu__head { display: flex; justify-content: space-between; align-items: center; min-height: 44px; }
.menu__list { margin-top: 40px; display: grid; gap: 6px; }
.menu__list a, .menu__list button {
  display: block; width: 100%; text-align: left; background: none; border: 0; padding: 8px 0; cursor: pointer;
  font-family: var(--display); font-size: 2.6rem; line-height: 1.1; text-decoration: none; color: inherit;
}
.menu__foot { margin-top: auto; display: grid; gap: 12px; }
.menu__foot .btn { width: 100%; }

/* ---------- Chapters (the signature moment) ---------- */
.chapters { position: relative; background: var(--night); color: var(--dawn); }
.chapter {
  position: relative; isolation: isolate;
  min-height: 100svh; display: grid; align-items: end;
  overflow: hidden;
}
.chapter__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--night); }
.chapter__img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: var(--pos-m, 50% 50%);
  transform-origin: 50% 62%;
}
.chapter__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    /* only as much shade as the words need, low down: the photograph stays bright and warm */
    linear-gradient(to top,
      color-mix(in srgb, var(--night) 86%, transparent) 0%,
      color-mix(in srgb, var(--night) 58%, transparent) 26%,
      color-mix(in srgb, var(--night) 16%, transparent) 50%,
      transparent 66%),
    linear-gradient(to bottom, color-mix(in srgb, var(--night) 58%, transparent), color-mix(in srgb, var(--night) 18%, transparent) 12%, transparent 22%);
}
.chapter__text {
  width: 100%; max-width: 62rem;
  padding: calc(var(--head-h) + 24px) var(--gutter) calc(var(--dial-h) + 26px);
}
.chapter__hello {
  font: italic 400 clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem)/1.35 var(--text);
  margin-bottom: 1.1rem;
  max-width: 30ch;
}
.chapter__meta { font-size: 1.0625rem; font-style: italic; color: color-mix(in srgb, var(--dawn) 82%, var(--rain)); }
.chapter__title { font-size: var(--fs-chapter); line-height: 0.95; margin: 0.12em 0 0.28em; text-wrap: balance; max-width: 13ch; }
.chapter__title a { text-decoration: none; color: inherit; }
.chapter__title a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.12em; }
.chapter__line { font-size: var(--fs-lede); line-height: 1.38; max-width: 33ch; color: color-mix(in srgb, var(--dawn) 92%, var(--rain)); }
.chapter__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem; }

.chapter--right .chapter__text { justify-self: end; }
@media (min-width: 900px) {
  .chapter__img { object-position: var(--pos-d, 50% 50%); }
  .chapter--right { justify-items: end; }
  .chapter--right .chapter__text { max-width: 44rem; }
}

.chapter--yours { background: var(--dawn); color: var(--night); }
.chapter--yours .chapter__meta { color: var(--petal-deep); }
.chapter--yours .chapter__line { color: var(--night); }
.chapter--yours .chapter__title { max-width: 11ch; }
.chapter--yours .yours__badge {
  position: absolute; right: var(--gutter); top: calc(var(--head-h) + 6vh);
  width: clamp(150px, 30vw, 360px); height: auto; transform: rotate(8deg);
}

/* The welcome: his own sky, his badge, his words (22 Oct 2026) */
.chapter--welcome { color: var(--night); }
.chapter--welcome .chapter__media::after { background: linear-gradient(to top, color-mix(in srgb, var(--page) 78%, transparent) 0%, color-mix(in srgb, var(--page) 30%, transparent) 38%, transparent 62%); }
.chapter--welcome .chapter__img { object-position: 50% 40%; }
.chapter--welcome .chapter__hello { color: var(--petal-deep); }
.chapter--welcome .chapter__title { max-width: 12ch; }
.chapter--welcome .chapter__line { color: var(--night); max-width: 30ch; }
.chapter--welcome .btn--line { color: var(--night); border-color: var(--night); }
.welcome__badge {
  position: absolute; z-index: 1; left: 50%; top: calc(var(--head-h) + 3vh);
  width: min(62vw, 300px); height: auto; margin-left: calc(min(62vw, 300px) / -2);
  filter: drop-shadow(0 18px 30px rgba(46, 29, 43, .22));
  animation: welcome-float 7s ease-in-out infinite;
}
@media (min-width: 900px) {
  .welcome__badge { left: auto; right: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); top: 50%; width: clamp(300px, 32vw, 460px); margin: 0; translate: 0 -55%; }
}
@keyframes welcome-float { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-14px) rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { .welcome__badge { animation: none; } }

/* Dial: the station tuner that indexes the stories */
.dial { display: none; }
.chapters.is-live { height: calc(100svh + (var(--n, 6) - 1) * 75svh); }
.chapters.is-live .chapters__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.chapters.is-live .chapter { position: absolute; inset: 0; min-height: 0; }
.chapters.is-live .chapter__img { will-change: transform; }
.chapters.is-live .dial {
  display: block; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 0; z-index: 5;
  height: var(--dial-h); color: var(--dawn); transition: color 0.3s ease;
}
.chapters.is-light .dial { color: var(--night); }
.dial__track { position: absolute; left: 0; right: 0; top: 22px; height: 2px; background: color-mix(in srgb, currentColor 28%, transparent); }
.dial__fill { position: absolute; inset: 0; background: var(--petal); transform-origin: 0 50%; transform: scaleX(0); }
.chapters.is-light .dial__fill { background: var(--petal-deep); }
.dial ol { position: absolute; inset: 0; display: flex; justify-content: space-between; }
.dial li { position: relative; width: 0; }
.dial button {
  position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; color: inherit;
}
.dial li:first-child button { left: 0; transform: none; justify-content: start; }
.dial li:last-child button { left: auto; right: 0; transform: none; }
.dial button::before {
  content: ""; position: absolute; top: 17px; left: 50%; width: 12px; height: 12px; margin-left: -6px;
  border-radius: 50%; background: var(--night); box-shadow: inset 0 0 0 2px currentColor;
}
.chapters.is-light .dial button::before { background: var(--dawn); }
.dial li:first-child button::before { left: 6px; }
.dial li:last-child button::before { left: auto; right: 0; margin-left: 0; }
.dial button[aria-current="true"]::before { background: var(--petal); box-shadow: inset 0 0 0 2px var(--petal); }
.chapters.is-light .dial button[aria-current="true"]::before { background: var(--petal-deep); box-shadow: none; }
.dial__label {
  position: absolute; top: 42px; left: 50%; transform: translateX(-50%);
  white-space: nowrap; font-size: 0.875rem; line-height: 1.2; color: currentColor; opacity: 0.66;
  display: none;
}
.dial li:first-child .dial__label { left: 0; transform: none; }
.dial li:last-child .dial__label { left: auto; right: 0; transform: none; }
.dial button[aria-current="true"] .dial__label { opacity: 1; }
@media (min-width: 1100px) {
  .dial__label { display: block; }
}

/* ---------- Section shells ---------- */
.section { padding: clamp(80px, 11vw, 160px) var(--gutter); }
.wrap { max-width: var(--max); margin: 0 auto; }
.grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 900px) {
  .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 clamp(20px, 2.2vw, 36px); }
}
h2 { font-size: var(--fs-h2); line-height: 0.95; text-wrap: balance; }

/* ---------- Share your story ---------- */
.share { background: var(--dawn); color: var(--night); }
.share__intro h2 { max-width: 10ch; }
.share__intro p { margin-top: 1.4rem; max-width: 34ch; }
.share__intro .share__alt { margin-top: 1.4rem; font-style: italic; }
.share__example { margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1.5px solid color-mix(in srgb, var(--night) 22%, transparent); max-width: 30ch; }
.share__example blockquote p { font-family: var(--display); font-synthesis: none; font-size: clamp(1.45rem, 1.2rem + 0.9vw, 1.9rem); line-height: 1.12; margin-top: 0; }
.share__example figcaption { margin-top: 0.8rem; font-size: var(--fs-small); font-style: italic; }
@media (min-width: 900px) {
  .share__intro { grid-column: 1 / span 5; }
  .share__formwrap { grid-column: 7 / span 6; }
}
.form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label, .check { font-weight: 600; font-size: 1.0625rem; line-height: 1.3; }
.field .hint { font-size: var(--fs-small); color: color-mix(in srgb, var(--night) 72%, transparent); margin-top: -4px; }
.field input, .field textarea {
  width: 100%;
  background: var(--page);
  border: 1.5px solid color-mix(in srgb, var(--night) 42%, transparent);
  border-radius: 12px;
  padding: 13px 15px;
  font-size: 1.125rem; line-height: 1.45;
}
.field textarea { min-height: 11rem; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--night); outline: 3px solid var(--lamp); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: var(--petal-deep); }
.err { color: var(--petal-deep); font-size: var(--fs-small); font-weight: 600; }
.err:empty { display: none; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-weight: 500; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--petal-deep); }
.privacy { font-size: var(--fs-small); line-height: 1.55; color: color-mix(in srgb, var(--night) 82%, transparent); max-width: 52ch; }
.form__send { justify-self: start; }
.done { padding: 8px 0; }
.done h3 { font-family: var(--display); font-weight: 400; font-synthesis: none; font-size: var(--fs-h3); line-height: 1.05; }
.done p { margin-top: 0.9rem; max-width: 40ch; }
.done .note { font-size: var(--fs-small); font-style: italic; }

/* ---------- Why: the quote ---------- */
.why { background: var(--night); color: var(--dawn); }
.quote__lines { font-size: var(--fs-quote); line-height: 1.04; }
.quote__lines span { display: block; padding-left: 0.9em; text-indent: -0.9em; }
.quote__refrain { display: block; margin-top: 0.55em; }
.quote cite { display: block; margin-top: 1.6rem; font-style: italic; font-size: 1.0625rem; color: var(--rain); }
.why__poster { width: 100%; max-width: min(440px, 82vw); }
.why__poster img { width: 100%; border-radius: 4px; }
.why__answer { margin-top: clamp(72px, 9vw, 140px); }
.why__answer h2 { color: var(--petal); max-width: 11ch; }
.why__answer p { font-size: var(--fs-lede); line-height: 1.45; max-width: 36ch; }
@media (min-width: 900px) {
  .quote { grid-column: 1 / span 8; align-self: center; }
  .why__poster { grid-column: 9 / span 4; justify-self: end; }
  .why__answer h2 { grid-column: 1 / span 6; }
  .why__answer .why__copy { grid-column: 7 / span 6; align-self: end; }
}
.why__copy .btn { margin-top: 1.8rem; }

/* ---------- Shop ---------- */
.shop { background: var(--petal); color: var(--night); }
.shop__badge { justify-self: center; width: min(78vw, 540px); }
.shop__badge img { width: 100%; transform: rotate(-7deg); filter: drop-shadow(0 28px 34px color-mix(in srgb, var(--night) 38%, transparent)); }
.shop__text h2 { max-width: 12ch; }
.shop__text > p { margin-top: 1.3rem; max-width: 36ch; font-size: var(--fs-lede); line-height: 1.42; }
.shop__buy { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 24px; margin-top: 2rem; }
.price { font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem); line-height: 1; }
.shop__facts { margin-top: 2.2rem; display: grid; gap: 10px; font-size: var(--fs-small); max-width: 46ch; }
.shop__facts div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 12px; }
.shop__facts dt { font-weight: 700; }
.shop__note { margin-top: 1.4rem; font-size: var(--fs-small); font-style: italic; }
@media (min-width: 900px) {
  .shop__badge { grid-column: 1 / span 6; }
  .shop__text { grid-column: 7 / span 6; align-self: center; }
}

/* ---------- Footer ---------- */
.foot { background: var(--night); color: var(--dawn); padding: clamp(72px, 9vw, 120px) var(--gutter) 96px; }
.foot__brand { display: flex; align-items: center; gap: 18px; }
.foot__brand img { width: 84px; height: 84px; }
.foot__brand p { font-family: var(--display); font-synthesis: none; font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem); line-height: 0.95; }
.foot__brand small { display: block; font-family: var(--text); font-style: italic; font-size: 1.05rem; color: var(--rain); margin-top: 8px; }
.foot__cols { margin-top: 56px; display: grid; gap: 36px; grid-template-columns: 1fr 1fr; }
.foot__cols h3 { font-size: 1rem; font-weight: 700; margin-bottom: 12px; color: var(--rain); }
.foot__cols li + li { margin-top: 8px; }
.foot__cols a, .foot__cols button {
  background: none; border: 0; padding: 0; cursor: pointer; text-align: left;
  color: inherit; text-decoration: none; font-size: 1.0625rem; line-height: 1.4;
}
.foot__cols a:hover, .foot__cols button:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.foot__base {
  margin-top: 64px; padding-top: 24px; border-top: 1px solid color-mix(in srgb, var(--rain) 30%, transparent);
  display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; font-size: 0.9rem; color: var(--rain);
}
.foot__base .mock { color: var(--dawn); font-weight: 600; }
@media (min-width: 900px) { .foot__cols { grid-template-columns: 2fr 1fr 1fr 1.4fr; } }

/* ---------- Palette switch (mock-up tool) ---------- */
.palette {
  position: fixed; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 45;
  display: flex; align-items: center; gap: 4px; padding: 4px 4px 4px 12px;
  background: var(--page); color: var(--night); border-radius: 999px;
  box-shadow: 0 6px 22px rgb(0 0 0 / 0.22);
  font-size: 0.8125rem; transition: opacity 0.25s ease, transform 0.25s ease;
}
@media (max-width: 899px) {
  .palette { right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); padding: 3px 3px 3px 10px; }
  .palette button { min-width: 34px; height: 30px; }
}
.palette.is-hidden { opacity: 0; transform: translateY(12px); pointer-events: none; }
.palette button {
  min-width: 40px; height: 34px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; font-weight: 700;
}
.palette button[aria-pressed="true"] { background: var(--night); color: var(--page); }

/* ---------- Dialogs and toast ---------- */
dialog {
  width: min(460px, calc(100vw - 32px)); max-height: calc(100svh - 48px);
  border: 0; border-radius: 20px; padding: 28px 24px 26px;
  background: var(--page); color: var(--night);
}
dialog::backdrop { background: rgb(10 16 28 / 0.62); }
.dlg__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.dlg__head h2 { font-size: 2rem; line-height: 1; }
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--dawn); border-radius: 999px; margin-bottom: 20px; }
.tabs button { flex: 1; min-height: 42px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; font-weight: 600; }
.tabs button[aria-selected="true"] { background: var(--night); color: var(--page); }
.dlg__note { margin-top: 6px; font-size: var(--fs-small); font-style: italic; }
.dlg__note:empty { display: none; }
.bag__item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid color-mix(in srgb, var(--night) 15%, transparent); }
.bag__item img { width: 64px; height: 64px; }
.bag__empty { font-style: italic; }
.bag__total { display: flex; justify-content: space-between; margin: 16px 0 18px; font-weight: 700; }

.toast {
  position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); z-index: 70;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--night); color: var(--dawn); padding: 12px 20px; border-radius: 999px;
  font-weight: 600; font-size: 1rem; box-shadow: 0 8px 26px rgb(0 0 0 / 0.25);
  transition: opacity 0.2s ease, transform 0.2s ease; max-width: calc(100vw - 32px); text-align: center;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Story page ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 55; background: var(--petal); transform-origin: 0 50%; transform: scaleX(0); }
.story-hero {
  position: relative; isolation: isolate; min-height: 72svh; display: grid; align-items: end;
  color: var(--dawn); overflow: hidden;
}
.story-hero .chapter__text { padding-bottom: clamp(36px, 6vw, 72px); }
.story-hero .chapter__title { max-width: 14ch; }
.story-hero .byline { margin-top: 1rem; font-size: 1.0625rem; color: color-mix(in srgb, var(--dawn) 90%, var(--rain)); }
@media (min-width: 900px) { .story-hero { min-height: 82svh; } }

.listen { background: var(--page); color: var(--night); padding: 28px var(--gutter) 0; }
.listen__box {
  max-width: 44rem; margin: 0 auto; display: grid; grid-template-columns: 60px 1fr; gap: 6px 16px; align-items: center;
  padding: 16px 18px 16px 16px; border-radius: 18px; background: var(--dawn);
}
.listen__play {
  grid-row: span 2; width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--petal); color: var(--night); display: grid; place-items: center;
}
.listen__play svg { width: 26px; height: 26px; }
.listen__play[disabled] { opacity: 0.5; cursor: not-allowed; }
.listen__title { font-weight: 700; line-height: 1.25; display: flex; align-items: center; gap: 8px; }
.listen__live { width: 9px; height: 9px; border-radius: 50%; background: var(--lamp); display: none; }
.listen.is-playing .listen__live { display: inline-block; }
.listen__status { font-size: var(--fs-small); line-height: 1.4; }
.listen__bar { grid-column: 1 / -1; height: 3px; margin-top: 10px; background: color-mix(in srgb, var(--night) 14%, transparent); border-radius: 3px; overflow: hidden; }
.listen__fill { height: 100%; background: var(--night); transform-origin: 0 50%; transform: scaleX(0); }
.listen__owner { grid-column: 1 / -1; margin-top: 8px; font-size: 0.875rem; }
.listen.is-cued .listen__box { box-shadow: 0 0 0 3px var(--petal); }

.story { background: var(--page); color: var(--night); padding: clamp(40px, 6vw, 72px) var(--gutter) clamp(72px, 9vw, 120px); }
.story__body { max-width: 38rem; margin: 0 auto; font-size: clamp(1.1875rem, 1.1rem + 0.35vw, 1.3125rem); line-height: 1.68; }
.story__body p + p { margin-top: 1.05em; }
.story__body p:first-child { font-size: 1.22em; line-height: 1.5; }
.story__body .sign {
  font-family: var(--display); font-synthesis: none; font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem); line-height: 1.05; margin: 0.6em 0;
}
.story__body .sign strong { font-weight: 400; }
.story__end { max-width: 38rem; margin: 3rem auto 0; padding-top: 1.6rem; border-top: 1px solid color-mix(in srgb, var(--night) 18%, transparent); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tags li { font-size: 0.95rem; padding: 4px 12px; border-radius: 999px; background: var(--dawn); }
.story__pass { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.next { display: grid; background: var(--night); color: var(--dawn); }
.next a { display: grid; text-decoration: none; color: inherit; }
.next__img { aspect-ratio: 16 / 10; overflow: hidden; }
.next__img img { width: 100%; height: 100%; object-fit: cover; }
.next__text { padding: 40px var(--gutter) 48px; align-self: center; }
.next__text p { font-style: italic; color: var(--rain); }
.next__text h2 { font-size: clamp(2.4rem, 1.4rem + 4vw, 4.8rem); margin: 0.15em 0 0.4em; max-width: 12ch; }
.next a:hover h2 { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.12em; }
@media (min-width: 900px) {
  .next a { grid-template-columns: 1.1fr 1fr; }
  .next__img { aspect-ratio: auto; min-height: 520px; }
}
.invite { background: var(--dawn); color: var(--night); padding: clamp(64px, 8vw, 110px) var(--gutter); }
.invite .wrap { display: grid; gap: 22px; justify-items: start; }
.invite h2 { font-size: clamp(2.2rem, 1.4rem + 3.4vw, 4.2rem); max-width: 14ch; }
.invite p { max-width: 40ch; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* Plain pages on the live site: the privacy notice and the missing-page note (22 Oct 2026) */
.page { background: var(--page); color: var(--night); padding: calc(var(--head-h) + clamp(40px, 7vw, 96px)) var(--gutter) clamp(72px, 9vw, 120px); }
.page .story__body p:first-child { font-size: inherit; line-height: inherit; }
.page__title { font-family: var(--display); font-weight: 400; font-size: clamp(2.6rem, 1.6rem + 4vw, 4.5rem); line-height: 1; margin-bottom: 0.6em; text-wrap: balance; }
.page h2 { font-family: var(--display); font-weight: 400; font-size: var(--fs-h3); line-height: 1.1; margin: 1.6em 0 0.45em; }
.page p + p { margin-top: 1.05em; }
.page__date { color: color-mix(in srgb, var(--night) 70%, var(--page)); font-size: var(--fs-small); }
.page__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }
.page .btn--line { color: var(--night); border-color: var(--night); }
.shop__soon { margin-top: 14px; font-size: var(--fs-small); }
.give__line { font-size: var(--fs-lede); line-height: 1.45; max-width: 34ch; }
.give__note { font-size: var(--fs-small); }
