/* ==========================================================
   Palettes — "daylight" (warm linen) and "evening" (candlelight)
   ========================================================== */
:root,
:root[data-theme="daylight"] {
  --bg:            #F7F3EB;
  --glow-1:        rgba(216, 195, 165, .38);
  --glow-2:        rgba(163, 184, 168, .30);
  --glow-3:        rgba(226, 188, 175, .26);
  --surface:       #FFFDF9;
  --surface-2:     #F2ECE1;
  --parchment:     #FAF6EE;
  --sanctuary:     #EAEFE9;
  --ink:           #2B2623;
  --ink-2:         #554C43;
  --ink-3:         #6E645A;
  --sage:          #4A6B5D;
  --sage-hover:    #3B564B;
  --sage-soft:     rgba(74, 107, 93, .14);
  --amber:         #C88A55;      /* decoration */
  --amber-text:    #93582A;      /* readable amber for small text */
  --rose:          #9E6158;
  --line:          #E4DACE;
  --line-soft:     #EFE8DD;
  --on-sage:       #FFFFFF;
  --grain:         #3d352e;
  --shadow:        0 12px 32px -8px rgba(62, 50, 39, .09), 0 4px 12px -2px rgba(62, 50, 39, .05);
  --shadow-stack:  0 6px 0 -2px #EFEAE0, 0 12px 0 -4px #E5DECF, 0 18px 38px rgba(62, 50, 39, .11);
  --orb-core:      #F6D29B;
  --orb-mid:       #D9A074;
  --orb-outer:     #8FA998;
  --orb-ink:       rgba(120, 72, 30, .55);
  color-scheme: light;
}

:root[data-theme="evening"] {
  --bg:            #1B2021;
  --glow-1:        rgba(196, 138, 79, .15);
  --glow-2:        rgba(74, 107, 93, .17);
  --glow-3:        rgba(145, 97, 90, .13);
  --surface:       #252B2D;
  --surface-2:     #1F2426;
  --parchment:     #202527;
  --sanctuary:     #1E2726;
  --ink:           #F4EFE6;
  --ink-2:         #D3CABB;
  --ink-3:         #A89F91;
  --sage:          #7BA593;
  --sage-hover:    #93BBA9;
  --sage-soft:     rgba(123, 165, 147, .16);
  --amber:         #DDA169;
  --amber-text:    #E5B07E;
  --rose:          #D49A91;
  --line:          #384042;
  --line-soft:     #2E3538;
  --on-sage:       #14191A;
  --grain:         #ffffff;
  --shadow:        0 14px 36px -8px rgba(0,0,0,.45), 0 4px 12px -2px rgba(0,0,0,.3);
  --shadow-stack:  0 6px 0 -2px #1F2426, 0 12px 0 -4px #181C1E, 0 18px 40px rgba(0,0,0,.5);
  --orb-core:      #F9D493;
  --orb-mid:       #D48C56;
  --orb-outer:     #557A6E;
  --orb-ink:       rgba(90, 50, 15, .6);
  color-scheme: dark;
}

/* ==========================================================
   Base — 20px minimum for easy reading
   ========================================================== */
html { font-size: 20px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: "Lora", Georgia, "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1.8;
  overflow-x: hidden;
  transition: background-color .6s ease, color .5s ease;
}

/* Soft paper grain */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .035;
  background-image: radial-gradient(var(--grain) .75px, transparent .75px);
  background-size: 22px 22px;
}

/* Ambient candle-like glows */
.ambient {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 15% 18%, var(--glow-1) 0%, transparent 48%),
    radial-gradient(circle at 85% 38%, var(--glow-2) 0%, transparent 52%),
    radial-gradient(circle at 50% 88%, var(--glow-3) 0%, transparent 55%);
}

h1, h2, h3, p, blockquote, ul, ol { margin: 0; }
.display { font-family: "Cormorant Garamond", Georgia, serif; }
.ui      { font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif; }

:focus-visible { outline: 2.5px solid var(--sage); outline-offset: 3px; border-radius: 14px; }

