/* Self-hosted fonts (SIL Open Font License) */
@font-face { font-family: "Parisienne"; src: url("fonts/parisienne-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-garamond-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-garamond-latin-600-italic.woff2") format("woff2"); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Lora"; src: url("fonts/lora-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("fonts/lora-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Lora"; src: url("fonts/lora-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

/* Penny F. McLaren — site styles */
:root {
  --ink: #3b2540;
  --ink-soft: #6b5470;
  --plum: #5b2d5f;
  --plum-deep: #2e1733;
  --lilac: #ecdff7;
  --blush: #fde6ec;
  --peach: #ffe9d9;
  --cream: #fffaf6;
  --rose: #d9466f;
  --rose-soft: #f6a8bd;
  --gold: #e9a94b;
  --gold-soft: #ffd79a;
  --card: rgba(255, 255, 255, 0.72);
  --shadow: 0 20px 50px -20px rgba(91, 45, 95, 0.35);
  --radius: 28px;
  --script: "Parisienne", "Brush Script MT", cursive;
  --display: "Cormorant Garamond", Georgia, serif;
  --body: "Lora", Georgia, serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  font-size: 1.05rem;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--rose); }

/* ---------- Dreamy floating background ---------- */
.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 15% 0%, #f3e3ff 0%, transparent 55%),
    radial-gradient(ellipse at 90% 10%, #ffe1ea 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, #ffecd9 0%, transparent 60%),
    linear-gradient(180deg, #fbf1ff 0%, #fff4f0 50%, #fff7ee 100%);
  overflow: hidden;
}
.sky span {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  animation: drift 26s ease-in-out infinite alternate;
}
.sky span:nth-child(1) { width: 420px; height: 420px; background: #e7c6ff; top: -80px; left: -120px; }
.sky span:nth-child(2) { width: 360px; height: 360px; background: #ffc2d4; top: 30%; right: -100px; animation-duration: 32s; }
.sky span:nth-child(3) { width: 300px; height: 300px; background: #ffd9a8; bottom: -60px; left: 20%; animation-duration: 38s; }
.sky span:nth-child(4) { width: 240px; height: 240px; background: #c9d8ff; top: 55%; left: -60px; animation-duration: 29s; opacity: 0.4; }

@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(60px, 40px) scale(1.08); }
  100% { transform: translate(-30px, 80px) scale(0.95); }
}

/* Little glowing lamplight dots */
.glow-dots { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.glow-dots i {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 215, 154, 0.95), rgba(255, 215, 154, 0) 70%);
  animation: float 14s linear infinite;
  opacity: 0;
}
.glow-dots i:nth-child(1) { left: 8%;  animation-delay: 0s; }
.glow-dots i:nth-child(2) { left: 22%; animation-delay: 4s; width: 14px; height: 14px; }
.glow-dots i:nth-child(3) { left: 41%; animation-delay: 8s; }
.glow-dots i:nth-child(4) { left: 63%; animation-delay: 2s; width: 16px; height: 16px; }
.glow-dots i:nth-child(5) { left: 79%; animation-delay: 6s; }
.glow-dots i:nth-child(6) { left: 92%; animation-delay: 10s; width: 12px; height: 12px; }

@keyframes float {
  0%   { transform: translateY(105vh) translateX(0); opacity: 0; }
  15%  { opacity: 0.9; }
  85%  { opacity: 0.7; }
  100% { transform: translateY(-10vh) translateX(40px); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .sky span, .glow-dots i { animation: none; }
  .glow-dots { display: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem clamp(1rem, 4vw, 3rem);
  background: rgba(255, 248, 252, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(217, 70, 111, 0.12);
}
.nav .brand {
  font-family: var(--script);
  font-size: 1.7rem;
  color: var(--plum);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}
.nav ul {
  display: flex;
  gap: clamp(0.8rem, 2.5vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 600;
}
.nav ul a {
  color: var(--ink);
  text-decoration: none;
  position: relative;
}
.nav ul a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--rose), var(--gold));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.nav ul a:hover::after,
.nav ul a[aria-current="page"]::after { transform: scaleX(1); }

@media (max-width: 640px) {
  .nav { flex-direction: column; gap: 0.3rem; padding-block: 0.6rem; }
  .nav ul { font-size: 1rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  cursor: pointer;
  border: 0;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--rose) 0%, #b8407f 55%, #5b2d5f 100%);
  box-shadow: 0 12px 28px -10px rgba(217, 70, 111, 0.65);
}
.btn-primary:hover { box-shadow: 0 16px 34px -10px rgba(217, 70, 111, 0.8); }
.btn-soft {
  color: var(--plum);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 0 0 2px rgba(91, 45, 95, 0.18);
}
.btn-soft:hover { background: #fff; box-shadow: inset 0 0 0 2px rgba(217, 70, 111, 0.45); }
.btn small { font-family: var(--body); font-weight: 400; font-size: 0.85rem; opacity: 0.85; }

/* ---------- Layout ---------- */
.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
section { position: relative; }

.kicker {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--rose);
  margin: 0 0 0.6rem;
}

.script-heading {
  font-family: var(--script);
  font-weight: 400;
  color: var(--plum);
  font-size: clamp(2.6rem, 6vw, 4rem);
  line-height: 1.1;
  margin: 0 0 1.2rem;
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(2.5rem, 7vw, 6rem) 0 clamp(3rem, 8vw, 6rem);
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}
.hero h1 {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(3.6rem, 9vw, 6.6rem);
  line-height: 1;
  margin: 0;
  color: var(--plum);
  background: linear-gradient(120deg, var(--plum) 10%, #a83a78 55%, var(--rose) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 0.1em 0.15em 0.15em 0;
}
.hero .underline {
  display: block;
  width: min(360px, 80%);
  height: 18px;
  margin: -0.2rem 0 1.4rem 0.4rem;
}
.hero .author {
  font-family: var(--display);
  font-size: 1.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 1.4rem;
  color: var(--ink);
}
.hero .lede {
  font-size: 1.18rem;
  max-width: 34rem;
  color: var(--ink-soft);
  margin: 0 0 2rem;
}
.hero .actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero .ku {
  margin-top: 1.1rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* Hero text column centred */
.hero-text { text-align: center; }
.hero-text .underline { margin-left: auto; margin-right: auto; }
.hero-text .lede { margin-left: auto; margin-right: auto; }
.hero-text .actions { justify-content: center; }

.cover-frame {
  position: relative;
  justify-self: center;
  width: min(380px, 100%);
}
.cover-frame::before {
  content: "";
  position: absolute;
  inset: -12% -14%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 196, 120, 0.7), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(214, 120, 200, 0.55), transparent 60%);
  filter: blur(40px);
  z-index: -1;
  animation: breathe 9s ease-in-out infinite alternate;
}
@keyframes breathe { from { transform: scale(0.95); opacity: 0.8; } to { transform: scale(1.05); opacity: 1; } }
.cover-frame img {
  border-radius: 10px 18px 18px 10px;
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.6) inset,
    0 40px 70px -25px rgba(46, 23, 51, 0.6),
    0 10px 25px -10px rgba(46, 23, 51, 0.4);
  transform: rotate(2deg);
  transition: transform 0.6s cubic-bezier(.2,.8,.2,1);
}
.cover-frame:hover img { transform: rotate(0deg) translateY(-6px); }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero .underline { margin-inline: auto; }
  .hero .lede { margin-inline: auto; }
  .hero .actions { justify-content: center; }
  .cover-frame { order: -1; width: min(280px, 78%); }
}

/* ---------- Wavy dividers ---------- */
.wave { display: block; width: 100%; height: clamp(50px, 8vw, 110px); }
.wave-fill-blush { fill: var(--blush); }
.wave-fill-lilac { fill: var(--lilac); }
.wave-fill-peach { fill: var(--peach); }

.band-blush { background: var(--blush); }
.band-lilac { background: var(--lilac); }
.band-peach { background: var(--peach); }
.band { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }

/* ---------- Story ---------- */
.story .wrap { max-width: 760px; }
.story p { font-size: 1.15rem; margin: 0 0 1.2rem; }
.story .turn {
  font-family: var(--script);
  font-size: clamp(2.2rem, 5vw, 3rem);
  color: var(--rose);
  text-align: center;
  margin: 1.6rem 0;
  line-height: 1.2;
}
.story .closing {
  font-family: var(--display);
  font-size: 1.45rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--plum);
  text-align: center;
  margin-top: 2.2rem;
}

.ingredients {
  margin: 2.4rem 0 0.4rem;
  text-align: center;
}
.ingredients h3 {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 600;
  font-style: italic;
  margin: 0 0 1rem;
  color: var(--ink);
}
.pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.pills li {
  padding: 0.45rem 1.05rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 6px 16px -10px rgba(91, 45, 95, 0.45);
  font-size: 0.98rem;
  color: var(--plum);
  transition: transform 0.25s ease;
}
.pills li:nth-child(3n+1) { background: #fff3f6; }
.pills li:nth-child(3n+2) { background: #f7efff; }
.pills li:nth-child(3n)   { background: #fff6ea; }
.pills li:hover { transform: translateY(-3px) rotate(-1deg); }
.pills li.secret {
  background: linear-gradient(135deg, var(--rose-soft), var(--gold-soft));
  color: var(--plum-deep);
  font-weight: 600;
}

/* ---------- Review ---------- */
.review {
  text-align: center;
  padding: clamp(3rem, 7vw, 5rem) 0;
}
.review blockquote {
  margin: 0 auto;
  max-width: 640px;
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-style: italic;
  line-height: 1.3;
  color: var(--plum);
}
.review blockquote::before {
  content: "\201C";
  display: block;
  font-family: var(--script);
  font-size: 5rem;
  line-height: 0.6;
  color: var(--rose-soft);
}
.stars { color: var(--gold); letter-spacing: 0.25em; font-size: 1.3rem; margin-top: 1rem; }
.review cite { display: block; font-style: normal; color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Chapter cards ---------- */
.read-intro { text-align: center; max-width: 640px; margin: 0 auto 2.4rem; }
.read-intro p { color: var(--ink-soft); font-size: 1.1rem; }
.chapter-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.3rem;
}
.chapter-card {
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem 1.6rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.9);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}
.chapter-card::after {
  content: "";
  position: absolute;
  right: -40px; top: -40px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 168, 189, 0.55), transparent 70%);
}
.chapter-card:hover { transform: translateY(-6px); box-shadow: 0 28px 60px -22px rgba(91, 45, 95, 0.45); }
.chapter-card .num {
  font-family: var(--script);
  font-size: 2.4rem;
  color: var(--rose);
  line-height: 1;
}
.chapter-card h3 {
  font-family: var(--display);
  font-size: 1.45rem;
  margin: 0.4rem 0 0.5rem;
  line-height: 1.25;
}
.chapter-card p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }
.chapter-card .go {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--display);
  font-weight: 700;
  color: var(--plum);
}
.center { text-align: center; }
.mt { margin-top: 2.4rem; }

/* ---------- Formats ---------- */
.formats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}
.format {
  background: var(--card);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
}
.format h3 {
  font-family: var(--display);
  font-size: 1.8rem;
  margin: 0;
  color: var(--plum);
}
.format .price {
  font-family: var(--display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--rose);
  line-height: 1.1;
  margin: 0.4rem 0 0.2rem;
}
.format .price-note { color: var(--ink-soft); font-size: 0.95rem; margin: 0 0 1rem; }
.format dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.3rem 1rem;
  margin: 0 0 1.6rem;
  font-size: 0.97rem;
}
.format dt { color: var(--ink-soft); }
.format dd { margin: 0; }
.format .btn { margin-top: auto; align-self: flex-start; }

