/* ==========================================================================
   24 Steps Within · Psychology with Kishti
   "The candlelit spiral": snow cream, cranberry, candle gold and evergreen.
   Light by default; a "silent night" pine dark mode for evenings.
   ========================================================================== */

@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/fraunces-latin-opsz-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/fraunces-latin-opsz-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("assets/fonts/figtree-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

/* ---------------------------------------------------------------- tokens */
/* Light only: bright snowy white with classic Christmas red, green and gold. */
:root {
  --bg: #fffbf5;
  --bg-deep: #fcf2e4;
  --paper: #ffffff;
  --ink: #2b1d17;
  --ink-2: #5c4a3f;
  --ink-3: #77655a;
  --line: #f1e4d1;
  --line-2: #e3cfb2;
  --accent: #d42a3a;        /* Christmas red */
  --accent-hover: #b81f2e;
  --on-accent: #ffffff;
  --focus: #d42a3a;

  --red: #d42a3a;
  --green: #1e8a4c;         /* holly green */
  --green-2: #3fae69;
  --gold: #e3a41c;
  --glow: #ffd670;
  --pine: #1e8a4c;
  --pine-2: #3fae69;
  --berry: #d42a3a;
  --snow: rgba(138, 166, 200, 0.6);

  --p-arriving: #1e8a4c;    /* green */
  --p-feeling: #d42a3a;     /* red */
  --p-connecting: #dd9e14;  /* gold */
  --p-becoming: #c4223a;    /* candy cane (striped on the spiral) */

  --shadow-sm: 0 1px 2px rgba(90, 40, 20, 0.06);
  --shadow: 0 1px 2px rgba(90, 40, 20, 0.06), 0 14px 36px -14px rgba(120, 40, 20, 0.22);
  --backdrop: rgba(40, 20, 14, 0.42);

  --radius: 20px;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

/* ------------------------------------------------------------------ base */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}
body::before {
  /* candlelight glow behind the hero */
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1000px;
  background:
    radial-gradient(50% 42% at 80% 28%, color-mix(in srgb, var(--glow) 34%, transparent), transparent 70%),
    radial-gradient(40% 32% at 6% 6%, color-mix(in srgb, var(--red) 10%, transparent), transparent 70%),
    radial-gradient(40% 30% at 45% 0%, color-mix(in srgb, var(--green) 8%, transparent), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.site-header, main, .site-footer, .preview-banner { position: relative; z-index: 1; }

#snow {
  position: fixed; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 6;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0; font-optical-sizing: auto; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
em { font-style: italic; }
code { font-size: 0.9em; background: var(--bg-deep); padding: 0.1em 0.35em; border-radius: 6px; }

.container { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 20px; }
.container.narrow { max-width: 760px; }
.muted { color: var(--ink-2); }
.small { font-size: 0.875rem; line-height: 1.5; }

.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-2); margin: 0 0 14px;
}
.eyebrow .sprig { width: 26px; height: 14px; flex: none; color: var(--pine); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 10px;
}
.skip-link:focus { top: 12px; }

/* gentle reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 0.98rem; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.15s, box-shadow 0.3s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 8px 26px -8px color-mix(in srgb, var(--glow) 60%, var(--accent)); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink-2); background: color-mix(in srgb, var(--paper) 60%, transparent); }
.btn-block { width: 100%; }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 0.9rem; }
.btn[disabled] { opacity: 0.55; cursor: default; }
.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(3px); }

.link-btn {
  background: none; border: 0; padding: 6px 0; cursor: pointer;
  color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  font-size: 0.92rem;
}
.link-btn:hover { color: var(--ink); }
.link-btn.danger:hover { color: var(--berry); }

.icon-btn {
  display: inline-grid; place-items: center; flex: none;
  width: 42px; height: 42px; border-radius: 999px;
  background: transparent; border: 1px solid var(--line); cursor: pointer; color: var(--ink);
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.icon-btn:hover { border-color: var(--line-2); background: var(--paper); }
.icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn[aria-pressed="true"] { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: color-mix(in srgb, var(--glow) 14%, var(--paper)); }

/* ------------------------------------------------------- festive details */
.candy-bar {
  position: relative; z-index: 2; height: 8px;
  background: repeating-linear-gradient(-45deg, var(--red) 0 12px, #fff 12px 24px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

/* ---------------------------------------------------------------- header */
.preview-banner {
  background: var(--ink); color: var(--bg);
  font-size: 0.85rem; text-align: center; padding: 8px 16px;
}
.preview-banner a { color: inherit; }
.banner-btn { background: none; border: 0; padding: 4px 0; color: inherit; font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.site-header { z-index: 5; }
.header-inner { display: flex; align-items: center; gap: 6px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; min-width: 0; }
.brand-mark { width: 30px; height: 30px; color: var(--accent); flex: none; }
.logo {
  display: block; flex: none; width: 82px; height: 36px; color: var(--accent); background: currentColor;
  -webkit-mask: url("assets/logo.svg") center / contain no-repeat;
  mask: url("assets/logo.svg") center / contain no-repeat;
}
@media (max-width: 520px) {
  .logo { width: 58px; height: 26px; }
  .brand { gap: 8px; }
  .brand-name { font-size: 1rem; }
}
@media (max-width: 370px) {
  .logo { width: 48px; height: 22px; }
  .brand-name { font-size: 0.92rem; }
  .header-inner .icon-btn { width: 38px; height: 38px; }
}
.footer-brand .logo { width: 96px; height: 42px; }
.brand-name { font-family: var(--serif); font-size: 1.02rem; letter-spacing: -0.005em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 521px) { .brand-name { font-size: 1.12rem; } }
@media (max-width: 349px) { .brand-name { display: none; } }
.site-nav { display: none; gap: 28px; font-size: 0.95rem; margin-right: 18px; }
.site-nav a { text-decoration: none; color: var(--ink-2); }
.site-nav a:hover { color: var(--ink); }
@media (min-width: 860px) { .site-nav { display: flex; } }
@media (min-width: 600px) { .header-inner { gap: 10px; } }

.sound-toggle .i-sound-on { display: none; }
.sound-toggle[aria-pressed="true"] .i-sound-on { display: block; }
.sound-toggle[aria-pressed="true"] .i-sound-off { display: none; }

/* ------------------------------------------------------------------ hero */
.hero {
  display: grid; gap: 36px;
  padding-top: 20px; padding-bottom: 72px;
}
@media (min-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 56px; padding-top: 36px; padding-bottom: 96px; }
}

.hero-copy { position: relative; }
.display {
  position: relative;
  font-size: clamp(3.1rem, 12vw, 5.6rem);
  font-weight: 350;
  letter-spacing: -0.025em;
  line-height: 0.95;
  margin-bottom: 22px;
}
.display em { color: var(--accent); font-weight: 300; }
.sparkle-star { position: absolute; color: var(--gold); pointer-events: none; animation: twinkle 3.6s ease-in-out infinite; }
.sparkle-star svg { width: 100%; height: 100%; fill: currentColor; }
.sparkle-star.s1 { width: 22px; height: 22px; top: -14px; left: 47%; animation-delay: 0.2s; }
.sparkle-star.s2 { width: 13px; height: 13px; top: 30%; right: 4%; animation-delay: 1.4s; }
.sparkle-star.s3 { width: 10px; height: 10px; bottom: -6px; left: 26%; animation-delay: 2.5s; }
@media (min-width: 960px) { .sparkle-star.s2 { right: -4%; } }
@keyframes twinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.7) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.05) rotate(20deg); }
}