/* Hand-drawn line icons (assets/icons.svg), styled like the leaf mark */
.ico {
  width: 1.2em; height: 1.2em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
  vertical-align: -.2em;
}

.sr-only {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ==========================================================
   Comfort bar (stays at the top)
   ========================================================== */
.topbar {
  position: sticky; top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 46rem; margin: 0 auto;
  padding: .55rem 16px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem;
}
.brand { display: flex; align-items: center; gap: .55rem; color: var(--ink); text-decoration: none; }
.brand svg { width: 1.6rem; height: 1.6rem; color: var(--sage); }
.brand span { font-size: 1.3rem; font-weight: 600; letter-spacing: .02em; }

.comfort { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  font: 600 .8rem/1.2 "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  min-height: 46px;
  padding: .5rem .85rem;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  display: inline-flex; align-items: center; gap: .45rem;
  cursor: pointer;
  text-decoration: none;
  transition: border-color .25s ease, background-color .25s ease;
}
.chip:hover { border-color: var(--sage); }
.chip svg { width: 1.05em; height: 1.05em; color: var(--sage); }
.chip-breathe { background: var(--sage); border-color: var(--sage); color: var(--on-sage); }
.chip-breathe:hover { background: var(--sage-hover); border-color: var(--sage-hover); }
.chip-breathe .dot {
  width: .6em; height: .6em; border-radius: 50%;
  background: var(--orb-core);
  box-shadow: 0 0 0 0 var(--orb-core);
  animation: beacon 10s ease-in-out infinite;
}
@keyframes beacon {
  0%, 100% { box-shadow: 0 0 0 0 rgba(246, 210, 155, .0); transform: scale(.85); }
  40%      { box-shadow: 0 0 0 6px rgba(246, 210, 155, .35); transform: scale(1.1); }
}

/* ==========================================================
   Hero
   ========================================================== */
.hero {
  position: relative; z-index: 2;
  max-width: 40rem; margin: 0 auto;
  padding: 2.4rem 16px 1.6rem;
  text-align: center;
}
.branch { width: 11rem; height: 2.8rem; color: var(--sage); opacity: .85; margin: 0 auto .4rem; display: block; }
.greeting {
  font-size: .8rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--amber-text);
}
.hero h1 {
  font-size: clamp(2.6rem, 2rem + 3vw, 3.4rem);
  font-weight: 600; line-height: 1.1;
  letter-spacing: -.005em;
  margin: .35rem 0 .6rem;
}
.hero p.sub { color: var(--ink-2); font-size: 1.05rem; max-width: 32rem; margin: 0 auto; }

/* ==========================================================
   Layout + cards
   ========================================================== */
main {
  position: relative; z-index: 2;
  max-width: 46rem; margin: 0 auto;
  padding: 0 16px 4rem;
  display: grid; gap: 2.6rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: clamp(1.3rem, 4vw, 2.2rem);
  position: relative;
  transition: background-color .5s ease, border-color .5s ease;
}

/* Stacked linen pages for the daily card */
.deck { box-shadow: var(--shadow-stack); padding: clamp(.6rem, 2vw, .85rem); }
.page-frame {
  border: 1px solid var(--line-soft);
  border-radius: 15px;
  padding: clamp(1.2rem, 4vw, 2.2rem);
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--orb-core) 10%, transparent), transparent 60%);
}

.eyebrow {
  display: block;
  font-size: .72rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--amber-text);
}
.card h2 {
  font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.4rem);
  font-weight: 600; line-height: 1.15;
  margin: .25rem 0 .5rem;
}
.lead { color: var(--ink-2); }
.center { text-align: center; }

.meta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem;
  padding-bottom: .9rem; margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--line-soft);
  font-size: .8rem; color: var(--ink-3);
}
.meta .date { text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.meta .counter { padding: .1rem .75rem; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }

.page-title { font-style: italic; font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2rem); color: var(--sage); font-weight: 600; }

.thought {
  min-height: 9.5rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  margin: 1rem 0 .4rem;
}
.thought blockquote { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.7rem); line-height: 1.55; }
.thought .note { margin-top: .9rem; font-size: .88rem; color: var(--ink-3); }