.published {
  text-align: center;
  margin-top: 2rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* ---------- Content note ---------- */
.content-note {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.6);
  border: 1px dashed rgba(217, 70, 111, 0.4);
  border-radius: 20px;
  padding: 1.1rem 1.4rem;
  font-size: 0.98rem;
  color: var(--ink-soft);
}
.content-note strong { color: var(--plum); font-family: var(--display); font-size: 1.1rem; }
.content-note .icon { font-size: 1.4rem; line-height: 1.4; }

/* ---------- Footer ---------- */
footer {
  text-align: center;
  padding: 3rem 1rem 3.5rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
footer .sig {
  font-family: var(--script);
  font-size: 2.4rem;
  color: var(--plum);
  display: block;
  margin-bottom: 0.3rem;
}

/* ---------- Gentle reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.no-js .reveal { opacity: 1; transform: none; }

/* =========================================================
   Reader page
   ========================================================= */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 4px;
  width: 0;
  z-index: 30;
  background: linear-gradient(90deg, var(--gold), var(--rose), #a83a78);
  border-radius: 0 4px 4px 0;
}

.reader-head {
  text-align: center;
  padding: clamp(2rem, 6vw, 4rem) 1.2rem 1rem;
}
.reader-head img {
  width: 120px;
  margin: 0 auto 1.2rem;
  border-radius: 6px 10px 10px 6px;
  box-shadow: 0 20px 40px -18px rgba(46, 23, 51, 0.6);
  transform: rotate(-2deg);
}
.reader-head h1 {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(2.8rem, 8vw, 4.4rem);
  color: var(--plum);
  margin: 0;
  line-height: 1.1;
}
.reader-head .sub {
  font-family: var(--display);
  font-size: 1.2rem;
  color: var(--ink-soft);
  margin: 0.4rem 0 1.4rem;
}
.reader-head .content-note { text-align: left; }

.toolbar {
  position: sticky;
  top: 62px;
  z-index: 15;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 1.6rem auto 0;
  padding: 0.5rem;
  width: fit-content;
  max-width: calc(100% - 1.5rem);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 999px;
  box-shadow: 0 10px 30px -16px rgba(91, 45, 95, 0.5);
}
.toolbar a,
.toolbar button {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--plum);
  background: transparent;
  border: 0;
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.toolbar a:hover,
.toolbar button:hover { background: var(--blush); }
.toolbar a.active { background: linear-gradient(135deg, var(--rose), #a83a78); color: #fff; }
.toolbar .sep { width: 1px; height: 22px; background: rgba(91, 45, 95, 0.2); margin: 0 0.2rem; }

@media (max-width: 640px) {
  .toolbar { top: 82px; border-radius: 22px; }
  .toolbar a, .toolbar button { padding: 0.35rem 0.6rem; font-size: 0.95rem; }
  .toolbar .word { display: none; }
  .toolbar a[data-ch]::before { content: "Ch "; }
}

.page {
  width: min(42rem, 100% - 2rem);
  margin: 2.2rem auto 0;
  background: rgba(255, 253, 250, 0.88);
  border-radius: 32px;
  box-shadow: 0 30px 80px -40px rgba(91, 45, 95, 0.45);
  padding: clamp(1.6rem, 6vw, 4rem) clamp(1.3rem, 6vw, 4rem);
  --reader-size: 1.12rem;
}
.chapter { scroll-margin-top: 140px; }
.chapter + .chapter { margin-top: 4rem; }
.chapter h2 {
  text-align: center;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--rose);
  margin: 0 0 0.2rem;
}
.chapter h2 .n {
  display: block;
  font-family: var(--script);
  font-size: 3.6rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--plum);
  line-height: 1.2;
}
.chapter .flourish {
  display: block;
  width: 120px;
  height: 20px;
  margin: 0 auto 2rem;
}
.chapter p {
  font-size: var(--reader-size);
  line-height: 1.85;
  margin: 0 0 0.9em;
  text-indent: 2em;
}
.chapter p.no-indent {
  text-indent: 0;
}
.chapter h2 + .flourish + p::first-letter {
  float: left;
  font-family: var(--script);
  font-size: 4.4em;
  line-height: 0.62;
  padding: 0.08em 0.05em 0 0;
  color: var(--rose);
  font-weight: 400;
}
.chapter em { font-style: italic; }

.end-sample {
  width: min(42rem, 100% - 2rem);
  margin: 3rem auto 0;
  text-align: center;
  padding: clamp(2rem, 5vw, 3rem) 1.5rem;
  border-radius: 32px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 215, 154, 0.6), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(246, 168, 189, 0.6), transparent 55%),
    linear-gradient(135deg, #f7ecff, #ffeef3);
  box-shadow: var(--shadow);
}
.end-sample .script-heading { margin-bottom: 0.6rem; }
.end-sample p { max-width: 30rem; margin: 0 auto 1.6rem; color: var(--ink-soft); font-size: 1.1rem; }
.end-sample .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; }

