/* Toad Hall - sample redesign */
:root {
  --paper: #f6f0e3;
  --paper-2: #ede4d0;
  --card: #fffdf8;
  --ink: #2a2922;
  --muted: #615b4d;
  --green: #4d6a2c;
  --green-dark: #2f4419;
  --rust: #a5462a;
  --gold: #c9a24a;
  --line: #d9cdb2;
  --shadow: 0 1px 2px rgba(60, 45, 20, .12), 0 8px 24px rgba(60, 45, 20, .12);
  --serif: "Literata", Georgia, serif;
  --display: "Fraunces", Georgia, serif;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 19px/1.65 var(--serif);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--rust); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* Header: the White Mountains at dusk with clouds and pines, the logo as an old inn's hanging sign,
   the menu as little green road signs, and a railroad along the bottom */
.site-head {
  position: relative; overflow: hidden; color: #f3ead2;
  background: linear-gradient(180deg, #24371a 0%, var(--green-dark) 55%, #3a5422 100%);
}
.head-hills { position: absolute; left: 0; right: 0; bottom: 15px; width: 100%; height: 78%; pointer-events: none; }
.head-trees { position: absolute; left: 0; bottom: 14px; width: 100%; height: 26px; pointer-events: none; }
.head-clouds i {
  position: absolute; top: 14%; left: -200px; width: 150px; height: 26px; border-radius: 30px; opacity: .14;
  background: #fff; filter: blur(3px); animation: cloud-drift 95s linear infinite;
}
.head-clouds i::before, .head-clouds i::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.head-clouds i::before { width: 56px; height: 44px; left: 24px; top: -20px; }
.head-clouds i::after { width: 70px; height: 52px; left: 62px; top: -28px; }
.head-clouds i + i { top: 34%; transform: scale(.7); animation-duration: 140s; animation-delay: -70s; opacity: .1; }
@keyframes cloud-drift { from { left: -200px; } to { left: 105%; } }
.site-head .wrap {
  position: relative; max-width: 1280px; display: flex; align-items: center; justify-content: space-between;
  gap: 10px 20px; padding-top: 12px; padding-bottom: 30px; flex-wrap: wrap;
}
.brand { display: block; color: inherit; text-decoration: none; flex: none; align-self: flex-start; }
.brand:hover { color: inherit; }
.brand-vane { display: block; width: 303px; height: auto; overflow: visible; filter: drop-shadow(0 4px 6px rgba(0,0,0,.35)); }
.brand-vane .vane-arrow { transform-origin: 58px 58px; animation: vane-turn 11s ease-in-out infinite; }
.brand:hover .vane-arrow, .brand:focus-visible .vane-arrow { animation-duration: 2.4s; }   /* a gust */
@keyframes vane-turn {
  0%, 100% { transform: scaleX(1); } 25% { transform: scaleX(.5); } 45% { transform: scaleX(.92); }
  65% { transform: scaleX(-.45); } 82% { transform: scaleX(.7); }
}
.vane-name, .vane-sub { stroke: #1d3313; stroke-width: 4px; paint-order: stroke; stroke-linejoin: round; }
.vane-name { font: 600 45px/1 var(--display); fill: #fff; }
.vane-sub { font: 600 28px/1 "Caveat", cursive; fill: #d9b45a; }
.site-head .nav { margin-top: 18px; }
@media (prefers-reduced-motion: reduce) { .brand-vane .vane-arrow, .head-clouds i { animation: none; } }

/* each menu item is a little green highway sign; the page you are on is a yellow one */
.nav { display: flex; flex-wrap: wrap; gap: 7px; }
.nav a {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: #fff;
  background: #1f6b3d; border-radius: 6px; padding: 7px 10px 6px;
  font: 700 14px/1 "Overpass", Arial, sans-serif; letter-spacing: .3px;
  box-shadow: inset 0 0 0 2px #1f6b3d, inset 0 0 0 3.5px #fff, 0 3px 6px rgba(0,0,0,.35);
  transition: transform .15s ease, background .15s ease;
}
.nav a svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.nav a:hover { color: #fff; background: #26804a; transform: translateY(-2px) rotate(-1.5deg); box-shadow: inset 0 0 0 2px #26804a, inset 0 0 0 3.5px #fff, 0 6px 10px rgba(0,0,0,.35); }
.nav a[aria-current] {
  background: #f2c230; color: #2a2922;
  box-shadow: inset 0 0 0 2px #f2c230, inset 0 0 0 3.5px #2a2922, 0 3px 6px rgba(0,0,0,.35);
}
.nav a[aria-current]:hover { color: #2a2922; }

/* rails and ties on a bed of ballast */
.head-rails {
  position: relative; height: 13px; border-top: 2px solid var(--gold);
  background:
    linear-gradient(#d4d2cb, #8f8c84) 0 3px / 100% 2px no-repeat,
    linear-gradient(#d4d2cb, #8f8c84) 0 8px / 100% 2px no-repeat,
    repeating-linear-gradient(90deg, #5a3d22 0 6px, transparent 6px 15px) 0 1px / 100% 11px no-repeat,
    radial-gradient(circle at 30% 40%, rgba(255,255,255,.18) 0 1px, transparent 1.5px) 0 0 / 5px 5px,
    #8a7e66;
}

/* Hero */
.hero { padding: 64px 0 20px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow {
  font: 600 14px/1 var(--display); letter-spacing: 2px; text-transform: uppercase;
  color: var(--rust); margin: 0 0 14px;
}
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
.hero h1 { font-size: clamp(38px, 5vw, 58px); color: var(--green-dark); }
.hero p { margin: 0 0 1em; }
.signoff { display: flex; align-items: center; gap: 12px; font: italic 600 28px/1 var(--display); color: var(--green); margin-top: 18px; }
.toad-sm { width: 108px; height: 81px; flex: none; }

/* Road scene under the hero: hills, a road, and the Lazy Daze driving in */
.scene { position: relative; height: 560px; overflow: hidden; margin-top: -10px; }
.scene .hills { position: absolute; left: 0; bottom: 46px; width: 100%; height: 170px; }
/* Faint trees standing on the hills at both ends of the road */
.scene .trees { position: absolute; bottom: 50px; width: min(660px, 47vw); height: auto; aspect-ratio: 380 / 300; overflow: visible; }  /* outer trees reach past the frame; don't slice them */
.scene .trees-left { left: 0; }
.scene .trees-right { right: 0; }
.scene .road {
  position: absolute; left: 0; right: 0; bottom: 0; height: 50px; background: #4a4842;
  border-top: 4px solid #6d8645;
}
.scene .road::after {
  content: ""; position: absolute; left: 0; right: 0; top: 22px; height: 4px;
  background: repeating-linear-gradient(90deg, #e9c45a 0 46px, transparent 46px 86px);
}
.scene .rv {
  position: absolute; bottom: 22px; left: 10%; width: min(400px, 70vw); height: auto; aspect-ratio: 420 / 170;
}
/* With motion on, the script moves the Lazy Daze along the road as the page scrolls. */
.scene.rolling .rv { left: 0; will-change: transform; }

/* Stats as green highway signs */
/* the grassy roadside below the road, where the signs stand on their posts */
.signs {
  padding: 26px 0 40px; border-top: 5px solid #7f9a55;
  background:
    repeating-linear-gradient(100deg, rgba(255,255,255,.05) 0 2px, transparent 2px 9px),
    repeating-linear-gradient(80deg, rgba(0,0,0,.05) 0 2px, transparent 2px 11px),
    linear-gradient(#76924c, #64803f 60%, #5a7538);
}
.signs-row { position: relative; z-index: 0; }
.sign-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.signs .sign { position: relative; }
.signs .sign::after {
  content: ""; position: absolute; left: 50%; bottom: -24px; width: 7px; height: 22px; margin-left: -3.5px;
  background: linear-gradient(90deg, #8f8f88, #c4c4bc 50%, #8f8f88);
}
.sign {
  background: #1f6b3d; color: #fff; border-radius: 10px; padding: 16px 16px 14px;
  box-shadow: inset 0 0 0 3px #1f6b3d, inset 0 0 0 5px #fff, 0 6px 14px rgba(0,0,0,.25);
  text-align: center;
}
.sign b { display: block; font: 700 38px/1.05 "Overpass", "Highway Gothic", Arial, sans-serif; }
.sign span { font: 600 16px/1.3 "Overpass", Arial, sans-serif; }

/* Meet the Lazy Daze */
.ld-band .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.ld-band h2 { font-size: 36px; color: var(--green-dark); }
.ld-photos .polaroid { transform: rotate(-1.5deg); }

/* Small Lazy Daze touches on inner pages */
.page-head { position: relative; }
.head-rv { position: absolute; right: 0; bottom: 14px; width: 210px; height: 85px; }
.next-road {
  display: flex; align-items: center; gap: 22px; margin: 0 0 90px; padding: 18px 24px;
  background: var(--card); border-radius: 6px; box-shadow: var(--shadow); text-decoration: none; color: var(--green-dark);
}
.next-road svg { width: 200px; height: 81px; flex: none; transition: transform .4s ease; }
.next-road:hover svg { transform: translateX(14px); }
.next-road span { font: 600 26px/1.2 var(--display); }
.next-road small { display: block; font: 600 14px/1.4 var(--display); letter-spacing: 2px; text-transform: uppercase; color: var(--rust); }

/* Toad sitting on the footer */
.site-foot { position: relative; }
.foot-toad { position: absolute; right: 8%; top: -52px; width: 92px; height: 69px; }

.polaroids { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 26px; align-items: start; }
.polaroid {
  position: relative; margin: 0; background: var(--card); padding: 12px 12px 40px;
  box-shadow: var(--shadow); border-radius: 2px;
}
.polaroid figcaption {
  position: absolute; left: 0; right: 0; bottom: 10px; text-align: center;
  font: italic 15px/1.2 var(--display); color: var(--muted);
}
.polaroid.p1 { grid-column: 1 / -1; width: 88%; justify-self: center; transform: rotate(-2deg); }
.polaroid.p2 { order: 3; transform: rotate(3deg); margin-top: 6px; }
.polaroid.p3 { order: 2; transform: rotate(-3deg); }

/* Stats */
.stats { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 28px; padding-bottom: 28px; }
.stat b { display: block; font: 600 40px/1 var(--display); color: var(--rust); }
.stat span { font-size: 16px; color: var(--muted); }

/* Sections */
.section { padding: 64px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { font-size: 36px; margin: 0; color: var(--green-dark); }
.section-head p { margin: 0; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: var(--card); border-radius: 6px; overflow: hidden; box-shadow: var(--shadow);
  text-decoration: none; color: var(--ink); display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); color: var(--ink); box-shadow: 0 2px 4px rgba(60,45,20,.14), 0 14px 32px rgba(60,45,20,.18); }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-body { padding: 18px 20px 22px; }
.card h3 { font-size: 24px; margin-bottom: 6px; color: var(--green-dark); }
.card p { margin: 0; font-size: 17px; color: var(--muted); }
.card .count { display: inline-block; margin-top: 12px; font: 600 14px/1 var(--display); letter-spacing: 1px; text-transform: uppercase; color: var(--rust); }
.card.books { background: var(--green-dark); color: #f3ead2; }
.card.books h3, .card.books p { color: #f3ead2; }
.card.books .count { color: var(--gold); }
.book-art { aspect-ratio: 4 / 3; display: grid; place-items: end center; padding: 0 30px; background: #3c5523; }
.book-art div { display: flex; align-items: end; gap: 5px; height: 78%; }
.book-art i { display: block; width: 26px; border-radius: 2px 2px 0 0; }

/* Map teaser */
.map-band { background: var(--paper-2); border-top: 1px solid var(--line); }
.map-band .wrap { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; align-items: center; }
.map-band h2 { font-size: 36px; color: var(--green-dark); }
.mini-map { height: 380px; border-radius: 6px; box-shadow: var(--shadow); border: 6px solid var(--card); }
.btn {
  display: inline-block; background: var(--green); color: #fff; text-decoration: none;
  padding: 12px 22px; border-radius: 999px; font: 600 17px/1 var(--display); margin-top: 8px;
}
.btn:hover { background: var(--green-dark); color: #fff; }

/* Footer */
.site-foot { background: var(--green-dark); color: #d9cfb5; padding: 34px 0; font-size: 16px; }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-foot a { color: #f3ead2; }

/* Campgrounds page */
.page-head { padding: 44px 0 22px; }
.page-head h1 { font-size: clamp(34px, 4.5vw, 50px); color: var(--green-dark); }
.page-head p { color: var(--muted); max-width: 720px; margin: 0; }
.big-map { height: 62vh; min-height: 380px; border-radius: 6px; box-shadow: var(--shadow); border: 6px solid var(--card); }
.filters { display: flex; gap: 12px; flex-wrap: wrap; margin: 30px 0 22px; }
.filters input, .filters select {
  font: inherit; font-size: 17px; padding: 10px 14px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--card); color: var(--ink);
}
.filters input { flex: 1 1 260px; }
.state-group h2 { font-size: 26px; color: var(--green-dark); border-bottom: 2px solid var(--line); padding-bottom: 6px; margin: 36px 0 16px; }
.cg-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.cg {
  background: var(--card); border-radius: 6px; overflow: hidden; box-shadow: var(--shadow);
  text-decoration: none; color: var(--ink);
}
.cg:hover { color: var(--ink); outline: 2px solid var(--gold); }
.cg img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--paper-2); }
.cg div { padding: 10px 14px 14px; }
.cg b { display: block; font: 600 18px/1.25 var(--display); }
.cg span { font-size: 15px; color: var(--muted); }
.leaflet-popup-content { font: 16px/1.4 var(--serif); margin: 12px 14px; }
.leaflet-popup-content img { width: 220px; border-radius: 4px; margin-bottom: 8px; }
.leaflet-popup-content b { font-family: var(--display); font-size: 18px; }

/* Review page */
.crumbs { font-size: 16px; color: var(--muted); margin: 0 0 10px; }
.crumbs a { color: var(--muted); }
.review { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; padding-bottom: 20px; }
.lead { font-size: 22px; line-height: 1.6; }
.lead::first-letter { font: 600 64px/.8 var(--display); float: left; margin: 8px 10px 0 0; color: var(--rust); }
.stamp {
  display: inline-block; border: 2px solid var(--rust); color: var(--rust);
  font: 600 14px/1 var(--display); letter-spacing: 2px; text-transform: uppercase;
  padding: 8px 12px; border-radius: 4px; transform: rotate(-2deg); margin-bottom: 18px;
}
.facts {
  background: var(--card); border-radius: 6px; box-shadow: var(--shadow); padding: 22px 22px 18px;
  position: sticky; top: 20px;
}
.facts h2 { font-size: 22px; color: var(--green-dark); }
.facts dl { margin: 0; font-size: 16px; }
.facts dt { font: 600 13px/1 var(--display); letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-top: 14px; }
.facts dd { margin: 4px 0 0; }
.facts .mini { height: 180px; border-radius: 4px; margin-top: 16px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; align-items: start; margin: 40px 0 70px; }
.shot {
  break-inside: avoid; margin: 0 0 26px; background: var(--card); padding: 10px 10px 14px;
  box-shadow: var(--shadow); border-radius: 3px; cursor: zoom-in;
}
.shot:nth-child(3n+1) { transform: rotate(-.6deg); }
.shot:nth-child(3n+2) { transform: rotate(.5deg); }
.shot img { width: 100%; }
.shot figcaption { font-size: 16px; line-height: 1.5; color: var(--muted); padding: 10px 4px 0; }

.lightbox {
  position: fixed; inset: 0; background: rgba(20, 18, 12, .92); display: none;
  align-items: center; justify-content: center; flex-direction: column; padding: 20px; z-index: 1000;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 76vh; max-width: 92vw; width: auto; height: auto; object-fit: contain; border: 8px solid var(--card); }   /* its real size, never stretched */
.lightbox p { color: #f3ead2; max-width: 680px; text-align: center; margin: 16px 0 0; }
.lightbox button {
  position: absolute; background: none; border: 0; color: #f3ead2; font-size: 44px; cursor: pointer; padding: 10px 18px;
}
.lb-close { top: 10px; right: 10px; }
.lb-prev { left: 6px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 6px; top: 50%; transform: translateY(-50%); }

@media (max-width: 1100px) { .head-rv { display: none; } }
@media (max-width: 900px) {
  .hero .wrap, .map-band .wrap, .review, .ld-band .wrap { grid-template-columns: 1fr; }
  .sign-grid { grid-template-columns: repeat(2, 1fr); gap: 34px 18px; }
  .scene { height: 320px; }
  .scene .hills { height: 130px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .stats .wrap { grid-template-columns: repeat(2, 1fr); }
  .facts { position: static; }
}
@media (max-width: 600px) {
  body { font-size: 18px; }
  .wrap { padding: 0 16px; }
  .hero { padding: 36px 0 10px; }
  .sign b { font-size: 30px; }
  .foot-toad { width: 70px; height: 52px; top: -40px; }
  .next-road svg { width: 120px; height: 49px; }
  .next-road span { font-size: 20px; }
  .cards { grid-template-columns: 1fr; }
  .brand-vane { width: 245px; }
  .site-head .wrap { padding-bottom: 28px; }
  .site-head .nav { margin-top: 2px; }
  .nav { gap: 7px; }
  .nav a { padding: 6px 8px 5px; font-size: 13px; gap: 5px; }
  .nav a svg { width: 14px; height: 14px; }
  .lightbox img { max-width: 100%; }
}

/* ---------- Review pages ---------- */
.subhead { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0; color: var(--muted); }
.kind {
  display: inline-block; background: var(--green); color: #fff; border-radius: 999px;
  font: 600 13px/1 var(--display); letter-spacing: 1px; text-transform: uppercase; padding: 7px 12px;
}
.review article > p { margin: 0 0 1em; }
.sign-photo {
  float: right; width: 42%; max-width: 240px; margin: 0 0 16px 22px; background: var(--card);
  padding: 8px 8px 10px; box-shadow: var(--shadow); transform: rotate(2deg);
}
.facts ul { margin: 2px 0 0; padding-left: 18px; }
.facts li { margin: 2px 0; }
.cg-map { margin: 16px 0 0; cursor: zoom-in; }
.cg-map img { width: 100%; border-radius: 4px; }
.cg-map figcaption { font-size: 14px; color: var(--muted); padding-top: 6px; }
.gallery-head { font-size: 30px; color: var(--green-dark); margin: 48px 0 0; clear: both; }
.gallery { margin-top: 22px; }
.shot figcaption span { display: block; }
.shot figcaption span + span { margin-top: 6px; }
.note {
  grid-column: span 1;
  break-inside: avoid; margin: 0 0 26px; padding: 20px 22px; border-radius: 3px;
  background: #fbf3d6; border-left: 5px solid var(--gold); box-shadow: var(--shadow);
  font-size: 17px; line-height: 1.6;
}
.note p { margin: 0 0 .7em; }
.note p:last-child { margin: 0; }
.nearby { margin: 10px 0 40px; }
.nearby h2 { font-size: 30px; color: var(--green-dark); }
.pager { display: flex; justify-content: space-between; gap: 18px; margin: 0 0 30px; flex-wrap: wrap; }
.pager a {
  flex: 1 1 260px; max-width: 48%; background: var(--card); border-radius: 6px; box-shadow: var(--shadow);
  padding: 14px 18px; text-decoration: none; color: var(--green-dark); font: 600 19px/1.3 var(--display);
}
.pager a.next { text-align: right; margin-left: auto; }
.pager small { display: block; font: 600 13px/1.5 var(--display); letter-spacing: 1.5px; text-transform: uppercase; color: var(--rust); }
.pager a:hover { outline: 2px solid var(--gold); }
.count-line { color: var(--muted); margin: -8px 0 0; }
.state-group h2 small { font-size: 16px; color: var(--muted); }
.cg .noimg { display: block; aspect-ratio: 4 / 3; background: var(--paper-2); }
@media (max-width: 600px) {
  .sign-photo { float: none; width: 70%; max-width: 260px; margin: 0 auto 20px; }
  .pager a { max-width: none; }
}
.gallery .shot, .gallery .note { margin: 0; }

/* ---------- Postcard: the first photo of each review, filling the space beside the facts ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.postcard {
  position: relative; clear: both; margin: 40px 6px 10px; max-width: 980px;
  display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  background: #fffaf0; padding: 18px; border-radius: 4px;
  box-shadow: 0 2px 4px rgba(60,45,20,.14), 0 18px 40px rgba(60,45,20,.20);
  transform: rotate(-1.2deg);
}
/* two strips of tape holding it in the scrapbook */
.postcard::before, .postcard::after {
  content: ""; position: absolute; top: -14px; width: 110px; height: 30px;
  background: rgba(233, 220, 170, .75); box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.postcard::before { left: 28px; transform: rotate(-6deg); }
.postcard::after { right: 34px; transform: rotate(5deg); }
.pc-photo { margin: 0; cursor: zoom-in; align-self: center; justify-self: center; }
/* never shown bigger than the photo really is, so small photos stay crisp */
.pc-photo img { display: block; width: auto; max-width: 100%; height: auto; border: 7px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.pc-back {
  position: relative; padding: 4px 4px 4px 24px; margin-left: 20px;
  border-left: 2px solid #e2d6bb; min-width: 0;
}
.pc-top { display: flex; justify-content: flex-end; align-items: flex-start; gap: 0; margin-bottom: 4px; }
.postmark { width: 128px; height: 86px; margin-right: -26px; margin-top: 18px; position: relative; z-index: 3; }
/* postage stamp with scalloped edges, showing the toad */
.pc-stamp {
  width: 86px; height: 104px; padding: 6px; transform: rotate(3deg); flex: none; position: relative; z-index: 1;
  background: radial-gradient(circle at 5px 5px, transparent 3.2px, #fff 3.6px) -5px -5px / 10px 10px;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.2));
}
.pc-stamp div {
  height: 100%; background: #2f4419; border: 2px solid #c9a24a; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
}
.pc-stamp svg { width: 62px; height: 46px; }
.pc-stamp span { font: 600 10px/1 var(--display); letter-spacing: 1px; text-transform: uppercase; color: #f3ead2; }
.pc-greet { font: 600 26px/1 "Caveat", cursive; color: var(--rust); margin: 0; }
.pc-name { font: 600 28px/1.1 var(--display); color: var(--green-dark); margin: 2px 0 12px; }
.pc-message {
  font: 500 23px/32px "Caveat", cursive; color: #2c3b5a;
  background: repeating-linear-gradient(transparent 0 31px, #d9cdb2 31px 32px);
}
.pc-message p { margin: 0; }
.pc-sign { font: 600 24px/1 "Caveat", cursive; color: var(--green); margin: 14px 0 0; text-align: right; }

@media (max-width: 760px) {
  .postcard { grid-template-columns: 1fr; transform: rotate(-.8deg); padding: 14px; }
  .pc-back { margin: 18px 0 0; padding: 18px 0 0; border-left: 0; border-top: 2px solid #e2d6bb; }
  .postmark { width: 110px; height: 74px; }
  .pc-stamp { width: 76px; height: 92px; }
}

/* ---------- Our Travels: trip map and trip sections ---------- */
.trip-legend { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 18px 0 8px; }
.trip-legend button {
  font: 600 15px/1 var(--display); color: var(--ink); background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 14px 8px 10px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
}
.trip-legend button i { width: 22px; height: 4px; border-radius: 2px; display: inline-block; }
.trip-legend button:hover, .trip-legend button.on { border-color: var(--ink); box-shadow: var(--shadow); }
.trip { margin-top: 56px; scroll-margin-top: 20px; }
.trip-head { margin-bottom: 20px; }
/* a luggage tag for each trip */
.trip-tag {
  position: relative; display: inline-flex; flex-direction: column; gap: 4px;
  background: #f4e4bc; padding: 12px 26px 12px 44px; border-radius: 6px 14px 14px 6px;
  box-shadow: var(--shadow); border-left: 8px solid var(--tag, var(--rust));
}
.trip-tag::before {
  content: ""; position: absolute; left: 14px; top: 50%; width: 12px; height: 12px; margin-top: -6px;
  border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 2px #c9b484;
}
.trip-tag b { font: 600 28px/1.1 var(--display); color: var(--green-dark); }
.trip-tag small { font: 600 13px/1 var(--display); letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.story-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.story-card {
  background: var(--card); border-radius: 6px; overflow: hidden; box-shadow: var(--shadow);
  text-decoration: none; color: var(--ink); transition: transform .15s ease;
}
.story-card:hover { color: var(--ink); transform: translateY(-3px); outline: 2px solid var(--gold); }
.story-card img, .story-card .noimg { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--paper-2); }
.story-card div { padding: 10px 14px 14px; }
.story-card b { display: block; font: 600 19px/1.25 var(--display); }
.story-card span { font-size: 15px; color: var(--muted); }
.story-card .series { display: block; font: 600 12px/1.4 var(--display); letter-spacing: 1.2px; text-transform: uppercase; color: var(--rust); }

/* ---------- A travel story: a journal of rows, photos beside his words ---------- */
.story .page-head { max-width: 900px; }
.story-sub { font: italic 600 24px/1.3 var(--display); color: var(--rust); margin: -4px 0 12px; }
.story-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: 16px; }
.story-meta span + span::before { content: "\2022"; margin-right: 22px; color: var(--line); }
.journal { max-width: 1040px; margin: 20px auto 50px; }
.jrow { display: grid; gap: 34px; align-items: center; padding: 18px 0; }
.jrow.cols-2 { grid-template-columns: 1fr 1fr; }
.jrow.cols-3 { grid-template-columns: repeat(3, 1fr); }
.jrow.cols-1 .jcell.text-only { max-width: 760px; }
.jcell > p { margin: 0 0 .9em; }
.jcell > p:last-child { margin-bottom: 0; }
.jcell a { font-weight: 600; }
.print {
  margin: 0 auto 14px; width: fit-content; max-width: 100%; background: var(--card); padding: 9px 9px 12px;
  box-shadow: var(--shadow); border-radius: 2px; cursor: zoom-in;
}
.print img { width: auto; max-width: 100%; }
.jrow:nth-child(odd) .print { transform: rotate(-.8deg); }
.jrow:nth-child(even) .print { transform: rotate(.7deg); }
.jcell.photos-only { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.jcell.photos-only .print { margin: 0; }
/* a tear-off calendar page for each dated day in the journal */
.day { display: flex; align-items: center; gap: 14px; margin: 6px 0 14px; }
.cal {
  display: inline-flex; flex-direction: column; align-items: center; width: 58px; flex: none;
  background: var(--card); border-radius: 6px; overflow: hidden; box-shadow: var(--shadow);
}
.cal b { width: 100%; background: var(--rust); color: #fff; text-align: center; font: 700 12px/1.9 "Overpass", Arial, sans-serif; letter-spacing: 1.5px; text-transform: uppercase; }
.cal i { font: 600 26px/1.3 var(--display); font-style: normal; color: var(--ink); }
.day-label { font: 600 15px/1.2 var(--display); letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.jhead { font-size: 28px; color: var(--green-dark); margin: 10px 0 12px; }
.stayed { margin: 10px 0 40px; }
.stayed h2 { font-size: 30px; color: var(--green-dark); }
.route-map { height: 380px; border-radius: 6px; box-shadow: var(--shadow); border: 6px solid var(--card); margin-bottom: 22px; }
.stop-pin span {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--rust); color: #fff; font: 700 13px/1 "Overpass", Arial, sans-serif; border: 2px solid #fffdf8;
  box-shadow: 0 1px 3px rgba(0,0,0,.3);
}
@media (max-width: 760px) {
  .jrow.cols-2, .jrow.cols-3 { grid-template-columns: 1fr; gap: 14px; }
  .trip-tag b { font-size: 23px; }
  .story-sub { font-size: 20px; }
}

/* ---------- Lazy Daze workshop ---------- */
.ld-hero { display: grid; grid-template-columns: 1fr 1.25fr; gap: 44px; align-items: center; padding: 44px 0 10px; }
.ld-hero h1 { font-size: clamp(34px, 4.5vw, 50px); color: var(--green-dark); }
.ld-hero .hint { color: var(--muted); font-style: italic; font-size: 17px; }
/* the drawing on engineering graph paper */
.blueprint { background: #eef3e4; border-radius: 6px; box-shadow: var(--shadow); padding: 18px 18px 12px; border: 6px solid var(--card); }
.bp-sheet {
  position: relative; padding: 18px 10px 6px;
  background:
    linear-gradient(rgba(77,106,44,.18) 1px, transparent 1px) 0 0 / 100% 20px,
    linear-gradient(90deg, rgba(77,106,44,.18) 1px, transparent 1px) 0 0 / 20px 100%,
    linear-gradient(rgba(77,106,44,.08) 1px, transparent 1px) 0 0 / 100% 4px,
    linear-gradient(90deg, rgba(77,106,44,.08) 1px, transparent 1px) 0 0 / 4px 100%;
}
.bp-rv { width: 100%; height: auto; aspect-ratio: 420 / 170; display: block; }
.bp-title {
  margin: 10px 0 0; text-align: right; font: 700 12px/1.3 "Overpass", Arial, sans-serif;
  letter-spacing: 1.5px; text-transform: uppercase; color: #4d6a2c;
}
.pin {
  position: absolute; transform: translate(-50%, -50%); text-decoration: none; z-index: 2;
}
.pin span {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--rust); color: #fff; font: 700 14px/1 "Overpass", Arial, sans-serif;
  border: 2px solid #fffdf8; box-shadow: 0 2px 5px rgba(0,0,0,.3);
  animation: pin-pulse 2.4s ease-in-out infinite;
}
.pin:nth-child(odd) span { animation-delay: .6s; }
.pin em {
  position: absolute; left: 50%; bottom: 36px; transform: translateX(-50%); white-space: nowrap;
  background: var(--green-dark); color: #fff; font: 600 14px/1 var(--display); font-style: normal;
  padding: 7px 10px; border-radius: 6px; opacity: 0; pointer-events: none; transition: opacity .15s ease;
}
.pin:hover em, .pin:focus em { opacity: 1; }
.pin:hover span, .pin:focus span { background: var(--green-dark); animation: none; }
@keyframes pin-pulse { 0%, 100% { box-shadow: 0 2px 5px rgba(0,0,0,.3), 0 0 0 0 rgba(165,70,42,.45); }
                       50% { box-shadow: 0 2px 5px rgba(0,0,0,.3), 0 0 0 8px rgba(165,70,42,0); } }
@media (prefers-reduced-motion: reduce) { .pin span { animation: none; } }
.pin-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 6px 22px; }
.pin-list a { display: flex; gap: 10px; align-items: center; text-decoration: none; color: var(--ink); padding: 5px 0; }
.pin-list a:hover { color: var(--rust); }
.pin-list b {
  display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 50%;
  background: var(--rust); color: #fff; font: 700 12px/1 "Overpass", Arial, sans-serif;
}
/* masking-tape labels for the project groups */
.tape-label {
  display: inline-block; position: relative; background: rgba(236, 222, 170, .9); padding: 10px 26px 9px;
  font: 600 26px/1.1 "Caveat", cursive; font-size: 32px; color: #3a3326; transform: rotate(-1.5deg);
  box-shadow: 0 1px 2px rgba(0,0,0,.12);
  clip-path: polygon(2% 0, 98% 4%, 100% 50%, 97% 100%, 1% 96%, 0 50%);
}
.group-note { margin: 12px 0 0; color: var(--muted); max-width: 640px; }
@media (max-width: 900px) { .ld-hero { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .pin span { width: 22px; height: 22px; font-size: 11px; } .pin em { display: none; } }
.bp-art { position: relative; }

/* ---------- Railroad Photos ---------- */
.rr-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: center; padding: 44px 0 20px; }
.rr-hero h1 { font-size: clamp(34px, 4.5vw, 52px); color: var(--green-dark); }
.rr-photo { position: relative; transform: rotate(2deg); margin: 0; }
.rr-photo img { width: 100%; }
/* an old card railroad ticket */
.ticket {
  display: flex; max-width: 520px; margin-top: 22px; filter: drop-shadow(0 6px 10px rgba(60,45,20,.18));
  font-family: "Overpass", Arial, sans-serif; color: #3a2a1a;
}
.ticket-main {
  flex: 1; background: #f1d9a4; padding: 16px 20px; border-radius: 8px 0 0 8px;
  border-right: 3px dashed #c9a96a; display: flex; flex-direction: column; gap: 4px;
  background-image: repeating-linear-gradient(135deg, rgba(165,70,42,.05) 0 6px, transparent 6px 12px);
}
.ticket small { font-weight: 700; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--rust); }
.ticket-main b { font: 600 26px/1.1 var(--display); color: var(--green-dark); }
.ticket-main span { font-size: 14px; font-weight: 600; }
.ticket-stub {
  width: 96px; background: #f1d9a4; border-radius: 0 8px 8px 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; position: relative;
}
.ticket-stub b { font: 700 30px/1 "Overpass", Arial, sans-serif; color: var(--rust); }
.ticket-stub::after { content: ""; position: absolute; top: 12px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); }
.rr-index { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; }
.rr-index a {
  text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 14px; font: 600 15px/1 var(--display);
}
.rr-index a:hover { border-color: var(--ink); }
/* black depot name boards with white letters */
.station-sign { margin: 0; display: inline-block; }
.station-sign span {
  display: inline-block; background: #1f1d1a; color: #f6f0e3; padding: 10px 26px; border-radius: 4px;
  font: 600 26px/1.1 var(--display); letter-spacing: 3px; text-transform: uppercase;
  box-shadow: inset 0 0 0 3px #1f1d1a, inset 0 0 0 5px #c9b484, var(--shadow);
}
.rr-line { font: 600 21px/1.2 var(--display); color: var(--rust); margin: 30px 0 14px; padding-bottom: 6px; border-bottom: 2px solid var(--line); }
.stamp-date {
  display: inline-block; margin: 2px 0 10px; font: 700 13px/1 "Overpass", Arial, sans-serif;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--rust); border: 1.5px solid var(--rust);
  padding: 5px 8px; border-radius: 3px; transform: rotate(-1.5deg);
}
@media (max-width: 900px) { .rr-hero { grid-template-columns: 1fr; } .station-sign span { font-size: 21px; } }

/* ---------- Reading List: a bookshelf ---------- */
.book-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 6px 0 20px; }
.book-stats .sign b { font-size: 30px; }
.book-stats .sign.fav b { font-size: 22px; line-height: 1.4; }
.shelf-year { margin-top: 34px; }
.shelf-label { display: flex; align-items: baseline; gap: 12px; margin: 0 0 8px; }
.shelf-label span { font: 600 30px/1 var(--display); color: var(--green-dark); }
.shelf-label small { font: 600 14px/1 var(--display); letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.shelf {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 3px 3px; padding: 18px 16px 0;
  background: linear-gradient(#e8dcc2, #efe5cf); border-radius: 6px 6px 0 0;
  box-shadow: inset 0 6px 12px rgba(60,45,20,.12);
  /* a wooden plank under every row of books */
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 202px, #8a5a2b 202px, #6b4421 216px, transparent 216px, transparent 222px);
  background-color: #efe5cf; padding-bottom: 18px;
}
.spine {
  width: var(--w); height: var(--h); margin-bottom: 0; border: 0; cursor: pointer; padding: 10px 0;
  background: var(--c); color: #f6ecd2; border-radius: 3px 3px 1px 1px; position: relative;
  box-shadow: inset 3px 0 0 rgba(255,255,255,.12), inset -4px 0 0 rgba(0,0,0,.18), 0 2px 3px rgba(0,0,0,.25);
  transition: transform .2s ease; align-self: flex-end;
  /* keep each row of books standing on its plank */
  margin-top: calc(198px - var(--h));
}
.spine::before, .spine::after { content: ""; position: absolute; left: 4px; right: 4px; height: 3px; background: rgba(214,180,90,.75); }
.spine::before { top: 12px; } .spine::after { bottom: 12px; }
.spine span {
  display: block; writing-mode: vertical-rl; transform: rotate(180deg); margin: 0 auto; max-height: calc(var(--h) - 40px);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 13px/1 var(--display); letter-spacing: .3px;
}
.spine:hover { transform: translateY(-6px); }
.spine.out { transform: translateY(-22px) rotate(-3deg); outline: 3px solid var(--gold); }
.spine:focus-visible { outline: 3px solid var(--gold); }
.pulled {
  display: none; margin: 0; padding: 14px 18px; background: var(--card); border-left: 8px solid var(--c, var(--rust));
  box-shadow: var(--shadow); border-radius: 0 0 6px 6px;
}
.pulled.show { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.pulled b { font: 600 22px/1.2 var(--display); color: var(--green-dark); }
.pulled span { font-size: 18px; }
.pulled small { font: 600 13px/1 var(--display); letter-spacing: 1.5px; text-transform: uppercase; color: var(--rust); }
.book-list { margin-top: 56px; }
.book-list h2 { font-size: 30px; color: var(--green-dark); }
.book-list input { font: inherit; font-size: 17px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); width: min(480px, 100%); }
.book-list table { width: 100%; border-collapse: collapse; margin-top: 14px; background: var(--card); box-shadow: var(--shadow); border-radius: 6px; overflow: hidden; }
.book-list th { text-align: left; font: 600 13px/1 var(--display); letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); padding: 14px 16px; background: var(--paper-2); }
.book-list td { padding: 10px 16px; border-top: 1px solid var(--paper-2); font-size: 17px; }
.book-list td:first-child { font-weight: 600; }
.book-list td:last-child { white-space: nowrap; color: var(--muted); }
@media (max-width: 700px) {
  .book-stats { grid-template-columns: repeat(2, 1fr); }
  .book-list td, .book-list th { padding: 8px 10px; font-size: 15px; }
}
a.archived { text-decoration-style: dotted; }

/* The steam train on its track behind the road, heading the other way */
.scene .rails { position: absolute; left: 0; right: 0; bottom: 50px; height: 16px; }
/* fine gravel ballast the ties sit in, so the track rests on the ground */
.scene .rails::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 17px;
  background:
    radial-gradient(circle, #6a6358 0 1px, transparent 1.4px) 0 0 / 5px 4px,
    radial-gradient(circle, #c9c2b3 0 .9px, transparent 1.3px) 2px 2px / 6px 5px,
    radial-gradient(circle, #7f776a 0 .8px, transparent 1.1px) 3px 1px / 4px 3px,
    linear-gradient(#bdb5a6, #a39b8c 45%, #857d70);
  box-shadow: 0 -1px 0 rgba(255,255,255,.25) inset;
  border-radius: 6px 6px 0 0;
}
/* the rails and ties on top of the ballast */
.scene .rails::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 8px;
  background:
    linear-gradient(#5b5650, #5b5650) 0 1px / 100% 2px no-repeat,
    linear-gradient(#5b5650, #5b5650) 0 5px / 100% 2px no-repeat,
    repeating-linear-gradient(90deg, #6b4a2b 0 7px, transparent 7px 16px);
}
.scene .train {
  position: absolute; bottom: 58px; left: 0; width: min(760px, 125vw); aspect-ratio: 880 / 140;
  transform: translateX(110vw); will-change: transform;
}
.scene .train svg { width: 100%; height: 100%; display: block; }
.scene.parked .train { transform: translateX(40vw); }
/* puffs of smoke from the stack, drifting back over the train while it moves */
.train .smoke { position: absolute; left: 7.6%; top: 4%; width: 0; height: 0; }
.train .smoke i {
  position: absolute; left: 0; top: 0; width: 54px; height: 54px; margin: -27px; border-radius: 50%;
  background: radial-gradient(circle at 40% 38%, rgba(240,237,230,.97), rgba(175,170,160,.8) 55%, rgba(150,145,135,0) 72%);
  opacity: 0;
}
.train.moving .smoke i { animation: puff 2.2s ease-out infinite; }
.train .smoke i:nth-child(2) { animation-delay: 0.37s; }
.train .smoke i:nth-child(3) { animation-delay: 0.74s; }
.train .smoke i:nth-child(4) { animation-delay: 1.11s; }
.train .smoke i:nth-child(5) { animation-delay: 1.48s; }
.train .smoke i:nth-child(6) { animation-delay: 1.85s; }
@keyframes puff {
  0% { opacity: .95; transform: translate(0, 0) scale(.45); }
  60% { opacity: .75; }
  100% { opacity: 0; transform: translate(260px, -150px) scale(3.6); }
}
@media (max-width: 900px) { .scene .trees { width: 47vw; } }
@media (max-width: 600px) { .scene .trees { width: 64vw; } }

/* Mountains in the far background: the Presidential Range, with snow on Mt Washington */
.scene .mountains { position: absolute; left: 0; bottom: 100px; width: 100%; height: 400px; }
/* two birds flying in the sky between the chimney smoke and Mt Washington, in the same box as the mountains.
   road.js flaps their wings, glides them and moves them about (--drift is how far they wander) */
.scene .birds { position: absolute; left: 0; bottom: 100px; width: 100%; height: 400px; pointer-events: none; }
.scene .bird { position: absolute; left: 47.5%; top: 15%; width: 22px; --drift: 90px; }
.scene .bird.b2 { left: 51%; top: 20.5%; width: 17px; }
.scene .bird.b3 { left: 60%; top: 30%; width: 16px; --drift: 70px; }   /* crosses the face of Mt Washington */
.scene .bird svg { display: block; width: 100%; overflow: visible; fill: none; stroke: #3b474c; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round; }
.scene.night .birds { display: none; }   /* the birds have gone to roost */
/* low shrubs and small trees across the middle, between the tall trees at each side */
.scene .shrubs { position: absolute; left: 0; bottom: 48px; width: 100%; height: 150px; }
@media (max-width: 900px) {
  .scene .mountains { height: 230px; bottom: 70px; }
  .scene .birds { height: 230px; bottom: 70px; }
  .scene .bird { width: 16px; left: 39%; top: 17%; --drift: 35px; } .scene .bird.b2 { width: 12px; left: 45%; top: 25%; }
  .scene .bird.b3 { width: 11px; left: 60%; top: 30%; --drift: 25px; }
  .scene .shrubs { height: 100px; }
}

/* The Holiday Inn at Intervale, just beyond the shrubs; it links to his story about growing up there */
.scene .inn { position: absolute; left: 21%; bottom: 112px; width: min(400px, 33vw); aspect-ratio: 320 / 200; display: block; }
.scene .inn svg { width: 100%; height: 100%; display: block; overflow: visible; }
.scene .inn svg { transition: filter .25s ease, transform .25s ease; }
/* a warm golden glow when the pointer is on the inn, gently pulsing, to show it can be clicked */
.scene .inn:hover svg, .scene .inn:focus-visible svg {
  filter: brightness(1.06) drop-shadow(0 0 6px rgba(255, 214, 120, 1)) drop-shadow(0 0 18px rgba(255, 196, 70, .9));
  animation: inn-glow 1.6s ease-in-out infinite alternate;
}
@keyframes inn-glow {
  from { filter: brightness(1.04) drop-shadow(0 0 5px rgba(255, 214, 120, .95)) drop-shadow(0 0 14px rgba(255, 196, 70, .75)); }
  to   { filter: brightness(1.1) drop-shadow(0 0 9px rgba(255, 220, 130, 1)) drop-shadow(0 0 28px rgba(255, 190, 60, 1)); }
}
/* chimney smoke: soft puffs that rise, drift a little to the right and fade */
.scene .inn .chimney-smoke { position: absolute; width: 0; height: 0; z-index: 1; pointer-events: none; }
.chimney-smoke i {
  position: absolute; left: 0; top: 0; width: 16px; height: 16px; margin: -8px; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle at 40% 40%, rgba(232,231,227,.95), rgba(165,163,156,.8) 58%, rgba(150,148,140,0) 72%);
  animation: chimney-puff 4.8s ease-out infinite;
}
.chimney-smoke i:nth-child(2) { animation-delay: 1.2s; }
.chimney-smoke i:nth-child(3) { animation-delay: 2.4s; }
.chimney-smoke i:nth-child(4) { animation-delay: 3.6s; }
.chimney-smoke + .chimney-smoke i { animation-duration: 5.4s; }
@keyframes chimney-puff {
  0% { opacity: 0; transform: translate(0, 0) scale(.5); }
  12% { opacity: .85; }
  100% { opacity: 0; transform: translate(34px, -70px) scale(2.8); }
}
@media (prefers-reduced-motion: reduce) {
  .chimney-smoke i { animation: none; }
  .scene .inn:hover svg { animation: none; }
}
/* the town sign at the roadside: the train passes behind it, the Lazy Daze in front */
.scene .welcome-sign { position: absolute; right: 1%; bottom: 44px; width: min(170px, 24vw); height: auto; aspect-ratio: 170 / 130; }
@media (max-width: 600px) {
  .scene .inn { left: 5%; width: 34vw; bottom: 84px; }   /* small enough that the rink and cottage fit */
  .scene .welcome-sign { right: 1%; width: 17vw; }   /* tucked into the corner so the VW shows */
}

/* the weather station on the inn's right wing: spinning cups and a slowly turning vane */
.wx-cups { transform-box: view-box; transform-origin: 0 0; animation: wx-spin 1.1s linear infinite; }
.wx-vane { transform-box: view-box; transform-origin: 0 0; animation: wx-turn 7s ease-in-out infinite; }
@keyframes wx-spin { to { transform: rotate(360deg); } }
@keyframes wx-turn { 0%, 100% { transform: scaleX(1); } 35% { transform: scaleX(.55); } 60% { transform: scaleX(.85); } }
@media (prefers-reduced-motion: reduce) { .wx-cups, .wx-vane { animation: none; } }

/* ---------- Home: Meet the WxToad, his life in his own words ---------- */
.wxtoad { background: var(--paper-2); border-bottom: 1px solid var(--line); }
.wxtoad-head { max-width: 760px; margin: 0 auto 34px; text-align: center; }
.wxtoad h2 { font-size: 36px; color: var(--green-dark); }
.wxtoad-lede { margin: 0; color: var(--muted); }
/* each stop: his photo on the left, the year on the road in the middle, his words on the right */
.milestones { list-style: none; margin: 0 auto; padding: 0; position: relative; max-width: 1000px; }
.milestones::before {                 /* the road the milestones stand along */
  content: ""; position: absolute; left: calc(300px + 28px + 47px); top: 10px; bottom: 10px; width: 4px; border-radius: 2px;
  background: repeating-linear-gradient(to bottom, var(--gold) 0 14px, transparent 14px 24px);
}
.milestones li {
  display: grid; grid-template-columns: 300px 98px minmax(0, 1fr); grid-template-areas: "photo when body";
  column-gap: 28px; align-items: start; padding: 0 0 38px; position: relative;
}
.ms-photo { grid-area: photo; margin: 0; padding: 10px 10px 10px; transform: rotate(-2deg); }
.milestones li:nth-child(even) .ms-photo { transform: rotate(2deg); }
.ms-photo img { display: block; width: 100%; max-height: 300px; object-fit: contain; background: #e9e1cf; }
.ms-photo figcaption { position: static; font-size: 14px; padding: 8px 6px 0; }   /* under the photo, never over it */
.ms-when {
  grid-area: when; justify-self: center; position: relative; z-index: 1; min-width: 74px; text-align: center; margin-top: 14px;
  background: var(--green); color: #fff; border: 2px solid #fff; border-radius: 6px; box-shadow: 0 0 0 2px var(--green);
  font: 700 14px/1.2 "Overpass", Arial, sans-serif; letter-spacing: .5px; padding: 6px 6px;
}
.ms-body { grid-area: body; padding-top: 10px; }
.ms-body h3 { font-size: 22px; margin: 3px 0 6px; color: var(--ink); }
.ms-body blockquote {
  margin: 0 0 8px; padding: 2px 0 2px 16px; border-left: 3px solid var(--gold);
  font: italic 400 19px/1.55 var(--serif); color: var(--ink);
}
.ms-body p { margin: 0 0 6px; font-size: 17px; line-height: 1.5; color: var(--muted); }
.ms-src { font-size: 15px; font-weight: 600; }
.ms-src::before { content: "From his page: "; font-weight: 400; color: var(--muted); }
@media (max-width: 900px) {
  .wxtoad h2 { font-size: 30px; }
  .wxtoad-head { text-align: left; margin-bottom: 26px; }
  .milestones::before { left: 35px; }
  .milestones li { grid-template-columns: 74px minmax(0, 1fr); grid-template-areas: "when photo" "when body"; column-gap: 14px; padding-bottom: 30px; }
  .ms-when { min-width: 64px; font-size: 13px; margin-top: 0; }
  .ms-photo { width: 74%; padding: 7px; margin-bottom: 8px; }
  .ms-photo img { max-height: 200px; }
  .ms-photo figcaption { font-size: 13px; padding-top: 6px; }
  .ms-body { padding-top: 0; }
}

/* ---------- Home: Railroad photo of the day ---------- */
.rotd { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rotd-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.rotd-photo { display: block; width: 100%; max-width: 470px; justify-self: center; transform: rotate(-1.5deg); padding-bottom: 14px; transition: transform .2s ease; }
.rotd-photo:hover { transform: rotate(0) scale(1.01); }
.rotd-photo img { display: block; width: 100%; max-height: 460px; object-fit: contain; background: #1f1d1a; }
.rotd-stamp {
  position: absolute; right: 22px; bottom: 26px; background: rgba(255, 253, 248, .92); color: var(--rust);
  border: 2px solid var(--rust); border-radius: 4px; padding: 2px 9px; transform: rotate(4deg);
  font: 700 14px/1.4 "Overpass", Arial, sans-serif; letter-spacing: 1px; text-transform: uppercase;
}
.rotd h2 { font-size: 32px; color: var(--green-dark); margin-bottom: 8px; }
.rotd-cap { font: italic 400 20px/1.55 var(--serif); margin: 0 0 12px; }
.rotd-note { font-size: 16px; color: var(--muted); margin: 0 0 18px; }
@media (max-width: 900px) {
  .rotd-wrap { grid-template-columns: 1fr; gap: 24px; }
  .rotd h2 { font-size: 28px; }
}

/* ---------- Home: On this day, from his travel journals ---------- */
.otd { background: var(--paper); }
.otd-wrap { display: grid; grid-template-columns: auto 1.3fr 1fr; gap: 40px; align-items: center; }
.otd-cal {
  display: flex; flex-direction: column; align-items: center; width: 130px; background: var(--card);
  border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); transform: rotate(-3deg);
}
.otd-cal b { width: 100%; text-align: center; background: var(--rust); color: #fff; font: 700 20px/2 "Overpass", Arial, sans-serif; letter-spacing: 3px; text-transform: uppercase; }
.otd-cal i { font: 600 64px/1.1 var(--display); font-style: normal; color: var(--ink); padding-top: 6px; }
.otd-cal small { font: 700 15px/1 "Overpass", Arial, sans-serif; letter-spacing: 2px; color: var(--muted); padding: 0 0 14px; }
.otd h2 { font-size: 34px; color: var(--green-dark); margin-bottom: 6px; }
.otd-note { color: var(--muted); margin: 0 0 12px; }
.otd blockquote {
  margin: 0 0 14px; padding: 4px 0 4px 20px; border-left: 4px solid var(--gold);
  font: italic 400 21px/1.6 var(--serif); color: var(--ink);
}
.otd-from { margin: 0 0 16px; font-size: 17px; color: var(--muted); }
.otd-from a { font-weight: 600; }
.btn-quiet { background: transparent; color: var(--green); border: 2px solid var(--green); cursor: pointer; margin-left: 8px; }
.btn-quiet:hover { background: var(--green); color: #fff; }
.otd-photo { margin: 0; transform: rotate(2deg); }
.otd-photo img { width: 100%; }
@media (max-width: 900px) {
  .otd-wrap { grid-template-columns: 1fr; gap: 22px; }
  .otd-cal { width: 110px; }
  .btn-quiet { margin: 10px 0 0; }
}

/* ---------- Guestbook: an old hotel guest register ---------- */
.gb-head { display: flex; gap: 22px; align-items: center; }
.gb-toad { width: 120px; height: 90px; flex: none; }
.gb-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 40px; align-items: start; margin-top: 10px; }
.register {
  background: #fbf6e6; border-radius: 6px; box-shadow: var(--shadow); padding: 0 24px 22px;
  border-left: 10px solid #6b3a1e; position: sticky; top: 20px;
}
.register-top { margin: 0 -24px 18px; padding: 14px 24px; background: #6b3a1e; color: #f3e6c4; display: flex; justify-content: space-between; align-items: baseline; }
.register-top span { font: 600 13px/1 "Overpass", Arial, sans-serif; letter-spacing: 3px; text-transform: uppercase; }
.register-top b { font: italic 600 24px/1 var(--display); }
.register label { display: block; font: 600 15px/1.4 var(--display); color: var(--green-dark); margin: 0 0 14px; }
.register label small { color: var(--muted); font-weight: 400; }
.register input, .register textarea {
  display: block; width: 100%; margin-top: 6px; font: 18px/1.5 var(--serif); color: var(--ink);
  background: transparent; border: 0; border-bottom: 2px solid #c9b994; padding: 6px 2px; border-radius: 0;
}
.register textarea { border: 1px solid #d8caa6; border-radius: 4px; padding: 8px 10px; resize: vertical;
  background: repeating-linear-gradient(transparent 0 30px, #e6dcc0 30px 31px); line-height: 31px; }
.register input:focus, .register textarea:focus { outline: 2px solid var(--gold); outline-offset: 2px; }
.gb-toadq { font-weight: 400 !important; }
.gb-trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.gb-status { margin: 12px 0 0; min-height: 1.5em; }
.gb-status.good { color: var(--green); font-weight: 600; }
.gb-status.bad { color: var(--rust); font-weight: 600; }
.ledger h2 { font-size: 30px; color: var(--green-dark); margin-top: 0; }
.ledger-row { background: var(--card); border-radius: 4px; box-shadow: var(--shadow); padding: 18px 22px 14px; margin: 0 0 18px;
  background-image: repeating-linear-gradient(transparent 0 31px, #efe7d3 31px 32px); }
.ledger-msg { margin: 0 0 10px; white-space: pre-wrap; font-size: 19px; line-height: 32px; }
.ledger-sig { margin: 0; text-align: right; color: var(--muted); font-size: 16px; }
.ledger-sig b { font: 600 24px/1 "Caveat", cursive; color: #2c3b5a; }
.gb-empty { color: var(--muted); font-style: italic; }
/* home page invitation to sign */
.gb-band { background: #6b3a1e; color: #f3e6c4; }
.gb-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 30px; padding-bottom: 30px; flex-wrap: wrap; }
.gb-band h2 { color: #f3e6c4; font-size: 30px; margin: 0 0 4px; }
.gb-band p { margin: 0; }
.gb-band .btn { background: #f3e6c4; color: #6b3a1e; }
.gb-band .btn:hover { background: #fff; color: #6b3a1e; }
@media (max-width: 900px) { .gb-layout { grid-template-columns: 1fr; } .register { position: static; } .gb-toad { width: 84px; height: 63px; } }

/* Donna and Daisy: every so often Donna dips her head to peck at the grass */
.duck-peck { transform-box: view-box; transform-origin: 0 0; animation: duck-peck 5s ease-in-out infinite; }
@keyframes duck-peck { 0%, 70%, 100% { transform: rotate(0); } 76%, 86% { transform: rotate(22deg); } 81% { transform: rotate(18deg); } }
@media (prefers-reduced-motion: reduce) { .duck-peck { animation: none; } }
/* Daisy's wing lifts and beats a few times, and she gives a little hop */
.duck-flap .duck-wing { transform-box: view-box; transform-origin: 3px -9px; }
.duck-flap.flapping .duck-wing { animation: duck-flap .16s ease-in-out 8 alternate; }
.duck-flap.flapping { transform-box: view-box; transform-origin: 0 0; animation: duck-hop .32s ease-in-out 4 alternate; }
@keyframes duck-flap { from { transform: rotate(0); } to { transform: rotate(-70deg); } }
@keyframes duck-hop { from { transform: translateY(0); } to { transform: translateY(-2.5px); } }

/* ---------- Live weather sign: by itself at the roadside in the scene; on phones it stands
   in the grass above the green signs instead (moved there by scene.js) ---------- */
.wx-sign {
  background: #5c3d22; color: #f3e6c4; border: 3px solid #e8d8b0; border-radius: 6px;
  padding: 8px 12px 7px; box-shadow: 0 3px 8px rgba(0,0,0,.25); text-align: center;
  font: 600 14px/1.25 "Overpass", Arial, sans-serif;
}
.wx-sign::before, .wx-sign::after { content: ""; position: absolute; width: 6px; background: #4a3220; z-index: -1; }
.wx-sign::before { left: 22%; } .wx-sign::after { right: 22%; }
.scene .wx-sign { position: absolute; left: 2.5%; bottom: 18px; width: min(220px, 30vw); z-index: 1; }
.scene .wx-sign::before, .scene .wx-sign::after { bottom: -28px; height: 26px; }
.signs .wx-sign { position: relative; top: 2px; width: min(300px, 100%); margin: 0 auto 42px; z-index: 0; }
.signs .wx-sign::before, .signs .wx-sign::after { bottom: -37px; height: 34px; }
.wx-sign small { display: block; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; opacity: .85; }
.wx-sign b { display: block; font: 600 30px/1.1 var(--display); color: #fff; }
.wx-sign span { display: block; }
.wx-sign .wx-mtw { font-size: 12px; margin-top: 4px; padding-top: 4px; border-top: 1px solid rgba(243,230,196,.35); }
.wx-sign .wx-credit { display: block; font-size: 9px; color: #e8d8b0; opacity: .7; margin-top: 3px; text-decoration: none; }

/* ---------- Scene: falling snow, when it is snowing in Intervale ---------- */
.scene .snowfall {
  position: absolute; inset: 0; pointer-events: none; display: none; z-index: 2;
  background-image:
    radial-gradient(circle, #fff 0 1.6px, transparent 2px),
    radial-gradient(circle, rgba(255,255,255,.85) 0 1.1px, transparent 1.5px),
    radial-gradient(circle, rgba(255,255,255,.7) 0 2.2px, transparent 2.7px);
  background-size: 90px 90px, 60px 60px, 140px 140px;
  background-position: 10px 0, 40px 20px, 70px 50px;
  animation: snowfall 9s linear infinite;
}
.scene.snowing .snowfall { display: block; }
@keyframes snowfall {
  to { background-position: 40px 450px, 20px 300px, 110px 700px; }
}

/* ---------- Scene: seasons ---------- */
/* fall colors on the leafy trees */
.scene.season-fall .trees circle:nth-of-type(3n+1), .scene.season-fall .shrubs circle:nth-of-type(3n+1), .scene.season-fall .inn svg > circle:nth-of-type(3n+1) { fill: #d9822b; }
.scene.season-fall .trees circle:nth-of-type(3n+2), .scene.season-fall .shrubs circle:nth-of-type(3n+2), .scene.season-fall .inn svg > circle:nth-of-type(3n+2) { fill: #c4572d; }
.scene.season-fall .trees circle:nth-of-type(3n), .scene.season-fall .shrubs circle:nth-of-type(3n), .scene.season-fall .inn svg > circle:nth-of-type(3n) { fill: #e0b23a; }
/* late fall: leaves down, grass turning brown */
.scene.season-bare .trees circle, .scene.season-bare .shrubs circle, .scene.season-bare .inn svg > circle { fill: #b9ab94; opacity: .8; }
.scene.season-bare .inn .lawn { fill: #a9a57c; }
.scene.season-bare .hills path:first-child { fill: #a6a47e; }
.scene.season-bare .hills path:last-child { fill: #8a8a5e; }
/* winter: snow on the ground and on the bushes, leafy trees bare */
.scene.season-winter .trees circle, .scene.season-winter .inn svg > circle { fill: #bdb2a0; opacity: .75; }
.scene.season-winter .shrubs circle { fill: #e3e8e4; }
.scene.season-winter .inn .lawn { fill: #eef2f0; }
.scene.season-winter .hills path:first-child { fill: #e2e8e6; }
.scene.season-winter .hills path:last-child { fill: #f1f4f2; }

/* ---------- Scene: night ---------- */
.scene .night-sky, .scene .night-only, .scene .anniv-only { display: none; }
.scene.night { background: linear-gradient(to bottom, var(--paper) 0, #24345a 14%, #3a4d75 62%, #56688c 100%); }
.scene.night .night-sky {
  display: block; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle, #fff 0 1px, transparent 1.4px),
    radial-gradient(circle, rgba(255,255,255,.7) 0 .8px, transparent 1.2px);
  background-size: 120px 90px, 70px 110px;
  background-position: 20px 60px, 55px 80px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 60%, transparent 85%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 60%, transparent 85%);
}
.scene .moon {
  position: absolute; right: 16%; top: 22%; width: 46px; height: 46px; border-radius: 50%;
  background: radial-gradient(circle at 38% 38%, #fffbe6, #efe3b4 70%);
  box-shadow: 0 0 24px 8px rgba(255, 244, 200, .35);
}
.scene.night > :not(.night-sky):not(.inn):not(.snowfall):not(.wx-sign):not(.rv):not(.train) { filter: brightness(.55) saturate(.8); }
/* the Lazy Daze and the train dim like everything else, but their lamps, windows and beams stay bright */
.scene .rv, .scene .train svg { overflow: visible; }
.scene.night .rv > use, .scene.night .rv > .hub, .scene.night .train svg > :not(.night-only):not(defs),
.scene.night .train .smoke { filter: brightness(.5) saturate(.8); }
.scene.night .rv .win-day { display: none; }
.scene.night .rv .shelby { filter: brightness(.35); }       /* Shelby as a shadow against the lamp-lit window */
.scene .beam { mix-blend-mode: screen; }
.scene.night .lamp-w { filter: drop-shadow(0 0 2px #fff6d0) drop-shadow(0 0 6px rgba(255, 240, 190, .9)); }
.scene.night .lamp-win { filter: drop-shadow(0 0 3px rgba(255, 200, 90, .85)); }
.scene.night .lamp-fire { filter: drop-shadow(0 0 4px rgba(255, 120, 40, .9)); }
.scene.night .lamp-r { filter: drop-shadow(0 0 2px #ff4a2e) drop-shadow(0 0 5px rgba(255, 60, 40, .8)); }
.scene.night .lamp-a { filter: drop-shadow(0 0 2px #ffb13b) drop-shadow(0 0 5px rgba(255, 170, 60, .8)); }
.scene.night .train-lights .lantern { animation: lantern 2.6s ease-in-out infinite; }
@keyframes lantern { 0%, 100% { opacity: 1; } 40% { opacity: .82; } 55% { opacity: .95; } 70% { opacity: .78; } }
@media (prefers-reduced-motion: reduce) { .scene.night .train-lights .lamp-r { animation: none; } }
.scene.night .night-only { display: inline; }
/* the inn's own shapes dim for night, but not its lit windows */
.scene.night .inn svg > :not(.night-only) { filter: brightness(.5) saturate(.75); }
.scene.night .inn .chimney-smoke { opacity: .55; }
.scene.night .lit { filter: drop-shadow(0 0 2px rgba(255, 200, 90, .9)); }

/* ---------- Scene: anniversary (September 9) ---------- */
.scene.anniversary .anniv-only { display: inline; }

/* ---------- Scene: a toad hopping across the road now and then ---------- */
.scene .road-toad {
  position: absolute; left: 0; bottom: 2px; width: 46px; height: 35px; z-index: 1;
  opacity: 0; cursor: pointer;
}
.scene .road-toad.going { opacity: 1; }
.scene .road-toad svg { width: 100%; height: 100%; display: block; }
.scene .road-toad.leftward svg { transform: scaleX(-1); }
.scene .road-toad .ribbit {
  position: absolute; left: 50%; bottom: 100%; transform: translate(-50%, -4px); white-space: nowrap;
  background: #fffdf8; color: var(--green-dark); border-radius: 12px; padding: 3px 9px;
  font: 600 18px/1.2 "Caveat", cursive; box-shadow: var(--shadow); opacity: 0; transition: opacity .2s;
  pointer-events: none;
}
.scene .road-toad:hover .ribbit, .scene .road-toad.say .ribbit { opacity: 1; }
@media (max-width: 600px) { .scene .road-toad { width: 34px; height: 26px; } }
@media (prefers-reduced-motion: reduce) { .scene .road-toad { display: none; } }
/* the cottage's flag waves: each slice bobs up and down a little later than the one before it */
.cottage .flag-slice { animation: flag-ripple .9s ease-in-out infinite alternate; }
@keyframes flag-ripple {
  from { transform: translateY(calc(var(--a) * -1px)); }
  to   { transform: translateY(calc(var(--a) * 1px)); }
}
@media (prefers-reduced-motion: reduce) { .cottage .flag-slice { animation: none; } }
/* the skater glides back and forth across the rink */
.rink .skater { animation: skate 7s ease-in-out infinite alternate; }
@keyframes skate { 0% { transform: translateX(0) skewX(-6deg); } 50% { transform: translateX(28px) skewX(-8deg); } 100% { transform: translateX(56px) skewX(-6deg); } }
@media (prefers-reduced-motion: reduce) { .rink .skater { animation: none; } }

/* state names in the campground list link to that state's own page */
.state-group h2 a { color: inherit; text-decoration: none; }
.state-group h2 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* the page for addresses that do not exist */
.lost-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font: 600 20px/1.4 var(--display); }