/* Page-turn movement for Previous / Next */
.turnable { transition: opacity .38s ease, transform .38s ease; }
.turnable.out-left  { opacity: 0; transform: translateX(-28px) rotate(-.6deg); }
.turnable.out-right { opacity: 0; transform: translateX(28px) rotate(.6deg); }
.turnable.no-anim   { transition: none; }

.divider { display: flex; align-items: center; justify-content: center; gap: .8rem; margin: 1.2rem 0; color: var(--amber); }
.divider::before, .divider::after { content: ""; height: 1px; width: 4rem; background: var(--line); }

/* ==========================================================
   Buttons
   ========================================================== */
.btn {
  font: 600 .92rem/1.25 "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  min-height: 60px;
  padding: .75rem 1.3rem;
  border-radius: 15px;
  border: 1.5px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,.04);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), border-color .25s ease, background-color .25s ease, box-shadow .25s ease;
}
.btn:hover { transform: translateY(-2px); border-color: var(--sage); box-shadow: 0 6px 14px rgba(0,0,0,.08); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn-primary { background: var(--sage); border-color: var(--sage); color: var(--on-sage); }
.btn-primary:hover { background: var(--sage-hover); border-color: var(--sage-hover); }
.btn-amber { border-color: color-mix(in srgb, var(--amber) 60%, transparent); }
.btn-amber svg { color: var(--amber); }
.btn-keep { color: var(--rose); }
.btn-keep[aria-pressed="true"] svg { fill: currentColor; }

.row { display: flex; flex-wrap: wrap; gap: .75rem; }
.row > .btn { flex: 1 1 12rem; }
.row > .btn.shrink { flex: 0 1 auto; }

/* Keepsakes drawer */
.keepsakes { margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid var(--line-soft); text-align: left; }
.keepsakes[hidden] { display: none; }
.keepsakes h3 { font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--sage); margin-bottom: .7rem; }
.keepsakes ul { list-style: none; padding: 0; display: grid; gap: .6rem; }
.keepsakes li {
  display: flex; gap: .8rem; align-items: flex-start; justify-content: space-between;
  padding: .75rem .9rem;
  border-radius: 14px;
  background: var(--parchment);
  border: 1px solid var(--line-soft);
  font-style: italic; color: var(--ink-2);
}
.keepsakes li small { display: block; font-style: normal; color: var(--ink-3); font-size: .8rem; margin-top: .2rem; }
.keepsakes li button {
  flex: none;
  font: 600 .75rem/1 "Plus Jakarta Sans", system-ui, sans-serif;
  min-height: 40px; padding: .4rem .7rem;
  border-radius: 10px; border: 1px solid var(--line);
  background: transparent; color: var(--ink-3); cursor: pointer;
}
.keepsakes li button:hover { color: var(--ink); border-color: var(--ink-3); }

/* ==========================================================
   Section 2 — reflection
   ========================================================== */
.flourish { position: absolute; top: .8rem; right: .8rem; width: 4.5rem; height: 4.5rem; color: var(--amber); opacity: .18; pointer-events: none; }

.pill-help { font-size: .85rem; color: var(--ink-3); margin: 1.4rem 0 .6rem; }
.pills { display: flex; flex-wrap: wrap; gap: .55rem; }
.pill {
  font: 500 .85rem/1.3 "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  min-height: 48px;
  padding: .55rem 1rem;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--parchment);
  color: var(--ink-2);
  display: inline-flex; align-items: center; gap: .45rem;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}
.pill:hover, .pill[aria-pressed="true"] { background: var(--sage); border-color: var(--sage); color: var(--on-sage); transform: translateY(-1px); }
.pill .ico { width: 1.15em; height: 1.15em; color: var(--sage); transition: color .25s ease; }
.pill:hover .ico, .pill[aria-pressed="true"] .ico { color: inherit; }