/* Dusk (night reading) theme */
body.dusk {
  --ink: #f1e6f3;
  --ink-soft: #cdb9d2;
  --plum: #f3c9e4;
  --card: rgba(60, 35, 66, 0.7);
  background: #1f1226;
}
body.dusk .sky {
  background:
    radial-gradient(ellipse at 15% 0%, #3d2150 0%, transparent 55%),
    radial-gradient(ellipse at 90% 10%, #4a1f3a 0%, transparent 50%),
    linear-gradient(180deg, #1f1226 0%, #261530 100%);
}
body.dusk .sky span { opacity: 0.18; }
body.dusk .nav { background: rgba(35, 20, 42, 0.75); border-color: rgba(246, 168, 189, 0.15); }
body.dusk .nav ul a { color: var(--ink); }
body.dusk .page { background: rgba(43, 26, 50, 0.9); }
body.dusk .toolbar { background: rgba(43, 26, 50, 0.85); }
body.dusk .toolbar a:hover, body.dusk .toolbar button:hover { background: rgba(246, 168, 189, 0.15); }
body.dusk .content-note { background: rgba(43, 26, 50, 0.6); }
body.dusk .end-sample { background: linear-gradient(135deg, #3a2246, #4a2340); }
body.dusk .btn-soft { background: rgba(255, 255, 255, 0.1); color: var(--plum); }
body.dusk .chapter h2 .n { color: var(--plum); }
