/* Triangle Tots. Made for a phone held in one hand with a child in the other: the first
   screen is a tap to today, the targets are thumb-sized, and the page reads top to bottom.
   Two bold things, both true to the subject: the Triangle itself, drawn from Census data
   and served from here, and the day strip, coloured like the sky at those hours.
   Fonts: Gabarito and Atkinson Hyperlegible Next, SIL Open Font License (fonts/OFL.txt). */
@font-face { font-family: "Gabarito"; src: url(/fonts/gabarito.woff2) format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Atkinson Next"; src: url(/fonts/atkinson.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Atkinson Next"; src: url(/fonts/atkinson-italic.woff2) format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }

:root {
  --sky: #9fd6f5;      /* a clear Carolina morning */
  --sky-pale: #e1f2fb;
  --air: #f2f7fa;      /* the page */
  --white: #fff;
  --ink: #12233f;      /* text: the night sky */
  --muted: #4b5a77;
  --line: #d3e0ea;
  --pine: #14543f;     /* the near-you band: longleaf country */
  --night: #26305e;    /* naps */
  --dusk: #6d73b4;     /* quiet time */
  --grass: #2e8b57;    /* out of the house */
  --grass-pale: #e3f3e9;
  --berry: #b8456f;    /* out of the house, under a roof */
  --berry-pale: #f8e6ee;
  --sun: #ffc72c;      /* the one thing to tap */
  --sun-pale: #fdf1d6;
  --display: "Gabarito", ui-rounded, "Segoe UI", system-ui, sans-serif;
  --text: "Atkinson Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--air); color: var(--ink); font: 17px/1.55 var(--text); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: .18em; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.near :focus-visible, .teaser :focus-visible { outline-color: var(--sun); }
h1, h2, h3, .brand { font-family: var(--display); line-height: 1.08; letter-spacing: -.012em; }
h1 { font-size: clamp(2.5rem, 10.5vw, 4.4rem); font-weight: 900; letter-spacing: -.03em; margin: 0; text-wrap: balance; }
h1 .h1sub { display: block; font-size: clamp(1.05rem, 4vw, 1.35rem); font-weight: 700; letter-spacing: 0; margin-top: .45rem; opacity: .85; }
h2 { font-size: clamp(1.5rem, 5vw, 2rem); font-weight: 800; margin: 2.4rem 0 .5rem; text-wrap: balance; }
h3 { font-size: 1.2rem; font-weight: 700; margin: 0 0 .3rem; }
p { margin: .5rem 0; }
.muted { color: var(--muted); }
.wrap { max-width: 70rem; margin: 0 auto; padding: 0 1.05rem; min-width: 0; }
.wrap.narrow { max-width: 46rem; }

/* Header */
.top { background: var(--sky); }
.top .wrap { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding-top: .6rem; padding-bottom: .4rem; }
.brand { display: flex; align-items: center; gap: .4rem; font-size: 1.2rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.mark { width: 2.2rem; height: 2.2rem; flex: none; }
.top nav, .top nav .links { display: flex; align-items: center; gap: .15rem; }
.top nav a { font-weight: 700; font-size: .92rem; text-decoration: none; padding: .55rem .45rem; border-radius: .6rem; white-space: nowrap; }
.top nav a[aria-current] { background: rgb(255 255 255 / .6); }
.top nav a.acct { background: var(--white); padding-inline: .7rem; margin-left: .2rem; }
/* Signed in, "Your family" takes the place of the "Family plans" pitch. */
html.signed-in .top nav a[href="/custom/"] { display: none; }
/* A phone: the logo, search and the account on top, and the pages in a row of their own under them, which scrolls
   sideways if it has to. */
@media (max-width: 700px) {
  .top .wrap { flex-wrap: wrap; row-gap: .25rem; padding-bottom: .3rem; }
  .top nav { display: contents; }
  .top nav .find { margin-left: auto; }
  .top nav .links { order: 3; flex: 1 0 100%; overflow-x: auto; scrollbar-width: none; margin: 0 -1.05rem; padding: 0 1.05rem .1rem; gap: .1rem; }
  .top nav .links::-webkit-scrollbar { display: none; }
  .top nav .links a { padding: .4rem .65rem; }
}
@media (max-width: 360px) { .brand { font-size: 1.05rem; } .top .mark { width: 1.9rem; height: 1.9rem; } .top nav .links a { font-size: .88rem; padding-inline: .5rem; } }

/* Buttons */
.btn { display: inline-block; border: 0; cursor: pointer; background: var(--sun); color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 1.1rem; line-height: 1.2; padding: .85rem 1.4rem; border-radius: .8rem; text-decoration: none; }
.btn:hover { background: #ffd65e; }
.btn[disabled] { background: var(--line); color: var(--muted); cursor: default; }
.btn.big { font-size: 1.25rem; padding: .95rem 2rem; margin: .8rem 0 .2rem; }

/* The day strip */
.daystrip { margin: .9rem 0 1.4rem; }
.strip { position: relative; isolation: isolate; height: 3rem; border-radius: .8rem; overflow: hidden; box-shadow: inset 0 0 0 1px rgb(31 43 77 / .08); }
.seg { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.seg > span { font-family: var(--display); font-weight: 700; font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 .4rem; }
.s-outing { container-type: inline-size; }
.s-outing .short { display: none; }
@container (max-width: 8rem) { .s-outing .long { display: none; } .s-outing .short { display: inline; } }
@container (max-width: 2.2rem) { .s-outing .short { display: none; } }
.s-nap, .s-quiet { container-type: inline-size; }
/* Each block leads with its picture (the outing's icon, a sleepy bear, a book); the words go first when it gets narrow, then the picture. */
.seg > .lbl { display: inline-flex; align-items: center; gap: .3rem; min-width: 0; }
.lbl .pic { flex: none; font-size: 1rem; line-height: 1; }
.lbl .bear { flex: none; width: 1.7rem; height: 1.7rem; }
@container (max-width: 2.6rem) { .s-nap .w { display: none; } }
@container (max-width: 3.4rem) { .s-quiet .w { display: none; } }
@container (max-width: 2.1rem) { .s-nap .bear, .s-quiet .pic, .s-outing .pic { display: none; } }
.s-nap { background: var(--night); color: #dfe3ff; }
.s-quiet { background: var(--dusk); color: #fff; }
.s-outing { background: var(--grass); color: #fff; }
.s-travel { background: repeating-linear-gradient(135deg, rgb(46 139 87 / .55) 0 4px, rgb(255 255 255 / .35) 4px 8px); }
.s-outing.in { background: var(--berry); }
/* Play at a park or in the yard: outside, but not an outing. */
.s-play { background: repeating-linear-gradient(90deg, rgb(46 139 87 / .5) 0 2px, rgb(46 139 87 / .32) 2px 6px); }
.s-travel.in { background: repeating-linear-gradient(135deg, rgb(184 69 111 / .55) 0 4px, rgb(255 255 255 / .35) 4px 8px); }

/* The key to the strip's colours */
.key { list-style: none; padding: 0; margin: .2rem 0 1rem; display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; font-size: .85rem; color: var(--muted); }
.key li { display: flex; align-items: center; gap: .4rem; }
.sw { position: relative; overflow: hidden; display: inline-block; width: 1.4rem; height: .8rem; border-radius: .25rem; }
/* Stripes mean driving; on the strip they take the outing's colour, so the key shows them plain. */
.sw.s-travel { background: repeating-linear-gradient(135deg, #8d96ab 0 3px, #fff 3px 6px); box-shadow: inset 0 0 0 1px #c9d1dd; }
.ticks { position: relative; height: 1.3rem; margin-top: .3rem; font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.ticks span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.ticks .first, .ticks .last { font-weight: 700; color: var(--ink); }
.s-asleep { background: #1d2447; }
/* On the strip asleep is the bare sky, so the night, dawn and dusk behind it are the same whatever the wake-up. */
.strip .s-asleep { background: none; }
/* Sunrise and sunset on the strip, over its blocks */
.strip .sunline { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; z-index: 4; background: rgb(242 179 61 / .85); pointer-events: none; }
/* The hourly forecast on the strip: temperatures over it, on a short stem down to their time, and rain along its bottom */
.temps { position: relative; height: 1.15rem; margin-bottom: .1rem; }
.temps.two { height: 2rem; }
.temps span { position: absolute; bottom: .3rem; transform: translateX(var(--x, -50%)); white-space: nowrap; font-family: var(--display); font-variant-numeric: tabular-nums; line-height: 1; font-size: .74rem; font-weight: 700; color: #a85d14; }
.temps span::after { content: ""; position: absolute; left: var(--stem, 50%); top: 100%; width: 1px; height: .3rem; background: rgb(168 93 20 / .45); }
/* Too near the label before it: one row higher, on a longer stem. */
.temps .up { bottom: 1.15rem; }
.temps .up::after { height: 1.15rem; }
.strip .rain { position: absolute; bottom: 0; z-index: 4; background: rgb(74 144 217 / .42); box-shadow: inset 0 2px 0 rgb(74 144 217 / .9); pointer-events: none; }
/* White on a dark edge, so it reads over the night, the dawn and every block's colour. */
.strip .tline { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 5; overflow: visible; pointer-events: none; filter: drop-shadow(0 0 1.5px rgb(20 26 56 / .75)); }
.strip .tline polyline { fill: none; stroke: #fff; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.strip .tdot { position: absolute; z-index: 6; width: .42rem; height: .42rem; margin: -.21rem 0 0 -.21rem; border-radius: 50%; background: #d9822b; box-shadow: 0 0 0 1.5px #fff; pointer-events: none; }
.suns .pop { font-weight: 700; color: #2d6aa8; }
/* Too near sunrise or sunset's label: a line under them. */
.suns.two { height: 2.3rem; }
.suns .pop.low { top: 1.1rem; }
.suns .pop::before { display: none; }
.suns { position: relative; height: 1.2rem; margin-top: .2rem; font-size: .74rem; color: var(--muted); font-family: var(--display); font-variant-numeric: tabular-nums; }
.suns span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.suns span::before { content: ""; display: inline-block; width: .55rem; height: .28rem; margin-right: .25rem; vertical-align: .12rem; border-radius: .55rem .55rem 0 0; background: var(--sun); }
/* While blocks slide past each other (site.js), the nap passes over the outing and its drives. */
.s-travel { z-index: 1; }
.s-outing, .s-quiet { z-index: 2; }
.s-nap { z-index: 3; }
.seg.leaving { z-index: 0; }
@media (max-width: 520px) { .ticks span:not(.first):not(.last) { display: none; } .strip { height: 2.5rem; } .temps span { font-size: .66rem; } }

/* Home: the sky, and the four ages */
.sky .wrap { padding-top: 1rem; }
/* New here? So are we. A little sun with the day we're on, while the site is new. */
.newhere { display: flex; align-items: center; gap: 1.3rem; max-width: 40rem; margin: 1rem 0 1.4rem; padding: .9rem 1rem .9rem 1.2rem; background: rgba(255,255,255,.82); border-radius: 1rem; box-shadow: 0 2px 0 rgba(18,35,63,.08); }
/* The Day badge is a little sun: rays turn slowly and breathe, long and short ones out of step,
   and every few seconds the face gives a wiggle. All of it stops for reduced motion. */
.newhere .dayno { flex: none; position: relative; width: 3.6rem; height: 3.6rem; }
.newhere .dayno b { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 .25rem var(--sun-pale); font-family: var(--display); font-weight: 800; font-size: 1.45rem; line-height: 1; rotate: -6deg; animation: sunwiggle 6s ease-in-out 1.2s infinite; }
.newhere .rays { position: absolute; inset: -.85rem; animation: sunspin 24s linear infinite; }
.newhere .rays::before, .newhere .rays::after { content: ""; position: absolute; inset: 0; border-radius: 50%;
  -webkit-mask: radial-gradient(closest-side, transparent 62%, #000 64%, #000 92%, transparent 100%);
          mask: radial-gradient(closest-side, transparent 62%, #000 64%, #000 92%, transparent 100%); }
.newhere .rays::before { background: repeating-conic-gradient(from -6deg, var(--sun) 0 12deg, transparent 12deg 45deg); animation: sunbreathe 2.4s ease-in-out infinite alternate; }
.newhere .rays::after { background: repeating-conic-gradient(from 16.5deg, rgba(255,199,44,.7) 0 12deg, transparent 12deg 45deg); animation: sunbreathe 2.4s ease-in-out -2.4s infinite alternate; }
@keyframes sunspin { to { rotate: 1turn; } }
@keyframes sunbreathe { from { scale: .78; } to { scale: 1.08; } }
@keyframes sunwiggle {
  0%, 80%, 100% { rotate: -6deg; scale: 1; }
  84% { rotate: 8deg; scale: 1.08; }
  88% { rotate: -12deg; scale: 1.08; }
  92% { rotate: 5deg; scale: 1.03; }
  96% { rotate: -8deg; scale: 1; }
}
@media (prefers-reduced-motion: reduce) { .newhere .dayno b, .newhere .dayno *, .newhere .dayno ::before, .newhere .dayno ::after { animation: none; } }
.newhere .dayno small { font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .1rem; }
.newhere p { margin: 0; font-size: .98rem; line-height: 1.45; }
.newhere strong { font-family: var(--display); font-size: 1.08rem; }
.newcta { display: inline-block; font-weight: 700; color: var(--ink); text-decoration: none; border-bottom: .18rem solid var(--sun); white-space: nowrap; }
.newcta:hover { background: var(--sun-pale); }
#sunday { scroll-margin-top: 1rem; }
.now { font-family: var(--display); font-weight: 700; font-size: 1.05rem; margin: 0 0 .15rem; }
.lede { font-size: 1.08rem; max-width: 38rem; margin: .5rem 0 1rem; }
.ages { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .55rem; }
.today.mine { order: -1; }
/* A card: the age, then today's plan for the nap picked under it (each age has its own nap patterns). */
.today { display: grid; grid-template-columns: 4.7rem minmax(0, 1fr); background: var(--white); border-radius: 1.1rem; overflow: hidden; min-height: 5.9rem; }
.today .card { min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.variant { display: block; color: var(--ink); text-decoration: none; }
.variant[hidden] { display: none; }
.napchips { display: none; gap: .3rem; flex-wrap: wrap; padding: 0 .85rem .7rem; }
.js .napchips { display: flex; }
.napchips button { font: inherit; font-size: .8rem; font-weight: 700; padding: .3rem .6rem; border-radius: .55rem; border: 0; background: var(--sky-pale); color: var(--muted); cursor: pointer; }
.napchips button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.js .today:has(.napchips) .what { padding-bottom: .45rem; }
/* One wake-up for every age: the plans move with it. */
.homewake { margin: 0 0 .55rem; }
.homewake .wake { grid-template-columns: auto auto; justify-content: start; gap: .5rem; background: var(--white); color: var(--ink); border-radius: .8rem; padding: .25rem .3rem .25rem .8rem; width: max-content; }
.homewake .clabel { color: var(--ink); }
.homewake select { min-height: 2.1rem; background: var(--sky-pale); }
.num { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--sun); font-family: var(--display); font-weight: 900; font-size: 2.7rem; line-height: 1; letter-spacing: -.03em; }
.num.wide { font-size: 1.95rem; letter-spacing: -.04em; }
.num small { font-size: .72rem; font-weight: 700; letter-spacing: 0; margin-top: .2rem; text-align: center; line-height: 1.1; padding: 0 .25rem; }
.mine .num { background: var(--pine); color: var(--white); }
.what { display: flex; flex-direction: column; justify-content: center; gap: .5rem; padding: .7rem .85rem; min-width: 0; }
.what strong { font-family: var(--display); font-size: 1.12rem; font-weight: 700; line-height: 1.2; }
.variant:hover strong { text-decoration: underline; text-underline-offset: .15em; text-decoration-thickness: 2px; }
/* The outing at a glance under a headline: the place and the side of the Triangle, then when, the cost and sign-up. */
.facts { display: flex; flex-direction: column; font-size: .95rem; line-height: 1.35; }
.facts b { font-weight: 700; }
.facts span { color: var(--muted); }
.what .facts { margin-top: -.3rem; }
p.facts { margin: .25rem 0 .1rem; font-size: 1.02rem; }
.what .go { align-self: flex-start; font-weight: 700; font-size: .9rem; border-bottom: .16rem solid var(--sun); }
.variant:hover .go { background: var(--sun-pale); }
.ages .daystrip { margin: 0; }
/* The day strip as the family page draws it (blocks named, times, sunrise and sunset), without the weather: the day page has that. */
.ages .temps, .ages .tline, .ages .tdot, .ages .rain, .ages .suns .pop { display: none; }
.ages .strip { height: 2.4rem; border-radius: .7rem; }
/* The hillside is always as tall as its width calls for (1200x240), so the tree tops are never cut off; on a phone
   it keeps a floor and trims the sides instead. The kite flies above it, outside its box (src/site/scene.js). */
.hills { position: relative; z-index: 1; display: block; width: 100%; height: max(9rem, 20vw); margin: .4rem 0 -1px; overflow: visible; }

/* The home page's sky, dressed by src/site/scene.js for the day: wx-<sky>, season-<season>, wind-<wind> on .sky.
   Clouds drift behind the text, the kite bobs on its string, the ducks swim, the trees sway, and the wind sets how
   hard. All of it stops for anyone who asks for less motion. */
.sky { --sky-top: var(--sky); --sky-low: #e3f4fc; position: relative; overflow: hidden; background: linear-gradient(180deg, var(--sky-top) 0, var(--sky-low) 100%); }
.sky.wx-cloudy { --sky-top: #b2c4d1; --sky-low: #e6ecf0; }
.sky.wx-rain { --sky-top: #9db0bf; --sky-low: #dde4e9; }
.sky.wx-storm { --sky-top: #7f909f; --sky-low: #c9d2d9; }
.sky.wx-snow { --sky-top: #c8d5df; --sky-low: #f2f6f9; }
.sky.wx-fog { --sky-top: #c9d4db; --sky-low: #eef2f4; }
:root:has(.sky.wx-cloudy) .top { background: #b2c4d1; }
:root:has(.sky.wx-rain) .top { background: #9db0bf; }
:root:has(.sky.wx-storm) .top { background: #7f909f; }
:root:has(.sky.wx-snow) .top { background: #c8d5df; }
:root:has(.sky.wx-fog) .top { background: #c9d4db; }
/* Which way the wind pushes across the picture (scene.js: blowOf): --dir is 1 to the right, -1 to the left; --side
   is how much of the wind is sideways (a north or south wind blows mostly away from or toward us). */
.sky { --dir: 1; --side: 1; }
.sky.blow-left { --dir: -1; }
.sky.blow-slant { --side: .7; }
.sky.blow-across { --side: .3; }
.wind-calm { --wind: 1.5; --bob: 2deg; --bob-t: 7s; --flap: 2.2s; --sway: 1deg; --sway-t: 9s; }
.wind-breezy { --wind: 1; --bob: 3.5deg; --bob-t: 4.5s; --flap: 1s; --sway: 2deg; --sway-t: 6s; }
.wind-windy { --wind: .55; --bob: 5deg; --bob-t: 2.6s; --flap: .45s; --sway: 3.5deg; --sway-t: 4s; }
.sky > .wrap { position: relative; z-index: 1; }
.skyart { position: absolute; inset: 0; pointer-events: none; }
.drift { position: absolute; left: 0; animation: drift linear infinite; animation-duration: calc(var(--d) * var(--wind, 1) / var(--side, 1)); }
.blow-left .drift { animation-direction: reverse; }
/* How many of the seven clouds show: each has its place in line (--k, 0 to 6/7) and shows once the cover passes it.
   site/sky-now.js sets --cloud from the hour's cloud cover; until then the day's sky says (--cloud-day, scene.js). */
.drift { opacity: clamp(0, (var(--cloud, var(--cloud-day, 1)) - var(--k, 0)) * 7, 1); transition: opacity 6s ease; }
/* And the sky's colour clears with it: the day's grey gives way to blue as the cover goes (--clear, 0 to 1). */
.sky.hourly-sky { background: linear-gradient(180deg, color-mix(in srgb, var(--sky) calc(var(--clear) * 100%), var(--sky-top)) 0, color-mix(in srgb, #e3f4fc calc(var(--clear) * 100%), var(--sky-low)) 100%); }
.cloud { display: block; height: auto; opacity: .85; }
.cloud path { fill: #fff; }
.wx-cloudy .cloud path { fill: #f3f6f8; }
.wx-rain .cloud path { fill: #dfe6ec; }
.wx-storm .cloud path { fill: #8d9bab; }
.wx-storm .cloud { opacity: .92; }
.wx-snow .cloud path { fill: #f6f8fa; }
.wx-fog .cloud { opacity: .55; }
@keyframes drift { from { transform: translateX(-12rem); } to { transform: translateX(100vw); } }
.wx-cloudy .glow, .wx-rain .glow, .wx-storm .glow, .wx-snow .glow, .wx-fog .glow { display: none; }
.wx-cloudy .hills .sun { opacity: .55; }
.wx-rain .hills .sun, .wx-snow .hills .sun, .wx-fog .hills .sun { opacity: .3; }
.wx-storm .hills .sun { display: none; }
/* Rain and snow are tiles that fall down the sky; fog is two soft bands that drift; a storm flashes now and then. */
/* Rain in three layers for depth: far (fine, faint, slower), the middle, and near (long bright streaks, fast). Each
   drop fades in from its tail. The layers lean with the wind (--slant) and a storm falls harder. */
.rainfall { --tile: 160px; position: absolute; inset: -10% -30% 0; transform: skewX(calc(var(--slant, 6deg) * var(--dir, 1) * var(--side, 1))); background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><defs><linearGradient id='g' x2='0' y2='1'><stop offset='0' stop-color='white' stop-opacity='0'/><stop offset='1' stop-color='white' stop-opacity='.75'/></linearGradient></defs><g fill='url(%23g)'><rect x='12' y='6' width='1.4' height='18' rx='.7'/><rect x='48' y='62' width='1.4' height='18' rx='.7'/><rect x='84' y='20' width='1.4' height='16' rx='.7'/><rect x='118' y='88' width='1.4' height='18' rx='.7'/><rect x='30' y='104' width='1.4' height='16' rx='.7'/><rect x='98' y='128' width='1.4' height='18' rx='.7'/><rect x='64' y='40' width='1.4' height='14' rx='.7'/><rect x='140' y='30' width='1.4' height='16' rx='.7'/><rect x='22' y='72' width='1.4' height='14' rx='.7'/><rect x='74' y='96' width='1.4' height='16' rx='.7'/><rect x='150' y='140' width='1.4' height='14' rx='.7'/></g></svg>"); animation: rain .62s linear infinite; }
.rainfall.far { --tile: 110px; opacity: .55; animation-duration: .9s; background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='110' height='110'><g fill='white' fill-opacity='.6'><rect x='8' y='4' width='1' height='9'/><rect x='34' y='40' width='1' height='9'/><rect x='60' y='14' width='1' height='8'/><rect x='86' y='62' width='1' height='9'/><rect x='20' y='76' width='1' height='8'/><rect x='70' y='90' width='1' height='9'/><rect x='100' y='30' width='1' height='8'/><rect x='46' y='100' width='1' height='8'/></g></svg>"); }
.rainfall.close { --tile: 260px; animation-duration: .42s; background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260'><defs><linearGradient id='g' x2='0' y2='1'><stop offset='0' stop-color='white' stop-opacity='0'/><stop offset='1' stop-color='white' stop-opacity='.9'/></linearGradient></defs><g fill='url(%23g)'><rect x='30' y='20' width='2.2' height='32' rx='1.1'/><rect x='150' y='110' width='2.2' height='30' rx='1.1'/><rect x='220' y='40' width='2.2' height='32' rx='1.1'/><rect x='90' y='190' width='2.2' height='30' rx='1.1'/></g></svg>"); }
.wx-storm .rainfall { animation-duration: .44s; }
.wx-storm .rainfall.far { animation-duration: .64s; opacity: .8; }
.wx-storm .rainfall.close { animation-duration: .3s; }
.wind-calm .rainfall { --slant: 4deg; }
.wind-breezy .rainfall { --slant: 12deg; }
.wind-windy .rainfall, .wx-storm .rainfall { --slant: 22deg; }
/* How hard it rains this hour: site/sky-now.js sets --rain (0 dry to 1 pouring) from the hourly chance of rain.
   A light rain is only the far drops; the nearer ones join as it comes down harder, and the splashes with them.
   With no hourly forecast it rains all day as hard as the day's sky says; a cloudy day's showers wait for theirs. */
.sky.showers { --rain: 0; }
.rainfall, .hills .splashes { transition: opacity 6s ease; }
.rainfall.far { opacity: calc(.55 * clamp(0, var(--rain, 1) * 3, 1)); }
.wx-storm .rainfall.far { opacity: calc(.8 * clamp(0, var(--rain, 1) * 3, 1)); }
.rainfall:not(.far, .close) { opacity: clamp(0, (var(--rain, 1) - .25) * 2.5, 1); }
.rainfall.close { opacity: clamp(0, (var(--rain, 1) - .6) * 2.5, 1); }
.hills .splashes { opacity: clamp(0, (var(--rain, 1) - .15) * 2, 1); }
@keyframes rain { from { background-position: 0 0; } to { background-position: 0 var(--tile); } }
/* The rain darkens the sky a touch, and a storm more. */
.wx-rain .skyart, .wx-storm .skyart { background: linear-gradient(180deg, rgb(70 84 104 / .18), transparent 70%); }
.wx-storm .skyart { background: linear-gradient(180deg, rgb(40 50 70 / .3), transparent 75%); }
.hills .splash { transform-box: fill-box; transform-origin: 50% 100%; opacity: 0; animation: splash 1.9s ease-out infinite; }
.hills .splash:nth-of-type(3n) { animation-duration: 2.3s; }
.wx-storm .hills .splash { animation-duration: 1.2s; }
@keyframes splash { 0% { transform: scale(.3, .2); opacity: 0; } 10% { opacity: .9; } 35% { transform: scale(1, 1); opacity: .6; } 50%, 100% { transform: scale(1.3, .6); opacity: 0; } }
.snowfall { position: absolute; inset: 0; background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><g fill='white'><circle cx='14' cy='20' r='2.4'/><circle cx='70' cy='8' r='1.8'/><circle cx='120' cy='40' r='2.6'/><circle cx='40' cy='80' r='2'/><circle cx='100' cy='100' r='2.4'/><circle cx='150' cy='128' r='1.8'/><circle cx='20' cy='140' r='2.2'/><circle cx='80' cy='150' r='1.6'/></g></svg>"); animation: snow 10s linear infinite; }
.snowfall.far { background-size: 90px 90px; opacity: .6; animation-duration: 16s; }
@keyframes snow { from { background-position: 0 0; } to { background-position: calc(40px * var(--dir, 1) * var(--side, 1)) 160px; } }
.fogband { position: absolute; left: -30%; width: 160%; height: 32%; top: 40%; background: radial-gradient(ellipse at center, rgb(255 255 255 / .7), transparent 70%); animation: fog 40s ease-in-out infinite alternate; }
.fogband.two { top: 62%; animation-duration: 55s; animation-direction: alternate-reverse; }
@keyframes fog { from { transform: translateX(-8%); } to { transform: translateX(8%); } }
.wx-storm .skyart::after { content: ""; position: absolute; inset: 0; background: #fff; opacity: 0; animation: flash 13s linear infinite; }
@keyframes flash { 0%, 90%, 100% { opacity: 0; } 90.6% { opacity: .35; } 91.4% { opacity: 0; } 92.2% { opacity: .25; } 93% { opacity: 0; } }
/* The kite swings on its string around the child's hand, and wobbles on its own; its tail flutters. */
.hills .kite { transform-box: view-box; animation: bob var(--bob-t, 5s) ease-in-out infinite alternate; }
@keyframes bob { from { transform: rotate(calc(var(--bob, 3deg) * -1)); } to { transform: rotate(var(--bob, 3deg)); } }
.hills .kitebody { transform-box: view-box; animation: wobble calc(var(--bob-t, 5s) * .45) ease-in-out infinite alternate; }
@keyframes wobble { from { transform: rotate(calc(var(--bob, 3deg) * -2)); } to { transform: rotate(calc(var(--bob, 3deg) * 2)); } }
.hills .tail { transform-box: fill-box; transform-origin: 50% 0; animation: flutter var(--flap, 1s) ease-in-out infinite alternate; }
@keyframes flutter { from { transform: skewX(-12deg); } to { transform: skewX(12deg); } }
.hills .kite.big { display: none; }
/* Phones: the hillside zoomed in, 460 of its 1200 units across the full width, so it's a scene and not a strip.
   The drawing is laid out 1200/460 as wide as the screen and pans slowly from one end to the other and back,
   starting from the middle (the city, the kite hill and the house); the sky's overflow: hidden cuts off the rest.
   The night layer pans with it. With reduced motion it holds still on the middle. */
@media (max-width: 600px) {
  .sky .hills, .sky .lamps { width: calc(100% * 1200 / 460); max-width: none; height: auto; aspect-ratio: 5 / 1; transform: translateX(calc(-100% * 455 / 1200)); animation: pan 80s ease-in-out -40s infinite alternate; }
  @media (prefers-reduced-motion: reduce) { .sky .hills, .sky .lamps { animation: none; } }
}
@keyframes pan { from { transform: translateX(0); } to { transform: translateX(calc(-100% * 740 / 1200)); } }
@media (min-width: 860px) {
  .hills .kite.big { display: inline; }
  .hills .kite.small { display: none; }
}
.hills .glow { transform-box: fill-box; transform-origin: center; animation: breathe 6s ease-in-out infinite alternate; }
@keyframes breathe { from { transform: scale(.94); opacity: .6; } to { transform: scale(1.06); opacity: .85; } }
.hills .tree { transform-box: fill-box; transform-origin: 50% 100%; animation: sway var(--sway-t, 7s) ease-in-out infinite alternate; }
.hills .tree:nth-of-type(2n) { animation-duration: calc(var(--sway-t, 7s) * 1.3); animation-delay: -3s; }
@keyframes sway { from { transform: rotate(calc(var(--sway, 1.5deg) * -1)); } to { transform: rotate(var(--sway, 1.5deg)); } }
/* The ducks swim a length of the pond, turn, and swim back; rain rings the water; fall leaves drift down. */
.hills .duck { transform-box: fill-box; transform-origin: center; animation: swim var(--swim, 34s) ease-in-out infinite; }
@keyframes swim {
  0% { transform: translateX(0) scaleX(var(--face, 1)); }
  46% { transform: translateX(var(--go)) scaleX(var(--face, 1)); }
  50% { transform: translateX(var(--go)) scaleX(calc(var(--face, 1) * -1)); }
  96% { transform: translateX(0) scaleX(calc(var(--face, 1) * -1)); }
  100% { transform: translateX(0) scaleX(var(--face, 1)); }
}
/* Swimming, they bob as they paddle and now and then dip their heads to feed (--dip staggers them). */
.hills .bob { animation: paddle 2.8s ease-in-out infinite alternate; }
@keyframes paddle { from { transform: translateY(0) rotate(-1.5deg); } to { transform: translateY(-.8px) rotate(1.5deg); } }
.hills .bob .neck { transform-box: view-box; animation: dip 11s ease-in-out var(--dip, 0s) infinite; }
@keyframes dip { 0%, 74%, 100% { transform: rotate(0); } 79%, 88% { transform: rotate(78deg); } 83.5% { transform: rotate(68deg); } }
/* In a downpour (scene.js on a storm day, then site/sky-now.js by the hour) the birds huddle by the reeds. */
.hills .huddle, .sky.pouring .hills .swimmers { display: none; }
.sky.pouring .hills .huddle { display: inline; }
/* By day the pond's animals are up and about; at night the ducks sleep and summer's fireflies come out. The
   hillside's critters keep their own hours: duskonly at dawn and dusk, dusknight from dusk to dawn. */
.hills .nightonly, .lamps .fireflies, .lamps .owleyes, .hills .duskonly, .hills .dusknight { display: none; }
.sky.night .hills .nightonly, .sky.night .lamps .fireflies, .sky.night .lamps .owleyes, .sky.twilight .hills .duskonly, .sky.twilight .hills .dusknight, .sky.night .hills .dusknight { display: inline; }
.sky.night .hills .dayonly { display: none; }
/* And their weather: in out of the rain, and the butterflies and bats only in a warm hour. */
.sky.wet .hills .dry, .sky.wet .lamps .owleyes, .sky:not(.warm) .hills .warmonly { display: none; }
/* Each critter's walk is its own keyframes (scene.js: track), turning about its feet; legs swing from the hip. */
.hills .critter .go, .hills .critter .legs, .hills .critter .graze, .hills .critter .ears, .hills .critter .tail, .hills .critter .brush, .hills .critter .sniff { transform-box: view-box; }
/* The night foragers (raccoon, opossum, skunk) put their noses down now and then; the frog's throat puffs as it sings. */
.hills .critter .sniff { animation: sniff 4.5s ease-in-out infinite; }
@keyframes sniff { 0%, 58%, 100% { transform: rotate(0); } 66%, 86% { transform: rotate(16deg); } 76% { transform: rotate(6deg); } }
.hills .critter .croak { transform-box: fill-box; transform-origin: 50% 0; animation: croak 3.2s ease-in-out infinite; }
@keyframes croak { 0%, 55%, 69%, 83%, 100% { transform: scale(1); } 62%, 76% { transform: scale(1.9); } }
/* The deer (and fawn) graze while they stand at each of their two stops (scene.js: TRACKS.deer). */
.hills .critter.deer .graze, .hills .critter.fawn .graze { animation: graze var(--secs) linear var(--delay) infinite; }
@keyframes graze { 0%, 8.6%, 13.6%, 15%, 20.6%, 63.4%, 68.4%, 69.8%, 75.4%, 100% { transform: rotate(0); } 9.6%, 12.6%, 16%, 19.6%, 64.4%, 67.4%, 70.8%, 74.4% { transform: rotate(100deg); } }
/* A perched songbird shows its sitting drawing until it takes off (scene.js: track's -aloft and -perched). */
.hills .critter .aloft { opacity: 0; }
/* The hawk glides on raised wings with a slow, shallow flap or two, then gives three strong beats (down below its
   body and back up) before gliding on. */
.hills .critter.hawk .wings { transform-box: view-box; animation: hawkbeat 7s ease-in-out infinite; }
@keyframes hawkbeat {
  0%, 20%, 40%, 60%, 100% { transform: scaleY(1); }
  10%, 30% { transform: scaleY(.45); }
  65%, 75%, 85% { transform: scaleY(-.75); }
  70%, 80% { transform: scaleY(1); }
}
.hills .critter[class*="swallow"] .wings { animation-duration: .12s; }
.hills .critter .ears { animation: twitch 5s ease-in-out infinite; }
@keyframes twitch { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-12deg); } 90% { transform: rotate(4deg); } }
.hills .critter .tail, .hills .critter .brush { animation: swish 1.8s ease-in-out infinite alternate; }
@keyframes swish { from { transform: rotate(-8deg); } to { transform: rotate(8deg); } }
/* The squirrel's tail streams low behind it while it runs, then comes up when it stops (on the ground and up the
   trunk) and flicks a few times, bunching as it snaps. Timed to its track (scene.js: TRACKS.squirrel): it stops at
   5.5-10%, 20.5-31.5% (on the trunk) and 41.5-46%. */
.hills .critter.squirrel .tail { animation: squirreltail var(--secs) ease-in-out var(--delay) infinite; }
@keyframes squirreltail {
  0%, 5.5%, 10.6%, 20.5%, 31.5%, 41.5%, 46.6%, 100% { transform: rotate(-50deg) scaleY(.9); }
  6.3%, 7.3%, 7.9%, 8.5%, 9.8%, 21.3%, 23.3%, 23.9%, 26.5%, 27.4%, 28%, 30.6%, 42.3%, 43.3%, 43.9%, 44.5%, 45.8% { transform: rotate(0) scaleY(1); }
  7%, 7.6%, 8.2%, 23%, 23.6%, 27.1%, 27.7%, 43%, 43.6%, 44.2% { transform: rotate(18deg) scaleY(.78); }
}
.hills .critter .wings { transform-box: fill-box; transform-origin: 50% 50%; animation: flap .18s ease-in-out infinite alternate; }
.hills .critter.skein .wings { animation-duration: .5s; }
.hills .critter[class*="butterfly"] .wings { animation-duration: .22s; }
@keyframes flap { from { transform: scaleY(1); } to { transform: scaleY(-.5); } }
.hills .critter.butterfly1 .wings, .hills .critter.butterfly2 .wings { animation-name: flutterwing; }
@keyframes flutterwing { from { transform: scaleX(1); } to { transform: scaleX(.2); } }
.hills .critter .poke { animation: poke 9s ease-in-out infinite; }
@keyframes poke { 0%, 40%, 100% { transform: translateX(0); } 48%, 85% { transform: translateX(-3px); } }
.lamps .owleyes .blink { transform-box: view-box; animation: blink 6s steps(1) infinite; }
@keyframes blink { 0%, 100% { transform: scaleY(1); } 92% { transform: scaleY(.1); } 94% { transform: scaleY(1); } 96% { transform: scaleY(.1); } 97.5% { transform: scaleY(1); } }
/* The far-off city fades into fog, rain and snow; its windows light up after dark, a red light blinking on top. */
.sky.wx-fog .city { opacity: .25; }
.sky.wx-rain .city, .sky.wx-storm .city, .sky.wx-snow .city { opacity: .55; }
.sky.live .hills .city { filter: brightness(calc(1 - .45 * var(--dark, 0))); }
/* The city keeps its own hours, not the house's: PNC's crown, the sign and the beacon come on early in dusk, each
   window at its own point as it gets darker (--lit), and late in the evening (--late, 9pm to 1am, from sky-now.js)
   most go off again one by one (--out), leaving the night's few. */
.lamps .city { fill: #ffe6a0; }
.lamps .city > :not(rect) { opacity: clamp(0, calc((var(--dark, 0) - .18) * 8), 1); }
.lamps .city rect { opacity: min(clamp(0, calc((var(--dark, 0) - var(--lit)) * 10), 1), clamp(0, calc((var(--out) - var(--late, 0)) * 10), 1)); }
.lamps .city .beacon { fill: #ff4a3a; animation: beacon 2s steps(1) infinite; }
@keyframes beacon { 50% { fill-opacity: .15; } }
.lamps .fireflies circle { fill: #f6f59a; filter: drop-shadow(0 0 2px #f6f59a); opacity: 0; animation: firefly 3.4s ease-in-out calc(var(--i) * -.9s) infinite; }
@keyframes firefly { 0%, 100% { opacity: 0; transform: translate(0, 0); } 30%, 50% { opacity: 1; } 70% { opacity: .1; transform: translate(4px, -5px); } }
.hills .dragonfly > g { animation: hover 5s ease-in-out infinite; }
@keyframes hover { 0%, 100% { transform: translate(556px, 188px); } 30% { transform: translate(540px, 182px); } 60% { transform: translate(548px, 194px); } }
.hills .waves path { transform-box: fill-box; animation: lap 1.6s ease-in-out infinite alternate; }
.hills .waves path:nth-child(2n) { animation-delay: -.8s; }
@keyframes lap { from { transform: translateX(-3px); opacity: .3; } to { transform: translateX(3px); opacity: .8; } }
.hills .ripple { transform-box: fill-box; transform-origin: center; animation: ripple 2.4s ease-out infinite; }
@keyframes ripple { from { transform: scale(.2); opacity: .9; } to { transform: scale(1.7); opacity: 0; } }
/* Fall leaves from the trees (scene.js: fallingLeaves): out to where each one lands on the ground (--dx, --fy, wind
   included), tumbling as they go; they lie a moment where they land, then fade. */
.hills .leaf { opacity: 0; animation: leaf calc(var(--t) * var(--wind, 1)) linear infinite; }
@keyframes leaf {
  0% { transform: translate(0, 0); opacity: 0; }
  4% { opacity: 1; }
  15% { transform: translate(calc(var(--dx) * .65), calc(var(--fy) * .45)); }
  30%, 86% { transform: translate(var(--dx), var(--fy)); opacity: 1; }
  100% { transform: translate(var(--dx), var(--fy)); opacity: 0; }
}
/* The tumble runs on the leaf's own clock (same length, same start), rocking and flipping while it falls, then
   lying flat on its side once it lands. */
.hills .leaf .flip { animation: tumble calc(var(--t) * var(--wind, 1)) linear infinite; animation-delay: inherit; }
@keyframes tumble {
  0% { transform: translateX(0) rotate(0) scaleX(1); }
  5% { transform: translateX(-3px) rotate(-55deg) scaleX(.4); }
  10% { transform: translateX(3px) rotate(50deg) scaleX(1); }
  15% { transform: translateX(-3px) rotate(-60deg) scaleX(.35); }
  20% { transform: translateX(3px) rotate(45deg) scaleX(1); }
  25% { transform: translateX(-2px) rotate(-40deg) scaleX(.5); }
  30%, 100% { transform: translateX(0) rotate(80deg) scaleY(.5); }
}
/* The shelter below the hill: a library by day, the child's house by night. In a storm the child walks down to the
   library once site/sky-now.js sees the scene (.arrive), steps in, the doors shut and the windows light; the end of
   that is how it's drawn, so without script or motion the child is simply inside. */
.shelter .home, .lamps .home, .sky.night .shelter .day, .sky.night .lamps .day { display: none; }
.sky.night .shelter .home, .sky.night .lamps .home { display: inline; }
/* Which one it is waits for the real sky, so a night page doesn't show the library first. */
@media (scripting: enabled) { .sky:not(.live) .shelter, .sky:not(.live) .lamps { visibility: hidden; } }
.shelter .day .win { fill: #cfe3ee; }
.shelter .home .win { fill: #5d6a8c; }
/* The lit windows are their own layer laid over the hillside, outside the night's dimming (.sky.live .hills), so
   they shine: bright glass with a warm glow around it. They come on as the child gets in (storm, 5.4s), and on a
   cold day the fire is lit a moment after the scene comes into view (--on). Only the house's windows wait for the
   child; the far-off city in the same layer is already lit when the scene starts. */
.lamps { position: absolute; left: 0; bottom: -1px; z-index: 1; display: block; width: 100%; height: max(9rem, 20vw); overflow: visible; pointer-events: none; }
.lamps .glass { fill: #ffe9a8; }
.lamps .glass.hearth { fill: #ffbf62; }
.lamps [filter] { opacity: .85; }
.sky .hills, .sky .lamps { --on: .6s; }
.sky.wx-storm .hills, .sky.wx-storm .lamps { --on: 6s; }
.sky.arrive .lamps.storm .house { animation: lampon .8s ease-in 5.4s both; }
.sky.arrive .lamps.cold:not(.storm) .day { animation: lampon 1.4s ease-in var(--on) both; }
@keyframes lampon { from { opacity: 0; } }
.lamps .flames { transform-box: fill-box; transform-origin: 50% 100%; }
.sky.arrive .lamps .flames { animation: kindle 1.4s ease-out var(--on) both, flicker .45s ease-in-out calc(var(--on) + 1.4s) infinite alternate; }
.sky.arrive .lamps .glass.hearth { animation: firelight .7s ease-in-out calc(var(--on) + 1.4s) infinite alternate; }
@keyframes kindle { from { transform: scale(.2, 0); } 60% { transform: scale(.8, .6); } }
@keyframes flicker { from { transform: scale(.94, .86) skewX(-4deg); } to { transform: scale(1.04, 1.08) skewX(4deg); } }
@keyframes firelight { to { fill: #ffd27a; } }
/* Smoke from the chimney once the fire is going: puffs rise, swell, fade, and lean with the wind. */
.shelter .smoke { display: none; }
.shelter.cold .smoke { display: inline; }
.smoke .puff { fill: #c9ced8; opacity: 0; transform-box: view-box; }
.sky.arrive .smoke .puff { animation: puff 4.8s ease-out calc(var(--on) + 1.2s + var(--i) * 1.2s) infinite; }
.sky { --drift: 10px; }
.sky.wind-breezy { --drift: 26px; }
.sky.wind-windy { --drift: 46px; }
@keyframes puff {
  0% { transform: translate(0, 0); opacity: 0; r: 2.4px; }
  12% { opacity: .85; }
  100% { transform: translate(calc(var(--drift) * var(--dir, 1) * var(--side, 1)), -58px); opacity: 0; r: 9px; }
}
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) { .sky:not(.arrive) .lamps .flames { visibility: hidden; } }
.shelter .door { transform-box: fill-box; transform-origin: 0 50%; }
.shelter .door.right { transform-origin: 100% 50%; }
.sky.arrive .shelter.storm .door { animation: doorshut .5s ease-in 5s both; }
@keyframes doorshut { from { transform: scaleX(.12); } }
.hills .kid.walkhome { display: none; transform-box: view-box; }
.sky.arrive .hills .kid.walkhome { display: inline; animation: walkhome 4.2s ease-in-out .8s both; }
@keyframes walkhome {
  0% { transform: translate(0, 0); opacity: 1; }
  /* Down the hill to the left of the library (about 795, 140), down to the meadow (798, 212), then along to the door. */
  32% { transform: translate(calc(var(--dx) * .33), calc(var(--dy) * .29)); }
  62% { transform: translate(calc(var(--dx) * .36), calc(var(--dy) * .98)); }
  93% { transform: translate(var(--dx), var(--dy)); opacity: 1; }
  100% { transform: translate(calc(var(--dx) * .99), calc(var(--dy) * .97)) scale(.97); opacity: 0; }
}
.hills .kid.walkhome .step { transform-box: view-box; animation: step .3s ease-in-out .8s 14 alternate; }
@keyframes step { from { transform: translateY(0) rotate(-3deg); } to { transform: translateY(-1.6px) rotate(3deg); } }
/* The legs swing from the hips, one forward as the other goes back, a stride to each bob. */
.hills .kid.walkhome .leg { transform-box: view-box; transform-origin: 760px 103.5px; animation: stride .3s ease-in-out .8s 14 alternate both; }
.hills .kid.walkhome .leg.r { animation-name: stride-r; }
@keyframes stride { from { transform: rotate(28deg); } to { transform: rotate(-28deg); } }
@keyframes stride-r { from { transform: rotate(-28deg); } to { transform: rotate(28deg); } }
/* The real sky, moved by site/sky-now.js: the sun and moon where they are, dusk's glow, then night and the stars.
   It sets --dark (0 day to 1 night) and --glow (dusk) on the section, and .live once it runs; without script the
   hillside's own sun stays behind the triangle hill. */
.sky.live .hills .sun, .sky.live .hills .glow { display: none; }
.nightsky, .duskglow, .heavens { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.nightsky { background: linear-gradient(180deg, #0a1230 0, #17244d 60%, #2a3a68 100%); opacity: var(--dark, 0); }
.duskglow { background: linear-gradient(0deg, rgb(255 140 80 / .6) 0, rgb(255 185 120 / .35) 22%, rgb(255 200 150 / 0) 55%); opacity: var(--glow, 0); }
.heavens .star { fill: #fffbea; }
/* Stars twinkle; planets (.planet) shine steady. The brightest each flicker on their own, the rest in eight groups,
   each at its own pace, so neighbours never keep time (site/sky-now.js shares them out). */
.heavens .star.bright { animation: twinkle 2.9s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { fill-opacity: 1; } 18% { fill-opacity: .55; } 30% { fill-opacity: .95; } 55% { fill-opacity: .7; } 72% { fill-opacity: 1; } 84% { fill-opacity: .62; } }
.heavens .tw { animation: twinkle-faint 3.7s ease-in-out infinite; }
.heavens .tw1 { animation-duration: 2.3s; animation-delay: -.4s; }
.heavens .tw2 { animation-duration: 4.1s; animation-delay: -1.7s; }
.heavens .tw3 { animation-duration: 2.9s; animation-delay: -2.2s; }
.heavens .tw4 { animation-duration: 5.3s; animation-delay: -.9s; }
.heavens .tw5 { animation-duration: 3.3s; animation-delay: -3.1s; }
.heavens .tw6 { animation-duration: 2.6s; animation-delay: -1.3s; }
.heavens .tw7 { animation-duration: 4.7s; animation-delay: -2.8s; }
@keyframes twinkle-faint { 0%, 100% { opacity: 1; } 22% { opacity: .45; } 40% { opacity: .9; } 63% { opacity: .6; } 80% { opacity: 1; } }
.heavens .planet { filter: drop-shadow(0 0 1.5px rgb(255 248 220 / .8)); }
.heavens .figures { fill: none; stroke: #c8d4ff; stroke-width: 1; stroke-dasharray: 2 4; }
.heavens .moonlit { fill: #f6f1d8; }
.heavens .moondark { fill: #2a3a68; opacity: calc(.25 + .5 * var(--dark, 0)); }
/* The sun and moon glide from one second's place to the next (site/sky-now.js moves them once a second). */
.heavens .sunball, .heavens .moon { transition: transform 1s linear; }
.sky.fast .heavens .sunball, .sky.fast .heavens .moon { transition: none; }
/* The sun: a soft glow that breathes, slow-turning rays, and a warm disc lit from the upper left. */
.heavens .sunglow { transform-origin: 0 0; animation: sunbreathe 5s ease-in-out infinite alternate; }
@keyframes sunbreathe { from { transform: scale(.94); opacity: .85; } to { transform: scale(1.06); opacity: 1; } }
.heavens .sunrays { fill: var(--sun, #ffc72c); opacity: .55; transform-origin: 0 0; animation: sunturn 120s linear infinite; }
@keyframes sunturn { to { transform: rotate(360deg); } }
.heavens .sunhalo { transition: opacity 2s; }
.wx-cloudy .heavens .sunhalo, .wx-rain .heavens .sunball, .wx-storm .heavens .sunball, .wx-snow .heavens .sunhalo, .wx-fog .heavens .sunhalo { display: none; }
.wx-cloudy .heavens .sundisc { opacity: .55; }
.wx-rain .heavens .sundisc, .wx-snow .heavens .sundisc, .wx-fog .heavens .sundisc { opacity: .3; }
.sky.live .cloud { filter: brightness(calc(1 - .7 * var(--dark, 0))); opacity: calc(.85 - .5 * var(--dark, 0)); }
.sky.live .hills { filter: brightness(calc(1 - .58 * var(--dark, 0))) saturate(calc(1 - .35 * var(--dark, 0))); }
.sky.night .hills .kid, .sky.night .hills .kite { display: none; }
.sky.night > .wrap > .now, .sky.night > .wrap > h1, .sky.night > .wrap > .lede { color: #f1f4ff; }
.top.night, .top.night a { color: #f1f4ff; }
.top.night nav a[aria-current] { background: rgb(255 255 255 / .18); }
/* "Sign in" / "Your family" keeps its white button at night, so its words stay dark. */
.top.night nav a.acct { color: var(--ink); }
@media (prefers-reduced-motion: reduce) {
  .heavens .star.bright, .heavens .tw, .heavens .sunglow, .heavens .sunrays { animation: none; }
  .heavens .sunball, .heavens .moon { transition: none; }
  .drift, .hills .kite, .hills .kitebody, .hills .tail, .hills .glow, .hills .tree, .hills .duck, .hills .ripple, .hills .waves path, .hills .dragonfly > g, .rainfall, .snowfall, .fogband, .wx-storm .skyart::after { animation: none; }
  .hills .leaf, .hills .splash { animation: none; opacity: 0; }
  .hills .leaf .flip { animation: none; }
  /* The critters sit still where they rest; the fliers stay away. */
  .hills .bob, .hills .neck, .hills .critter *, .lamps .owleyes * { animation: none !important; }
  .hills .critter.flier { display: none; }
  .sky.arrive .shelter.storm .door, .lamps, .lamps * { animation: none !important; }
  .lamps .fireflies circle:nth-child(odd) { opacity: 1; }
  /* Still smoke: a short trail of puffs leaning off the chimney. */
  .smoke .puff { opacity: calc(.75 - var(--i) * .15); transform: translate(calc(var(--i) * var(--drift) * var(--dir, 1) * var(--side, 1) / 4), calc(var(--i) * -9px)); r: calc(2.6px + var(--i) * 1.6px); }
  .sky.arrive .hills .kid.walkhome { display: none; }
}

/* Near you: the band of pine with the map on it */
.near { background: var(--pine); color: var(--white); padding: .4rem 0 2.2rem; }
.near h2 { margin-top: .8rem; }
.sub { margin: .3rem 0 1rem; max-width: 40rem; color: #d6ebe0; }
.board { position: relative; border-radius: 1rem; overflow: hidden; background: #e4eadf; line-height: 0; }
.board img { display: block; width: 100%; height: auto; }
/* The side names are plain words on the map, ringed in a halo so they read over roads and water; no capsule. */
.picker button { --halo: #f6f8ef; position: absolute; transform: translate(-50%, -50%); font: 800 1.1rem/1 var(--display); color: var(--ink); background: none; border: 0; border-radius: .5rem; min-height: 2.35rem; padding: 0 .4rem; cursor: pointer; white-space: nowrap; text-shadow: -2px -2px 0 var(--halo), 2px -2px 0 var(--halo), -2px 2px 0 var(--halo), 2px 2px 0 var(--halo), 0 -2px 0 var(--halo), 0 2px 0 var(--halo), -2px 0 0 var(--halo), 2px 0 0 var(--halo); }
.picker button:hover { text-decoration: underline; text-underline-offset: .2em; }
.picker button[aria-pressed="true"] { --halo: var(--sun); }
/* The tour while nothing is picked: the side being shown lights up in a sun halo that pulses. */
.picker button.touring { --halo: var(--sun); animation: tourpulse 1.5s ease-out infinite; }
@keyframes tourpulse { from { filter: drop-shadow(0 0 0 rgb(255 199 44 / .9)); } to { filter: drop-shadow(0 0 .7rem rgb(255 199 44 / 0)); } }
.js .nearlist.on { animation: nearin .4s ease-out; }
@keyframes nearin { from { opacity: 0; transform: translateY(.4rem); } }
@media (prefers-reduced-motion: reduce) { .js .nearlist.on, .picker button.touring { animation: none; } }
/* Starts or stops the tour (made by site.js, so it's only there with script). */
.tourbtn { font: 700 .9rem/1 var(--display); color: var(--white); background: transparent; border: 2px solid rgb(255 255 255 / .7); border-radius: 1.3rem; min-height: 2.5rem; padding: 0 1rem; margin-bottom: .6rem; cursor: pointer; }
.tourbtn:hover { background: rgb(255 255 255 / .12); }
.tourbtn.on { color: var(--ink); background: var(--sun); border-color: var(--sun); }
.tourbtn span { font-size: .75em; margin-right: .3rem; }
html:not(.js) .picker button { display: none; }
.dot { position: absolute; width: .55rem; height: .55rem; margin: -.275rem 0 0 -.275rem; border-radius: 50%; background: var(--berry); box-shadow: 0 0 0 1.5px #fff; }
/* A pin under a side's name (site.js) shrinks to a dot at its real spot, with the icon out beside the name on a thin line. */
.dot.ic.moved { width: .34rem; height: .34rem; margin: -.17rem 0 0 -.17rem; background: var(--berry); box-shadow: none; }
.dot.ic.moved::before { content: ''; position: absolute; left: 50%; top: 50%; width: var(--len); height: 1.5px; margin-top: -.75px; background: var(--berry); transform-origin: 0 50%; transform: rotate(var(--ang)); }
.dot.ic.moved > span { position: absolute; left: 50%; top: 50%; width: 1.575rem; height: 1.575rem; margin: -.7875rem 0 0 -.7875rem; display: grid; place-items: center; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.5px var(--berry), 0 1px 2px rgb(0 0 0 / .35); transform: translate(var(--dx), var(--dy)); }
/* An outing's icon is a link to its plan; hovering or focusing it shows the outing (site.js picks the side the card opens to, to stay on the map). */
a.dot.ic { color: inherit; text-decoration: none; }
.dot.ic.moved { pointer-events: none; }
.dot.ic > span { pointer-events: auto; cursor: pointer; }
.dot.ic:not(.moved) > span { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%; }
.dot.ic:hover, .dot.ic:focus-visible { z-index: 8; }
.dot.ic:focus-visible > span { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 50%; }
.pintip { display: none; position: absolute; z-index: 9; left: 50%; bottom: calc(100% + 9px); transform: translateX(-50%); width: max-content; max-width: min(15rem, 70vw); flex-direction: column; gap: .12rem; padding: .5rem .7rem .55rem; border-radius: .75rem; background: var(--ink); color: #fff; font-size: .86rem; font-weight: 400; line-height: 1.35; text-align: left; white-space: normal; box-shadow: 0 8px 22px rgb(0 0 0 / .25); pointer-events: none; cursor: default; }
.pintip strong { font: 800 .95rem/1.2 var(--display); }
.pintip small { font-size: .82rem; opacity: .88; }
.pintip .for { color: var(--sun); opacity: 1; }
.dot.ic:hover .pintip, .dot.ic:focus-visible .pintip { display: flex; }
.dot[data-tx="l"] .pintip { left: 0; transform: none; }
.dot[data-tx="r"] .pintip { left: auto; right: 0; transform: none; }
.dot[data-ty="b"] .pintip { bottom: auto; top: calc(100% + 9px); }
.board.picker { overflow: visible; }
.board.picker > img { border-radius: 1rem; }
.dot.ic { z-index: 2; pointer-events: none; display: grid; place-items: center; width: 1.575rem; height: 1.575rem; margin: -.7875rem 0 0 -.7875rem; background: #fff; font-size: .93rem; line-height: 1; font-style: normal; box-shadow: 0 0 0 1.5px var(--berry), 0 1px 2px rgb(0 0 0 / .35); }
.nearlist { margin-top: 1.2rem; }
.js .nearlist:not(.on) { display: none; }
.nearlist h3 { font-size: 1.3rem; }
.nearlist p { color: #d6ebe0; }
.nearlist ul { list-style: none; padding: 0; margin: .4rem 0 0; }
.nearlist li a { display: block; padding: .7rem 0; border-top: 1px solid rgb(255 255 255 / .25); text-decoration: none; }
.nearlist strong { display: block; font-family: var(--display); font-size: 1.1rem; line-height: 1.2; }
.nearlist li a:hover strong { text-decoration: underline; }
.nearlist span { display: block; color: #d6ebe0; font-size: .95rem; }
.nearlist .ti { display: inline; color: inherit; font-size: inherit; }
.nearlist .for { font-size: .85rem; }
.nearlists { min-width: 0; }

/* Sign-up */
.pagehead .signup { background: var(--white); margin: 1rem 0 .4rem; }
.signup { background: var(--sky-pale); border-radius: 1.2rem; padding: 1.2rem 1.15rem 1rem; margin: 2rem 0; max-width: 46rem; }
.signup h2 { margin: 0 0 .25rem; }
.signup .lead { margin: 0 0 .8rem; }
.fields { display: grid; gap: .25rem; }
.fields label { font-weight: 700; font-size: .92rem; margin-top: .35rem; }
.fields input, .fields select { width: 100%; min-height: 3rem; font: inherit; font-size: 1.05rem; color: var(--ink); background: var(--white); border: 2px solid #9db4c6; border-radius: .7rem; padding: .4rem .7rem; }
.fields input:focus, .fields select:focus { border-color: var(--ink); outline: none; }
.fields .btn { margin-top: .7rem; width: 100%; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.result { margin: .7rem 0 .2rem; padding: .6rem .8rem; border-radius: .7rem; font-weight: 700; }
.result.ok { background: var(--grass-pale); color: #0f5132; }
.result.bad { background: #fbe4e2; color: #8a1c17; }
.signup.joined .fields, .signup.joined .lead { display: none; }
.fine { font-size: .85rem; color: var(--muted); margin: .6rem 0 0; }

/* The days ahead */
.agepick { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin: .5rem 0 .6rem; }
.agepick .muted { margin-right: .3rem; }
.agepick button { min-width: 2.9rem; height: 2.75rem; border: 0; border-radius: .6rem; background: var(--white); color: var(--ink); font-family: var(--display); font-size: 1.05rem; font-weight: 800; cursor: pointer; }
.agepick button:hover { background: var(--sun-pale); }
.agepick button[aria-pressed="true"] { background: var(--sun); }
html:not(.js) .agepick { display: none; }
.dayrows { list-style: none; padding: 0; margin: 0; }
.dayrows li { border-top: 1px solid var(--line); }
.dayrow { display: grid; grid-template-columns: 5.2rem minmax(0, 1fr); align-items: baseline; gap: .6rem; padding: .6rem .3rem; border-radius: .5rem; text-decoration: none; }
.dayrow[hidden] { display: none; }
a.dayrow:hover { background: var(--white); }
.dayrow .d { color: var(--muted); font-size: .9rem; white-space: nowrap; }
.dayrow .d b { color: var(--ink); font-family: var(--display); font-size: 1rem; }
.dayrow .dayline { font-weight: 700; line-height: 1.3; }
.dayrow.none .dayline { color: var(--muted); font-weight: 400; }

.how ul { list-style: none; padding: 0; display: grid; gap: 1.1rem 2rem; }
.how li { display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: 1rem; align-items: start; }
.how li p { margin: 0; }
.how li strong { display: block; font-family: var(--display); font-size: 1.15rem; }

/* The drawings (src/site/art.js): rain, nap, storytime, the Sunday email, free outings. */
.art { display: block; width: 100%; height: auto; }
.headart { float: right; width: 6.5rem; margin: .4rem 0 .5rem 1rem; }
.signup.has-art .art { float: right; width: 5.5rem; margin: 0 0 .4rem .9rem; }
.signup.has-art .fields { clear: both; }

/* Headed pages */
.pagehead { background: linear-gradient(180deg, var(--sky), var(--sky-pale)); padding: .6rem 0 1.3rem; }
.pagehead h1 { font-size: clamp(2.1rem, 8.5vw, 3.4rem); }
/* The weekend, up the home page from Thursday: the days-ahead rows, with where and when under each headline. */
.wkend { margin-top: 2rem; }
.dayrows.wk { columns: auto; }
.dayrows.wk .dayrow { padding: .8rem .3rem; }
.dayrows.wk .dayline { font-size: 1.08rem; display: flex; flex-direction: column; gap: .2rem; }
.dayrows.wk .facts { font-weight: 400; }
.wkwx { font-weight: 400; font-size: .9rem; color: var(--muted); }
/* An outing's calendar links, and the way to say it was wrong. */
.cal { margin: .7rem 0; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; font-size: .95rem; }
.calbtn { display: inline-block; background: var(--sun-pale); border: 2px solid var(--sun); color: var(--ink); font-family: var(--display); font-weight: 700; padding: .4rem .85rem; border-radius: .7rem; text-decoration: none; }
.calbtn:hover { background: var(--sun); }
button.calbtn { cursor: pointer; font-size: inherit; }
.caldlg { border: 2px solid var(--sun); border-radius: 1rem; padding: 1.2rem; max-width: min(92vw, 26rem); width: 100%; color: var(--ink); }
.caldlg::backdrop { background: rgba(0, 0, 0, .45); }
.caldlg h3 { margin: 0 0 .2rem; }
.calwhat { margin: 0 0 .8rem; color: var(--ink); opacity: .75; }
.calopt { display: block; margin: .5rem 0; padding: .7rem .9rem; border: 2px solid var(--sun); border-radius: .8rem; background: var(--sun-pale); color: var(--ink); text-decoration: none; }
.calopt:hover, .calopt:focus-visible { background: var(--sun); }
.calopt strong { display: block; font-family: var(--display); }
.calopt span { display: block; font-size: .9rem; margin-top: .15rem; }
.sendbox p { margin: .5rem 0; }
/* The code fills the box (as wide as the screen allows, but never taller than the screen), on white: a dim or cracked
   phone screen scans a big, high-contrast code far better than a small one. */
.sendbox { max-width: min(96vw, 30rem); padding: 1rem; }
.sendqr { width: min(100%, 70vh); margin: .6rem auto; background: #fff; border-radius: .5rem; padding: 0; }
.sendqr svg { display: block; width: 100%; height: auto; }
.sendnote { font-size: .85rem; opacity: .8; }
/* The app in a few words, with a way to get it, above the way to send to it. */
.sendapp { margin: .6rem 0 .9rem; padding: .7rem .8rem; border: 2px solid var(--sun); border-radius: .8rem; background: var(--sun-pale); }
.sendname { display: flex; gap: .7rem; align-items: center; color: inherit; text-decoration: none; }
.sendname img { width: 3rem; height: 3rem; border-radius: .8rem; flex: none; }
.sendname strong { display: block; font-family: var(--display); font-size: 1.1rem; }
.sendname span span { display: block; font-size: .9rem; line-height: 1.3; }
.sendlinks { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.sendlinks .calbtn { flex: 1 1 8rem; text-align: center; background: var(--white); }
.sendlinks .calbtn:hover { background: var(--sun); }
.sendhave { margin: .9rem 0 .3rem; font-family: var(--display); font-size: 1.05rem; }
.sendwarn { color: #b3261e; font-weight: 600; }
.calclose { display: block; margin: .8rem 0 0 auto; background: none; border: 0; font: inherit; text-decoration: underline; cursor: pointer; color: inherit; }
/* What to wear on a cold or hot day (dressLine). */
.outing .dress { margin: .3rem 0 .5rem; font-weight: 600; }
.report { margin: .8rem 0 0; font-size: .9rem; color: var(--muted); }
/* A place's own page. */
.place .addr { margin: 1.2rem 0 0; font-weight: 700; }
.place .planned { margin: 1rem 0; }
.has { list-style: none; padding: 0; margin: .5rem 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.has li { background: var(--white); border-radius: .6rem; padding: .35rem .75rem; font-weight: 700; }
.hours { border-collapse: collapse; margin: .4rem 0; }
.hours th { text-align: left; font-weight: 400; color: var(--muted); padding: .15rem 1.2rem .15rem 0; }
.hours td { font-weight: 700; }
.gsec h3 { font-size: 1.05rem; margin: 1rem 0 0; color: var(--muted); }
/* The footer's offer to keep the site on the phone's home screen, shown only where the browser can do it. */
.install { margin-top: .7rem; background: none; border: 2px solid currentColor; color: inherit; font: inherit; font-weight: 700; padding: .45rem .9rem; border-radius: .7rem; cursor: pointer; }
.install[hidden] { display: none; }
.crumb { margin: 0 0 .2rem; font-weight: 700; }
.dated { font-size: .92rem; color: var(--muted); margin: .3rem 0 0; }

/* Day page */
.weather { margin: .25rem 0 0; font-size: 1.02rem; }
.pastnote { margin: .5rem 0 .3rem; padding: .55rem .8rem; border-radius: .6rem; background: var(--sun-pale); font-size: .95rem; line-height: 1.4; }
.pastlink { margin: .9rem 0 0; font-weight: 700; }
.past .ahead h2 { margin-top: 1.4rem; }
/* More days than fit on a phone: the right edge fades, so the list reads as going on. */
.days { display: flex; gap: .2rem; overflow-x: auto; padding: .6rem 0 0; margin-top: .3rem; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 2.2rem), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 2.2rem), transparent); }
.days a { position: relative; display: flex; flex-direction: column; align-items: center; min-width: 3.1rem; padding: .35rem .3rem .4rem; border-radius: .7rem; text-decoration: none; font-size: .78rem; }
.days a b { font-family: var(--display); font-size: 1.25rem; }
.days a:hover { background: rgb(255 255 255 / .5); }
.days a[aria-current] { background: var(--ink); color: #cdd6ee; }
.days a[aria-current] b { color: var(--white); }
.days i { position: absolute; top: .35rem; right: .45rem; width: .45rem; height: .45rem; border-radius: 50%; background: var(--sun); }

.controls { display: grid; gap: .55rem; padding: .9rem 0 .2rem; }
.control { display: grid; grid-template-columns: 3rem minmax(0, 1fr); align-items: center; gap: .4rem; min-width: 0; }
.clabel { font-size: .85rem; font-weight: 700; color: var(--muted); }
.seg-group { min-width: 0; display: flex; gap: .3rem; overflow-x: auto; scrollbar-width: none; }
.seg-group a { flex: none; padding: .5rem .75rem; border-radius: .6rem; background: var(--white); text-decoration: none; font-weight: 700; font-size: .92rem; color: var(--muted); }
.seg-group a[aria-current], .seg-group a[aria-selected="true"] { background: var(--ink); color: var(--white); }
.wake { display: none; }
.js .wake { display: grid; }
.wake select { justify-self: start; font: inherit; font-weight: 700; font-size: 1rem; min-height: 2.5rem; padding: .3rem .6rem; border-radius: .6rem; border: 0; background: var(--white); color: var(--ink); }

.revised { margin: .4rem 0 .6rem; }
.revised summary { cursor: pointer; color: var(--muted); font-weight: 700; font-size: .95rem; padding: .5rem 0; }
.revised p { background: var(--sun-pale); border-radius: 1rem; padding: .8rem 1.1rem; margin: .2rem 0 .8rem; }
.wakenote { background: var(--white); border-left: 4px solid var(--sun); border-radius: 0 .7rem .7rem 0; padding: .6rem 1rem; margin: 0 0 1.2rem; }

.plan h2 { margin: 1.1rem 0 .2rem; font-size: clamp(1.65rem, 6vw, 2.3rem); max-width: 38ch; }
.napline { color: var(--muted); margin: 0; }
.cols { display: grid; gap: 1rem; align-items: start; }
.js .plan:not(.on) { display: none; }

/* The outing */
.outing { background: var(--white); border-radius: 1.1rem; padding: 1.15rem 1.15rem; margin-bottom: 1rem; border-top: 6px solid var(--grass); }
.outing .label { margin: 0 0 .2rem; font-size: .9rem; font-weight: 700; color: var(--grass); }
.outing h3 { font-size: 1.5rem; }
.outing .addr { margin: .2rem 0 .6rem; font-size: .95rem; color: var(--muted); }
.mini { position: relative; margin: .6rem 0; aspect-ratio: 2.6; overflow: hidden; border-radius: .7rem; background: #e4eadf; }
.mini img { position: absolute; max-width: none; height: auto; }
.pin { position: absolute; width: 1rem; height: 1rem; border-radius: 50%; background: var(--berry); box-shadow: 0 0 0 2.5px #fff, 0 1px 3px rgb(0 0 0 / .4); transform: translate(-50%, -50%); }
.pinmap { margin: 1.1rem 0 .5rem; }
.pinmap .pin { width: .7rem; height: .7rem; box-shadow: 0 0 0 1.5px #fff; }
/* A pin with the icon of what it is (src/site/typeicon.js): the picture on a white round, ringed in the pin's colour. */
.pin.ic { display: grid; place-items: center; width: 2rem; height: 2rem; background: #fff; font-size: 1.15rem; line-height: 1; box-shadow: 0 0 0 2.5px var(--berry), 0 1px 4px rgb(0 0 0 / .4); }
.pinmap .pin.ic { width: 1.45rem; height: 1.45rem; font-size: .85rem; box-shadow: 0 0 0 1.5px var(--berry), 0 1px 2px rgb(0 0 0 / .35); }
/* The whole day on one map (src/site/map.js dayRoute): numbered icon pins, a line from each stop to the next. */
.dayroute { margin: 1rem 0 .4rem; }
.dayroute svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.dayroute line, .dayroute polyline { fill: none; stroke: var(--berry); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.dayroute .straight { stroke-dasharray: 6 6; }
/* Home, put on by the family's own browser (family/daymap.js): its roads are the quieter ones, under the day's. */
.dayroute polyline.home { stroke: #2f6f8f; stroke-width: 3; }
.dayroute .pin.home { box-shadow: 0 0 0 2.5px #2f6f8f, 0 1px 4px rgb(0 0 0 / .4); }
.dayroute .pin.ic.home::after { content: none; }
.dayroute-legs { margin: .3rem 0 0; padding: 0; list-style: none; font-size: .92rem; }
.dayroute-legs li { margin: .1rem 0; }
.dayroute .pin.ic::after { content: attr(data-n); position: absolute; top: -.45rem; right: -.45rem; min-width: 1rem; height: 1rem; padding: 0 .2rem; border-radius: .5rem; background: var(--berry); color: #fff; font: 700 .68rem/1rem system-ui, sans-serif; text-align: center; }
.dayroute-note { margin: .2rem 0 .8rem; font-size: .88rem; }
.dayroute-home { display: flex; flex-wrap: wrap; gap: .5rem .6rem; align-items: center; margin: .5rem 0 1rem; padding: .6rem .8rem; border-radius: .8rem; background: color-mix(in srgb, var(--berry) 9%, #fff); border: 1px solid color-mix(in srgb, var(--berry) 25%, #fff); font-weight: 600; line-height: 1.35; }
html.signed-in .dayroute-home[data-in] { display: flex; }
html.has-home .dayroute-home, html.has-home.signed-in .dayroute-home[data-in] { display: none; }
/* "Enter my address" opens this in the notice's place (family/daymap.js); once drawn, a line says where from. */
.dayroute-ask { display: flex; flex-wrap: wrap; gap: .5rem .6rem; align-items: center; margin: .5rem 0 1rem; padding: .6rem .8rem; border-radius: .8rem; background: color-mix(in srgb, var(--berry) 9%, #fff); border: 1px solid color-mix(in srgb, var(--berry) 25%, #fff); }
.dayroute-ask label { font-weight: 600; }
.dayroute-ask input { flex: 1 1 12rem; min-width: 0; padding: .45rem .6rem; border: 1px solid #b9c2bd; border-radius: .5rem; font: inherit; }
.dayroute-ask .btn { margin: 0; padding: .45rem 1rem; font-size: .92rem; white-space: nowrap; }
.dayroute-ask .fine { flex: 1 1 100%; margin: 0; font-size: .85rem; }
.dayroute-ask .fine:empty { display: none; }
.dayroute-from { margin: .2rem 0 1rem; font-size: .88rem; }
.linklike { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.dayroute-home .ic { font-size: 1.25rem; }
.dayroute-home .say { flex: 1 1 14rem; }
.dayroute-home .btn { margin: 0; padding: .45rem 1rem; font-size: .92rem; white-space: nowrap; }
/* The same icon ahead of a name or a heading. */
.ti { font-style: normal; }
.pinmap figcaption { font-size: .9rem; color: var(--muted); margin-top: .3rem; }
.times { margin: .4rem 0; }
.warn { color: #a3361b; font-weight: 700; }
.alt .tips { margin: .3rem 0 0; font-size: .95rem; }
.stops { list-style: none; padding: .5rem .8rem; margin: .7rem 0; background: var(--grass-pale); border-radius: .6rem; }
.stops li { padding: .15rem 0; }
/* Times in the display face: the text face's slashed zero reads as code. */
.when, .ticks, .times strong, .days a b { font-family: var(--display); }
.when { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.why { font-size: 1.05rem; }
.tips { padding-left: 1.1rem; color: var(--muted); }
.tips li { margin: .2rem 0; }
.tags { margin: .8rem 0 0; display: flex; flex-wrap: wrap; gap: .3rem; }
.tags span { font-size: .8rem; color: var(--muted); background: var(--air); border-radius: .4rem; padding: .05rem .5rem; }
.outing.in { border-top-color: var(--berry); }
.outing.in .label { color: var(--berry); }
.outing.in .stops { background: var(--berry-pale); }
.original { margin-bottom: 1rem; }
.original summary { cursor: pointer; color: var(--muted); font-weight: 700; min-height: 2.4rem; }
.original .outing { opacity: .75; border-top-color: var(--line); }

/* Or swap in */
.alts { margin-top: 1rem; }
.alts h3 { font-size: 1.25rem; }
.alts ul { list-style: none; padding: 0; margin: .6rem 0 0; }
.alt { padding: .9rem 0; border-top: 1px solid var(--line); }
.alt p { margin: .15rem 0; }
/* Already in the day as its second outing, picked near the visitor's home (family/dayhome.js). */
.alt.taken { display: none; }
/* The swap-in a link came for (?see=, site.js). */
.alt.seen { background: var(--sun-pale); box-shadow: 0 0 0 .6rem var(--sun-pale); border-radius: .4rem; border-top-color: transparent; }
.alt-title { font-weight: 700; font-size: 1.05rem; }
/* "Plan the day around this" on a swap-in, and the way back from a rebuilt day. */
.alt .alt-go { margin: .6rem 0 0; }
button[data-around] { cursor: pointer; background: var(--sun-pale); border: 2px solid var(--sun); color: var(--ink); font-family: var(--display); font-weight: 700; font-size: .95rem; line-height: 1.2; padding: .4rem .85rem; border-radius: .7rem; }
button[data-around]:hover { background: var(--sun); }
.wakenote button[data-around] { margin: .3rem 0 .1rem; }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; margin: .4rem 0 .2rem; }
.chips button { font: inherit; font-size: .9rem; font-weight: 700; color: var(--muted); border: 0; background: var(--white); border-radius: .6rem; min-height: 2.4rem; padding: 0 .75rem; cursor: pointer; }
.chips button.area { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
.chips button[aria-pressed="true"] { background: var(--pine); color: #fff; box-shadow: none; }

/* The day, hour by hour */
.c-day > h3 { margin-top: .2rem; }
.timeline { list-style: none; padding: 0; margin: .5rem 0 0; background: var(--white); border-radius: 1.1rem; overflow: hidden; }
.timeline li { display: grid; grid-template-columns: 4.6rem 1fr; gap: .6rem; padding: .6rem 1rem; border-top: 1px solid var(--air); }
.timeline li:first-child { border-top: 0; }
.timeline li p { margin: .1rem 0 0; color: var(--muted); font-size: .92rem; }
.timeline .when { color: var(--muted); font-size: .92rem; padding-top: .05rem; }
.timeline .k-outing { background: var(--grass-pale); box-shadow: inset 5px 0 0 var(--grass); }
.timeline .k-outing .when { color: var(--grass); }
.timeline .k-outing.in { background: var(--berry-pale); box-shadow: inset 5px 0 0 var(--berry); }
.timeline .k-outing.in .when { color: var(--berry); }
.timeline .k-play.out { box-shadow: inset 5px 0 0 color-mix(in srgb, var(--grass) 45%, transparent); }
.timeline .ideas { margin: .35rem 0 .1rem; padding-left: 1.1rem; color: var(--muted); font-size: .9rem; }
.timeline .ideas li { display: list-item; padding: .12rem 0; border: 0; }
.timeline .ideas li::marker { color: var(--dusk); }
.timeline .ideas li.out::marker { color: var(--grass); }
.timeline .ideas b { color: var(--ink); font-weight: 600; }
.timeline .ideas .where { font-weight: 400; font-size: .8rem; color: var(--grass); margin-left: .2rem; }
.timeline .k-nap { background: var(--night); color: #eef0ff; }
.timeline .k-nap .when, .timeline .k-nap p { color: #b7bfe6; }
.timeline .k-quiet { background: #ecedf8; box-shadow: inset 5px 0 0 var(--dusk); }
.timeline .k-travel strong { font-weight: 400; color: var(--muted); }
/* Today, now (site.js): the step under way is marked, with how far through it the day is; the ones done are greyed. */
.timeline > li { position: relative; }
.timeline > li.past { opacity: .5; }
.timeline > li.now { box-shadow: inset 5px 0 0 var(--now); }
.timeline > li.now .when::after { content: "Now"; display: block; width: max-content; margin-top: .25rem; padding: .1rem .4rem; border-radius: .4rem; background: var(--now); color: #fff; font: 800 .68rem/1.2 var(--display); text-transform: uppercase; letter-spacing: .05em; }
.timeline > li.now::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: var(--done, 0%); background: var(--now); }

/* The day strip under the pointer (site.js): a line at the moment and a card about it; and a line at now on today's. */
:root { --now: #e8492f; }
.strip[data-day] { touch-action: pan-y; cursor: crosshair; }
.strip .hoverline, .strip .nowline { position: absolute; top: 0; bottom: 0; pointer-events: none; }
.strip .hoverline { z-index: 7; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgb(18 35 63 / .45); }
.strip .nowline { z-index: 8; width: 3px; margin-left: -1.5px; background: var(--now); box-shadow: 0 0 0 1.5px #fff; }
.strip .nowline b { position: absolute; top: 3px; left: 5px; padding: .12rem .32rem; border-radius: .35rem; background: var(--now); color: #fff; font: 800 .6rem/1 var(--display); text-transform: uppercase; letter-spacing: .05em; }
.strip .nowline.end b { left: auto; right: 5px; }
.striptip { position: absolute; z-index: 50; display: flex; flex-direction: column; gap: .12rem; max-width: 16rem; padding: .55rem .75rem .6rem; border-radius: .75rem; background: var(--ink); color: #fff; font-size: .86rem; line-height: 1.35; box-shadow: 0 8px 22px rgb(0 0 0 / .25); pointer-events: none; }
.striptip[hidden] { display: none; }
.striptip .tt { font: 800 .7rem/1.2 var(--display); color: var(--sun); text-transform: uppercase; letter-spacing: .05em; }
.striptip strong { font-family: var(--display); font-size: 1rem; line-height: 1.2; }
.striptip .tdetail { opacity: .85; }
.striptip .tsky { color: #bfe3f7; }

/* Guides */
.gsec h2 { margin-bottom: .3rem; }
.items { list-style: none; padding: 0; margin: .5rem 0 0; }
.items li { padding: .65rem 0; border-top: 1px solid var(--line); }
.items p { margin: 0; }
.it-name { font-family: var(--display); font-weight: 700; font-size: 1.12rem; line-height: 1.25; }
.it-facts { font-size: .97rem; color: var(--muted); }
.it-facts b { color: var(--ink); }
.plain { padding-left: 1.2rem; }
.plain li { margin: .25rem 0; }
.sources { font-size: .9rem; color: var(--muted); margin-top: 1.6rem; }
.glist { list-style: none; padding: 0; margin: .9rem 0 0; display: grid; gap: .5rem; }
.glist a { display: flex; gap: .9rem; align-items: center; height: 100%; background: var(--white); border-radius: 1rem; padding: .8rem 1rem; text-decoration: none; }
.glist .art { flex: none; width: 4.2rem; }
.glist .gtext { margin: 0; color: inherit; font-size: inherit; }
.glist strong { display: block; font-family: var(--display); font-size: 1.2rem; line-height: 1.2; }
.glist span { display: block; color: var(--muted); font-size: .97rem; margin-top: .15rem; }
.glist a:hover strong { text-decoration: underline; }
.towns { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.towns a { display: block; background: var(--white); border-radius: .7rem; padding: .55rem .85rem; font-weight: 700; text-decoration: none; }

/* Family plans */
.teaser { margin: 2.6rem 0 1rem; background: var(--night); color: #e8ebfb; border-radius: 1.3rem; padding: 1.5rem 1.3rem; }
.teaser h2 { margin-top: 0; color: #fff; }
.split { display: grid; gap: 1.2rem; }
.family { margin: 0; padding: 1.1rem 1.1rem .4rem; background: var(--white); border-radius: 1.2rem; min-width: 0; }
.kidname { font-family: var(--display); font-weight: 700; }
.kid .daystrip { margin: .3rem 0 1rem; }
.family figcaption { color: var(--muted); font-size: .92rem; padding-bottom: .6rem; }
.price { color: var(--muted); }
.price strong { color: var(--ink); }
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.2rem 2.4rem; }
.cards li { display: flex; flex-direction: column; gap: .2rem; padding-top: .7rem; border-top: 3px solid var(--ink); }
.get .cards li { border-top-color: var(--grass); }
.cards strong { font-family: var(--display); font-size: 1.2rem; }
.cards span { color: var(--muted); }
/* The thank-you page after the Sunday sign-up */
.welcome .newhere { margin-bottom: 0; }
.welcome section { margin: 1.8rem 0 0; }
.welcome .next .cards li { border-top-color: var(--sun); }
.welcome .more .cards li { border-top-color: var(--grass); }
.welcome .cards a { text-decoration: none; }
.welcome .cards a:hover strong { text-decoration: underline; }
.faq { max-width: 46rem; }
.faq details { border-top: 1px solid var(--line); padding: .7rem 0; }
.faq summary { cursor: pointer; font-weight: 700; }

/* The bottom of every page: pine hills, then the links, the apps, and the fine print. */
.site-foot { margin-top: 4rem; color: #dcebe4; }
.foothills { display: block; width: 100%; height: 3.2rem; }
.foot-in { background: var(--pine); padding: 1.6rem 0 2.6rem; margin-top: -1px; }
.site-foot a { color: #fff; }
.site-foot .btn { color: var(--ink); }
.site-foot :focus-visible { outline-color: var(--sun); }
.fgrid { display: grid; gap: 1.8rem 2rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fbrand { grid-column: 1 / -1; }
.fbrand .brand { color: #fff; font-size: 1.45rem; }
.fbrand .mark .ring { stroke: #fff; }
.fbrand p { margin: .6rem 0 1rem; max-width: 26rem; }
.fh { font-family: var(--display); font-weight: 800; color: var(--sun); font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 .55rem; }
.site-foot nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.site-foot nav a { text-decoration: none; font-size: .97rem; overflow-wrap: anywhere; }
.site-foot nav a:hover { text-decoration: underline; text-decoration-color: var(--sun); }
.fapps { margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid rgba(255, 255, 255, .16); }
.fapps ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.fapps a { display: flex; gap: .85rem; align-items: center; padding: .75rem .85rem; border-radius: 1rem; background: rgba(255, 255, 255, .07); text-decoration: none; transition: background .15s; }
.fapps a:hover { background: rgba(255, 255, 255, .14); }
.fapps img { width: 3rem; height: 3rem; border-radius: .8rem; flex: none; }
.fapps strong { display: block; color: #fff; font-family: var(--display); font-size: 1.05rem; }
.fapps span span { font-size: .88rem; color: #c3d9cf; line-height: 1.35; }
.fbase { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, .16); font-size: .84rem; color: #a9c4b8; }
.fbase p { margin: 0 0 .45rem; max-width: 60rem; }
.fbase a { color: #dcebe4; }
@media (min-width: 860px) {
  .fgrid { grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); }
  .fbrand { grid-column: auto; }
  .fapps ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* The home page's word to site owners: a light card with a little picture of the box. */
.sitebox { margin: 2.6rem 0 1rem; display: grid; gap: 1.4rem; align-items: center; padding: 1.6rem 1.4rem; border-radius: 1.3rem; background: linear-gradient(135deg, var(--sky-pale), var(--sun-pale)); border: 1px solid var(--line); }
.sitebox h2 { margin: .15rem 0 .5rem; }
.sitebox p { margin: 0 0 1rem; }
.sitebox .kicker { font-size: .85rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin: 0; }
.minibox { justify-self: center; width: 15rem; background: #fff; border: 2px solid var(--pine); border-radius: 1rem; overflow: hidden; box-shadow: 0 .8rem 1.6rem rgba(18, 35, 63, .12); transform: rotate(2deg); }
.mb-top { background: var(--sky); padding: .45rem .7rem; display: flex; align-items: center; gap: .4rem; font-family: var(--display); font-size: .85rem; color: var(--pine); }
.mb-top i { width: .8rem; height: .7rem; background: var(--pine); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.mb-row { display: flex; gap: .6rem; align-items: center; padding: .5rem .7rem; }
.mb-row + .mb-row { border-top: 1px solid #e3ece8; }
.mb-row span { width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--sun); display: grid; place-items: center; font-family: var(--display); font-weight: 900; font-size: .75rem; flex: none; }
.mb-row p { flex: 1; margin: 0; display: grid; gap: .3rem; }
.mb-row i { display: block; height: .45rem; border-radius: 1rem; background: #cfdde4; }
.mb-row i + i { width: 60%; background: #e3ece8; }
@media (min-width: 640px) { .sitebox { grid-template-columns: minmax(0, 1fr) auto; padding: 2rem; } }

/* Wider than a phone */
@media (min-width: 640px) {
  .fields { grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr); column-gap: .6rem; }
  .fields .f-email { grid-area: 1 / 1; }
  .fields .f-area { grid-area: 1 / 2; }
  .fields input { grid-area: 2 / 1; }
  .fields select { grid-area: 2 / 2; }
  .fields .btn { grid-column: 1 / -1; justify-self: start; width: auto; }
  .controls { grid-template-columns: repeat(2, minmax(0, auto)); justify-content: start; gap: .6rem 1.8rem; }
  .how ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .how li { grid-template-columns: minmax(0, 1fr); }
  .how li .art { width: 7.5rem; }
  .headart { width: 9.5rem; }
  .signup.has-art .art { width: 7rem; }
  .cards { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
  .welcome .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem 1.6rem; }
  .glist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .items.two { columns: 2; column-gap: 2rem; }
  .items.two li { break-inside: avoid; }
  .picker button { font-size: .95rem; padding: 0 .8rem; }
  .ages { max-width: 38rem; }
  .dayrows { columns: 2; column-gap: 2.5rem; }
  .dayrows li { break-inside: avoid; }
}
@media (min-width: 860px) {
  body { font-size: 18px; }
  .top nav a { font-size: 1rem; padding: .55rem .8rem; }
  .sky .wrap { padding-top: 2rem; }
  .nearcols { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 2rem; align-items: start; }
  .nearhead { grid-column: 2; }
  .picker { grid-column: 1; grid-row: 1 / span 2; }
  /* The lists never make the row taller than the map (contain: size), and scroll inside it instead. */
  .nearlists { grid-column: 2; align-self: stretch; contain: size; overflow-y: auto; overscroll-behavior: contain; padding: 0 .6rem 2.4rem 0; -webkit-mask-image: linear-gradient(#000 calc(100% - 2.4rem), transparent); mask-image: linear-gradient(#000 calc(100% - 2.4rem), transparent); scrollbar-width: thin; scrollbar-color: rgb(255 255 255 / .45) transparent; }
  .nearlists::-webkit-scrollbar { width: .5rem; }
  .nearlists::-webkit-scrollbar-thumb { background: rgb(255 255 255 / .45); border-radius: 1rem; }
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; align-items: center; }
  /* Outing, the day, then the swap-ins on a phone; on a wide screen the day runs down the right. */
  .cols { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2.4rem; }
  .c-day { grid-column: 2; grid-row: 1 / span 2; }
  .c-out, .c-alts { grid-column: 1; }
}

/* Sending a plan on, and the apps. */
.sharebar { margin: 1.6rem 0 0; }
.sharebar[hidden] { display: none; }
.sharebar .shared { color: var(--muted); }

/* /widget/: the box builder. Choices on the left, the live box and its code on the right (one column on a phone). */
.wbgrid { display: grid; gap: 1.6rem; padding: 1.4rem 0 .5rem; }
@media (min-width: 60rem) { .wbgrid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; } .wb-side { position: sticky; top: 1rem; } }
.wb fieldset { border: 0; margin: 0 0 1.25rem; padding: 0; min-width: 0; }
.wb legend { font-family: var(--display); font-weight: 800; font-size: 1.15rem; margin-bottom: .5rem; padding: 0; }
.wb input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.wb label { cursor: pointer; }
.wb-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
.wb-card span { display: block; height: 100%; padding: .8rem .9rem; border: 2px solid var(--line); border-radius: .9rem; background: var(--white); }
.wb-card b { display: block; font-size: 1.02rem; }
.wb-card small { display: block; color: var(--muted); font-size: .86rem; line-height: 1.3; margin-top: .25rem; }
.wb-card input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: #fffbea; }
.wb-seg { display: flex; flex-wrap: wrap; gap: .4rem; }
.wb-seg span { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .8rem; border-radius: .65rem; background: var(--white); border: 1px solid var(--line); font-weight: 700; font-size: .93rem; color: var(--muted); }
.wb-seg small { font-weight: 600; opacity: .75; }
.wb-seg input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.wb input:focus-visible + span { outline: 3px solid var(--sun); outline-offset: 2px; }
.wb-sw i { width: 1rem; height: 1rem; border-radius: 50%; box-shadow: 0 0 0 2px var(--white); }
.wb-gap { margin-top: .5rem; }
.wb-check { display: flex; gap: .55rem; align-items: center; font-weight: 700; }
.wb-check input { width: 1.2rem; height: 1.2rem; accent-color: var(--ink); }
.wb-note { font-size: .88rem; color: var(--muted); margin: .45rem 0 0; }
.wb-stage { border-radius: 1.1rem; padding: 1.2rem; background: repeating-conic-gradient(#e9f0f5 0 25%, #f7fafc 0 50%) 0 0 / 22px 22px; }
.wb-fit { margin: 0 auto; transition: max-width .2s; }
.wb-fit iframe { display: block; width: 100%; border: 0; transition: height .15s; }
.wb-h { margin: 1.3rem 0 .5rem; }
.wb-code { width: 100%; font: .8rem/1.45 ui-monospace, SFMono-Regular, Consolas, monospace; padding: .8rem; border-radius: .8rem; border: 1px solid var(--line); background: var(--white); resize: vertical; }
.wb-copy { margin: .6rem 0 0; }

/* The home page's Sunday sign-up (page.js signupDock, site.js). Without script it's an ordinary form in the page;
   with it (.float) the same card floats at the bottom of the window, sliding up once the visitor is past the sky.
   The close button sits on its top corner, the picture moved over to make room for it. */
.dock.float { position: fixed; z-index: 50; left: 50%; bottom: max(.75rem, env(safe-area-inset-bottom)); width: min(46rem, calc(100% - 1.5rem)); max-height: calc(100dvh - 1.5rem); overflow-y: auto; overscroll-behavior: contain; border-radius: 1.2rem; box-shadow: 0 .8rem 2.4rem rgb(18 35 63 / .32); translate: -50% calc(100% + 2rem); transition: translate .35s cubic-bezier(.2, .8, .2, 1); }
.dock.float.up { translate: -50% 0; }
.dock.float .signup { margin: 0; max-width: none; border: 2px solid var(--ink); }
.dock.float .signup.has-art .art { margin-right: 1.9rem; }
/* Floating, the card is tighter: a smaller heading and picture, email and area side by side, slimmer boxes. */
.dock.float .signup { padding: .8rem .9rem .65rem; }
.dock.float .signup h2 { font-size: 1.2rem; line-height: 1.15; margin: 0 0 .2rem; }
.dock.float .signup .lead { font-size: .92rem; line-height: 1.35; margin: 0 0 .45rem; }
.dock.float .signup.has-art .art { width: 3.2rem; margin-bottom: .2rem; }
.dock.float .fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: .5rem; row-gap: .2rem; }
.dock.float .fields label { margin-top: 0; font-size: .78rem; align-self: end; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock.float .fields .f-email { grid-area: 1 / 1; }
.dock.float .fields .f-area { grid-area: 1 / 2; }
.dock.float .fields input { grid-area: 2 / 1; }
.dock.float .fields select { grid-area: 2 / 2; }
.dock.float .fields input, .dock.float .fields select { min-height: 2.6rem; font-size: 1rem; padding: .3rem .6rem; }
.dock.float .fields .btn { grid-column: 1 / -1; margin-top: .45rem; width: 100%; min-height: 2.6rem; padding-block: .4rem; }
.dock.float .fine { font-size: .78rem; margin-top: .4rem; }
.dock.float .result { margin: .4rem 0 0; }
@media (min-width: 640px) {
  .dock.float .signup { padding: .9rem 1.1rem .7rem; }
  .dock.float .signup h2 { font-size: 1.45rem; }
  .dock.float .signup.has-art .art { width: 3.6rem; }
  .dock.float .signup .lead { font-size: .9rem; }
  .dock.float .fields label { font-size: .82rem; }
  .dock.float .fields { grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr) auto; }
  .dock.float .fields .btn { grid-area: 2 / 3; margin-top: 0; width: auto; }
}
.dockclose { position: absolute; top: .45rem; right: .45rem; width: 2.25rem; height: 2.25rem; border: 0; border-radius: 50%; background: transparent; color: var(--ink); font: 700 1.5rem/1 var(--text); cursor: pointer; }
.dockclose:hover { background: rgb(255 255 255 / .7); }
@media (prefers-reduced-motion: reduce) { .dock.float { transition: none; } }

/* The days ahead (/days/): a ribbon of the fortnight's weather under the title, then a card for each day by week. */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.aheadhead { padding-bottom: 1.6rem; }
.ribbon { display: flex; gap: .4rem; overflow-x: auto; margin: 1.2rem -1.05rem 0; padding: .2rem 1.05rem .5rem; scroll-snap-type: x proximity; scrollbar-width: thin; }
.ribbon .rb { flex: none; scroll-snap-align: start; display: grid; justify-items: center; gap: .05rem; width: 3.9rem; padding: .5rem .2rem .45rem; border-radius: 1rem; background: rgb(255 255 255 / .62); text-decoration: none; transition: transform .15s, background .15s; }
.ribbon .rb:hover { background: var(--white); transform: translateY(-2px); }
.ribbon .rb.wknd { background: rgb(255 241 214 / .85); }
.ribbon .rb.now { background: var(--ink); color: var(--white); }
.rb-wd { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; opacity: .75; }
.rb b { font-family: var(--display); font-size: 1.35rem; line-height: 1; }
.rb .wx { width: 2.1rem; height: 2.1rem; }
.rb-t { font-weight: 700; font-size: .9rem; }
.aheadbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem 1rem; margin: 1.1rem 0 0; }
.aheadbar .agepick { margin: 0; }
.pickers { display: flex; flex-direction: column; gap: .5rem; min-width: 0; }
.nappick { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.nappick[hidden], html:not(.js) .nappick { display: none; }
.nappick .muted { margin-right: .3rem; }
.nappick button { font: inherit; font-size: .88rem; font-weight: 700; padding: .45rem .75rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; }
.nappick button:hover { border-color: var(--ink); }
.daywake .wake { grid-template-columns: auto auto; justify-content: start; gap: .5rem; width: max-content; }
.daywake .clabel { color: var(--muted); font-weight: 400; font-size: 1rem; text-transform: none; letter-spacing: 0; }
.daywake select { border: 1.5px solid var(--line); }
.nappick button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.searchlink { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; text-decoration: none; padding: .55rem .9rem; border-radius: 999px; background: var(--white); border: 1.5px solid var(--line); }
.searchlink:hover { border-color: var(--ink); }
.searchlink svg, .finder .q svg, .top nav .find svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; flex: none; }
.week h2 { display: flex; align-items: baseline; flex-wrap: wrap; gap: .2rem .7rem; margin-top: 2rem; }
.week h2 span { font-family: var(--text); font-size: 1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.daycards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20.5rem), 1fr)); }
.dcard { display: flex; flex-direction: column; background: var(--white); border-radius: 1.25rem; box-shadow: 0 1px 2px rgb(18 35 63 / .06), 0 6px 22px -12px rgb(18 35 63 / .25); overflow: hidden; scroll-margin-top: 1rem; }
.dcard:target { outline: 3px solid var(--sun); }
.dc-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .2rem .6rem; padding: 1rem 1.1rem .9rem; background: linear-gradient(160deg, var(--sky-pale), #f7fbfd 70%); border-bottom: 1px solid #e6eef4; }
.dcard.wknd .dc-top { background: linear-gradient(160deg, var(--sun-pale), #fffaf0 70%); }
.dc-date { margin: 0; display: grid; }
.dc-wd { font-size: 1.45rem; font-weight: 800; }
.dc-md { font-family: var(--text); font-size: .95rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.dc-md b { color: var(--ink); }
.dc-tag { grid-row: 2; justify-self: start; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; padding: .15rem .5rem; border-radius: 999px; background: var(--sky); }
.dc-tag.now { background: var(--ink); color: var(--white); }
.dc-tag.wknd { background: var(--sun); }
.dc-wx { grid-row: 1 / span 2; grid-column: 2; display: flex; align-items: center; gap: .35rem; text-align: right; }
.dc-wx .wx { width: 3rem; height: 3rem; order: 2; }
.dc-wx p { margin: 0; display: grid; line-height: 1.2; }
.dc-wx b { font-family: var(--display); font-size: 1.5rem; }
.dc-wx span { font-size: .85rem; font-weight: 700; max-width: 8.5rem; }
.dc-wx small { font-size: .78rem; color: var(--muted); }
.dc-wx.sky-none .wx { width: 2.2rem; height: 2.2rem; opacity: .8; }
.dc-plan { display: block; padding: .95rem 1.1rem .4rem; text-decoration: none; }
.dc-plan[hidden], .dc-more[hidden] { display: none; }
.dc-plan:hover .dc-head { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--sun); }
.dc-plan.none { color: var(--muted); margin: 0; }
.dc-kicker { display: block; font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.dc-head { display: block; font-family: var(--display); font-size: 1.22rem; font-weight: 800; line-height: 1.2; margin: .25rem 0 .55rem; text-wrap: balance; }
.dc-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.dc-steps li { display: grid; grid-template-columns: 4.3rem minmax(0, 1fr); align-items: baseline; font-size: .93rem; line-height: 1.3; }
.dc-steps b { font-size: .82rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.dc-steps li span { position: relative; padding-left: .95rem; }
.dc-steps li span::before { content: ""; position: absolute; left: 0; top: .38em; width: .55rem; height: .55rem; border-radius: 50%; background: var(--grass); }
.dc-steps .st-nap span { color: var(--muted); }
.dc-steps .st-nap span::before { background: var(--night); }
.dc-go { display: inline-block; margin-top: .65rem; font-weight: 800; font-size: .92rem; padding: .35rem .8rem; border-radius: 999px; background: var(--sun); }
.dc-plan:hover .dc-go { background: #ffd65e; }
.dc-more { margin-top: auto; padding: .75rem 1.1rem 1rem; border-top: 1px dashed var(--line); background: #fbfdfe; }
.dc-more > p { margin: 0 0 .4rem; }
.dc-count { font-size: .93rem; }
.dc-count b { font-family: var(--display); font-size: 1.15rem; }
.dc-picks { list-style: none; margin: 0 0 .5rem; padding: 0; display: grid; gap: .35rem; }
.dc-picks li { display: grid; grid-template-columns: 4.3rem minmax(0, 1fr); align-items: baseline; font-size: .9rem; line-height: 1.3; }
.dc-picks b { font-size: .82rem; color: var(--muted); white-space: nowrap; }
.dc-picks small { display: block; color: var(--muted); font-size: .8rem; }
.dc-all { font-weight: 800; font-size: .92rem; text-decoration-color: var(--sun); text-decoration-thickness: 2px; }

/* Search (/search/): one box, a few filters, then events by day and places, as cards. */
.searchhead { padding-bottom: 1.4rem; }
.finder { margin-top: 1.1rem; display: grid; gap: .7rem; }
.finder .q { display: flex; align-items: center; gap: .6rem; background: var(--white); border-radius: 1rem; padding: 0 1rem; box-shadow: 0 2px 0 rgb(18 35 63 / .06), 0 10px 26px -14px rgb(18 35 63 / .45); border: 2px solid transparent; }
.finder .q:focus-within { border-color: var(--ink); }
.finder .q svg { width: 1.35rem; height: 1.35rem; color: var(--muted); }
.finder input[type=search] { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 600 1.15rem var(--text); color: var(--ink); padding: .95rem 0; }
.finder input[type=search]::placeholder { color: #8796ae; font-weight: 400; }
.kinds, .toggles { display: flex; flex-wrap: wrap; gap: .35rem; }
.kinds button, .toggles button { border: 0; cursor: pointer; font: 700 .95rem var(--text); color: var(--ink); background: rgb(255 255 255 / .7); padding: .5rem .95rem; border-radius: 999px; min-height: 2.5rem; }
.kinds button:hover, .toggles button:hover { background: var(--white); }
.kinds button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.toggles button[aria-pressed="true"] { background: var(--sun); }
.toggles button[aria-pressed="true"]::before { content: "✓ "; }
.filters { display: flex; flex-wrap: wrap; align-items: end; gap: .55rem; }
.filters label { display: grid; gap: .15rem; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.filters select { font: 600 .95rem var(--text); color: var(--ink); background: var(--white); border: 1.5px solid var(--line); border-radius: .7rem; padding: .5rem 2rem .5rem .7rem; min-height: 2.5rem; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: right 1rem center, right .7rem center; background-size: .3rem .3rem; background-repeat: no-repeat; text-transform: none; letter-spacing: 0; }
.found { margin: 1.1rem 0 0; font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .8rem; }
.found .clear { border: 0; background: none; font: 700 .95rem var(--text); color: var(--muted); text-decoration: underline; cursor: pointer; padding: .3rem 0; }
.group h2 { display: flex; align-items: center; gap: .55rem; margin-top: 1.6rem; }
.group h2 span { font-family: var(--text); font-size: .9rem; font-weight: 700; background: var(--white); border: 1.5px solid var(--line); border-radius: 999px; padding: .05rem .6rem; }
.dayhead { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 1.4rem 0 .5rem; }
.hits { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 30rem), 1fr)); }
.hit { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr); gap: .8rem; background: var(--white); border-radius: 1rem; padding: .9rem 1rem; box-shadow: 0 1px 2px rgb(18 35 63 / .06); border: 1px solid #e7eef3; }
.hit.planned { border-color: var(--sun); box-shadow: 0 0 0 1px var(--sun); }
.hit .when { display: grid; align-self: start; align-content: start; text-align: center; background: var(--sky-pale); border-radius: .7rem; padding: .45rem .2rem; line-height: 1.15; }
.hit .when b { font-family: var(--display); font-size: 1rem; }
.hit .when small { font-size: .74rem; color: var(--muted); }
.hit .kind { align-self: start; text-align: center; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; border-radius: .7rem; padding: .7rem .2rem; background: var(--grass-pale); color: var(--pine); }
.hit.pl-library .kind, .hit.pl-museum .kind { background: var(--berry-pale); color: var(--berry); }
.hit.pl-farm .kind, .hit.pl-garden .kind { background: var(--sun-pale); color: #7a5600; }
.hit h3 { font-size: 1.1rem; margin: 0; line-height: 1.25; }
.hit .where { margin: .15rem 0 0; color: var(--muted); font-size: .9rem; }
.hit .tags { display: flex; flex-wrap: wrap; gap: .3rem; margin: .45rem 0 0; }
.tag { font-size: .76rem; font-weight: 700; padding: .12rem .5rem; border-radius: 999px; background: #eef3f7; color: var(--ink); }
.tag.free { background: var(--grass-pale); color: var(--pine); }
.tag.drop { background: var(--sky-pale); }
.tag.reg { background: var(--sun-pale); color: #7a5600; }
.tag.in { background: var(--berry-pale); color: var(--berry); }
.tag.out { background: var(--grass-pale); color: var(--pine); }
.tag.age { max-width: 14rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: none; border: 1px solid var(--line); color: var(--muted); }
.hit .about { margin: .45rem 0 0; font-size: .9rem; line-height: 1.45; color: #2d3b57; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hit .links { display: flex; flex-wrap: wrap; gap: .35rem .9rem; margin: .55rem 0 0; }
.hit .go { font-weight: 700; font-size: .9rem; }
.hit .go.plan { text-decoration: none; background: var(--sun); padding: .15rem .65rem; border-radius: 999px; }
.more { display: block; margin: 1rem auto 0; border: 1.5px solid var(--ink); background: var(--white); color: var(--ink); font: 800 1rem var(--display); padding: .7rem 1.4rem; border-radius: 999px; cursor: pointer; }
.more:hover { background: var(--sun-pale); }
@media (max-width: 460px) { .hit { grid-template-columns: 3.9rem minmax(0, 1fr); gap: .65rem; padding: .8rem; } .filters label { flex: 1 1 8rem; } .filters select { width: 100%; } }

/* The header's search: a magnifier beside the links. */
.top nav .find { display: inline-flex; align-items: center; padding-inline: .55rem; }

/* Signed in (page.js's SIGNED_IN_SCRIPT sets the class): the [data-in] part replaces the [data-out] pitch. */
[data-in] { display: none; }
html.signed-in [data-out] { display: none; }
html.signed-in [data-in] { display: revert; }

/* "Your places": the keep button on a place's page, and the kept ones on the home page and /places/. */
.keepbar { margin: .2rem 0 1rem; }
.keepbar[hidden], .yours[hidden], .yours-how[hidden] { display: none; }
.keep { background: var(--sun-pale); border: 2px solid var(--sun); color: var(--ink); font: inherit; font-family: var(--display); font-weight: 700; padding: .45rem .9rem; border-radius: .7rem; cursor: pointer; }
.keep:hover, .keep[aria-pressed="true"] { background: var(--sun); }
.keepbar .it-facts { display: block; margin-top: .4rem; }
.yours { margin: 1.5rem 0; }
.yours h2 { margin-bottom: .4rem; }