.writing { position: relative; margin-top: 1.2rem; }
.writing label { display: block; font-weight: 500; margin-bottom: .5rem; }
textarea {
  width: 100%;
  min-height: 9rem;
  padding: .9rem 1.1rem;
  font: 1.05rem/1.9 "Lora", Georgia, serif;
  color: var(--ink);
  background-color: var(--parchment);
  background-image: linear-gradient(transparent calc(1.9em - 1px), var(--line-soft) calc(1.9em - 1px), var(--line-soft) 1.9em);
  background-size: 100% 1.9em;
  background-position: 0 .9rem;
  background-attachment: local;
  border: 1.5px solid var(--line);
  border-radius: 15px;
  resize: vertical;
  transition: border-color .3s ease, box-shadow .3s ease, opacity .8s ease;
}
textarea::placeholder { color: var(--ink-3); opacity: .8; font-style: italic; }
textarea:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 4px var(--sage-soft); }
.privacy { display: flex; align-items: center; gap: .45rem; font-size: .8rem; color: var(--ink-3); margin-top: .55rem; }
.privacy svg { width: 1em; height: 1em; color: var(--sage); flex: none; }

.embers { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.ember {
  position: absolute;
  width: 11px; height: 11px;
  border-radius: 50% 50% 50% 0;
  background: radial-gradient(circle, var(--orb-core), var(--amber));
  box-shadow: 0 0 12px var(--orb-core);
  animation: rise 2.8s cubic-bezier(.2,.7,.3,1) forwards;
}
@keyframes rise {
  0%   { opacity: .95; transform: translateY(0) scale(1) rotate(0); }
  100% { opacity: 0; transform: translateY(-140px) translateX(var(--drift, 0)) scale(.4) rotate(35deg); }
}

.answer {
  margin-top: 1.6rem;
  padding: clamp(1.2rem, 3.5vw, 1.8rem);
  border-radius: 18px;
  background: var(--parchment);
  border-left: 5px solid var(--sage);
  box-shadow: inset 0 2px 6px rgba(0,0,0,.03);
  transition: opacity .45s ease, transform .45s ease;
}
.answer[hidden] { display: none; }
.answer.is-out { opacity: 0; transform: translateY(6px); }
.answer .label {
  display: flex; justify-content: space-between; gap: 1rem;
  font: 600 .75rem/1.4 "Plus Jakarta Sans", system-ui, sans-serif;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--sage); margin-bottom: .6rem;
}
.answer .label span:last-child { color: var(--amber); }
.answer blockquote { font-style: italic; font-size: clamp(1.25rem, 1.1rem + .8vw, 1.5rem); line-height: 1.6; }
.answer cite { display: block; font-style: normal; color: var(--ink-3); font-size: .85rem; margin-top: .7rem; }
.answer .row { margin-top: 1.2rem; }

.support {
  margin-top: 1.2rem;
  padding: 1rem 1.2rem;
  border-radius: 16px;
  background: color-mix(in srgb, var(--rose) 14%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--rose) 35%, transparent);
  font-size: .92rem;
}
.support[hidden] { display: none; }

/* ==========================================================
   Section 3 — breathing lantern
   ========================================================== */
.sanctuary { background: var(--sanctuary); border-color: color-mix(in srgb, var(--sage) 30%, transparent); scroll-margin-top: 5rem; }
.sanctuary .intro { max-width: 32rem; margin: 0 auto; }

