/* DailyX — illustrated site styles */
:root {
  --paper: #fbf6ec;
  --paper-deep: #f3ead8;
  --card: #fffdf8;
  --ink: #1b1430;
  --text: #1b1430;
  --soft: #4a4263;
  --accent: #6b46c1;
  --tint: #f3ead8;
  --line: #1b1430;
  --purple: #6b46c1;
  --violet: #8b5cf6;
  --lilac: #dccdff;
  --amber: #fbbf24;
  --sky: #8fd0fb;
  --leaf: #8ed968;
  --brush: 'Caveat Brush', 'Segoe Print', 'Bradley Hand', cursive;
  --body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wobble: 255px 18px 225px 18px / 18px 225px 18px 255px;
  --wobble-2: 22px 210px 20px 235px / 215px 22px 240px 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }

body {
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--paper);
  transition: background-color .5s ease, color .5s ease;
  /* paper grain */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .1 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  overflow-x: clip;
}

img, video { max-width: 100%; display: block; }
a { color: var(--accent); }

.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }

/* ---------- brush lettering ---------- */
h1, h2, h3, .brush {
  font-family: var(--brush);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0.005em;
  color: var(--text);
}
h1 { font-size: clamp(3rem, 8.2vw, 6rem); }
h2 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); }
h3 { font-size: clamp(1.6rem, 2.6vw, 2rem); line-height: 1.1; }

