/* Tusmore Wading Pool: "Australian summer at the local pool". Pool-tile mosaic with a lifted tile or two (the whole
   story in one picture), sand bands with caustic light, deep-water teal for the action. Mobile first. */
:root {
  --aqua: #3EC6D9; --teal: #0E5E6F; --teal-deep: #0A4552; --sun: #FFC93C; --sand: #F6EBD9; --coral: #F2685C;
  --bg: #FFFDF8; --ink: #12333A; --muted: #4E6A70; --card: #FFFFFF; --line: #E4D8C2;
  --tile: #8EE0EA; --tile-2: #6FD3E0; --grout: #DDF6F9;
  --on-teal: #F2FBFC; --link: #0B6E82;
  --display: 'Fredoka', 'Baloo 2', 'Trebuchet MS', system-ui, sans-serif;
  --body: 'Atkinson Hyperlegible', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --radius: 18px;
  --shadow: 0 6px 18px rgba(14, 94, 111, .12);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #08262D; --ink: #E6F6F8; --muted: #A6C6CC; --card: #0E3640; --line: #1E4C57; --sand: #0B2F37;
    --tile: #1F7F8F; --tile-2: #176B79; --grout: #0E4651; --teal: #0E5E6F; --teal-deep: #062F38; --on-teal: #F2FBFC; --link: #7FE0EC;
    --shadow: 0 6px 18px rgba(0, 0, 0, .35); color-scheme: dark; }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 18px; line-height: 1.55; -webkit-text-size-adjust: 100%; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.1; margin: 0 0 .4em; text-wrap: balance; }
h2 { font-size: clamp(28px, 6vw, 40px); color: var(--teal); }
@media (prefers-color-scheme: dark) { h2 { color: var(--aqua); } }
h3 { font-size: 22px; }
p { margin: 0 0 .8em; }
a { color: var(--link); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 50; background: var(--sun); color: #12333A; padding: 8px 12px; border-radius: 10px; }
.inner { max-width: 1040px; margin: 0 auto; padding-left: max(18px, env(safe-area-inset-left)); padding-right: max(18px, env(safe-area-inset-right)); }
.narrow { max-width: 760px; }
.band { padding-block: 56px; position: relative; }
.big { font-size: clamp(19px, 3.6vw, 22px); }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.num { font-variant-numeric: tabular-nums; }

/* sticky section navigation */
.sections { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--teal-deep) 94%, transparent); backdrop-filter: blur(6px); padding-top: env(safe-area-inset-top); }
.sections-inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; max-width: 1040px; margin: 0 auto; padding: 8px max(12px, env(safe-area-inset-left)); }
.sections-inner::-webkit-scrollbar { display: none; }
.sections a { flex: none; color: var(--on-teal); text-decoration: none; font-weight: 700; font-size: 15px; padding: 8px 12px; border-radius: 999px; }
.sections a:hover, .sections a:focus-visible { background: rgba(255, 255, 255, .14); }