.lantern {
  --phase: 4000ms;
  position: relative;
  width: 15rem; height: 15rem; max-width: 78vw; max-height: 78vw;
  margin: 1.6rem auto .6rem;
  display: grid; place-items: center;
}
.lantern > div {
  position: absolute; border-radius: 50%;
  transition-property: transform, opacity, box-shadow;
  transition-duration: var(--phase);
  transition-timing-function: cubic-bezier(.45, 0, .55, 1);
}
.lantern .halo  { inset: 0; border: 1.5px dashed color-mix(in srgb, var(--orb-outer) 45%, transparent); opacity: .5; transform: scale(.7) rotate(0deg); }
.lantern .outer { inset: 8%;  background: radial-gradient(circle, var(--orb-mid) 0%, var(--orb-outer) 70%, transparent 100%); opacity: .2;  transform: scale(.78); }
.lantern .mid   { inset: 22%; background: radial-gradient(circle, var(--orb-core) 0%, var(--orb-mid) 80%); opacity: .38; filter: blur(4px); transform: scale(.82); }
.lantern .core  {
  inset: 33%;
  background: radial-gradient(circle at 35% 35%, #FFFDF7 0%, var(--orb-core) 55%, var(--orb-mid) 100%);
  box-shadow: 0 0 20px var(--orb-core);
  transform: scale(.88);
  display: grid; place-items: center;
  color: var(--orb-ink);
}
.lantern .core svg { width: 38%; height: 38%; }
.lantern.inhale .halo  { transform: scale(1) rotate(25deg); opacity: .9; }
.lantern.inhale .outer { transform: scale(1.18); opacity: .45; }
.lantern.inhale .mid   { transform: scale(1.2);  opacity: .68; }
.lantern.inhale .core  { transform: scale(1.14); box-shadow: 0 0 55px var(--orb-core); }

.cue {
  font-style: italic; font-weight: 600;
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2rem);
  color: var(--sage);
  min-height: 2.6rem;
  transition: opacity .7s ease;
}
.breath-count { font-size: .82rem; color: var(--ink-3); margin-top: .2rem; min-height: 1.4em; }
.pause-row { display: flex; justify-content: center; margin-top: .9rem; }

.steps { list-style: none; padding: 0; margin: 2rem auto 0; max-width: 34rem; display: grid; gap: .85rem; counter-reset: s; }
.steps li {
  counter-increment: s;
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid var(--line);
}
.steps li::before {
  content: counter(s);
  flex: none;
  width: 2.2rem; height: 2.2rem;
  display: grid; place-items: center;
  border-radius: 50%;
  font: 600 1.3rem/1 "Cormorant Garamond", Georgia, serif;
  color: var(--amber-text);
  background: var(--parchment);
  border: 1px solid var(--line);
}
.steps h3 { font: 600 .98rem/1.4 "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif; }
.steps p { color: var(--ink-2); font-size: .95rem; margin-top: .15rem; }

.reassure { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); text-align: center; }
.reassure blockquote {
  font-style: italic; font-size: clamp(1.2rem, 1.05rem + .7vw, 1.4rem);
  max-width: 30rem; margin: 0 auto 1.1rem;
  min-height: 3.6rem;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .45s ease, transform .45s ease;
}
.reassure blockquote.is-out { opacity: 0; transform: translateY(6px); }

/* ==========================================================
   Footer
   ========================================================== */
footer {
  position: relative; z-index: 2;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-2) 70%, transparent);
  padding: 2.6rem 16px 3rem;
  text-align: center;
}
footer .inner { max-width: 32rem; margin: 0 auto; display: grid; gap: .9rem; }
footer svg { width: 1.8rem; height: 1.8rem; color: var(--sage); opacity: .75; margin: 0 auto; }
footer .blessing { font-style: italic; font-size: 1.5rem; font-weight: 500; }
footer .small { font-size: .8rem; color: var(--ink-3); }

/* ==========================================================
   Calmer still: fewer moving parts when the device asks for it
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
  .lantern > div, .lantern.inhale > div { transform: none !important; }
  .lantern .core { opacity: .7; }
  .lantern.inhale .core { opacity: 1; }
  .turnable, .answer, .reassure blockquote { transition: opacity .3s ease; transform: none !important; }
  .chip-breathe .dot { animation: none; }
  .btn:hover, .pill:hover { transform: none; }
}

/* Phones: the bar scrolls away, and "Breathe" floats in the corner instead */
@media (max-width: 560px) {
  .topbar { position: relative; backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--surface); }
  .row > .btn.shrink { flex: 1 1 12rem; }
  .brand span { font-size: 1.15rem; }
  .chip-breathe {
    position: fixed; right: 16px; bottom: 16px; z-index: 30;
    min-height: 56px; padding: .6rem 1.1rem;
    border-radius: 999px;
    box-shadow: 0 8px 24px -6px rgba(0,0,0,.35);
  }
  footer { padding-bottom: 6rem; }
}

