/* The Daily Sprout brand kit: Sprouty (built from shapes, no SVG) + the classic masthead + the opening animation. */
@font-face { font-family: "Fredoka"; font-weight: 500 700; src: url(img/Fredoka-700.woff2) format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 400 800; src: url(img/Nunito-800.woff2) format("woff2"); }
:root {
  --ink:#16213D; --soft:#5A6782; --mute:#8C96AB; --line:#ECE7DD; --paper:#FFFFFF; --cream:#FFF8EC;
  --green:#14B37D; --deep:#0B7A5F; --sun:#FFC83D; --coral:#FF6A4D; --sky:#4DAEF0; --pink:#FF7FB0; --lilac:#8E6CF0;
  --green-bg:#E5F7EF; --sun-bg:#FFF4D1; --coral-bg:#FFE9E3; --sky-bg:#E6F3FD; --lilac-bg:#EFE9FD;
}

/* ---------- Sprouty on a 200-unit box ---------- */
.sp { --c: var(--green); --la: var(--sun); --lb: var(--deep); --eye: var(--ink); --w: #fff; --cheek: #FF9C86; --pp: #fff;
  position: relative; width: 200px; height: 200px; transform-origin: 0 0; }
.sp i { position: absolute; display: block; }
.sp .body { left: 34px; top: 54px; width: 132px; height: 140px; border-radius: 50% 50% 46% 46% / 56% 56% 44% 44%; background: var(--c); }
.sp .la { left: 48px; top: 6px; width: 54px; height: 54px; background: var(--la); border-radius: 0 100% 0 100%; transform: rotate(-6deg); transform-origin: 100% 100%; }
.sp .lb { left: 100px; top: 2px; width: 56px; height: 56px; background: var(--lb); border-radius: 100% 0 100% 0; transform: rotate(8deg); transform-origin: 0 100%; }
.sp .eye { top: 100px; width: 34px; height: 40px; border-radius: 50%; background: var(--w); }
.sp .eye::after { content: ""; position: absolute; left: 10px; top: 11px; width: 18px; height: 22px; border-radius: 50%; background: var(--eye); }
.sp.up .eye::after { top: 4px; left: 8px; }
.sp .smile { left: 84px; top: 150px; width: 32px; height: 16px; border: 6px solid var(--eye); border-top: 0; border-radius: 0 0 32px 32px; }
.sp .ck { top: 148px; width: 18px; height: 10px; border-radius: 50%; background: var(--cheek); }
.sp .wow { left: 90px; top: 150px; width: 20px; height: 22px; border-radius: 50%; background: var(--eye); }
.sp .wink { top: 116px; width: 30px; height: 14px; border: 6px solid var(--eye); border-top: 0; border-radius: 0 0 30px 30px; }
.sp .arm { left: 152px; top: 84px; width: 40px; height: 28px; background: var(--c); border-radius: 0 100% 0 100%; transform: rotate(-50deg); transform-origin: 0 100%; }
.sp .paper { left: 22px; top: 134px; width: 156px; height: 62px; background: var(--pp); border: 6px solid var(--eye); border-radius: 10px; transform: rotate(-4deg); }
.sp .paper::before { content: ""; position: absolute; left: 12px; top: 10px; width: 56px; height: 8px; border-radius: 8px; background: var(--eye); box-shadow: 0 16px 0 0 #C9CFDB, 64px 16px 0 0 #C9CFDB, 0 30px 0 0 #C9CFDB, 64px 30px 0 0 #C9CFDB; }
.sp .paper::after { content: ""; position: absolute; left: 76px; top: 10px; width: 52px; height: 8px; border-radius: 8px; background: var(--coral); }
.sp .hand { top: 140px; width: 26px; height: 26px; border-radius: 50%; background: var(--c); border: 5px solid var(--eye); }
.sp.min .eye { width: 20px; height: 24px; background: var(--eye); top: 108px; }
.sp.min .eye::after { display: none; }
.sp.min .smile { left: 86px; top: 146px; width: 28px; height: 14px; }
.sp.y { --c: var(--sun); --la: var(--coral); --lb: var(--green); }
.sp.b { --c: var(--sky); --la: var(--sun); --lb: var(--green); }
.on-dark .sp { --c: #fff; --la: #fff; --lb: #fff; --eye: var(--ink); --w: var(--ink); --cheek: transparent; --pp: var(--ink); }
.on-dark .sp .eye::after { background: #fff; }
/* living Sprouty: blink + leaf sway */
.alive .sp .eye { animation: blink 4.5s infinite; transform-origin: 50% 60%; }
.alive .sp .la { animation: swayL 3.2s ease-in-out infinite; }
.alive .sp .lb { animation: swayR 3.2s ease-in-out infinite; }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes swayL { 50% { transform: rotate(-16deg); } }
@keyframes swayR { 50% { transform: rotate(16deg); } }

/* ---------- classic masthead ---------- */
.mast { --fs: 84px; --col: var(--ink); --acc: var(--coral); position: relative; display: inline-flex; flex-direction: column; color: var(--col); padding-top: calc(var(--fs) * 1.5); }
.mast .r1 { border-top: calc(var(--fs) * .06) solid var(--col); border-bottom: calc(var(--fs) * .018) solid var(--col); height: calc(var(--fs) * .12); position: relative; z-index: 3; }
.mast .r2 { border-top: calc(var(--fs) * .018) solid var(--col); border-bottom: calc(var(--fs) * .06) solid var(--col); height: calc(var(--fs) * .12); }
.mast .t { font-family: "Fraunces", Georgia, serif; font-weight: 900; font-size: var(--fs); line-height: 1; letter-spacing: -.024em; padding: calc(var(--fs) * .06) calc(var(--fs) * .1) calc(var(--fs) * .05); white-space: nowrap; text-align: center; }
.mast .t .ch { display: inline-block; }
.mast .meta { display: flex; justify-content: space-between; gap: 12px; font-family: Nunito, sans-serif; font-weight: 800; font-size: max(9px, calc(var(--fs) * .155)); letter-spacing: .16em; text-transform: uppercase; padding-top: calc(var(--fs) * .09); white-space: nowrap; }
.mast .meta .acc { color: var(--acc); }
/* Sprouty window: sits on the top line; Sprouty rises from behind it */
.mast .peek { position: absolute; left: 50%; bottom: calc(100% - var(--fs) * 1.5 - var(--fs) * .1); width: calc(var(--fs) * 1.5); height: calc(var(--fs) * 1.5); transform: translateX(-50%); overflow: hidden; z-index: 4; pointer-events: none; }
.mast .peek .who { position: absolute; left: 0; bottom: 0; }
.mast.dark { --col: #fff; --acc: var(--sun); }

/* ---------- opening animation (add .play to .mast) ---------- */
.mast.play .r1, .mast.play .r2 { transform: scaleX(0); animation: rule .7s cubic-bezier(.6,0,.2,1) forwards; }
.mast.play .r2 { animation-delay: .12s; }
@keyframes rule { to { transform: scaleX(1); } }
.mast.play .t .ch { opacity: 0; transform: translateY(.35em); animation: rise .5s cubic-bezier(.2,1.2,.4,1) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
.mast.play .meta { opacity: 0; animation: fade .5s 1.15s forwards; }
@keyframes fade { to { opacity: 1; } }
.mast.play .peek .who { transform: translateY(105%); animation: pop .75s 1.25s cubic-bezier(.25,1.6,.45,1) forwards; }
@keyframes pop { 60% { transform: translateY(-6%); } 100% { transform: translateY(0); } }
.mast.play .peek .sp .paper, .mast.play .peek .sp .hand { animation: lift .4s 1.95s ease-out both; }
@keyframes lift { 0% { transform: translateY(14px) rotate(-4deg); } 100% { transform: translateY(0) rotate(-4deg); } }
.mast.play .peek .sp .hand { animation-name: liftH; }
@keyframes liftH { 0% { transform: translateY(14px); } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .mast.play .r1, .mast.play .r2, .mast.play .t .ch, .mast.play .meta, .mast.play .peek .who, .mast.play .peek .sp .paper, .mast.play .peek .sp .hand { animation: none; opacity: 1; transform: none; }
  .mast.play .peek .sp .paper { transform: rotate(-4deg); }
  .alive .sp .eye, .alive .sp .la, .alive .sp .lb { animation: none; }
}