/* the tile mosaic: a grid of small pool tiles, a couple lifted and askew */
.mosaic { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 3px; background: var(--grout); padding: 3px; }
.tile { display: block; aspect-ratio: 1; border-radius: 3px; background: linear-gradient(140deg, var(--tile) 0%, var(--tile-2) 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.tile:nth-child(3n) { background: linear-gradient(140deg, var(--tile-2), var(--tile)); }
.tile:nth-child(7n) { filter: brightness(1.06); }
.tile.lifted { transform: translateY(-5px) rotate(var(--r, 8deg)); box-shadow: 0 8px 10px rgba(10, 69, 82, .35), inset 0 0 0 1px rgba(255, 255, 255, .4); position: relative; z-index: 1; }
.tile.pop { animation: pop .7s cubic-bezier(.22, 1, .36, 1) forwards; }
@keyframes pop { to { transform: translateY(-6px) rotate(var(--r, -9deg)); box-shadow: 0 8px 10px rgba(10, 69, 82, .35); } }
.divider { max-width: 100%; }
.divider .tile { border-radius: 2px; }

/* hero */
.hero { position: relative; overflow: hidden; color: var(--on-teal); background: var(--teal); padding-bottom: 46px; }
.hero-tiles { position: absolute; inset: 0; opacity: .32; gap: 4px; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 20% 0%, rgba(62, 198, 217, .55), transparent 60%), linear-gradient(180deg, rgba(14, 94, 111, .55), rgba(10, 69, 82, .92)); }
.hero-inner { position: relative; max-width: 1040px; margin: 0 auto; padding: 42px max(18px, env(safe-area-inset-left)) 10px; padding-right: max(18px, env(safe-area-inset-right)); }
.hero h1 { font-size: clamp(40px, 10vw, 76px); margin-top: 12px; text-shadow: 0 2px 0 rgba(0, 0, 0, .12); }
.lede { font-size: clamp(19px, 3.8vw, 23px); max-width: 34ch; }
.badge { display: inline-flex; align-items: center; gap: 8px; background: var(--coral); color: #fff; font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: .04em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; margin: 0; }
.badge .dot { width: 10px; height: 10px; border-radius: 50%; background: #fff; }
.counter { display: grid; margin: 22px 0 26px; }
.count { font-family: var(--display); font-weight: 700; font-size: clamp(96px, 30vw, 190px); line-height: .9; color: var(--sun); font-variant-numeric: tabular-nums; text-shadow: 0 4px 0 rgba(0, 0, 0, .15); }
.count-label { font-family: var(--display); font-weight: 600; font-size: clamp(20px, 4.4vw, 26px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 40px; fill: var(--sand); }
@media (prefers-reduced-motion: no-preference) {
  .wave { animation: wave 9s ease-in-out infinite alternate; transform-origin: center bottom; }
  @keyframes wave { from { transform: scaleY(1); } to { transform: scaleY(1.4) translateX(-2%); } }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 22px; border-radius: 999px; font: 700 18px/1 var(--display); text-decoration: none; border: 2px solid transparent; cursor: pointer; background: rgba(255, 255, 255, .14); color: var(--on-teal); border-color: rgba(255, 255, 255, .5); }
.btn.primary { background: var(--sun); color: #12333A; border-color: var(--sun); box-shadow: 0 4px 0 #D9A21A; }
.btn.primary:active { transform: translateY(2px); box-shadow: 0 2px 0 #D9A21A; }
.btn.light { background: rgba(255, 255, 255, .12); }
.big-btn { min-height: 60px; font-size: 21px; padding: 0 30px; }

/* sand bands with caustic light */
.sand { background: var(--sand); overflow: hidden; }
.sand::before { content: ""; position: absolute; inset: -20%; pointer-events: none; opacity: .35;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .7), transparent) 10% 20% / 180px 120px no-repeat,
              radial-gradient(closest-side, rgba(255, 255, 255, .55), transparent) 70% 60% / 220px 140px no-repeat,
              radial-gradient(closest-side, rgba(62, 198, 217, .25), transparent) 40% 85% / 260px 160px no-repeat; }
@media (prefers-color-scheme: dark) { .sand::before { opacity: .12; } }
@media (prefers-reduced-motion: no-preference) { .sand::before { animation: caustic 14s ease-in-out infinite alternate; } @keyframes caustic { to { transform: translate(4%, -3%) scale(1.06); } } }
.sand > .inner { position: relative; }

/* facts */
.facts { display: grid; gap: 10px; margin: 24px 0 0; }
.fact { background: var(--card); border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow); }
.fact dt { font-weight: 700; color: var(--muted); font-size: 15px; }
.fact dd { margin: 2px 0 0; }
.src { display: block; font-size: 14px; color: var(--muted); margin-top: 4px; }
.src a { color: var(--muted); }

/* timeline: dots are pool tiles */
.timeline { list-style: none; margin: 24px 0 0; padding: 0 0 0 28px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 3px; border-radius: 2px; background: var(--grout); }
.timeline li { position: relative; padding: 0 0 22px; }
.timeline li::before { content: ""; position: absolute; left: -27px; top: 5px; width: 18px; height: 18px; border-radius: 4px; background: linear-gradient(140deg, var(--tile), var(--tile-2)); box-shadow: 0 0 0 3px var(--bg); }
.timeline li:first-child::before { background: var(--coral); transform: rotate(-12deg) translateY(-3px); box-shadow: 0 0 0 3px var(--bg), 0 5px 8px rgba(10, 69, 82, .3); }
.timeline time { font-family: var(--display); font-weight: 600; color: var(--teal); }
@media (prefers-color-scheme: dark) { .timeline time { color: var(--aqua); } }
.timeline p { margin: 2px 0 0; }
.instagram-media { margin: 12px 0 0 !important; }

/* cards */
.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin-top: 22px; }
.card { background: var(--card); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.card h3 { color: var(--teal); }
@media (prefers-color-scheme: dark) { .card h3 { color: var(--aqua); } }
.card p:last-child { margin-bottom: 0; }

/* the proposal */
.cost { background: var(--card); border: 3px dashed var(--aqua); border-radius: var(--radius); padding: 16px 20px; margin: 18px 0; }
.cost .sum { font-family: var(--display); font-size: clamp(22px, 5vw, 28px); margin: 6px 0 0; }

/* take action */
.teal { background: var(--teal); color: var(--on-teal); }
.teal h2 { color: var(--sun); }
.teal a:not(.btn) { color: #BFF1F7; }
.people { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.people li { background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .2); border-radius: 16px; padding: 14px 16px; display: grid; gap: 2px; min-width: 0; }
.people strong { font-family: var(--display); font-size: 21px; }
.people .why { font-size: 15px; opacity: .85; }
.people a { word-break: break-all; font-size: 15px; }
.secondary { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.share-fallback { margin-top: 18px; }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; }
.share-row a, .share-row button { font: 700 16px var(--body); color: var(--on-teal); background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; padding: 10px 16px; text-decoration: none; cursor: pointer; }

/* updates, footer */
.updates { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.updates time { font-weight: 700; color: var(--muted); font-size: 15px; }
.updates p { margin: 0; }
.foot { background: var(--teal-deep); color: var(--on-teal); padding-block: 36px calc(110px + env(safe-area-inset-bottom)); font-size: 16px; }
.foot a { color: #BFF1F7; }
.foot summary { cursor: pointer; font-weight: 700; }

/* slim share bar on phones, after the hero has scrolled away */
.sticky-share { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: center; padding: 10px max(16px, env(safe-area-inset-left)) calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, transparent, rgba(10, 69, 82, .85) 40%); }
.sticky-share .btn { min-width: 220px; }
@media (min-width: 900px) { .sticky-share { display: none !important; } }

@media (prefers-reduced-motion: reduce) { .tile.pop { animation: none; transform: translateY(-6px) rotate(var(--r, -9deg)); } }

/* before the season starts, the hero says "Closed since …" instead of a number */
.count-text { font-family: var(--display); font-weight: 700; font-size: clamp(40px, 11vw, 72px); line-height: 1; color: var(--sun); text-shadow: 0 3px 0 rgba(0, 0, 0, .15); margin-bottom: 8px; }
.count-label { max-width: 32ch; }

/* where to cool off */
.places { display: grid; gap: 14px; margin-top: 18px; }
@media (min-width: 700px) { .places { grid-template-columns: 1fr 1fr; } }
.places .card h3 { margin-bottom: 2px; }
.places .where { color: var(--muted); font-size: 15px; margin-bottom: 8px; }
.free { display: inline-block; vertical-align: middle; font: 700 13px var(--body); background: var(--sun); color: #12333A; border-radius: 999px; padding: 2px 9px; margin-left: 4px; }

/* report a mistake */
.report { display: grid; gap: 14px; margin-top: 18px; background: var(--card); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.report label { display: block; font-weight: 700; }
.report label .muted { font-weight: 400; }
.report textarea, .report input { display: block; margin-top: 6px; font: 17px/1.4 var(--body); color: var(--ink); background: var(--bg); border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; width: 100%; }
.report textarea:focus, .report input:focus { border-color: var(--aqua); outline: none; }
.report .btn { justify-self: start; }
.report .done { background: color-mix(in srgb, var(--aqua) 20%, var(--card)); border-radius: 12px; padding: 10px 14px; margin: 0; font-weight: 700; }

/* arriving at the report form from a link: highlight it so it's obvious where you landed */
#report:target .report, #report:target > .inner > p.muted { outline: 3px solid var(--sun); outline-offset: 4px; }
@media (prefers-reduced-motion: no-preference) { #report:target h2 { animation: nudge .8s ease-out 1; } @keyframes nudge { 30% { transform: translateX(6px); } 60% { transform: translateX(-3px); } } }
.facts-note { margin: 14px 0 0; font-size: 15px; }

/* we miss this pool */
.miss-line { margin: 18px 0 0; }
.miss-line a { color: var(--on-teal); font-weight: 700; text-decoration-color: rgba(255, 255, 255, .5); }
.miss-line span[aria-hidden] { color: var(--coral); }
.miss-total { margin: 18px 0; }
.miss-big { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 6vw, 36px); color: var(--teal); margin: 0 0 4px; }
@media (prefers-color-scheme: dark) { .miss-big { color: var(--aqua); } }
.miss-big .num { color: var(--coral); }
.miss { display: grid; gap: 16px; margin-top: 18px; }
.miss-fields { display: grid; gap: 14px; }
@media (min-width: 600px) { .miss-fields { grid-template-columns: 1fr 1fr; } }
.miss label { display: block; font-weight: 700; }
.miss label .muted { font-weight: 400; }
.miss select { display: block; width: 100%; margin-top: 6px; font: 17px var(--body); color: var(--ink); background: var(--card); border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; min-height: 48px; }
.miss .btn { justify-self: start; }
.miss-done { font-family: var(--display); font-weight: 600; font-size: 22px; color: var(--teal); margin: 0; }
@media (prefers-color-scheme: dark) { .miss-done { color: var(--aqua); } }

/* the byline at the very bottom */
.byline { margin: 28px auto 0; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .18); font-family: var(--display); font-weight: 500; font-size: 19px; line-height: 1.45; max-width: 46ch; text-align: center; color: #DDF6F9; }