/* ==========================================================
   Site-wide additions: navigation, library, guides, ads
   ========================================================== */
.topnav { display: flex; gap: .2rem; margin-left: auto; margin-right: .4rem; }
.topnav a {
  font: 600 .82rem/1.2 "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  color: var(--ink-2);
  text-decoration: none;
  padding: .7rem .7rem;
  border-radius: 12px;
}
.topnav a:hover, .topnav a[aria-current="page"] { color: var(--sage); background: var(--sage-soft); }

.btn-soft { min-height: 52px; font-size: .85rem; background: transparent; }
.quiet-actions { justify-content: center; margin-top: .75rem; }
.quiet-actions > .btn { flex: 0 1 auto; }
.more-link {
  display: inline-block; margin-top: 1rem;
  color: var(--sage); font-weight: 600; font-size: .9rem;
  text-underline-offset: 5px;
}

/* ---------- Content page hero + breadcrumb ---------- */
.page-hero { position: relative; z-index: 2; max-width: 46rem; margin: 0 auto; padding: 2rem 16px 1.4rem; text-align: center; }
.page-hero h1 { font-size: clamp(2.1rem, 1.6rem + 2.4vw, 2.9rem); font-weight: 600; line-height: 1.15; margin: .4rem 0 .7rem; }
.page-hero .sub { color: var(--ink-2); font-size: 1.02rem; max-width: 36rem; margin: 0 auto; }
.crumbs { font-size: .78rem; color: var(--ink-3); }
.crumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem; }
.crumbs li + li::before { content: "›"; margin-right: .3rem; color: var(--line); }
.crumbs a { color: var(--ink-3); }

/* ---------- Long-form reading ---------- */
.prose { font-size: 1rem; }
.prose > * + * { margin-top: 1.05rem; }
.prose h2 { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.75rem; font-weight: 600; line-height: 1.2; margin-top: 2.1rem; }
.prose h3 { font: 600 1.02rem/1.4 "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif; margin-top: 1.6rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: .45rem; }
.prose a { color: var(--sage); text-underline-offset: 4px; }
.prose blockquote {
  margin-left: 0; padding: .9rem 1.2rem;
  border-left: 4px solid var(--amber);
  background: var(--parchment);
  border-radius: 0 14px 14px 0;
  font-style: italic;
}
.prose .note-box {
  padding: 1rem 1.2rem; border-radius: 16px;
  background: var(--sanctuary); border: 1px solid var(--line);
  font-size: .95rem;
}
.article-meta { font-size: .8rem; color: var(--ink-3); margin-top: .8rem; }

/* ---------- Quote library ---------- */
.intro-card .prose { color: var(--ink); }
.quote-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.qcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 1.3rem 1.4rem 1rem;
  position: relative;
}
.qcard::before {
  content: "\201C";
  position: absolute; top: .1rem; left: .8rem;
  font: 600 3.4rem/1 "Cormorant Garamond", Georgia, serif;
  color: var(--amber); opacity: .35;
}
.qcard blockquote { font-size: 1.15rem; line-height: 1.65; padding-left: .9rem; }
.qcard cite { display: block; font-style: normal; color: var(--ink-3); font-size: .85rem; margin: .5rem 0 0 .9rem; }
.qcard .tags { display: flex; flex-wrap: wrap; gap: .35rem; margin: .7rem 0 0 .9rem; }
.qcard .tags a {
  font: 500 .72rem/1 "Plus Jakarta Sans", system-ui, sans-serif;
  padding: .45rem .65rem; border-radius: 999px;
  background: var(--surface-2); color: var(--ink-2); text-decoration: none;
}
.qcard .tags a:hover { background: var(--sage-soft); color: var(--sage); }
.qcard .qactions { display: flex; gap: .5rem; margin-top: .8rem; padding-top: .7rem; border-top: 1px solid var(--line-soft); }
.qcard .qactions button {
  font: 600 .8rem/1 "Plus Jakarta Sans", system-ui, sans-serif;
  min-height: 46px; padding: .5rem .9rem;
  border-radius: 12px; border: 1px solid var(--line);
  background: transparent; color: var(--ink-2);
  display: inline-flex; align-items: center; gap: .4rem; cursor: pointer;
}
.qcard .qactions button:hover { border-color: var(--sage); color: var(--sage); }
.qcard .qactions svg { width: 1.05em; height: 1.05em; }
.qcard .js-keep { color: var(--rose) !important; }
.qcard .js-keep[aria-pressed="true"] svg { fill: currentColor; }