.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 34ch; margin-bottom: 26px; }
@media (min-width: 960px) { .lead { font-size: 1.22rem; } }

.today-card {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px; margin-bottom: 22px;
  box-shadow: var(--shadow-sm); max-width: 460px;
}
.today-card .dot {
  position: relative;
  flex: none; width: 40px; height: 40px; border-radius: 999px;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.05rem;
  color: var(--on-accent); background: var(--phase, var(--accent));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--phase, var(--accent)) 16%, transparent), 0 0 22px color-mix(in srgb, var(--glow) 50%, transparent);
}
.today-card .kicker { font-size: 0.8rem; color: var(--ink-2); margin: 0 0 2px; letter-spacing: 0.02em; }
.today-card .headline { font-family: var(--serif); font-size: 1.18rem; line-height: 1.3; margin: 0; }
.today-card .sub { font-size: 0.9rem; color: var(--ink-2); margin: 4px 0 0; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 420px) { .hero-actions .btn { flex: 1 1 100%; } }

/* ------------------------------------------------------------ path panel */
.path-panel {
  position: relative;
  background:
    radial-gradient(60% 50% at 50% 52%, color-mix(in srgb, var(--glow) 18%, transparent), transparent 75%),
    var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 18px 12px 22px;
  box-shadow: var(--shadow);
  outline: none;
}
@media (min-width: 600px) { .path-panel { padding: 24px 26px 28px; } }

