/* Hidden Niagara — colours taken from the printed signs (Signs.pptx). Mobile first. */
:root {
  --blue: #0070C0;        /* sign heading blue */
  --blue-dark: #005A9C;
  --navy: #0B2A3A;        /* sign border */
  --sky: #8ECDF0;         /* logo background */
  --sky-soft: #EAF6FD;
  --paper: #F5FAFD;
  --ink: #11232F;
  --muted: #4A5D6A;
  --line: #D5E3EC;
  --white: #FFFFFF;

  /* one colour per theme, each 4.5:1+ with white text */
  --t-falls: #0070C0;
  --t-power: #9A5B00;
  --t-danger: #B83A2A;
  --t-senses: #167A63;
  --t-people: #7A4E2D;

  --script: "Kaushan Script", "Brush Script MT", cursive;
  --serif: "Literata", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;

  --nav: 60px;
  --gut: 16px;
  --radius: 14px;
  color-scheme: light;
}
@media (min-width: 760px) { :root { --gut: 32px; --nav: 68px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dark); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gut); }
.wrap--read { max-width: calc(720px + 2 * var(--gut)); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 8px; color: #fff; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 30; height: var(--nav); background: var(--white); border-bottom: 3px solid var(--navy); }
.topbar__row { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.brand img { width: 40px; height: 40px; }
.brand__name { font: 400 26px/1 var(--script); color: var(--blue); white-space: nowrap; }
.menu-btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px;
  border: 2px solid var(--navy); border-radius: 999px; background: var(--white); color: var(--navy);
  font: 700 16px/1 var(--sans); cursor: pointer;
}
.menu-btn:hover { background: var(--sky-soft); }
.menu-btn__bars, .menu-btn__bars::before, .menu-btn__bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s; }
.menu-btn__bars::before, .menu-btn__bars::after { content: ""; position: absolute; left: 0; }
.menu-btn__bars::before { top: -6px; } .menu-btn__bars::after { top: 6px; }
.menu-btn[aria-expanded="true"] .menu-btn__bars { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-btn__bars::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- menu sheet (signs grouped by theme) ---------- */
.sheet { position: fixed; inset: var(--nav) 0 0 0; z-index: 25; background: var(--white); overflow-y: auto; overscroll-behavior: contain; }
.sheet[hidden] { display: none; }
.sheet__inner { max-width: 1120px; margin: 0 auto; padding: 16px var(--gut) 48px; }
.sheet__top { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.sheet__home { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; background: var(--sky-soft); color: var(--navy); font-weight: 700; text-decoration: none; }
.sheet__theme { margin: 24px 0 6px; font: 800 14px/1.2 var(--sans); letter-spacing: .02em; color: var(--theme, var(--navy)); }
.sheet ul { list-style: none; margin: 0; padding: 0; }
.sheet li a { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font: 600 17px/1.3 var(--serif); }
.sheet li a:hover, .sheet li a[aria-current="page"] { color: var(--blue-dark); }
.sheet li a[aria-current="page"] .num { box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--theme); }
.num { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--theme, var(--blue)); color: #fff; font: 800 15px/1 var(--sans); }
@media (min-width: 900px) {
  .sheet__inner { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 40px; }
  .sheet__top { grid-column: 1 / -1; }
}
body.menu-open { overflow: hidden; }

/* theme colour hooks */
[data-theme="falls"]  { --theme: var(--t-falls); }
[data-theme="power"]  { --theme: var(--t-power); }
[data-theme="danger"] { --theme: var(--t-danger); }
[data-theme="senses"] { --theme: var(--t-senses); }
[data-theme="people"] { --theme: var(--t-people); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: 999px; font: 700 17px/1 var(--sans); text-decoration: none; transition: transform .15s, background-color .15s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--primary { background: var(--blue); color: #fff; border: 2px solid var(--blue); }
.btn--primary:hover { background: var(--blue-dark); color: #fff; }
.btn--secondary { background: var(--white); color: var(--navy); border: 2px solid var(--navy); }
.btn--secondary:hover { background: var(--sky-soft); color: var(--navy); }

/* ---------- number badge (looks like the sign's framed logo) ---------- */
.badge {
  flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: var(--theme, var(--blue)); color: #fff; font: 800 30px/1 var(--serif);
  box-shadow: 0 0 0 4px var(--white), 0 0 0 7px var(--navy);
}
.badge--sm { width: 44px; height: 44px; font-size: 20px; box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--navy); }

/* ---------- sign page ---------- */
.sign { padding: 22px 0 8px; }
.sign__meta { display: flex; align-items: center; gap: 16px; margin: 6px 0 14px 7px; }
.sign__meta-text { display: flex; flex-direction: column; gap: 2px; }
.sign__count { font: 700 15px/1.2 var(--sans); color: var(--navy); }
.sign__theme { font: 700 15px/1.2 var(--sans); color: var(--theme); text-decoration: none; }
.sign__theme:hover { text-decoration: underline; color: var(--theme); }
.sign__title { margin: 0; font: 800 clamp(30px, 7.4vw, 48px)/1.08 var(--serif); letter-spacing: -0.015em; color: var(--blue); text-wrap: balance; }
.sign__tagline { margin: 8px 0 18px; font: italic 400 19px/1.4 var(--serif); color: var(--muted); }

.story { font: 400 18px/1.7 var(--serif); }
.story p { margin: 0 0 1.05em; max-width: 64ch; }
.story h2 { margin: 1.6em 0 .5em; font: 800 24px/1.2 var(--serif); color: var(--navy); }
.story ul { padding-left: 1.2em; margin: 0 0 1.1em; }
.story li { margin-bottom: .45em; }
.story a { color: var(--blue-dark); font-weight: 600; }

/* photos: full-bleed on phones, framed like the sign on wider screens */
.photo { margin: 22px calc(-1 * var(--gut)) 26px; position: relative; overflow: hidden; background: var(--sky-soft); }
.photo img { width: 100%; max-height: 72vh; object-fit: cover; transition: transform .6s ease; }
@media (min-width: 760px) {
  .photo { margin-left: 0; margin-right: 0; border: 4px solid var(--navy); border-radius: var(--radius); }
}
.diagram { margin: 22px 0 26px; border: 4px solid var(--navy); border-radius: var(--radius); overflow: hidden; }
.diagram svg { display: block; width: 100%; height: auto; max-height: 560px; }
.d-lake { font: italic 600 18px var(--serif); fill: var(--navy); }
.d-label { font: 700 16px var(--sans); fill: var(--ink); }
.d-small { font: 400 14px var(--sans); fill: var(--muted); }

.sign__where { display: flex; gap: 12px; align-items: flex-start; margin: 28px 0 18px; padding: 14px 16px; background: var(--sky-soft); border-radius: var(--radius); font-size: 16px; }
.pin { flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--theme, var(--blue)); box-shadow: inset 0 0 0 5px var(--theme, var(--blue)), inset 0 0 0 9px #fff; }

/* the big "next sign" card */
.next {
  position: relative; display: flex; flex-direction: column; gap: 6px; margin: 8px 0 16px; padding: 18px 64px 20px 20px;
  background: var(--navy); color: #fff; border-radius: var(--radius); text-decoration: none; overflow: hidden;
  transition: transform .15s;
}
.next::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: var(--sky); }
.next:hover { color: #fff; transform: translateY(-2px); }
.next__label { font: 700 14px/1 var(--sans); color: var(--sky); }
.next__row { display: flex; align-items: center; gap: 12px; }
.next__num { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--blue); font: 800 19px/1 var(--serif); box-shadow: 0 0 0 3px var(--navy), 0 0 0 5px var(--sky); }
.next__title { font: 800 21px/1.2 var(--serif); }
.next__where { font-size: 15px; color: #cfe4f1; }
.next__arrow { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font: 700 30px/1 var(--sans); transition: transform .15s; }
.next:hover .next__arrow { transform: translate(4px, -50%); }

.sign__nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin: 0 0 24px; font-size: 16px; }
.sign__nav a { display: inline-flex; align-items: center; min-height: 44px; }
.credits { margin: 0 0 28px; font-size: 14px; color: var(--muted); }
.credits__title { margin: 0 0 4px; font: 700 14px/1.3 var(--sans); color: var(--muted); }
.credits ul { margin: 0; padding: 0; list-style: none; }
.credits a { color: var(--muted); }

/* ---------- home ---------- */
.hero { position: relative; padding-top: 24px; background: linear-gradient(var(--white), var(--sky-soft)); }
.hero__inner { text-align: center; padding-bottom: 24px; }
.hero__logo { width: 112px; height: 112px; margin: 0 auto 4px; }
.hero__title { margin: 0; font: 400 clamp(54px, 15vw, 104px)/1.05 var(--script); color: var(--blue); }
.hero__sub { max-width: 34ch; margin: 10px auto 20px; font: 400 19px/1.45 var(--serif); color: var(--ink); }
.hero__actions { display: flex; flex-direction: column; gap: 10px; max-width: 420px; margin: 0 auto; }
@media (min-width: 560px) { .hero__actions { flex-direction: row; justify-content: center; } }
.hero__photo { margin: 0; border: 0; border-radius: 0; }
.hero__photo img { max-height: 62vh; width: 100%; }
@media (min-width: 760px) { .hero__photo { max-width: 1120px; margin: 0 auto; border: 4px solid var(--navy); border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; } }
.hero::after { content: ""; display: block; height: 56px; margin-top: -40px; position: relative; background: url(/img/waves.webp) center bottom / cover no-repeat; }

.section { padding: 48px 0; }
.section__title { margin: 0 0 8px; font: 800 clamp(28px, 6vw, 40px)/1.15 var(--serif); color: var(--blue); }
.lead { margin: 0 0 20px; font: 400 18px/1.5 var(--serif); color: var(--muted); max-width: 60ch; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding: 20px 20px 18px 84px; min-height: 96px; border: 3px solid var(--navy); border-radius: var(--radius); background: var(--white); }
.step__num { position: absolute; left: 18px; top: 18px; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--blue); color: #fff; font: 800 22px/1 var(--serif); }
.step h3 { margin: 0 0 4px; font: 800 20px/1.2 var(--serif); color: var(--navy); }
.step p { margin: 0; font-size: 16px; color: var(--muted); }

.section--map { background: var(--paper); }
.map-views { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.map-views[hidden] { display: none; }
.map-wrap { padding-left: 0; padding-right: 0; }
@media (min-width: 760px) { .map-wrap { padding-left: var(--gut); padding-right: var(--gut); } }
.map { height: min(72vh, 620px); min-height: 380px; background: var(--sky-soft); border-block: 4px solid var(--navy); z-index: 1; }
@media (min-width: 760px) { .map { border: 4px solid var(--navy); border-radius: var(--radius); } }
.map-pin { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--theme, var(--blue)); color: #fff; font: 800 15px/1 var(--sans); box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--navy), 0 3px 8px rgba(0,0,0,.35); }
.map-pin.is-active { transform: scale(1.25); }
.leaflet-popup-content { font: 400 15px/1.4 var(--sans); margin: 12px 14px; }
.leaflet-popup-content a.popup-link { display: block; font: 800 17px/1.25 var(--serif); color: var(--blue-dark); margin-bottom: 4px; }
.leaflet-container a.leaflet-popup-close-button { width: 32px; height: 32px; font-size: 22px; }

.anchor { display: block; position: relative; top: calc(-1 * var(--nav)); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 18px; }
.chip { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--theme, var(--navy)); background: var(--white); color: var(--theme, var(--navy)); font: 700 16px/1 var(--sans); cursor: pointer; transition: background-color .15s, color .15s, transform .15s; }
.chip:hover { transform: translateY(-2px); }
.chip[aria-pressed="true"] { background: var(--theme, var(--navy)); color: #fff; }

.sign-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 760px) { .sign-list { grid-template-columns: 1fr 1fr; gap: 12px 20px; } }
.sign-list li[hidden] { display: none; }
.sign-row { display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 12px 14px 12px 12px; border: 2px solid var(--line); border-left: 8px solid var(--theme); border-radius: var(--radius); background: var(--white); color: var(--ink); text-decoration: none; transition: transform .15s, border-color .15s; }
.sign-row:hover { transform: translateY(-2px); border-color: var(--theme); color: var(--ink); }
.sign-row .badge--sm { margin-left: 5px; }
.sign-row__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.sign-row__title { font: 800 18px/1.25 var(--serif); color: var(--navy); }
.sign-row__where { font-size: 15px; color: var(--muted); }
.sign-row__theme { flex: none; align-self: flex-start; padding: 3px 9px; border-radius: 999px; background: var(--theme); color: #fff; font: 700 13px/1.4 var(--sans); }
@media (max-width: 380px) { .sign-row__theme { display: none; } }

.why { background: var(--sky-soft); }
.why__credit { font-size: 14px; color: var(--muted); }
.why__credit a { color: var(--muted); }

/* ---------- about ---------- */
.credit-list { font: 400 15px/1.5 var(--sans); }

/* ---------- footer with the sign's watercolour waves ---------- */
.footer { margin-top: 24px; color: #e6f1f8; }
.footer__waves { height: 70px; background: url(/img/waves.webp) center bottom / cover no-repeat; }
.footer__body { background: var(--navy); padding: 28px 0 calc(32px + env(safe-area-inset-bottom)); }
.footer__brand { margin: 0; font: 400 34px/1.1 var(--script); color: var(--sky); }
.footer__line { margin: 6px 0 16px; font-size: 16px; }
.footer__themes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.footer__themes a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1.5px solid #4d7690; border-radius: 999px; color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; }
.footer__themes a:hover { background: #163b50; color: #fff; }
.footer__legal { margin: 6px 0; font-size: 14px; color: #b9d0de; }
.footer__legal a { color: #fff; }
.footer :focus-visible { outline-color: var(--sky); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* reading pages: header and footer line up with the story column */
.reading .topbar .wrap, .reading .footer .wrap { max-width: calc(720px + 2 * var(--gut)); }
.why .story p { max-width: 64ch; }