/* ---------- Collection tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr)); gap: .8rem; list-style: none; padding: 0; margin: 0; }
.tile {
  display: flex; align-items: center; gap: .75rem;
  padding: .95rem 1rem;
  min-height: 64px;
  border-radius: 16px;
  background: var(--parchment);
  border: 1.5px solid var(--line);
  color: var(--ink); text-decoration: none;
  transition: border-color .25s ease, transform .25s ease;
}
.tile:hover { border-color: var(--sage); transform: translateY(-2px); }
.tile .emoji {
  width: 2.5rem; height: 2.5rem; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--sage-soft); color: var(--sage);
}
.tile .emoji .ico { width: 1.4rem; height: 1.4rem; }
.tile strong { display: block; font: 600 .9rem/1.3 "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif; }
.tile small { display: block; color: var(--ink-3); font-size: .74rem; font-family: "Plus Jakarta Sans", system-ui, sans-serif; }
.section-head { text-align: center; margin-bottom: 1.3rem; }
.guide-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.guide-list a {
  display: block; padding: 1rem 1.2rem; border-radius: 16px;
  background: var(--parchment); border: 1.5px solid var(--line);
  color: var(--ink); text-decoration: none;
}
.guide-list a:hover { border-color: var(--sage); }
.guide-list strong { display: block; font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.35rem; font-weight: 600; line-height: 1.25; }
.guide-list span { display: block; color: var(--ink-2); font-size: .88rem; margin-top: .25rem; }

/* ---------- Advertising slots: clearly labelled, generously spaced ---------- */
.ad {
  margin: .4rem auto;
  padding: .6rem 0 .2rem;
  min-height: 120px;
  text-align: center;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.ad-label {
  display: block;
  font: 600 .62rem/1 "Plus Jakarta Sans", system-ui, sans-serif;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-3); opacity: .8;
  margin-bottom: .5rem;
}
.ad-placeholder {
  display: grid; place-items: center;
  min-height: 100px;
  border: 1.5px dashed var(--line);
  border-radius: 14px;
  color: var(--ink-3); font: 500 .75rem/1.4 "Plus Jakarta Sans", system-ui, sans-serif;
}

/* ---------- Footer links ---------- */
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 1.1rem; font-size: .82rem; }
.footer-nav a { color: var(--ink-2); text-underline-offset: 4px; padding: .3rem 0; }

.crumbs li[aria-current] { display: none; }

/* Theme button keeps one width in both modes, so nothing shifts */
.chip-theme { width: 9rem; justify-content: center; }
.chip-theme .ico { width: 1.25rem; height: 1.25rem; color: var(--amber-text); }
.topnav .nav-breathe { display: none; }

/* ---------- Tabs: one space at a time ---------- */
.hero-compact { padding: 1.6rem 16px 1.2rem; }
.hero-compact .branch { width: 8.5rem; height: 2.1rem; margin-bottom: .2rem; }
.hero-compact h1 { font-size: clamp(2.3rem, 1.9rem + 2vw, 3rem); margin: .2rem 0 .3rem; }

.tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .2rem;
  padding: 0 0 .35rem;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 5rem;
}
.tabs-two { grid-template-columns: repeat(2, 1fr); max-width: 30rem; margin: 0 auto; width: 100%; }
.tab {
  position: relative;
  font: 600 .85rem/1.2 "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  min-height: 86px;
  padding: .45rem .2rem .7rem;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: var(--ink-3);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem;
  cursor: pointer;
  transition: color .3s ease;
}
.tab .tab-icon {
  width: 2.75rem; height: 2.75rem;
  border-radius: 50%;
  display: grid; place-items: center;
  transition: background-color .3s ease, transform .3s ease;
}
.tab .tab-icon .ico { width: 1.6rem; height: 1.6rem; }
.tab:hover { color: var(--ink); }
.tab:hover .tab-icon { background: var(--surface-2); }
.tab[aria-selected="true"] { color: var(--sage); }
.tab[aria-selected="true"] .tab-icon { background: var(--sage-soft); transform: translateY(-1px); }
.tab[aria-selected="true"]::after {
  content: "";
  position: absolute; left: 24%; right: 24%; bottom: -.62rem;
  height: 9px;
  background: var(--sage);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M2 6C20 1 34 9 50 5S80 2 98 6' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M2 6C20 1 34 9 50 5S80 2 98 6' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.tabpanel { display: grid; gap: 2.2rem; }
.panel-in { animation: panelIn .45s ease both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.doorways { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.4rem; }
.doorways .btn { flex: 1 1 12rem; text-decoration: none; }

/* ---------- Quote pages: switcher, short intro, pager ---------- */
.switcher {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.switcher summary, .read-more summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
}
.switcher summary::-webkit-details-marker, .read-more summary::-webkit-details-marker { display: none; }
.switcher summary {
  display: flex; align-items: center; gap: .6rem;
  min-height: 64px; padding: .8rem 1.2rem;
  font-size: .95rem; color: var(--ink);
}
.switcher summary::after, .read-more summary::after {
  content: ""; margin-left: auto;
  width: .6rem; height: .6rem;
  border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor;
  transform: rotate(45deg); transition: transform .25s ease;
}
.switcher[open] summary::after, .read-more[open] summary::after { transform: rotate(-135deg); }
.switcher > .tiles, .switcher > p { padding: 0 1.2rem; }
.switcher summary .ico { width: 1.5em; height: 1.5em; color: var(--sage); }
.switcher > p { padding-bottom: 1.2rem; }
.read-more summary {
  display: inline-flex; align-items: center; gap: .6rem;
  min-height: 48px; color: var(--sage); font-size: .9rem;
}
.read-more summary::after { margin-left: .2rem; width: .5rem; height: .5rem; }
.read-more[open] summary { margin-bottom: .6rem; }
.read-more > p + p { margin-top: 1.05rem; }

.pager { display: grid; gap: 1rem; scroll-margin-top: 5rem; }
.pager-status { text-align: center; font-size: .82rem; color: var(--ink-3); }
.pager-nav { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.pager-nav .btn { flex: 1 1 0; }
.pager-nav .btn:disabled { opacity: .4; cursor: default; transform: none; box-shadow: none; }
.pager-count { flex: none; font-size: .85rem; color: var(--ink-2); text-align: center; }
@media (min-width: 900px) {
  .pager .quote-list { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .topnav { order: 3; width: 100%; margin: 0; gap: .3rem; }
  .topnav a { flex: 1; text-align: center; padding: .65rem .3rem; background: var(--surface-2); }
  .comfort { order: 2; margin-left: auto; }
  .chip-theme { width: 48px; padding: .5rem; }
  .chip-theme .ico { width: 1.45rem; height: 1.45rem; }
  .chip-breathe { display: none !important; }
  .topnav .nav-breathe { display: block; background: var(--sage); color: var(--on-sage); }
  .topnav .nav-breathe:hover { background: var(--sage-hover); color: var(--on-sage); }
  footer { padding-bottom: 3rem; }
  .chip-theme .theme-label { display: none; }
  .tabs { gap: 0; }
  .tab { min-height: 80px; font-size: .74rem; }
  .tab .tab-icon { width: 2.5rem; height: 2.5rem; }
  .pager-count { font-size: .75rem; }
  .pager-nav .btn { padding: .7rem .6rem; }
  .qcard { padding: 1.1rem 1.1rem .9rem; }
}