.path-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 6px 6px; }
.progress p { margin: 0 0 6px; font-size: 0.92rem; color: var(--ink-2); }
.progress strong { color: var(--ink); font-family: var(--serif); font-size: 1.15rem; font-weight: 500; }
.progress-bar { width: 140px; height: 4px; border-radius: 99px; background: var(--line); overflow: hidden; }
.progress-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--green), var(--gold), var(--red)); border-radius: inherit; transition: width 0.8s ease; }


.spiral-wrap { max-width: 540px; margin: 0 auto; }

/* the little Christmas tree beside the progress */
.tree-wrap { flex: none; width: 104px; margin: -18px -2px -8px 0; }
.xmas-tree { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 6px 8px rgba(23, 115, 61, 0.18)); }
.xmas-tree .bulb-glow { animation: glowpulse 2.6s ease-in-out infinite; }
.xmas-tree .tree-star { fill: #fff6d6; stroke: #e3a41c; stroke-width: 1.2; stroke-linejoin: round; transform-box: fill-box; transform-origin: center; }
.xmas-tree .tree-star.lit { fill: #ffd670; animation: twinkle 3s ease-in-out infinite; }
.tree-note { font-size: 0.82rem !important; color: var(--ink-3) !important; margin: 8px 0 0 !important; }
@media (min-width: 600px) { .tree-wrap { width: 136px; margin-top: -26px; } }
.spiral { width: 100%; height: auto; overflow: visible; touch-action: manipulation; }

/* spiral: evergreen garland */
.spiral .walked { fill: none; stroke: var(--gold); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; opacity: 0.22; }
.spiral .bough { fill: none; stroke: var(--pine); stroke-width: 1.2; opacity: 0.55; stroke-linecap: round; }
.spiral .leaf { fill: var(--pine); }
.spiral .leaf.l2 { fill: var(--pine-2); }
.spiral .ahead { opacity: 0.35; }
.spiral .berry { fill: var(--berry); }
.spiral .glint { fill: var(--glow); animation: twinkle 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }

/* spiral: stones / candles */
.stone { cursor: pointer; outline: none; }
.stone .hit { fill: transparent; }
.stone .glow { fill: url(#candle-glow); opacity: 0; transition: opacity 0.8s ease; pointer-events: none; }
.stone .base {
  fill: var(--paper); stroke: var(--line-2); stroke-width: 1.4;
  transition: fill 0.6s ease, stroke 0.3s ease;
}
.stone .num {
  font-family: var(--serif); font-size: 13px; text-anchor: middle; dominant-baseline: central;
  fill: var(--ink-3); pointer-events: none; transition: fill 0.4s ease;
  font-variant-numeric: lining-nums;
}
.stone .halo { fill: none; stroke: var(--gold); stroke-width: 1.6; opacity: 0; transform-box: fill-box; transform-origin: center; }
.stone .focus-ring { fill: none; stroke: var(--focus); stroke-width: 2; opacity: 0; }
.stone:focus-visible .focus-ring { opacity: 1; }
.stone .inner { transform-box: fill-box; transform-origin: center; transition: transform 0.25s cubic-bezier(.3,1.6,.5,1); }
.stone:hover .inner { transform: scale(1.1); }

.stone .flame { opacity: 0; pointer-events: none; transform-box: fill-box; transform-origin: 50% 100%; }
.stone .flame .outer { fill: var(--glow); }
.stone .flame .core { fill: #fff6dc; }
.stone .flame .wick { stroke: var(--ink-2); stroke-width: 1; }

.stone.locked { cursor: default; }
.stone.locked .base { fill: var(--paper); stroke-dasharray: 2 3; }
.stone.locked .num { fill: var(--ink-3); opacity: 0.8; }
.stone.locked:hover .inner { transform: none; }

.stone.open .base { stroke: var(--phase); stroke-width: 2; }
.stone.open .num { fill: var(--ink); }

.stone.done .base { fill: var(--phase); stroke: var(--phase); }
.stone.done .num { fill: var(--on-accent); }
.stone.done .glow { opacity: 1; animation: glowpulse 3.4s ease-in-out infinite; }
.stone.done .flame { opacity: 1; animation: flicker 2.2s ease-in-out infinite; }
.stone.done:nth-of-type(3n) .flame { animation-duration: 2.7s; animation-delay: -0.6s; }
.stone.done:nth-of-type(3n+1) .flame { animation-duration: 1.9s; animation-delay: -1.1s; }

.stone.today .halo { animation: halo 2.8s ease-out infinite; }
@keyframes halo {
  0% { opacity: 0.8; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.8); }
}
@keyframes flicker {
  0%, 100% { transform: scale(1, 1) rotate(0deg); }
  25% { transform: scale(0.94, 1.08) rotate(-3deg); }
  50% { transform: scale(1.04, 0.95) rotate(2deg); }
  75% { transform: scale(0.97, 1.05) rotate(-1deg); }
}
@keyframes glowpulse {
  0%, 100% { opacity: 0.9; }
  40% { opacity: 0.65; }
  60% { opacity: 1; }
}

.stone.done.phase-becoming .base { fill: url(#candy); stroke: var(--p-becoming); }
.stone.done.phase-becoming .num { fill: #fff; stroke: var(--p-becoming); stroke-width: 3px; paint-order: stroke; stroke-linejoin: round; }
.legend .phase-becoming i { background: repeating-linear-gradient(-45deg, var(--p-becoming) 0 3px, #fff 3px 6px); box-shadow: inset 0 0 0 1px var(--p-becoming); }
.stone.center .num { font-size: 15px; }
.stone.center .base { stroke-width: 1.6; }
.stone.center.done .base { fill: var(--gold); stroke: var(--gold); }

.stone.just-done .inner { animation: pop 0.8s cubic-bezier(.3,1.5,.5,1); }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }

.path-hint { text-align: center; color: var(--ink-2); font-size: 0.9rem; margin: 8px auto 14px; max-width: 42ch; }

.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; font-size: 0.86rem; color: var(--ink-2); }
.legend li { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 10px; height: 10px; border-radius: 99px; background: var(--phase); display: inline-block; }


/* ------------------------------------------------------------- sections */
.section { padding: 84px 0; border-top: 1px solid var(--line); }
.section-title { font-size: clamp(2rem, 6vw, 3rem); letter-spacing: -0.02em; margin-bottom: 24px; max-width: 20ch; }

.how-steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 34px; }
@media (min-width: 820px) { .how-steps { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.how-steps h3 { margin: 10px 0 10px; }
.how-steps p { color: var(--ink-2); }
.how-num { font-family: var(--serif); font-style: italic; color: var(--accent); font-size: 1.1rem; }

.how-extras { display: grid; gap: 16px; margin-top: 48px; }
@media (min-width: 820px) { .how-extras { grid-template-columns: 1fr 1fr; } }
.note-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.note-card h3 { margin-bottom: 12px; }
.note-card p { color: var(--ink-2); }
.note-soft { background: var(--bg-deep); border-color: transparent; }
.need-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--ink-2); }
.need-list li { display: flex; gap: 12px; align-items: baseline; }
.need-list li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 99px; background: var(--berry); transform: translateY(-2px); }

.phase-grid { display: grid; gap: 14px; margin-top: 36px; }
@media (min-width: 640px) { .phase-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .phase-grid { grid-template-columns: repeat(4, 1fr); } }
.phase-card {
  position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px 26px; overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.phase-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.phase-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--phase); }
.phase-card.phase-becoming::before { background: repeating-linear-gradient(-45deg, var(--p-becoming) 0 8px, #fff 8px 16px); }
.phase-card::after {
  content: ""; position: absolute; width: 160px; height: 160px; right: -60px; top: -60px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--phase) 14%, transparent), transparent 70%);
}
.phase-icon { width: 48px; height: 48px; margin-bottom: 18px; color: var(--phase); }
.phase-icon .fl { fill: var(--glow); }
.phase-card .days { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 6px; }
.phase-card h3 { font-size: 1.55rem; margin-bottom: 10px; }
.phase-card p { color: var(--ink-2); font-size: 0.98rem; }

.word-trail { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.word-trail li {
  display: inline-flex; align-items: baseline; gap: 8px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px 8px 12px;
}
.word-trail .n { font-size: 0.75rem; font-weight: 700; color: color-mix(in srgb, var(--phase) 75%, var(--ink)); }
.word-trail .w { font-family: var(--serif); font-style: italic; font-size: 1.1rem; }

/* reminders: a bright holly-green band, like wrapping paper */
.reminders {
  position: relative; overflow: hidden; border-top: 0;
  background:
    radial-gradient(45% 60% at 88% 10%, rgba(255, 214, 112, 0.28), transparent 70%),
    radial-gradient(40% 50% at 0% 100%, rgba(255, 255, 255, 0.12), transparent 70%),
    linear-gradient(160deg, #23a058, #1a8447);
}
.reminders-copy { color: #fff; }
.reminders-copy .section-title { color: #fff; }
.reminders-copy p, .reminders-copy .muted { color: rgba(255, 255, 255, 0.9); }
.reminders-copy .eyebrow { color: rgba(255, 255, 255, 0.92); }
.reminders-copy .eyebrow .sprig { color: #fff; }
.garland-edge { position: absolute; left: 0; right: 0; top: 0; height: 26px; color: #ffffff; opacity: 0.85; pointer-events: none; }
.garland-edge svg { width: 100%; height: 26px; }
.reminders .candy-bar { position: absolute; left: 0; right: 0; bottom: 0; top: auto; }

.reminders-inner { display: grid; gap: 32px; position: relative; }
@media (min-width: 960px) { .reminders-inner { grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; } }
.reminders-copy p { max-width: 46ch; }
.reminder-cards { display: grid; gap: 16px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
@media (min-width: 600px) { .card { padding: 28px; } }
.card h3 { margin-bottom: 6px; }

.signup-fields { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; font-size: 0.88rem; font-weight: 600; color: var(--ink-2); }
.field input {
  min-height: 50px; padding: 0 16px; border-radius: 14px;
  border: 1px solid var(--line-2); background: var(--bg); color: var(--ink);
  font-weight: 400; font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input::placeholder { color: var(--ink-3); }
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.field-inline { grid-template-columns: auto auto; align-items: center; gap: 12px; }
.field-inline input { min-height: 46px; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 0.9rem; color: var(--ink-2); align-items: start; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--green); }
.form-error { color: var(--red); font-size: 0.9rem; margin: 0; font-weight: 600; }

.signup-done { text-align: center; padding: 12px 0; }
.signup-done .done-mark { width: 48px; height: 48px; color: var(--accent); margin: 0 auto 14px; }
.signup-done h3 { font-size: 1.8rem; margin-bottom: 8px; }


/* about */
.about-inner { display: grid; gap: 32px; align-items: center; }
@media (min-width: 820px) { .about-inner { grid-template-columns: 300px 1fr; gap: 64px; } }
.about-photo { position: relative; margin: 0; max-width: 300px; }
.about-photo picture, .about-photo img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%;
  border-radius: 150px 150px 24px 24px;
}
.about-photo img { box-shadow: var(--shadow); }
.about-photo::before {
  content: ""; position: absolute; inset: -14px; z-index: -1; border-radius: 164px 164px 34px 34px;
  background: radial-gradient(60% 50% at 50% 40%, color-mix(in srgb, var(--glow) 55%, transparent), transparent 75%);
}
.about-photo::after {
  content: ""; position: absolute; inset: 0; border-radius: 150px 150px 24px 24px; pointer-events: none;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 35%, transparent);
}
.photo-sparkle { position: absolute; right: -6px; top: 26px; width: 26px; height: 26px; color: var(--gold); animation: twinkle 3.6s ease-in-out infinite; }
.photo-sparkle svg { width: 100%; height: 100%; }
.about p { color: var(--ink-2); max-width: 58ch; }
.ig-link { font-weight: 600; color: var(--ink); }

/* faq */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font-family: var(--serif); font-size: 1.25rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px;
  border-right: 1.6px solid var(--ink-2); border-bottom: 1.6px solid var(--ink-2);
  transform: translateY(-70%) rotate(45deg); transition: transform 0.25s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--ink-2); padding-bottom: 22px; margin: 0; max-width: 62ch; }
.faq-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; padding-bottom: 22px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 calc(48px + env(safe-area-inset-bottom)); }
.footer-inner { display: grid; gap: 18px; }
.footer-brand { display: flex; gap: 12px; align-items: center; }
.footer-title { font-family: var(--serif); font-size: 1.2rem; margin: 0; }
.disclaimer { max-width: 70ch; }

/* ------------------------------------------------------------ day dialog */
dialog { color: var(--ink); }
dialog::backdrop { background: var(--backdrop); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }

.day-dialog {
  width: 100%; max-width: 720px; max-height: 100dvh; height: 100dvh;
  margin: 0; padding: 0; border: 0;
  background: var(--paper);
  overscroll-behavior: contain;
}
@media (min-width: 760px) {
  .day-dialog { margin: auto; height: auto; max-height: min(92dvh, 1000px); border-radius: 28px; box-shadow: var(--shadow); }
}
.day-dialog[open] { animation: rise 0.4s cubic-bezier(.2,.8,.2,1); }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.day-sheet { position: relative; padding: 0 0 calc(32px + env(safe-area-inset-bottom)); outline: none; }
.day-top {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(12px + env(safe-area-inset-top)) 16px 12px 22px;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.day-top .crumb { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.day-top .crumb svg { width: 12px; height: 16px; }
.day-top .crumb { --fl-outer: var(--phase); --fl-core: var(--glow); }

.day-hero {
  position: relative;
  padding: 30px 22px 6px;
  background: radial-gradient(70% 90% at 100% 0%, color-mix(in srgb, var(--phase) 13%, transparent), transparent 70%);
}
@media (min-width: 600px) { .day-hero { padding: 40px 48px 6px; } }
.day-hero .sprig-deco { position: absolute; right: 18px; top: 22px; width: 92px; height: 50px; color: var(--pine); opacity: 0.5; }
.day-body { padding: 0 22px; }
@media (min-width: 600px) { .day-body { padding: 0 48px; } }

.day-date { color: var(--ink-2); font-size: 0.92rem; margin-bottom: 8px; }
.day-title { font-size: clamp(2.2rem, 8vw, 3.1rem); letter-spacing: -0.02em; margin-bottom: 16px; max-width: 16ch; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.tag { font-size: 0.8rem; font-weight: 600; padding: 5px 12px; border-radius: 99px; background: var(--bg-deep); color: var(--ink-2); }
.tag.phase-tag { background: color-mix(in srgb, var(--phase) 18%, transparent); color: var(--ink); }

.block { margin-bottom: 32px; }
.label { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: color-mix(in srgb, var(--phase) 72%, var(--ink)); margin-bottom: 10px; }
.insight { color: var(--ink-2); font-size: 1.02rem; }

.prompt {
  font-family: var(--serif); font-style: italic; font-weight: 380;
  font-size: clamp(1.45rem, 5vw, 1.85rem); line-height: 1.32; letter-spacing: -0.01em;
  margin: 0 0 18px; padding-left: 18px; border-left: 3px solid var(--phase);
}
.follow-ups { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.follow-ups li { display: grid; grid-template-columns: 20px 1fr; gap: 6px; color: var(--ink); }
.follow-ups li::before { content: "↳"; color: var(--phase); font-weight: 600; }

.practice { background: var(--bg-deep); border-radius: 18px; padding: 20px 22px; }
.practice p { margin: 0; }
.care { font-size: 0.92rem; color: var(--ink-2); border: 1px dashed var(--line-2); border-radius: 14px; padding: 14px 16px; margin-top: 14px; }

/* writing space */
.write textarea {
  display: block; width: 100%; min-height: 300px; margin-top: 4px; resize: vertical;
  padding: 18px; border-radius: 16px; border: 1px solid var(--line-2);
  background:
    repeating-linear-gradient(to bottom, transparent 0 31px, color-mix(in srgb, var(--line) 80%, transparent) 31px 32px),
    var(--bg);
  background-attachment: local;
  line-height: 32px; font-size: 1rem;
}
.write textarea:focus { outline: none; border-color: var(--phase); box-shadow: 0 0 0 3px color-mix(in srgb, var(--phase) 16%, transparent); }
.write .saved { font-size: 0.82rem; color: var(--ink-2); margin: 8px 0 0; }


.day-actions { display: grid; gap: 10px; padding-top: 4px; }
.day-actions .candle-btn { width: 100%; min-height: 56px; font-size: 1.05rem; }
.btn-icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.candle-btn { --fl-outer: var(--glow); --fl-core: #fff6dc; }
.candle-btn.is-done { background: color-mix(in srgb, var(--glow) 22%, #fff); color: var(--ink); border-color: var(--gold); box-shadow: 0 0 26px -6px color-mix(in srgb, var(--glow) 90%, transparent); --fl-outer: var(--gold); }
.candle-btn.is-done .btn-icon { animation: flicker 2s ease-in-out infinite; transform-origin: 50% 100%; }

.notebook-hint { margin: 18px 0 0; color: var(--ink-2); font-size: 0.95rem; }
.gentle-reminder {
  display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; justify-content: space-between;
  margin: 0 0 26px; padding: 14px 16px; border-radius: 16px;
  background: color-mix(in srgb, var(--glow) 20%, #fff); border: 1px dashed color-mix(in srgb, var(--gold) 60%, transparent);
  --fl-outer: var(--gold); --fl-core: #fff6dc; animation: rise 0.4s ease;
}
.gentle-reminder p { margin: 0; flex: 1 1 200px; font-family: var(--serif); font-size: 1.05rem; display: flex; align-items: center; gap: 8px; }
.gentle-reminder.done { border-style: solid; }
.gentle-reminder .btn-icon.lit { animation: flicker 2s ease-in-out infinite; transform-origin: 50% 100%; }
.nudge {
  margin-top: 18px; padding: 18px 20px; border-radius: 18px;
  background: color-mix(in srgb, var(--glow) 14%, var(--paper)); border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent);
  display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; justify-content: space-between;
  animation: rise 0.35s ease;
}
.nudge p { margin: 0; flex: 1 1 220px; font-family: var(--serif); font-size: 1.08rem; }

.day-nav { display: flex; justify-content: space-between; gap: 12px; margin: 36px 22px 0; padding-top: 18px; border-top: 1px solid var(--line); }
@media (min-width: 600px) { .day-nav { margin-inline: 48px; } }
.day-nav button { background: none; border: 0; cursor: pointer; color: var(--ink-2); font-size: 0.92rem; padding: 8px 0; min-height: 44px; }
.day-nav button:hover:not([disabled]) { color: var(--ink); }
.day-nav button[disabled] { opacity: 0.45; cursor: default; }

.arrived {
  text-align: center; padding: 26px 22px; border-radius: 22px; margin-bottom: 26px;
  background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--glow) 40%, transparent), transparent 70%), var(--bg-deep);
}
.arrived svg { width: 46px; height: 46px; color: var(--gold); margin: 0 auto 10px; fill: currentColor; animation: twinkle 3.6s ease-in-out infinite; }
.arrived p { margin: 0; font-family: var(--serif); font-size: 1.2rem; }

/* ----------------------------------------------------------- share dialog */
.share-dialog {
  width: calc(100% - 32px); max-width: 420px; border: 0; padding: 0; border-radius: 24px;
  background: var(--paper); box-shadow: var(--shadow); max-height: 94dvh;
}
.share-inner { padding: 20px; display: grid; gap: 14px; position: relative; }
.share-inner img { width: 100%; max-height: 62dvh; object-fit: contain; border-radius: 14px; background: var(--bg-deep); box-shadow: var(--shadow-sm); }
.share-hint { text-align: center; margin: 0; }
.share-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.close-btn { position: absolute; top: 12px; right: 12px; z-index: 2; background: var(--paper); }

/* ------------------------------------------------------ sound hint popup */
.sound-hint {
  position: fixed; z-index: 90; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
  max-width: 440px; margin-inline: auto;
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 12px;
  padding: 14px 14px 14px 16px; border-radius: 20px;
  background: var(--paper); color: var(--ink); border: 1px solid var(--line);
  box-shadow: var(--shadow), 0 0 0 4px color-mix(in srgb, var(--glow) 18%, transparent);
  animation: rise 0.5s cubic-bezier(.2,.8,.2,1);
}
.sound-hint p { margin: 0; font-size: 0.9rem; line-height: 1.4; }
.sound-hint p span { color: var(--ink-2); }
.sound-hint-icon {
  width: 38px; height: 38px; border-radius: 99px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--glow) 30%, var(--paper)); color: var(--accent);
}
.sound-hint-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; animation: ring 2.4s ease-in-out infinite; transform-origin: 50% 10%; }
@keyframes ring { 0%, 60%, 100% { transform: rotate(0); } 70% { transform: rotate(12deg); } 80% { transform: rotate(-10deg); } 90% { transform: rotate(5deg); } }
.sound-hint .hint-close { width: 36px; height: 36px; }
@media (min-width: 760px) { .sound-hint { left: 24px; right: auto; bottom: 24px; } }

/* ----------------------------------------------------------------- toast */
.toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 100;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  max-width: calc(100% - 32px); width: max-content;
  background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: 999px;
  font-size: 0.92rem; box-shadow: var(--shadow); transition: opacity 0.25s, transform 0.25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* phase colour hook */
.phase-arriving { --phase: var(--p-arriving); }
.phase-feeling { --phase: var(--p-feeling); }
.phase-connecting { --phase: var(--p-connecting); }
.phase-becoming { --phase: var(--p-becoming); }

[hidden] { display: none !important; }