/* a painted swash behind a word */
.swash {
  position: relative;
  display: inline-block;
  white-space: nowrap;
  z-index: 0;
  padding: 0 0.12em;
}
.swash::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: -0.14em; right: -0.14em;
  top: 0.16em; bottom: -0.04em;
  background: var(--swash, var(--amber));
  --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 110' preserveAspectRatio='none'%3E%3Cfilter id='r' x='-5%25' y='-20%25' width='110%25' height='140%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.035 .22' numOctaves='3' seed='4'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='15'/%3E%3C/filter%3E%3Cpath filter='url(%23r)' d='M16 30 C100 14 260 12 386 24 L392 50 L396 60 L384 90 C270 80 110 84 18 96 L8 62 L12 56Z'/%3E%3C/svg%3E");
  -webkit-mask: var(--m) center / 100% 100% no-repeat;
  mask: var(--m) center / 100% 100% no-repeat;
  transform: rotate(-1.2deg);
}
.swash.lilac { --swash: #cdb6ff; }
.swash.sky { --swash: var(--sky); }
.swash.leaf { --swash: var(--leaf); }

/* a painted underline */
.stroke {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.stroke::after {
  content: '';
  position: absolute;
  left: -3%; right: -3%;
  bottom: -0.16em;
  height: 0.2em;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 8' preserveAspectRatio='none'%3E%3Cpath fill-rule='evenodd' d='M2 4.4Q2 4.8 3 5.3Q3.9 5.8 5.2 6.2Q6.4 6.6 7.8 6.4Q9.2 6.1 10.8 6.1Q12.4 6.1 14.1 6.1Q15.7 6.2 17.3 6.1Q18.9 5.9 20.5 6Q22 6.1 23.3 6Q24.6 5.9 25.9 5.8Q27.3 5.7 28.7 5.9Q30.1 6.1 31.5 6.1Q32.9 6.2 34.3 6.3Q35.8 6.5 37.2 6.6Q38.6 6.8 39.9 6.7Q41.3 6.6 42.7 6.5Q44 6.4 45.5 6.2Q47 6.1 48.5 5.9Q50 5.6 51.5 5.5Q53 5.5 54.4 5.3Q55.8 5.1 57.1 5Q58.4 4.8 59.4 4.7Q60.5 4.6 61.3 4.5Q62.1 4.4 62 3.5Q61.9 2.7 61.1 2.8Q60.3 2.9 59.3 2.9Q58.2 3 56.9 3Q55.7 3.1 54.3 3.2Q52.9 3.3 51.4 3.2Q49.9 3.1 48.4 3.1Q46.9 3 45.5 2.9Q44 2.8 42.8 2.5Q41.5 2.3 40.2 2.2Q38.9 2.2 37.5 2.1Q36.1 2 34.7 1.8Q33.3 1.5 31.9 1.4Q30.5 1.4 29 1.1Q27.6 0.8 26.2 0.6Q24.8 0.4 23.4 0.5Q22 0.5 20.4 0.5Q18.8 0.5 17.1 0.7Q15.4 0.9 13.8 1.1Q12.1 1.3 10.5 1.3Q8.9 1.3 7.4 1.4Q6 1.5 4.8 2.1Q3.7 2.6 2.8 3.3Q2 4 2 4.4ZM33.2 3Q33.2 3.3 34.6 3.5Q36 3.7 37.4 3.8Q38.8 4 40.1 4.1Q41.4 4.3 42.7 4.3Q44 4.4 45.5 4.4Q46.9 4.4 48.4 4.3Q49.9 4.3 51.4 4.2Q52.9 4.1 54.3 4.1Q55.7 4 57 3.9Q58.3 3.8 59.3 3.8Q60.4 3.7 60.4 3.4Q60.4 3.2 59.3 3.3Q58.2 3.3 57 3.4Q55.7 3.5 54.3 3.6Q52.9 3.6 51.4 3.7Q49.9 3.7 48.4 3.7Q46.9 3.7 45.5 3.7Q44 3.6 42.7 3.5Q41.5 3.4 40.1 3.3Q38.8 3.2 37.4 3.1Q36 3 34.6 2.9Q33.2 2.8 33.2 3ZM30.2 4.5Q30.2 4.8 31.6 4.9Q33 5 34.4 5.2Q35.9 5.3 37.3 5.4Q38.7 5.5 40 5.6Q41.4 5.6 42.7 5.6Q44 5.6 45.5 5.5Q47 5.4 48.5 5.3Q50 5.2 51.5 5.1Q53 4.9 54.4 4.8Q55.8 4.7 57.1 4.6Q58.3 4.4 59.4 4.3Q60.4 4.2 60.4 4Q60.4 3.7 59.3 3.8Q58.3 3.9 57 4.1Q55.8 4.2 54.4 4.3Q52.9 4.4 51.5 4.6Q50 4.7 48.5 4.7Q46.9 4.8 45.5 4.8Q44 4.8 42.7 4.8Q41.4 4.8 40.1 4.7Q38.7 4.7 37.3 4.6Q35.9 4.5 34.5 4.5Q33.1 4.4 31.7 4.3Q30.2 4.3 30.2 4.5Z'/%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 64 8' preserveAspectRatio='none'%3E%3Cpath fill-rule='evenodd' d='M2 4.4Q2 4.8 3 5.3Q3.9 5.8 5.2 6.2Q6.4 6.6 7.8 6.4Q9.2 6.1 10.8 6.1Q12.4 6.1 14.1 6.1Q15.7 6.2 17.3 6.1Q18.9 5.9 20.5 6Q22 6.1 23.3 6Q24.6 5.9 25.9 5.8Q27.3 5.7 28.7 5.9Q30.1 6.1 31.5 6.1Q32.9 6.2 34.3 6.3Q35.8 6.5 37.2 6.6Q38.6 6.8 39.9 6.7Q41.3 6.6 42.7 6.5Q44 6.4 45.5 6.2Q47 6.1 48.5 5.9Q50 5.6 51.5 5.5Q53 5.5 54.4 5.3Q55.8 5.1 57.1 5Q58.4 4.8 59.4 4.7Q60.5 4.6 61.3 4.5Q62.1 4.4 62 3.5Q61.9 2.7 61.1 2.8Q60.3 2.9 59.3 2.9Q58.2 3 56.9 3Q55.7 3.1 54.3 3.2Q52.9 3.3 51.4 3.2Q49.9 3.1 48.4 3.1Q46.9 3 45.5 2.9Q44 2.8 42.8 2.5Q41.5 2.3 40.2 2.2Q38.9 2.2 37.5 2.1Q36.1 2 34.7 1.8Q33.3 1.5 31.9 1.4Q30.5 1.4 29 1.1Q27.6 0.8 26.2 0.6Q24.8 0.4 23.4 0.5Q22 0.5 20.4 0.5Q18.8 0.5 17.1 0.7Q15.4 0.9 13.8 1.1Q12.1 1.3 10.5 1.3Q8.9 1.3 7.4 1.4Q6 1.5 4.8 2.1Q3.7 2.6 2.8 3.3Q2 4 2 4.4ZM33.2 3Q33.2 3.3 34.6 3.5Q36 3.7 37.4 3.8Q38.8 4 40.1 4.1Q41.4 4.3 42.7 4.3Q44 4.4 45.5 4.4Q46.9 4.4 48.4 4.3Q49.9 4.3 51.4 4.2Q52.9 4.1 54.3 4.1Q55.7 4 57 3.9Q58.3 3.8 59.3 3.8Q60.4 3.7 60.4 3.4Q60.4 3.2 59.3 3.3Q58.2 3.3 57 3.4Q55.7 3.5 54.3 3.6Q52.9 3.6 51.4 3.7Q49.9 3.7 48.4 3.7Q46.9 3.7 45.5 3.7Q44 3.6 42.7 3.5Q41.5 3.4 40.1 3.3Q38.8 3.2 37.4 3.1Q36 3 34.6 2.9Q33.2 2.8 33.2 3ZM30.2 4.5Q30.2 4.8 31.6 4.9Q33 5 34.4 5.2Q35.9 5.3 37.3 5.4Q38.7 5.5 40 5.6Q41.4 5.6 42.7 5.6Q44 5.6 45.5 5.5Q47 5.4 48.5 5.3Q50 5.2 51.5 5.1Q53 4.9 54.4 4.8Q55.8 4.7 57.1 4.6Q58.3 4.4 59.4 4.3Q60.4 4.2 60.4 4Q60.4 3.7 59.3 3.8Q58.3 3.9 57 4.1Q55.8 4.2 54.4 4.3Q52.9 4.4 51.5 4.6Q50 4.7 48.5 4.7Q46.9 4.8 45.5 4.8Q44 4.8 42.7 4.8Q41.4 4.8 40.1 4.7Q38.7 4.7 37.3 4.6Q35.9 4.5 34.5 4.5Q33.1 4.4 31.7 4.3Q30.2 4.3 30.2 4.5Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.eyebrow {
  font-family: var(--brush);
  font-size: 1.45rem;
  color: var(--accent);
  display: inline-block;
  transform: rotate(-2deg);
  margin-bottom: 0.35rem;
}
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--soft); max-width: 34ch; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 0.7rem;
  gap: 1rem;
}
.site-header::after {
  content: ''; display: block; height: 7px;
  background: var(--line);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 14' preserveAspectRatio='none'%3E%3Cfilter id='r' x='0' y='-100%25' width='100%25' height='300%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.02 .4' numOctaves='2' seed='3'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='6'/%3E%3C/filter%3E%3Cpath filter='url(%23r)' fill='%231b1430' d='M0 5 H1200 V9 H0Z'/%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 1200 14' preserveAspectRatio='none'%3E%3Cfilter id='r' x='0' y='-100%25' width='100%25' height='300%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.02 .4' numOctaves='2' seed='3'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='6'/%3E%3C/filter%3E%3Cpath filter='url(%23r)' fill='%231b1430' d='M0 5 H1200 V9 H0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  opacity: .9;
}
.logo-link { display: inline-block; transform: rotate(-2deg); transition: transform .25s; }
.logo-link:hover { transform: rotate(1deg) scale(1.04); }
.logo { height: 46px; width: auto; border: 2.5px solid var(--ink); border-radius: 14px; box-shadow: 3px 3px 0 var(--ink); background: #fff; }
.site-nav ul { list-style: none; display: flex; align-items: center; gap: clamp(0.9rem, 3vw, 2rem); }
.site-nav a {
  font-family: var(--brush); font-size: 1.45rem; color: var(--text); text-decoration: none;
  position: relative; padding: 0 0.1em;
}
.site-nav a.btn { color: #fff; padding: 0.45em 1em 0.5em; }
.site-nav a:not(.btn)::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 6px;
  background: var(--amber); border-radius: var(--wobble);
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.site-nav a:not(.btn):hover::after, .site-nav a[aria-current]::after { transform: scaleX(1); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--brush); font-size: 1.6rem; line-height: 1;
  color: #fff; background: var(--purple);
  padding: 0.55em 1.25em 0.6em;
  border: 3px solid var(--ink);
  border-radius: var(--wobble);
  box-shadow: 5px 6px 0 var(--ink);
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .2s;
}
.btn:hover { transform: translate(-2px, -3px) rotate(-1deg); box-shadow: 8px 10px 0 var(--ink); background: var(--violet); }
.btn:active { transform: translate(3px, 4px); box-shadow: 1px 1px 0 var(--ink); }
.btn.small { font-size: 1.3rem; box-shadow: 3px 4px 0 var(--ink); }
.btn.amber { background: var(--amber); color: var(--ink); }
.btn.amber:hover { background: #ffd052; }
.btn.ghost { background: var(--card); color: var(--ink); }
.btn.ghost:hover { background: var(--lilac); }
:focus-visible { outline: 3px dashed var(--purple); outline-offset: 4px; }

/* ---------- stickers ---------- */
.sticker {
  position: absolute;
  height: auto;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(3px 5px 0 rgba(27, 20, 48, .13));
  rotate: var(--r, 0deg);
}
.float { animation: float var(--d, 6s) ease-in-out var(--delay, 0s) infinite; }
.sway { animation: sway var(--d, 5s) ease-in-out var(--delay, 0s) infinite; transform-origin: 50% 100%; }
.drift { animation: drift var(--d, 9s) ease-in-out var(--delay, 0s) infinite; }
.spin-slow { animation: twinkle var(--d, 3.5s) ease-in-out var(--delay, 0s) infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes drift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(18px, -8px); } }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.09) rotate(6deg); } }

