/* ReneeCare shared styles */
:root {
  --ink: #2e203b;
  --muted: #53475e;
  --purple: #573479;
  --line: #e8dfee;
  --paper: #fffdfa;
  --lilac: #efe5fa;
  --rose: #fbe7ed;
  --mint: #e4f3e8;
  --gold: #fff0d0;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    linear-gradient(90deg, transparent, #fffdfaeb 25%, #fffdfaeb 75%, transparent),
    url("butterfly-pattern.svg");
  background-position: center top;
  color: var(--ink);
  font: 1rem/1.6 "Atkinson Hyperlegible Next", system-ui, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); text-underline-offset: .19em; }
a:focus-visible { outline: 3px solid #75409d; outline-offset: 4px; }
h1,h2,h3,p { margin-top: 0; }
h1,h2,h3,.brand { line-height: 1.12; }
h1,h2,.brand { font-family: "DM Serif Text", Georgia, serif; }
h1 { font-size: clamp(2.65rem, 6vw, 5rem); font-weight: 500; letter-spacing: -.045em; margin-bottom: 1rem; }
h2 { font-size: clamp(1.8rem, 4vw, 2.65rem); letter-spacing: -.025em; font-weight: 600; margin-bottom: 1.15rem; }
.wrap { width: min(1160px, calc(100% - 3rem)); margin-inline: auto; }
.skip { position: absolute; left: .6rem; top: .6rem; transform: translateY(-150%); background: #fff; z-index: 2; padding: .65rem; }
.skip:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); background: white; }
.header-inner { display: flex; gap: 1rem 2rem; min-height: 86px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding-block: .85rem; }
.brand { display: inline-flex; align-items: center; gap: .4rem; font-size: 1.8rem; font-weight: 700; letter-spacing: -.05em; text-decoration: none; color: var(--ink); }
.brand-mark { width: 60px; height: 48px; object-fit: contain; }
.brand-wordmark { width: 145px; height: auto; }
nav { display: flex; gap: .15rem; flex-wrap: wrap; }
nav a { display: block; color: var(--ink); font-weight: 650; font-size: .88rem; text-decoration: none; padding: .65rem .66rem; border-radius: .6rem; }
nav a:hover, nav a[aria-current] { color: var(--purple); background: var(--lilac); }
main { padding-block: 2rem 4rem; min-height: 56vh; }
.hero { display: grid; grid-template-columns: 1.18fr .82fr; align-items: center; gap: 1.7rem; min-height: 465px; background: #f2e9fa; padding: clamp(2rem, 5vw, 4.5rem); border: 1px solid #e9dcf3; border-radius: 2rem; }
.hero h1 { max-width: 650px; }
.hero em { color: var(--purple); }
.eyebrow { color: var(--purple); font-size: .85rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1.15rem; }
.lede, .page-intro p { color: var(--muted); font-size: clamp(1rem,2vw,1.23rem); max-width: 44ch; }
.actions { display: flex; gap: .7rem; flex-wrap: wrap; align-items: center; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; background: var(--purple); border: 1px solid var(--purple); color: white; padding: .68rem 1.15rem; border-radius: 3rem; font-size: .93rem; font-weight: 700; text-decoration: none; }
.button:hover { background: #45235f; }
.button.outline { color: var(--purple); background: transparent; }
.button.outline:hover { background: #e9d8f6; }
.hero-art { min-height: 290px; display: grid; place-items: center; isolation: isolate; position: relative; }
.hero-art::before { content: ""; position: absolute; width: min(100%, 345px); height: 270px; background: #ffdfec; border-radius: 48% 52% 44% 56% / 54% 53% 47% 46%; transform: rotate(-11deg); z-index: -1; }
.hero-art img { width: 78%; max-width: 275px; max-height: 240px; object-fit: contain; }
.star,.dot { position: absolute; }
.star-one { color: #8f548f; right: 12%; top: 5%; font-size: 2.4rem; }
.star-two { color: #8752a1; left: 7%; bottom: 16%; font-size: 1.5rem; }
.dot { width: 13px; height: 13px; border-radius: 50%; background: #bd819f; }
.dot-one { top: 16%; left: 17%; }
.dot-two { right: 11%; bottom: 21%; background: #9c72bb; }
.home-section { margin-top: clamp(2.2rem,5vw,4rem); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 1rem; }
.card { position: relative; display: flex; min-width: 0; flex-direction: column; align-items: flex-start; gap: .65rem; min-height: 140px; padding: 1.35rem; border-radius: 1.25rem; border: 1px solid #40245416; color: var(--ink); text-decoration: none; }
.card h3 { font-size: 1.2rem; margin: 0; }
.card h2 { font-size: 1.65rem; margin: 0; }
.card p { margin: 0; color: var(--muted); overflow-wrap: anywhere; font-size: .96rem; }
a.card:hover { border-color: var(--purple); box-shadow: 0 4px 0 #4024541c; }
a.card:hover h3 { text-decoration: underline; text-underline-offset: .2em; }
.lilac { background: var(--lilac); }
.rose { background: var(--rose); }
.mint { background: var(--mint); }
.gold { background: var(--gold); }
.icon { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; background: #ffffffaa; border-radius: .8rem; font-size: 1.35rem; color: var(--purple); }
.arrow { color: var(--purple); margin-top: auto; align-self: flex-end; font-size: 1.2rem; line-height: 1; }
.page-intro { padding: clamp(1.5rem, 4vw, 3.5rem); border-radius: 1.5rem; margin-bottom: 2.1rem; background: var(--lilac); }
.page-intro h1 { font-size: clamp(2.5rem,6vw,4.4rem); }
.page-intro p { margin-bottom: 0; }
.back { display: inline-block; font-size: .9rem; font-weight: 650; margin-bottom: 1rem; }
.prose { max-width: 46rem; padding: 1.5rem; border-radius: 1rem; border: 1px solid var(--line); background: white; }
.prose p:last-child { margin-bottom: 0; }
.site-footer { background: #f8f1fb; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1.2rem 3rem; padding-block: 2rem; }
.footer-inner p { margin: .35rem 0 0; color: var(--muted); }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; }
@media (max-width: 760px) {
  .wrap { width: calc(100% - 2rem); }
  .header-inner { gap: .45rem; }
  nav a { padding: .56rem .62rem; }
  main { padding-top: 1rem; }
  .hero { grid-template-columns: 1fr; min-height: 0; border-radius: 1.4rem; }
  .hero-art { min-height: 205px; }
  .hero-art::before { height: 185px; }
  .hero-art img { max-width: 240px; }
}
/* Printable and interactive activities */
.activity-sheet { max-width: 49rem; padding: clamp(1rem,4vw,2rem); background: white; border: 1px solid var(--line); border-radius: 1.35rem; }
.activity-tools { display: flex; gap: .65rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
button.button { font-family: inherit; cursor: pointer; }
button:focus-visible, summary:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }
[hidden] { display: none !important; }
.puzzle-art { display: block; width: 100%; margin-inline: auto; }
.maze-art { max-width: 580px; background: #f9f3fc; border-radius: .85rem; }
.maze-walls { stroke: var(--purple); stroke-width: .07; stroke-linecap: round; fill: none; }
.maze-art text { fill: var(--ink); font-size: .32px; font-weight: bold; }
.maze-answer { stroke: #277751; stroke-width: .12; fill: none; stroke-linejoin: round; stroke-linecap: round; }
.answer { margin-top: 1.35rem; }
.answer summary { color: var(--purple); cursor: pointer; font-weight: 700; }
.answer svg { margin-top: .75rem; }
.dot-art { max-width: 520px; background: var(--lilac); border-radius: .85rem; }
.dot-art circle,.dot-art text { fill: var(--purple); }
.dot-art text { text-anchor: middle; font-size: 3px; font-weight: bold; }
.dot-trace { fill: none; stroke: var(--purple); stroke-width: .7; stroke-linejoin: round; }
.dot-board { position: relative; max-width: 520px; margin-inline: auto; }
.dot-board svg text,.dot-board svg circle { display: none; }
.dot-button { position: absolute; transform: translate(-50%,-50%); width: clamp(23px,5vw,35px); aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--purple); background: white; color: var(--purple); font: 700 clamp(.65rem,2vw,.85rem)/1 system-ui,sans-serif; padding: 0; cursor: pointer; }
.dot-button.visited { background: var(--purple); color: white; }
.word-list { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0 auto 1rem; max-width: 480px; }
.word-list li { color: var(--purple); background: var(--lilac); border-radius: 1rem; padding: .2rem .62rem; font-weight: 700; font-size: .85rem; }
.word-list .found-word { text-decoration: line-through; background: var(--mint); }
.word-grid { display: grid; grid-template-columns: repeat(10,minmax(0,1fr)); gap: 2px; max-width: 480px; margin: auto; }
.word-grid > * { display: grid; place-items: center; padding: 0; aspect-ratio: 1; border: 1px solid var(--line); border-radius: .3rem; background: #faf6fc; color: var(--ink); font: 700 clamp(.72rem,3vw,1.1rem)/1 system-ui,sans-serif; }
.word-grid button { cursor: pointer; }
.word-grid [aria-pressed="true"] { background: var(--purple); color: white; }
.word-grid .found { background: var(--mint); border-color: #63967a; }
.word-grid .found[aria-pressed="true"] { background: var(--purple); }
.interactive { margin-top: 1rem; }
.interactive p { margin-bottom: .5rem; }
.fold-steps { padding-left: 2rem; margin-bottom: 0; }
.fold-steps li { margin-bottom: .7rem; padding: .7rem .85rem; border-radius: .7rem; background: var(--gold); }
.fold-steps li::marker { font-weight: bold; color: var(--purple); }
.fold-key { color: var(--muted); font-size: .92rem; }
.fold-step { display: grid; grid-template-columns: 1fr minmax(125px, 32%); align-items: center; gap: 1rem; }
.fold-step p { margin: 0; }
.fold-figure { margin: 0; }
.fold-diagram { display: block; width: 100%; max-width: 180px; height: auto; margin: auto; background: #fffdf9; border: 1px solid var(--line); border-radius: .65rem; }
.fold-diagram polygon { fill: #eeddf8; stroke: #573479; stroke-width: 1.8; stroke-linejoin: round; }
.fold-crease,.fold-arrow { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.fold-crease { stroke: #573479; stroke-width: 1.5; stroke-dasharray: 4 3; }
.fold-arrow { stroke: #743965; stroke-width: 2; }
@media screen and (max-width: 510px) {
  .fold-step { grid-template-columns: 1fr; }
  .fold-figure { width: min(100%, 180px); }
}
@media print {
  .fold-diagram { width: 105px; }
  .fold-steps li { padding-block: .25rem; }
}
.hunt-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(110px,1fr)); gap: .6rem; list-style: none; margin: 0; padding: 0; }
.hunt-list label { display: flex; align-items: center; gap: .55rem; min-height: 44px; padding: .55rem .75rem; border-radius: .65rem; background: var(--lilac); cursor: pointer; }
.hunt-list li:nth-child(2) label { background: var(--rose); }
.hunt-list li:nth-child(3) label { background: var(--mint); }
.hunt-list li:nth-child(4) label { background: var(--gold); }
.hunt-list li:nth-child(5) label { background: #e5effa; }
.hunt-list input { accent-color: var(--purple); width: 1.1rem; height: 1.1rem; margin: 0; }
@media print {
  .site-header,.site-footer,.skip,.back,.screen-only,.answer,.dot-button { display: none !important; }
  body { background: white; color: black; }
  main.wrap { width: 100%; padding: 0; }
  .page-intro,.activity-sheet { background: none; border: 0; padding: 0; }
  .page-intro h1 { font-size: 25pt; }
  .puzzle-art,.word-grid { max-width: 5.5in; }
  .dot-board svg text,.dot-board svg circle { display: initial; }
  .dot-trace { display: none; }
  .word-list .found-word { text-decoration: none; }
  .word-grid > *,.word-grid .found,.word-grid [aria-pressed="true"],.word-grid .found[aria-pressed="true"] { background: white; color: black; border: 1px solid #bbb; }
  .word-grid,.puzzle-art,.fold-steps li { break-inside: avoid; }
}

/* Homepage illustration, activity picker, and motion */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hero {
  background: radial-gradient(ellipse at 85% 20%, #ffe2ec 0, transparent 48%),
    radial-gradient(ellipse at 15% 110%, #fff3d9 0, transparent 49%), #f1e6fb;
}
.hero-art { min-width: 0; }
.hero-art::before {
  background: linear-gradient(150deg,#fff1e2,#f9cde4 70%,#e7d2ff);
  box-shadow: 0 18px 44px #84559926;
}
.hero-art img {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 8px 6px #75478726);
  animation: elephant-float 5.5s ease-in-out infinite;
}
.hero-orbit {
  width: min(95%, 355px);
  height: 45%;
  position: absolute;
  z-index: -1;
  border: 2px dashed #90539e7a;
  border-radius: 50%;
  transform: rotate(-20deg);
}
.hero-sparkle { position: absolute; right: 10%; bottom: 13%; color: #80469b; font-size: 2rem; }
.star-one,.hero-sparkle { animation: sparkle 3s ease-in-out infinite alternate; }
.hero-sparkle { animation-delay: -1.3s; }
@keyframes elephant-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes sparkle { from { opacity: .65; transform: scale(.85); } to { opacity: 1; transform: scale(1.12); } }
a.card { overflow: hidden; isolation: isolate; }
a.card:has(.icon)::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -1.5rem -1.5rem auto auto;
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 8px, #ffffff66 9px 11px);
}
.icon,.arrow,.button,a.card { transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; }
@media (hover: hover) {
  a.card:hover { transform: translateY(-3px); }
  a.card:hover .arrow { transform: translateX(3px); }
  a.card:hover .icon { transform: rotate(-7deg); }
}
.activity-pick {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  flex-wrap: wrap;
  margin-top: clamp(2rem,5vw,4rem);
  padding: clamp(1.25rem,4vw,2.45rem);
  border: 1px solid #e5d5ef;
  border-radius: 1.4rem;
  background: linear-gradient(115deg,#eee2fa,#fcf0f3 65%,#fff0d3);
}
.activity-pick h2 { margin-bottom: .45rem; }
.activity-pick p { color: var(--muted); margin-bottom: 0; }
.pick-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
@media (max-width: 430px) {
  .pick-controls { width: 100%; }
  .pick-controls > .button { flex: 1 1 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce), print {
  .hero-art img,.star-one,.hero-sparkle { animation: none; }
  .icon,.arrow,.button,a.card { transition: none; }
  a.card:hover,a.card:hover .arrow,a.card:hover .icon { transform: none; }
}