/* ---------- hero ---------- */
.hero { padding: clamp(2rem, 6vw, 4.5rem) 0 clamp(2.5rem, 6vw, 5rem); position: relative; }
.hero .wrap { display: grid; grid-template-columns: 1.02fr 1fr; align-items: center; gap: 1.5rem; }
.hero h1 { margin-bottom: 1.1rem; }
.hero .lede { margin-bottom: 1.9rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem 1.2rem; align-items: center; }
.scene { position: relative; aspect-ratio: 1 / 0.94; width: 100%; max-width: 580px; margin-inline: auto; }
.scene .blob {
  position: absolute; inset: 9% 6% 8% 8%;
  background: var(--lilac);
  border: 3px solid var(--ink);
  border-radius: 58% 42% 55% 45% / 48% 56% 44% 52%;
  box-shadow: 8px 10px 0 var(--ink);
  rotate: -4deg;
}
.scene .blob::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background-image: radial-gradient(rgba(107, 70, 193, .32) 1.6px, transparent 1.8px);
  background-size: 13px 13px;
  -webkit-mask-image: linear-gradient(135deg, transparent 45%, #000 100%);
  mask-image: linear-gradient(135deg, transparent 45%, #000 100%);
}

/* ---------- sections ---------- */
section { position: relative; }
.section { padding: clamp(3rem, 8vw, 6rem) 0; }
.section-head { text-align: center; margin-bottom: clamp(2rem, 5vw, 3.5rem); position: relative; }
.section-head p { color: var(--soft); max-width: 46ch; margin: 1rem auto 0; }

.tint { background: var(--tint); transition: background-color .5s ease; }
.torn-top, .torn-bottom { position: relative; }
.torn-top::before, .torn-bottom::after {
  content: ''; position: absolute; left: 0; right: 0; height: 26px; z-index: 2;
  background: var(--paper); transition: background-color .5s ease;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 26' preserveAspectRatio='none'%3E%3Cpath fill='%23fbf6ec' d='M0 0H1200V10C1150 22 1100 4 1040 14C980 24 930 6 870 13C800 22 760 5 690 15C620 25 570 7 500 14C430 22 380 4 310 13C240 23 190 8 120 15C70 20 30 9 0 14Z'/%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 1200 26' preserveAspectRatio='none'%3E%3Cpath fill='%23fbf6ec' d='M0 0H1200V10C1150 22 1100 4 1040 14C980 24 930 6 870 13C800 22 760 5 690 15C620 25 570 7 500 14C430 22 380 4 310 13C240 23 190 8 120 15C70 20 30 9 0 14Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.torn-top::before { top: -1px; }
.torn-bottom::after { bottom: -1px; transform: scaleY(-1); }

/* ---------- feature cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
.card {
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: var(--wobble-2);
  box-shadow: 6px 7px 0 var(--ink);
  padding: 5.4rem 1.3rem 1.5rem;
  position: relative;
  margin-top: 4rem;
  rotate: var(--tilt, 0deg);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-6px) rotate(calc(var(--tilt, 0deg) * -1)); box-shadow: 9px 12px 0 var(--ink); }
.card img.art {
  position: absolute; left: 50%; top: 0;
  width: min(170px, 72%); translate: -50% -48%;
  filter: drop-shadow(3px 5px 0 rgba(27, 20, 48, .14));
  transition: transform .3s cubic-bezier(.3, 1.6, .5, 1);
}
.card:hover img.art { transform: scale(1.1) rotate(-5deg); }
.card h3 { margin-bottom: 0.45rem; }
.card p { color: var(--soft); font-size: 1rem; }
.card:nth-child(1) { background: #fff8e3; }
.card:nth-child(2) { background: #f1eaff; }
.card:nth-child(3) { background: #e9f6ff; }
.card:nth-child(4) { background: #ecf9e4; }

/* ---------- taped frames ---------- */
.frame {
  position: relative;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 18px 26px 16px 24px / 24px 16px 26px 18px;
  box-shadow: 8px 9px 0 var(--ink);
  padding: clamp(0.5rem, 1.5vw, 1rem);
}
.frame > img, .frame > video { width: 100%; border-radius: 10px; }
.tape {
  position: absolute; width: 120px; height: 34px; z-index: 3;
  background: rgba(251, 191, 36, .78);
  border-left: 2px dashed rgba(27, 20, 48, .25); border-right: 2px dashed rgba(27, 20, 48, .25);
  top: -18px; left: 50%; translate: -50% 0; rotate: -3deg;
}
.tape.left { left: 8%; translate: 0; rotate: -9deg; }
.tape.right { left: auto; right: 8%; translate: 0; rotate: 7deg; background: rgba(139, 92, 246, .55); }

/* ---------- tabs ---------- */
.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.9rem 1.1rem; margin-bottom: 2.2rem; }
.tab-button {
  font-family: var(--brush); font-size: 1.5rem; line-height: 1; color: var(--ink);
  background: var(--card); border: 3px solid var(--ink); border-radius: var(--wobble);
  padding: 0.45em 1.1em 0.5em; cursor: pointer; box-shadow: 3px 4px 0 var(--ink);
  transition: transform .15s, background .2s, box-shadow .15s;
}
.tab-button:hover { transform: translateY(-2px) rotate(-1.5deg); }
.tab-button.active { background: var(--amber); transform: rotate(-2deg); box-shadow: 5px 6px 0 var(--ink); }
.tab-image { display: none; }
.tab-image.active { display: block; animation: pop .45s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes pop { from { opacity: 0; transform: scale(.96) rotate(-1deg); } to { opacity: 1; transform: none; } }

/* ---------- a day ---------- */
.day { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; position: relative; }
.day::before {
  content: ''; position: absolute; left: 8%; right: 8%; top: 92px; height: 0;
  border-top: 4px dashed var(--ink); opacity: .28;
}
.moment { text-align: center; position: relative; }
.moment .pic { z-index: 1; height: 190px; display: flex; align-items: center; justify-content: center; margin-bottom: 0.8rem; position: relative; }
.moment .pic img { max-height: 100%; width: auto; filter: drop-shadow(3px 5px 0 rgba(27, 20, 48, .14)); }
.moment .pic img.side { position: absolute; width: 34%; right: 2%; bottom: -4%; }
.moment .when { font-family: var(--brush); font-size: 1.3rem; color: var(--accent); }
.moment p { color: var(--soft); max-width: 28ch; margin: 0.4rem auto 0; }

/* ---------- video ---------- */
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.split p { color: var(--soft); margin-top: 1rem; max-width: 40ch; }

/* ---------- call to action ---------- */
.cta {
  background: var(--purple); color: #fff; text-align: center;
  padding: clamp(4rem, 10vw, 7rem) 0 clamp(5rem, 11vw, 8rem);
  overflow: hidden;
}
.cta h2 { color: #fff; }
.cta p { color: #e8defF; margin: 1rem auto 2rem; max-width: 40ch; font-size: 1.15rem; }
.cta .swash { color: var(--ink); }
.cta .dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .16) 2px, transparent 2.2px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 120%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse at 50% 120%, #000 10%, transparent 70%);
}
.cta .wrap { position: relative; z-index: 1; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #cfc6e6; padding: 3.2rem 0 2rem; position: relative; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.site-footer .brush { color: #fff; font-size: 2rem; }
.site-footer nav { display: flex; gap: 1.5rem; }
.site-footer a { color: #fff; font-family: var(--brush); font-size: 1.3rem; text-decoration: none; }
.site-footer a:hover { color: var(--amber); }
.site-footer small { display: block; width: 100%; font-size: 0.9rem; opacity: .75; }
.site-footer .sticker { width: clamp(150px, 20vw, 250px); right: 4%; top: 0; translate: 0 -62%; }

/* ---------- download page ---------- */
.page-hero { padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(3rem, 8vw, 6rem); }
.page-hero .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; counter-reset: s; }
.steps li {
  counter-increment: s; position: relative; background: var(--card);
  border: 3px solid var(--ink); border-radius: var(--wobble-2); box-shadow: 5px 6px 0 var(--ink);
  padding: 2.2rem 1.3rem 1.4rem;
}
.steps li::before {
  content: counter(s); position: absolute; top: -1.3rem; left: 1rem;
  font-family: var(--brush); font-size: 1.9rem; line-height: 2.6rem; width: 2.6rem; text-align: center;
  background: var(--amber); border: 3px solid var(--ink); border-radius: 50% 46% 52% 48%; rotate: -6deg;
}
.steps p { color: var(--soft); font-size: 1rem; margin-top: 0.3rem; }
.photo { border-radius: 50% 46% 52% 48% / 48% 52% 46% 50%; border: 3px solid var(--ink); box-shadow: 8px 9px 0 var(--ink); background: #fff; }

/* ---------- resources / blog ---------- */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 2.2rem; }
.post {
  display: flex; flex-direction: column; background: var(--card); color: inherit; text-decoration: none;
  border: 3px solid var(--ink); border-radius: 18px 26px 16px 24px / 24px 16px 26px 18px;
  box-shadow: 6px 7px 0 var(--ink); overflow: hidden; rotate: var(--tilt, 0deg);
  transition: transform .25s, box-shadow .25s;
}
.post:hover { transform: translateY(-6px) rotate(calc(var(--tilt, 0deg) * -1)); box-shadow: 10px 12px 0 var(--ink); }
.post .thumb { height: 200px; width: 100%; object-fit: cover; border-bottom: 3px solid var(--ink); background: #fff; }
.post .thumb.contain { object-fit: contain; padding: 1.5rem; }
.post .body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.post p { color: var(--soft); font-size: 1rem; }
.post .more { font-family: var(--brush); font-size: 1.35rem; color: var(--accent); margin-top: auto; }
.quote {
  font-family: var(--brush); font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.15; text-align: center;
  max-width: 22ch; margin: 0 auto; position: relative;
}

.article { max-width: 780px; margin: clamp(2.5rem, 6vw, 4rem) auto; position: relative; }
.article .frame { padding: 0; overflow: hidden; }
.article .blog-image { width: 100%; max-height: 380px; object-fit: cover; border-bottom: 3px solid var(--ink); border-radius: 0; }
.article .blog-image.contain { object-fit: contain; padding: 2rem; max-height: 260px; }
.article .blog-header { padding: 2rem clamp(1.2rem, 4vw, 2.6rem) 0.5rem; }
.article .blog-header h2, .article .blog-header h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
.article .blog-body { padding: 1rem clamp(1.2rem, 4vw, 2.6rem) 2.4rem; }
.article .blog-body p, .article .blog-body ul, .article .blog-body ol { margin-bottom: 1.3rem; }
.article .blog-body ul, .article .blog-body ol { padding-left: 1.3rem; }
.article .blog-body li { margin-bottom: 0.5rem; }
.article .blog-body li::marker { color: var(--purple); }
.article .blog-body h3 { margin: 1.8rem 0 0.6rem; }
.back { font-family: var(--brush); font-size: 1.4rem; text-decoration: none; display: inline-block; margin-bottom: 1.2rem; }
.back:hover { transform: translateX(-4px); }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; translate: 0 28px; transition: opacity .7s ease, translate .7s cubic-bezier(.2, .9, .3, 1.2); transition-delay: var(--stagger, 0s); }
.js .reveal.in { opacity: 1; translate: 0 0; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .hero .wrap, .page-hero .wrap, .split { grid-template-columns: 1fr; }
  .hero-copy, .page-hero .copy { text-align: center; }
  .hero .lede, .page-hero .lede { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .split p { margin-inline: auto; }
  .split > div:first-child { text-align: center; }
  .deco-hide { display: none; }
}
@media (max-width: 640px) {
  .cards, .day, .steps { grid-template-columns: 1fr; }
  .day::before { display: none; }
  .logo { height: 38px; }
  .site-nav a { font-size: 1.25rem; }
  .site-nav .btn { display: none; }
  .card { rotate: 0deg; }
  .site-footer .wrap { justify-content: center; text-align: center; }
  .site-footer nav { justify-content: center; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; translate: 0 0; }
  html { scroll-behavior: auto; }
}

/* =====================================================================
   Night mode — flip the sun for the moon
   ===================================================================== */
[data-theme='night'] {
  --paper: #1d1638;
  --tint: #251c4a;
  --text: #f6f0ff;
  --soft: #cbbfe6;
  --accent: #c2a8ff;
  --line: #f6f0ff;
  --ink: #0b0719;
}
[data-theme='night'] body {
  background-image:
    radial-gradient(1.6px 1.6px at 12% 18%, #fff 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 78% 9%, #ffe9a8 50%, transparent 52%),
    radial-gradient(1.4px 1.4px at 42% 62%, #fff 50%, transparent 52%),
    radial-gradient(1px 1px at 91% 48%, #d9c8ff 50%, transparent 52%),
    radial-gradient(1.3px 1.3px at 27% 86%, #fff 50%, transparent 52%),
    radial-gradient(1px 1px at 63% 33%, #ffe9a8 50%, transparent 52%);
  background-size: 420px 380px, 510px 430px, 380px 460px, 460px 520px, 540px 410px, 330px 350px;
}
/* light paper surfaces keep their dark ink text */
.card, .frame, .steps li, .post, .tab-button, .btn.ghost, .toast, .missed, .mood-pick button {
  --text: #1b1430; --soft: #4a4263; --accent: #6b46c1; color: var(--text);
}
[data-theme='night'] .site-header { background: color-mix(in srgb, var(--paper) 86%, transparent); }
[data-theme='night'] .scene .blob { background: #3b2a7a; }
[data-theme='night'] .sticker, [data-theme='night'] .card img.art, [data-theme='night'] .moment .pic img {
  filter: drop-shadow(0 0 14px rgba(194, 168, 255, .28));
}
[data-theme='night'] .site-footer { background: #0b0719; }

.theme-toggle {
  width: 54px; height: 54px; padding: 0; border: 0; background: none; cursor: pointer; position: relative;
  transition: transform .3s cubic-bezier(.3, 1.6, .5, 1);
}
.theme-toggle:hover { transform: rotate(-12deg) scale(1.12); }
.theme-toggle img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .35s, transform .5s cubic-bezier(.3, 1.5, .5, 1); }
.theme-toggle .to-day { opacity: 0; transform: rotate(-90deg) scale(.4); }
[data-theme='night'] .theme-toggle .to-night { opacity: 0; transform: rotate(90deg) scale(.4); }
[data-theme='night'] .theme-toggle .to-day { opacity: 1; transform: none; }

/* =====================================================================
   Painted bits
   ===================================================================== */
/* reading progress: a brush stroke across the top */
.progress {
  position: fixed; left: 0; top: 0; height: 7px; width: 100%; z-index: 60; pointer-events: none;
  background: linear-gradient(90deg, var(--amber), var(--violet), var(--sky));
  transform-origin: 0 50%; transform: scaleX(var(--p, 0));
  border-radius: 0 8px 12px 0 / 0 6px 9px 0;
}
/* pointer paint trail */
#paint { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 40; pointer-events: none; mix-blend-mode: multiply; }
[data-theme='night'] #paint { mix-blend-mode: screen; }

/* headings get painted in */
.js .paint { clip-path: inset(-20% 102% -30% -4%); }
.js .in .paint, .js .paint.in { clip-path: inset(-20% -6% -30% -4%); transition: clip-path 1s cubic-bezier(.65, 0, .25, 1) var(--paint-delay, .05s); }
.js .paint .swash::before, .js .paint .stroke::after { scale: 0 1; transform-origin: 0 50%; }
.js .in .paint .swash::before, .js .paint.in .swash::before,
.js .in .paint .stroke::after, .js .paint.in .stroke::after { scale: 1 1; transition: scale .6s cubic-bezier(.3, 1, .4, 1) calc(var(--paint-delay, .05s) + .55s); }

/* draggable stickers */
.grab { pointer-events: auto; cursor: grab; touch-action: none; transition: scale .2s; }
.grab:hover { scale: 1.06; }
.grab.held { cursor: grabbing; scale: 1.14; animation-play-state: paused; z-index: 5; filter: drop-shadow(10px 16px 0 rgba(27, 20, 48, .18)); }
.hint {
  position: absolute; right: 2%; bottom: -9%; font-family: var(--brush); font-size: 1.25rem; color: var(--accent); rotate: -4deg;
  pointer-events: none; white-space: nowrap;
}

/* burst particles */
.bit { position: fixed; z-index: 70; pointer-events: none; width: 34px; height: 34px; margin: -17px 0 0 -17px; background: center / contain no-repeat; will-change: transform, opacity; }

/* =====================================================================
   Marquee ribbon
   ===================================================================== */
.ribbon {
  background: var(--amber); color: #1b1430; border-block: 3px solid var(--ink);
  rotate: -1.6deg; margin: 2.2rem -2rem; overflow: hidden; position: relative; z-index: 3;
  box-shadow: 0 7px 0 var(--ink);
}
.ribbon.violet { background: var(--violet); color: #fff; rotate: 1.4deg; }
.ribbon .track { display: flex; width: max-content; animation: slide 36s linear infinite; }
.ribbon.violet .track { animation-direction: reverse; }
.ribbon:hover .track { animation-play-state: paused; }
.ribbon .set { display: flex; align-items: center; gap: 1.6rem; padding: 0.5rem 0.8rem; flex-shrink: 0; }
.ribbon span { font-family: var(--brush); font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1; white-space: nowrap; }
.ribbon img { height: clamp(44px, 6vw, 64px); width: auto; }
@keyframes slide { to { transform: translateX(-50%); } }

@media (max-width: 960px) {
  .hint { display: none; }
}
@media (max-width: 640px) {
  .theme-toggle { width: 44px; height: 44px; }
  .site-nav ul { gap: 0.7rem; }
}
@media (prefers-reduced-motion: reduce) {
  .js .paint { clip-path: none; }
  .js .paint .swash::before, .js .paint .stroke::after { scale: 1 1; }
  #paint { display: none; }
}

/* soft cross-fade between pages */
@view-transition { navigation: auto; }

/* =====================================================================
   Brand: the X mark beside the name
   ===================================================================== */
.brand { display: inline-flex; align-items: center; gap: 0.45rem; text-decoration: none; color: var(--text); rotate: -2deg; transition: rotate .25s, scale .25s; }
.brand:hover { rotate: 1deg; scale: 1.05; }
.brand img { height: 46px; width: auto; }
.brand span { font-family: var(--brush); font-size: 2.2rem; line-height: 1; }
.brand b { font-weight: 400; color: var(--accent); }
[data-theme='night'] .brand img { filter: brightness(1.35) saturate(.85); }
.site-footer .brand { color: #fff; rotate: 0deg; }
.site-footer .brand img { filter: brightness(1.35) saturate(.85); }
.site-footer .brand b { color: #c2a8ff; }

/* =====================================================================
   The app's own brush drawings
   ===================================================================== */
.bx { display: block; width: 100%; height: auto; overflow: visible; }
.bx path { fill-rule: evenodd; }
.bx .ink { fill: var(--text); }
.bx .primary { fill: var(--accent); }
.bx .green { fill: #2f9e63; }
.bx .amber { fill: #d98a0b; }
.bx .wash { fill: var(--accent); opacity: .14; }
[data-theme='night'] .bx .green { fill: #4cc38a; }
[data-theme='night'] .bx .amber { fill: #e8a93a; }
.card .bx .green, .phone .bx .green { fill: #2f9e63; }
/* painted in, one stroke after another */
.js .bx.paint-strokes path { opacity: 0; transform: translateY(5px); }
.js .bx.paint-strokes.in path { opacity: 1; transform: none; transition: opacity .45s ease calc(var(--i) * 90ms), transform .45s ease calc(var(--i) * 90ms); }
.js .bx.paint-strokes.in path.wash { opacity: .14; }

.card .art-brush { position: absolute; left: 50%; top: 0; width: min(240px, 86%); translate: -50% -50%; transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.card:hover .art-brush { transform: scale(1.08) rotate(-4deg); }
.cards.six { grid-template-columns: repeat(3, 1fr); row-gap: 1rem; }
.cards.six .card:nth-child(5) { background: #fff8e3; }
.cards.six .card:nth-child(6) { background: #f1eaff; }
.card .tag { font-family: var(--brush); font-size: 1.1rem; color: var(--accent); display: block; margin-bottom: 0.1rem; }

/* =====================================================================
   Try it — a small working DailyX in a phone
   ===================================================================== */
.try { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(1rem, 3vw, 3rem); align-items: center; }
.callouts { display: grid; gap: 2.4rem; }
.callout { max-width: 26ch; position: relative; }
.callouts.left { justify-items: end; text-align: right; }
.callout h3 { margin-bottom: 0.3rem; }
.callout p { color: var(--soft); font-size: 1rem; }
.callout .n { font-family: var(--brush); color: var(--accent); font-size: 1.2rem; }

.phone {
  --p: #6b46c1; --pl: #9f7aea; --t: #1c1c28; --t2: #6e6e80; --bg: #ffffff; --sf: #ffffff; --hv: #f4f4f7; --bd: #e6e6ec; --gr: #2f9e63; --am: #d98a0b;
  --text: var(--t); --accent: var(--p);
  width: 330px; height: 660px; flex: none; position: relative; overflow: hidden;
  background: var(--bg); color: var(--t);
  border: 4px solid var(--ink); border-radius: 44px; box-shadow: 10px 12px 0 var(--ink);
  font-family: 'Poppins', var(--body); font-size: 14px; line-height: 20px;
  display: flex; flex-direction: column; rotate: -1.2deg;
}
[data-theme='night'] .phone {
  --p: #a78bfa; --pl: #c4b5fd; --t: #ececf1; --t2: #a0a0ae; --bg: #121217; --sf: #1b1b22; --hv: #25252e; --bd: #30303b; --gr: #4cc38a; --am: #e8a93a;
  box-shadow: 10px 12px 0 #0b0719, 0 0 60px rgba(167, 139, 250, .25);
}
.phone .bx .green { fill: var(--gr); }
.phone .bx .amber { fill: var(--am); }
.phone button { font: inherit; color: inherit; cursor: pointer; }
.ph-head { height: 52px; flex: none; display: grid; place-items: center; border-bottom: 1px solid var(--bd); position: relative; }
.ph-head b { font-weight: 600; font-size: 17px; line-height: 1.1; }
.ph-head svg { width: 52px; height: 5px; display: block; margin: -1px auto 0; fill: var(--p); opacity: .55; }
.ph-head .mark { position: absolute; left: 16px; top: 13px; height: 26px; }
.ph-body { flex: 1; overflow-y: auto; padding: 14px 16px 18px; scrollbar-width: none; position: relative; }
.ph-body::-webkit-scrollbar { display: none; }
.ph-pane { display: none; }
.ph-pane.on { display: block; animation: ph-in .28s ease; }
@keyframes ph-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.ph-tabs { flex: none; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--bd); padding: 6px 6px 12px; background: var(--bg); }
.ph-tabs button { background: none; border: 0; padding: 2px 0; display: grid; justify-items: center; font-size: 11px; line-height: 14px; color: var(--t2); }
.ph-tabs svg { width: 30px; height: 30px; }
.ph-tabs svg .i { fill: var(--t2); }
.ph-tabs svg .w { fill: var(--p); opacity: 0; transition: opacity .2s; }
.ph-tabs button.on { color: var(--p); font-weight: 600; }
.ph-tabs button.on svg .i { fill: var(--p); }
.ph-tabs button.on svg .w { opacity: .16; }
.ph-tabs button:active svg { transform: scale(.86); }
.ph-label { font-size: 13px; font-weight: 600; color: var(--t2); margin: 16px 0 8px; }
.ph-card { border: 1px solid var(--bd); border-radius: 14px; background: var(--sf); padding: 12px; }
.ph-card + .ph-card { margin-top: 12px; }
.ph-muted { color: var(--t2); font-size: 12.5px; line-height: 18px; }
.ph-btn { background: var(--p); color: #fff !important; border: 0; border-radius: 11px; min-height: 40px; padding: 0 16px; font-weight: 600; }
[data-theme='night'] .ph-btn { color: #121217 !important; }
.ph-btn.text { background: none; color: var(--p) !important; padding: 0 8px; }
.ph-ring { display: flex; align-items: center; gap: 14px; }
.ph-ring .ring { width: 74px; height: 74px; flex: none; position: relative; }
.ph-ring .ring svg { width: 100%; height: 100%; }
.ph-ring .ring .track { fill: var(--p); opacity: .16; }
.ph-ring .ring .paint { fill: var(--p); }
.ph-ring .ring .tick { fill: var(--gr); opacity: 0; transition: opacity .3s .2s; }
.ph-ring .ring.full .tick { opacity: 1; }
.ph-ring .ring .sweep { fill: none; stroke: #000; stroke-width: 20; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--pct, 0)); transition: stroke-dashoffset .7s cubic-bezier(.4, 1.2, .5, 1); }
.ph-ring .ring .count { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 600; font-size: 15px; transition: opacity .2s; }
.ph-ring .ring.full .count { opacity: 0; }
.ph-ring b { font-weight: 600; font-size: 15px; display: block; }
.ph-list { border: 1px solid var(--bd); border-radius: 14px; background: var(--sf); overflow: hidden; }
.ph-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; min-height: 48px; cursor: pointer; transition: background .15s; }
.ph-row + .ph-row { border-top: 1px solid var(--bd); }
.ph-row:hover { background: var(--hv); }
.ph-row .chk { width: 28px; height: 28px; flex: none; }
.ph-row .chk .r { fill: var(--t2); transition: fill .2s; }
.ph-row .chk .k { fill: var(--gr); opacity: 0; transform: scale(.4); transform-origin: 50% 60%; transform-box: fill-box; transition: opacity .2s, transform .35s cubic-bezier(.3, 1.8, .5, 1); }
.ph-row.done .chk .r { fill: var(--gr); }
.ph-row.done .chk .k { opacity: 1; transform: none; }
.ph-row .nm { flex: 1; min-width: 0; font-weight: 500; }
.ph-row .nm small { display: block; font-weight: 400; font-size: 12px; line-height: 16px; color: var(--t2); }
.ph-row.done .nm { color: var(--t2); text-decoration: line-through; }
.ph-row .xp { font-size: 12px; font-weight: 600; color: var(--gr); white-space: nowrap; }
.ph-empty { text-align: center; padding: 6px 8px 2px; }
.ph-empty .bx { width: 170px; margin: 0 auto; }
.ph-empty b { font-weight: 600; font-size: 15px; display: block; }
.ph-dots { display: flex; gap: 6px; margin: 8px 0 10px; }
.ph-dots i { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--bd); display: grid; place-items: center; font-style: normal; font-size: 10px; color: var(--t2); }
.ph-dots i.on { background: var(--p); border-color: var(--p); color: #fff; }
.ph-undo {
  position: absolute; left: 12px; right: 12px; bottom: 82px; z-index: 4; background: var(--t); color: var(--bg); border-radius: 12px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 6px 0 14px; min-height: 44px; font-size: 13px;
  translate: 0 30px; opacity: 0; pointer-events: none; transition: translate .3s cubic-bezier(.3, 1.4, .5, 1), opacity .2s;
}
.ph-undo.show { translate: 0 0; opacity: 1; pointer-events: auto; }
.ph-undo button { background: none; border: 0; font-weight: 700; color: var(--pl) !important; padding: 8px 10px; letter-spacing: .04em; }
.ph-input { width: 100%; font: inherit; color: var(--t); background: var(--sf); border: 1px solid var(--bd); border-radius: 12px; min-height: 44px; padding: 0 12px; }
.ph-input:focus { outline: 2px solid var(--p); outline-offset: 1px; }
textarea.ph-input { padding: 10px 12px; min-height: 84px; resize: none; display: block; }
.ph-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 10px; min-height: 26px; }
.ph-chips span { font-size: 12px; font-weight: 600; color: var(--p); background: color-mix(in srgb, var(--p) 13%, transparent); border-radius: 999px; padding: 3px 10px; animation: pop .3s cubic-bezier(.3, 1.6, .5, 1); }
.ph-moods { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin: 10px 0 12px; }
.ph-moods button { background: none; border: 0; padding: 2px 0; font-size: 11px; line-height: 14px; color: var(--t2); display: grid; justify-items: center; gap: 2px; }
.ph-moods svg { width: 42px; height: 42px; transition: transform .3s cubic-bezier(.3, 1.8, .5, 1); }
.ph-moods .tint { fill: var(--mc); opacity: 0; transition: opacity .2s; }
.ph-moods .ink { fill: var(--t2); transition: fill .2s; }
.ph-moods button.on { color: var(--t); font-weight: 600; }
.ph-moods button.on svg { transform: scale(1.18) rotate(-6deg); }
.ph-moods button.on .tint { opacity: .45; }
.ph-moods button.on .ink { fill: var(--t); }
.ph-grove { border: 1px solid var(--bd); border-radius: 14px; overflow: hidden; background: linear-gradient(#eef4ff, #f6f1ff 55%, #e9f5e6 55.2%); position: relative; }
[data-theme='night'] .ph-grove { background: linear-gradient(#141833, #1d1a3a 55%, #17251f 55.2%); }
.ph-grove svg { display: block; width: 100%; height: auto; }
.ph-grove .river { fill: #6fb3d9; opacity: .85; transition: d .8s ease; }
.ph-grove .ripple { fill: none; stroke: #fff; stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 10 16; opacity: .7; animation: ripple 3.5s linear infinite; }
@keyframes ripple { to { stroke-dashoffset: -52; } }
.ph-grove .tree { cursor: pointer; transform-box: fill-box; transform-origin: 50% 100%; animation: breeze 4.5s ease-in-out infinite; }
.ph-grove .tree.new { animation: grow .8s cubic-bezier(.3, 1.6, .5, 1), breeze 4.5s ease-in-out .8s infinite; }
.ph-grove .tree .trunk { stroke: var(--t); stroke-width: 2.6; stroke-linecap: round; fill: none; }
.ph-grove .tree .leaf { fill: var(--gr); }
.ph-grove .tree .hit { fill: transparent; }
.ph-grove .bird { fill: none; stroke: var(--t); stroke-width: 1.6; stroke-linecap: round; animation: fly 16s linear infinite; }
.ph-grove .bird.b2 { animation-duration: 22s; animation-delay: -9s; }
@keyframes breeze { 0%, 100% { transform: rotate(-2.5deg); } 50% { transform: rotate(2.5deg); } }
@keyframes grow { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes fly { from { transform: translate(-30px, 0); } 50% { transform: translate(150px, -10px); } to { transform: translate(340px, 4px); } }
.ph-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.ph-stats b { font-size: 20px; line-height: 26px; font-weight: 700; display: block; }
.ph-heat { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 1fr); gap: 3px; margin-top: 8px; }
.ph-heat i { aspect-ratio: 1; border-radius: 3px; background: var(--hv); border: 1px solid var(--bd); }
.ph-heat i[data-l='1'] { background: color-mix(in srgb, var(--p) 28%, var(--sf)); border-color: transparent; }
.ph-heat i[data-l='2'] { background: color-mix(in srgb, var(--p) 55%, var(--sf)); border-color: transparent; }
.ph-heat i[data-l='3'] { background: var(--p); border-color: transparent; }
.ph-heat i.today { outline: 2px solid var(--am); outline-offset: 1px; }
.ph-medals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; text-align: center; font-size: 11px; color: var(--t2); }
.ph-medals svg { width: 46px; height: 55px; margin: 0 auto; display: block; }
.ph-medals .ring { fill: var(--am); } .ph-medals .ribbon { fill: var(--p); } .ph-medals .sparks { fill: var(--am); }
.ph-medals .pale svg { opacity: .22; filter: grayscale(1); }
.ph-pop { position: absolute; left: 50%; top: 10px; translate: -50% 0; background: var(--t); color: var(--bg); border-radius: 10px; padding: 6px 12px; font-size: 12px; white-space: nowrap; animation: pop .3s cubic-bezier(.3, 1.6, .5, 1); pointer-events: none; }
.sample { text-align: center; font-size: 0.9rem; color: var(--soft); margin-top: 1.8rem; }
.sample button { font: inherit; color: var(--accent); background: none; border: 0; text-decoration: underline; cursor: pointer; }

/* =====================================================================
   No guilt, moods, medals
   ===================================================================== */
.missed {
  background: var(--card); border: 3px solid var(--ink); border-radius: var(--wobble-2); box-shadow: 8px 9px 0 var(--ink);
  padding: 1.5rem 1.5rem 1.6rem; max-width: 430px; rotate: 1.5deg; position: relative; transition: rotate .4s, scale .4s;
}
.missed h3 { font-size: 2rem; }
.missed p { color: var(--soft); margin: 0.3rem 0 1rem; }
.missed ul { list-style: none; display: grid; gap: 0.5rem; margin-bottom: 1.2rem; }
.missed li { background: #fff; border: 2.5px solid var(--ink); border-radius: 14px 18px 13px 17px / 17px 13px 18px 14px; padding: 0.5rem 0.8rem; font-weight: 700; transition: transform .5s cubic-bezier(.4, 0, .2, 1), opacity .5s; }
.missed li small { display: block; font-weight: 400; color: #6e6e80; font-size: 0.85rem; }
.missed .row { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.missed .btn { font-size: 1.3rem; box-shadow: 3px 4px 0 var(--ink); }
.missed.kept li { transform: translateX(8px) rotate(-1deg); background: #eefbe9; }
.missed.gone li { transform: translateY(-30px) rotate(6deg); opacity: 0; }
.missed .after { font-family: var(--brush); font-size: 1.5rem; display: none; }
.missed.kept .after.k, .missed.gone .after.g { display: block; animation: pop .4s cubic-bezier(.3, 1.6, .5, 1); }
.missed.kept .row, .missed.gone .row { display: none; }
.missed.gone ul { height: 0; margin: 0; overflow: hidden; }
.pledge { font-family: var(--brush); font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.15; color: var(--accent); margin-top: 1.4rem; rotate: -1.5deg; max-width: 22ch; }

.mood-pick { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2rem 1.6rem; }
.mood-pick button {
  width: 132px; background: var(--card); border: 3px solid var(--ink); border-radius: var(--wobble-2); box-shadow: 5px 6px 0 var(--ink);
  padding: 0.9rem 0.6rem 0.6rem; cursor: pointer; font-family: var(--brush); font-size: 1.4rem; line-height: 1.1;
  rotate: var(--tilt, 0deg); transition: transform .3s cubic-bezier(.3, 1.7, .5, 1), background .3s, box-shadow .2s;
}
.mood-pick svg { width: 78px; height: 78px; display: block; margin: 0 auto 0.3rem; }
.mood-pick .tint { fill: var(--mc); opacity: .3; transition: opacity .3s; }
.mood-pick .ink { fill: #1c1c28; }
.mood-pick button:hover { transform: translateY(-8px) rotate(calc(var(--tilt, 0deg) * -2)); box-shadow: 8px 11px 0 var(--ink); }
.mood-pick button.on { background: color-mix(in srgb, var(--mc) 26%, #fff); transform: translateY(-10px) scale(1.08); }
.mood-pick button.on .tint { opacity: .6; }
.mood-say { text-align: center; font-family: var(--brush); font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.15; margin-top: 2rem; min-height: 2.5em; }

.medals { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem 3rem; }
.medal { text-align: center; background: none; --text: inherit; }
.medal svg { width: 120px; height: 142px; display: block; margin: 0 auto; transition: transform .4s cubic-bezier(.3, 1.7, .5, 1); }
.medal:hover svg { transform: rotate(-8deg) scale(1.1); }
.medal .ring, .medal .sparks { fill: #d98a0b; } .medal .ribbon { fill: var(--accent); }
.medal b { font-family: var(--brush); font-weight: 400; font-size: 2rem; line-height: 1; display: block; color: var(--text); }
.medal span { color: var(--soft); font-size: 0.95rem; }
section .medal { color: var(--text); }

.bullets { list-style: none; display: grid; gap: 0.7rem; margin-top: 1.4rem; }
.bullets li { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--soft); }
.bullets svg { width: 30px; height: 30px; flex: none; margin-top: -2px; }
.bullets .r { fill: var(--accent); } .bullets .k { fill: #2f9e63; }

@media (max-width: 1100px) {
  .try { grid-template-columns: 1fr; justify-items: center; }
  .callouts, .callouts.left { grid-template-columns: repeat(2, 1fr); gap: 1.4rem 2rem; text-align: left; justify-items: start; max-width: 640px; }
  .callouts.left { order: 2; }
  .callouts.right { order: 3; }
  .cards.six { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .cards.six, .callouts, .callouts.left { grid-template-columns: 1fr; }
  .phone { rotate: 0deg; width: min(330px, 100%); }
  .brand img { height: 38px; } .brand span { font-size: 1.8rem; }
  .mood-pick button { width: 104px; } .mood-pick svg { width: 60px; height: 60px; }
}

.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 80; translate: -50% 140%; opacity: 0;
  font-family: var(--brush); font-size: 1.5rem; line-height: 1.1; background: #fff; border: 3px solid var(--ink);
  border-radius: var(--wobble); box-shadow: 5px 6px 0 var(--ink); padding: 0.55em 1.1em 0.6em; white-space: nowrap;
  transition: translate .45s cubic-bezier(.3, 1.5, .5, 1), opacity .3s;
}
.toast.show { translate: -50% 0; opacity: 1; }
.post .thumb[data-brush] .bx { height: 100%; width: auto; }
.post .thumb[data-brush], .article [data-brush] { --text: #1c1c28; --accent: #6b46c1; }

.cards.six .card { padding-top: 10.6rem; margin-top: 0; }
.cards.six .card .art-brush { top: 0.9rem; translate: -50% 0; width: min(210px, 74%); }
[data-theme='night'] .swash { color: #1b1430; }
.bullets li { text-align: left; }
@media (max-width: 960px) { .pledge { margin-inline: auto; } .missed { margin-top: 2.5rem; } }
.site-footer .powered { display: inline-block; margin-left: 0.4rem; }
.site-footer .powered a { font-family: var(--brush); font-size: 1.25rem; color: var(--amber); }
.site-footer .powered a:hover { color: #fff; }

@media (max-width: 640px) { .cards[style*="repeat(2"] { grid-template-columns: 1fr !important; } }

/* =====================================================================
   Account deletion form
   ===================================================================== */
#delete-account { scroll-margin-top: 4rem; }
.form-card {
  max-width: 640px; margin-inline: auto; background: var(--card); border: 3px solid var(--ink);
  border-radius: var(--wobble-2); box-shadow: 8px 9px 0 var(--ink); padding: clamp(1.3rem, 4vw, 2.2rem);
  --text: #1c1c28; --soft: #4a4263; --accent: #6b46c1; color: var(--text); rotate: -.6deg;
}
.form-card h3 { margin-bottom: 0.5rem; }
.form-card p { color: var(--soft); }
.form-card p.small { font-size: 0.95rem; margin: 0.8rem 0 1.2rem; }
.form-card [hidden] { display: none !important; }
.field { display: block; font-family: var(--brush); font-size: 1.5rem; margin-bottom: 0.4rem; }
.form-card input[type='email'] {
  width: 100%; font: inherit; font-size: 1.05rem; color: #1c1c28; background: #fff; border: 3px solid var(--ink);
  border-radius: 14px 18px 13px 17px / 17px 13px 18px 14px; padding: 0.75rem 0.95rem; min-height: 52px;
}
.form-card input[type='email']:focus { outline: 3px dashed var(--purple); outline-offset: 3px; }
.field-error { color: #b3261e !important; font-weight: 700; margin-top: 0.6rem; }
.check { display: flex; gap: 0.75rem; align-items: flex-start; margin: 1.3rem 0 1.5rem; cursor: pointer; color: var(--soft); }
.check input { flex: none; width: 24px; height: 24px; margin-top: 2px; accent-color: var(--purple); }
.linkish { font: inherit; color: var(--accent); background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
@media (max-width: 640px) { .form-card { rotate: 0deg; } }
