/* Wandering Pines: type and color taken from the visitor's guide.
   Allura (script) for display headings, Montserrat for everything else,
   pine green #1f4d36 headings on warm paper, #404040 body text. */

:root {
  --paper: #fbfaf6;
  --paper-2: #f3f1ea;
  --ink: #404040;
  --ink-soft: #6b6b66;
  --pine: #1f4d36;
  --pine-deep: #163a28;
  --sage: #8fb9a0;
  --mist: #dfeee6;
  --lake: #3f8fa3;
  --lake-mist: #e3f1f4;
  --slate: #5d6872;
  --line: #e2ded3;
  --warn: #9a4b1d;
  --warn-bg: #fbf0e6;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(31, 77, 54, 0.06), 0 8px 28px rgba(31, 77, 54, 0.08);
  --script: 'Allura', 'Snell Roundhand', cursive;
  --sans: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Smooth scrolling for the home page's menu links only. On the photos page
   it stops links like photos.html#kitchen from landing on the photo. */
@media (prefers-reduced-motion: no-preference) {
  html:not(:has(.photo-group)) {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--pine);
  text-underline-offset: 3px;
}

h1,
h2,
h3 {
  color: var(--pine);
  font-weight: 400;
  margin: 0;
}

h2 {
  font-family: var(--script);
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  line-height: 1.1;
  margin-bottom: 0.4em;
  /* Allura is fine-lined; a hair of stroke helps it hold up on screens,
     much like the guide's bolded headings. */
  -webkit-text-stroke: 0.4px currentColor;
}

h3 {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.5em;
}

.wrap {
  width: min(1080px, 100% - 32px);
  margin-inline: auto;
}

.eyebrow {
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
}

.draft-note {
  background: var(--lake-mist);
  color: var(--slate);
  font-size: 0.78rem;
  text-align: center;
  padding: 6px 16px;
}

/* ---------- header / hero ---------- */

.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-block: 14px;
}

.site-nav .brand {
  font-family: var(--script);
  font-size: 1.9rem;
  color: var(--pine);
  text-decoration: none;
  -webkit-text-stroke: 0.3px currentColor;
}

.site-nav ul {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav ul a {
  text-decoration: none;
  color: var(--ink);
}

.site-nav ul a:hover {
  color: var(--pine);
}

.hero {
  text-align: center;
  padding: 28px 0 0;
}

.hero-title {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(4px, 2vw, 18px);
}

/* A pair of watercolor pines on each side of the name, standing on the
   same ground line as the letters. */
.grove {
  display: flex;
  align-items: flex-end;
  flex: none;
  margin-bottom: 0.4rem;
}

.grove img {
  width: auto;
  display: block;
}

.grove .t-tall {
  height: clamp(92px, 15vw, 172px);
}

.grove .t-short {
  height: clamp(64px, 10vw, 118px);
}

.grove img + img {
  margin-left: clamp(-22px, -1.6vw, -6px);
}

/* On a phone: one tree each side, and the name stacks on two lines. */
@media (max-width: 520px) {
  .grove .t-short {
    display: none;
  }
  .grove .t-tall {
    height: 104px;
  }
}

.hero h1 {
  font-family: var(--script);
  font-size: clamp(3.6rem, 12vw, 7.2rem);
  line-height: 1;
  color: var(--pine);
  -webkit-text-stroke: 0.6px currentColor;
}

.hero .eyebrow {
  margin-top: 10px;
}

.hero .facts {
  margin: 6px 0 0;
  color: var(--ink-soft);
}

.hero .cta {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

/* ---------- photos ---------- */

.mosaic {
  position: relative;
  /* above the pines, so rising trees slip behind the photos */
  z-index: 3;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 8px;
  aspect-ratio: 2.4 / 1;
  margin-top: 34px;
  border-radius: var(--radius);
  overflow: hidden;
}

.mosaic .tile {
  display: block;
  overflow: hidden;
  background: var(--paper-2);
}

.mosaic .tile.main {
  grid-row: span 2;
}

.mosaic img,
.photo-grid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mosaic img {
  transition: transform 0.5s ease;
}

.mosaic .tile:hover img {
  transform: scale(1.03);
}

.see-all {
  position: absolute;
  right: 14px;
  bottom: 14px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.see-all:hover {
  color: var(--pine);
}

@media (max-width: 640px) {
  .mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
    aspect-ratio: auto;
    gap: 6px;
  }
  .mosaic .tile {
    aspect-ratio: 4 / 3;
  }
  .mosaic .tile.main {
    grid-column: span 2;
    grid-row: auto;
    aspect-ratio: 3 / 2;
  }
  .site-nav ul {
    display: none;
  }
}

/* ---------- sections ---------- */

section {
  padding: 56px 0;
}

section.tint {
  background: var(--paper-2);
}

.lead {
  font-size: 1.08rem;
  max-width: 62ch;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 28px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 16px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.card p {
  margin: 0;
}

.levels {
  margin-top: 32px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 28px 36px;
}

.level {
  display: grid;
  grid-template-columns: minmax(110px, 42%) 1fr;
  gap: 18px;
  align-items: start;
}

.level img,
.room img,
.amenities img {
  display: block;
  width: 100%;
  object-fit: cover;
}

.level img {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
}

.level p {
  margin: 0;
}

@media (max-width: 520px) {
  .level {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .level img {
    aspect-ratio: 3 / 2;
  }
}

.card.room {
  padding: 0;
  overflow: hidden;
}

.room img {
  aspect-ratio: 4 / 3;
}

.room > div {
  padding: 16px 18px 18px;
}

.amenities {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.amenities figure {
  margin: 0;
}

.amenities img {
  border-radius: var(--radius);
}

figcaption {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-top: 8px;
}

@media (max-width: 760px) {
  .amenities {
    grid-template-columns: 1fr;
  }
}

ul.ticks {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2 220px;
  column-gap: 32px;
}

ul.ticks li {
  padding-left: 22px;
  position: relative;
  margin-bottom: 6px;
  break-inside: avoid;
}

ul.ticks li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--sage);
}

details {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

details summary::after {
  content: '+';
  color: var(--pine);
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 1;
}

details[open] summary::after {
  content: '–';
}

details p {
  margin: 10px 0 0;
}

/* ---------- buttons and forms ---------- */

.btn {
  display: inline-block;
  border: 0;
  border-radius: 999px;
  background: var(--pine);
  color: #fff;
  font: 600 0.85rem/1 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 15px 26px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}

.btn:hover {
  background: var(--pine-deep);
}

.btn:disabled {
  background: #b9c3bd;
  cursor: not-allowed;
}

.btn.ghost {
  background: transparent;
  color: var(--pine);
  box-shadow: inset 0 0 0 1.5px var(--pine);
}

.btn.block {
  width: 100%;
}

label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

input,
select,
textarea {
  width: 100%;
  font: 400 1rem var(--sans);
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
}

input:focus,
select:focus,
textarea:focus,
.btn:focus-visible,
.day:focus-visible {
  outline: 2px solid var(--lake);
  outline-offset: 2px;
}

.field {
  margin-bottom: 14px;
}

.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.hp {
  position: absolute;
  left: -9999px;
}

/* ---------- booking ---------- */

.booking {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr);
  gap: 24px;
  align-items: start;
}

@media (max-width: 860px) {
  .booking {
    grid-template-columns: 1fr;
  }
  .quote-card {
    position: static;
  }
}

.cal-card,
.quote-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

.quote-card {
  position: sticky;
  top: 16px;
}

.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.cal-head button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  color: var(--pine);
  font-size: 1.1rem;
}

.cal-head button:disabled {
  opacity: 0.35;
  cursor: default;
}

.cal-hint {
  font-size: 0.85rem;
  color: var(--ink-soft);
  min-height: 1.4em;
  margin: 0 0 8px;
}

.months {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 640px) {
  .months {
    grid-template-columns: 1fr;
  }
  .months .month + .month {
    display: none;
  }
}

.month-name {
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.dow,
.days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.dow span {
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  padding-bottom: 4px;
}

.day {
  aspect-ratio: 1 / 1.05;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font: 600 0.9rem/1 var(--sans);
  color: var(--ink);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0;
}

.day small {
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.day:hover:not(:disabled) {
  background: var(--mist);
}

.day:disabled {
  cursor: default;
  color: #c4c1b8;
}

.day.booked {
  text-decoration: line-through;
}

.day.in-range {
  background: var(--mist);
  border-radius: 0;
}

.day.start,
.day.end {
  background: var(--pine);
  color: #fff;
}

.day.start small,
.day.end small {
  color: #d9e8df;
}

.day.start {
  border-radius: 8px 0 0 8px;
}

.day.end {
  border-radius: 0 8px 8px 0;
}

.day.start.end {
  border-radius: 8px;
}

.legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: var(--ink-soft);
  margin-top: 12px;
}

.quote-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 14px;
}

.quote-dates div {
  padding: 9px 12px;
}

.quote-dates div + div {
  border-left: 1px solid var(--line);
}

.quote-dates span {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.quote-dates strong {
  font-weight: 500;
}

.quote-lines {
  width: 100%;
  border-collapse: collapse;
  margin: 6px 0 14px;
  font-size: 0.92rem;
}

.quote-lines td {
  padding: 5px 0;
}

.quote-lines td:last-child {
  text-align: right;
  white-space: nowrap;
}

.quote-lines tr.total td {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  font-weight: 700;
  font-size: 1rem;
}

.notice {
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.88rem;
  margin: 0 0 14px;
  background: var(--lake-mist);
  color: #24535f;
}

.notice.warn {
  background: var(--warn-bg);
  color: var(--warn);
}

.fine {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin: 10px 0 0;
}

/* ---------- footer ---------- */

footer {
  text-align: center;
  padding: 0 0 36px;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* A little stand of the watercolor pines on a ground line. */
.forest {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: min(520px, 100% - 32px);
  margin: 0 auto 16px;
  padding-top: 24px;
  border-bottom: 1px solid var(--line);
}

.forest img {
  width: auto;
  display: block;
  margin-inline: -5px;
}

.forest .s {
  height: 62px;
}

.forest .m {
  height: 84px;
}

.forest .l {
  height: 104px;
}

.forest .xl {
  height: 124px;
}

footer p {
  margin: 4px 0;
}

.narrow {
  max-width: 640px;
}

/* ---------- the pines that part as you scroll ----------
   A stand of watercolor pines under the photos parts as you scroll,
   revealing "The house" (js/pine-curtain.js).

   Without JavaScript, or when the visitor's device asks for reduced motion,
   the trees are just a still row between the photos and the next section.
   Only when the motion runs (.is-live) do they stand in front of it. */

.pine-curtain {
  position: relative;
  z-index: 2;
  pointer-events: none;
  margin-top: 30px;
  /* Trees leave through the sides without making the page scroll sideways,
     and can still rise above the band. */
  overflow-x: clip;
}

.pc-row {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.pc-row img {
  display: block;
  flex: none;
  width: auto;
  margin-inline: -1.1vw;
  transform-origin: 50% 100%;
}

.pine-curtain.is-live .pc-row img {
  will-change: transform, opacity;
}

.pc-row .xl {
  height: clamp(150px, 21vw, 300px);
}

.pc-row .l {
  height: clamp(122px, 17vw, 244px);
}

.pc-row .m {
  height: clamp(96px, 13.5vw, 192px);
}

.pc-row .s {
  height: clamp(72px, 10vw, 142px);
}

/* A wash of paper-colored mist behind the trees. It hides the text under
   them at first and lifts as they part. */
.pc-mist {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: -40px;
  height: 75%;
  background: linear-gradient(to bottom, rgba(251, 250, 246, 0), var(--paper) 38%, var(--paper) 78%, rgba(251, 250, 246, 0));
}

.pine-curtain.is-live {
  margin-bottom: calc(-1 * clamp(120px, 13vw, 190px));
}

.pine-curtain.is-live .pc-mist {
  display: block;
}

@media (max-width: 640px) {
  .pc-row .hide-sm {
    display: none;
  }
  .pc-row img {
    margin-inline: -8px;
  }
  .pc-row .xl {
    height: 168px;
  }
  .pc-row .l {
    height: 134px;
  }
  .pc-row .m {
    height: 104px;
  }
  .pc-row .s {
    height: 78px;
  }
  .pine-curtain.is-live {
    margin-bottom: -120px;
  }
}

/* ---------- the area map ----------
   Sandilynn's summer and winter maps, rebuilt from their art (see
   scripts/map-art.mjs) so each piece can appear as you scroll
   (js/area-map.js). Positions are in the maps' own 1125 x 750 layout. */

.season-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin-top: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.season-switch[hidden] {
  display: none;
}

.season-switch button {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 9px 20px;
  font: 600 0.78rem/1 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.season-switch button[aria-pressed='true'] {
  background: var(--pine);
  color: #fff;
}

.season-switch button:focus-visible {
  outline: 2px solid var(--lake);
  outline-offset: 2px;
}

.area-map {
  margin-top: 22px;
}

.map-season {
  position: relative;
  aspect-ratio: 1125 / 750;
  container-type: inline-size;
  overflow: hidden;
}

/* Without JavaScript both maps show, one after the other. */
.area-map:not(.js-ready) .map-season + .map-season {
  margin-top: 40px;
}

.map-season[hidden] {
  display: none !important;
}

.map-wash,
.map-lines,
.map-sky {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.map-lines .dots {
  fill: none;
  stroke: #55595c;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 0 8;
  opacity: 0.75;
}

.map-lines .draw {
  fill: none;
  stroke: #fff;
  stroke-width: 14;
  stroke-linecap: round;
  stroke-dasharray: 1 1;
  stroke-dashoffset: 0;
}

.map-home,
.spot,
.map-ribbon {
  position: absolute;
  margin: 0;
}

.map-home img,
.spot img {
  display: block;
  width: 100%;
  height: auto;
}

.map-title {
  margin: 0.15em 0 0;
  text-align: center;
  white-space: nowrap;
  font-family: var(--script);
  font-size: 5.2cqw;
  line-height: 1;
  color: var(--pine);
  -webkit-text-stroke: 0.4px currentColor;
}

.map-title span {
  display: block;
  margin-top: 0.55em;
  font-family: var(--sans);
  font-size: 1.05cqw;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  -webkit-text-stroke: 0;
}

.map-spots {
  list-style: none;
  margin: 0;
  padding: 0;
}

.spot {
  text-align: center;
}

/* Soft, watercolor-like edges on each little scene. */
.spot img {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent),
    linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent),
    linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
  mask-composite: intersect;
}

.spot h3 {
  margin: 0.45em 0 0.2em;
  font-size: clamp(10.5px, 1.25cqw, 14px);
  letter-spacing: 0.14em;
  line-height: 1.25;
  color: var(--ink);
}

.spot p {
  margin: 0;
  font-size: clamp(10px, 1cqw, 12px);
  letter-spacing: 0.05em;
  line-height: 1.4;
  color: var(--ink-soft);
}

.spot .more {
  margin-top: 0.15em;
  color: var(--pine);
}

.map-ribbon {
  left: 1.96%;
  top: 81.6%;
  width: 8.9%;
  aspect-ratio: 130 / 173;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 1.7cqw;
  background: url(/images/map-ribbon-summer.webp) center / 100% 100% no-repeat;
  font: 600 0.8cqw/1.2 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}

.ribbon-winter {
  background-image: url(/images/map-ribbon-winter.webp);
}

.map-ribbon span {
  margin-bottom: 0.25em;
  font: 400 3.3cqw/1 var(--script);
  letter-spacing: 0;
  text-transform: none;
  color: var(--pine);
  -webkit-text-stroke: 0.3px currentColor;
}

.home-summer {
  left: 21.956%;
  top: 35.867%;
  width: 36.178%;
}

.s-arethusa {
  left: 0.444%;
  top: 0.8%;
  width: 20.533%;
}

.s-mt-washington {
  left: 25.333%;
  top: 0.8%;
  width: 20.533%;
}

.s-story-land {
  left: 65.511%;
  top: 0.8%;
  width: 22.044%;
}

.s-dianas-baths {
  left: 79.733%;
  top: 29.6%;
  width: 20.267%;
}

.s-attitash-coaster {
  left: 59.733%;
  top: 33.6%;
  width: 20.178%;
}

.s-cathedral-ledge {
  left: 76%;
  top: 59.733%;
  width: 21.333%;
}

.s-saco-river {
  left: 52.711%;
  top: 74.267%;
  width: 20.356%;
}

.s-kancamagus {
  left: 0.622%;
  top: 53.333%;
  width: 17.689%;
}

.s-cave-mountain {
  left: 0.533%;
  top: 30.667%;
  width: 18.044%;
}

.home-winter {
  left: 21.956%;
  top: 27.067%;
  width: 36.178%;
}

.s-bretton-woods {
  left: 0.711%;
  top: 0.8%;
  width: 21.6%;
}

.s-wildcat {
  left: 24.711%;
  top: 0.8%;
  width: 23.111%;
}

.s-jackson {
  left: 50.489%;
  top: 0.8%;
  width: 21.156%;
}

.s-black-mountain {
  left: 75.111%;
  top: 0.8%;
  width: 22.222%;
}

.s-attitash {
  left: 61.333%;
  top: 35.733%;
  width: 22.4%;
}

.s-cranmore {
  left: 76.267%;
  top: 62.667%;
  width: 22.044%;
}

.s-north-conway {
  left: 49.244%;
  top: 68.8%;
  width: 22.489%;
}

/* Snow in winter, fireflies around the yard in summer. They only move
   while the map is on screen. */
.map-sky {
  pointer-events: none;
}

.map-sky i {
  position: absolute;
  display: block;
  border-radius: 50%;
  animation-play-state: paused;
}

.area-map.in-view .map-sky i {
  animation-play-state: running;
}

.sky-winter i {
  top: -12px;
  background: #fff;
  box-shadow: 0 0 3px rgba(70, 95, 120, 0.5);
  animation: snowfall linear infinite;
}

.sky-summer i {
  width: 5px;
  height: 5px;
  background: #f7d774;
  box-shadow: 0 0 7px 3px rgba(247, 215, 116, 0.55);
  opacity: 0;
  animation: firefly ease-in-out infinite;
}

@keyframes snowfall {
  to {
    transform: translate3d(var(--drift, 20px), 800px, 0);
  }
}

@keyframes firefly {
  0%,
  100% {
    opacity: 0;
    transform: translate(0, 0);
  }
  25% {
    opacity: 0.95;
  }
  50% {
    opacity: 0.35;
    transform: translate(var(--fx), var(--fy));
  }
  75% {
    opacity: 0.9;
  }
}

.sky-winter i:nth-child(1) {
  left: 1.0%;
  width: 5.2px;
  height: 5.2px;
  --drift: -20px;
  animation-duration: 16.4s;
  animation-delay: -4.6s;
}

.sky-winter i:nth-child(2) {
  left: 53.2%;
  width: 4.6px;
  height: 4.6px;
  --drift: 18px;
  animation-duration: 11.6s;
  animation-delay: -12.0s;
}

.sky-winter i:nth-child(3) {
  left: 68.1%;
  width: 4.1px;
  height: 4.1px;
  --drift: -18px;
  animation-duration: 14.1s;
  animation-delay: -13.1s;
}

.sky-winter i:nth-child(4) {
  left: 70.4%;
  width: 4.4px;
  height: 4.4px;
  --drift: 13px;
  animation-duration: 14.6s;
  animation-delay: -0.9s;
}

.sky-winter i:nth-child(5) {
  left: 91.4%;
  width: 5.8px;
  height: 5.8px;
  --drift: 1px;
  animation-duration: 15.5s;
  animation-delay: -2.0s;
}

.sky-winter i:nth-child(6) {
  left: 68.5%;
  width: 5.7px;
  height: 5.7px;
  --drift: 29px;
  animation-duration: 14.2s;
  animation-delay: -9.2s;
}

.sky-winter i:nth-child(7) {
  left: 37.5%;
  width: 3.5px;
  height: 3.5px;
  --drift: -12px;
  animation-duration: 11.7s;
  animation-delay: -13.4s;
}

.sky-winter i:nth-child(8) {
  left: 30.2%;
  width: 4.7px;
  height: 4.7px;
  --drift: 31px;
  animation-duration: 12.4s;
  animation-delay: -4.7s;
}

.sky-winter i:nth-child(9) {
  left: 72.5%;
  width: 4.7px;
  height: 4.7px;
  --drift: -16px;
  animation-duration: 16.0s;
  animation-delay: -0.9s;
}

.sky-winter i:nth-child(10) {
  left: 50.9%;
  width: 3.2px;
  height: 3.2px;
  --drift: 29px;
  animation-duration: 12.4s;
  animation-delay: -3.1s;
}

.sky-winter i:nth-child(11) {
  left: 36.8%;
  width: 4.5px;
  height: 4.5px;
  --drift: 30px;
  animation-duration: 11.8s;
  animation-delay: -10.6s;
}

.sky-winter i:nth-child(12) {
  left: 17.2%;
  width: 4.3px;
  height: 4.3px;
  --drift: -9px;
  animation-duration: 12.2s;
  animation-delay: -4.5s;
}

.sky-winter i:nth-child(13) {
  left: 33.6%;
  width: 5.7px;
  height: 5.7px;
  --drift: -19px;
  animation-duration: 13.3s;
  animation-delay: -9.8s;
}

.sky-winter i:nth-child(14) {
  left: 45.9%;
  width: 4.5px;
  height: 4.5px;
  --drift: 9px;
  animation-duration: 15.9s;
  animation-delay: -10.2s;
}

.sky-winter i:nth-child(15) {
  left: 50.5%;
  width: 5.1px;
  height: 5.1px;
  --drift: -7px;
  animation-duration: 14.5s;
  animation-delay: -15.0s;
}

.sky-winter i:nth-child(16) {
  left: 25.6%;
  width: 4.2px;
  height: 4.2px;
  --drift: -12px;
  animation-duration: 13.7s;
  animation-delay: -5.6s;
}

.sky-winter i:nth-child(17) {
  left: 78.9%;
  width: 3.2px;
  height: 3.2px;
  --drift: 22px;
  animation-duration: 16.0s;
  animation-delay: -1.8s;
}

.sky-winter i:nth-child(18) {
  left: 40.9%;
  width: 3.7px;
  height: 3.7px;
  --drift: 35px;
  animation-duration: 10.2s;
  animation-delay: -1.2s;
}

.sky-summer i:nth-child(1) {
  left: 48.4%;
  top: 48.3%;
  --fx: -18px;
  --fy: 9px;
  animation-duration: 7.3s;
  animation-delay: -4.7s;
}

.sky-summer i:nth-child(2) {
  left: 60.5%;
  top: 70.7%;
  --fx: 13px;
  --fy: -14px;
  animation-duration: 9.4s;
  animation-delay: -7.3s;
}

.sky-summer i:nth-child(3) {
  left: 18.5%;
  top: 51.4%;
  --fx: 6px;
  --fy: -16px;
  animation-duration: 5.4s;
  animation-delay: -0.0s;
}

.sky-summer i:nth-child(4) {
  left: 53.6%;
  top: 58.7%;
  --fx: 19px;
  --fy: -16px;
  animation-duration: 8.4s;
  animation-delay: -1.9s;
}

.sky-summer i:nth-child(5) {
  left: 35.9%;
  top: 70.8%;
  --fx: -25px;
  --fy: 9px;
  animation-duration: 5.6s;
  animation-delay: -3.9s;
}

.sky-summer i:nth-child(6) {
  left: 48.6%;
  top: 71.7%;
  --fx: -16px;
  --fy: 11px;
  animation-duration: 5.1s;
  animation-delay: -7.2s;
}

.sky-summer i:nth-child(7) {
  left: 45.1%;
  top: 64.4%;
  --fx: -15px;
  --fy: -4px;
  animation-duration: 6.3s;
  animation-delay: -1.8s;
}

.sky-summer i:nth-child(8) {
  left: 20.5%;
  top: 67.1%;
  --fx: 0px;
  --fy: -23px;
  animation-duration: 8.5s;
  animation-delay: -5.7s;
}

.sky-summer i:nth-child(9) {
  left: 23.3%;
  top: 71.6%;
  --fx: 20px;
  --fy: -23px;
  animation-duration: 5.7s;
  animation-delay: -5.5s;
}

.sky-summer i:nth-child(10) {
  left: 60.4%;
  top: 69.8%;
  --fx: 13px;
  --fy: -9px;
  animation-duration: 10.0s;
  animation-delay: -7.6s;
}

.sky-summer i:nth-child(11) {
  left: 29.9%;
  top: 65.8%;
  --fx: -13px;
  --fy: -9px;
  animation-duration: 9.4s;
  animation-delay: -3.2s;
}

.sky-summer i:nth-child(12) {
  left: 60.6%;
  top: 60.8%;
  --fx: 12px;
  --fy: -12px;
  animation-duration: 6.8s;
  animation-delay: -5.0s;
}

/* The reveal: house first, then the paths draw out, then each place. */
.area-map.js-ready [data-reveal] {
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.area-map.js-ready [data-reveal]:not(.seen) {
  opacity: 0;
  transform: translateY(16px) scale(0.96);
}

.area-map.js-ready .map-wash:not(.seen) {
  transform: none;
}

.area-map.js-ready .map-lines:not(.seen) {
  opacity: 1;
  transform: none;
}

.area-map.js-ready .map-lines .draw {
  transition: stroke-dashoffset 0.9s ease;
}

.area-map.js-ready .map-lines:not(.seen) .draw {
  stroke-dashoffset: 1;
}

.area-map.js-ready .map-home {
  transition-delay: 0.15s;
}

.area-map.js-ready .map-ribbon {
  transition-delay: 1.9s;
}

.area-map.no-anim [data-reveal],
.area-map.no-anim .draw {
  transition: none !important;
}

@media (min-width: 921px) {
  .area-map.js-ready .map-lines .draw.d1 {
    transition-delay: 0.58s;
  }
  .area-map.js-ready .spot.d1 {
    transition-delay: 0.88s;
  }

  .area-map.js-ready .map-lines .draw.d2 {
    transition-delay: 0.71s;
  }
  .area-map.js-ready .spot.d2 {
    transition-delay: 1.01s;
  }

  .area-map.js-ready .map-lines .draw.d3 {
    transition-delay: 0.84s;
  }
  .area-map.js-ready .spot.d3 {
    transition-delay: 1.14s;
  }

  .area-map.js-ready .map-lines .draw.d4 {
    transition-delay: 0.97s;
  }
  .area-map.js-ready .spot.d4 {
    transition-delay: 1.27s;
  }

  .area-map.js-ready .map-lines .draw.d5 {
    transition-delay: 1.10s;
  }
  .area-map.js-ready .spot.d5 {
    transition-delay: 1.40s;
  }

  .area-map.js-ready .map-lines .draw.d6 {
    transition-delay: 1.23s;
  }
  .area-map.js-ready .spot.d6 {
    transition-delay: 1.53s;
  }

  .area-map.js-ready .map-lines .draw.d7 {
    transition-delay: 1.36s;
  }
  .area-map.js-ready .spot.d7 {
    transition-delay: 1.66s;
  }

  .area-map.js-ready .map-lines .draw.d8 {
    transition-delay: 1.49s;
  }
  .area-map.js-ready .spot.d8 {
    transition-delay: 1.79s;
  }

  .area-map.js-ready .map-lines .draw.d9 {
    transition-delay: 1.62s;
  }
  .area-map.js-ready .spot.d9 {
    transition-delay: 1.92s;
  }
}

/* Narrow screens: the house on top, then the places as a list of cards. */
@media (max-width: 920px) {
  .map-season {
    aspect-ratio: auto;
    container-type: normal;
    overflow: visible;
  }
  .map-wash,
  .map-lines,
  .map-ribbon,
  .map-sky {
    display: none;
  }
  .map-season .map-home {
    position: relative;
    left: auto;
    top: auto;
    width: min(360px, 84%);
    margin: 0 auto 28px;
  }
  .map-title {
    font-size: clamp(2.3rem, 9vw, 2.9rem);
  }
  .map-title span {
    font-size: 0.68rem;
  }
  .map-spots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 24px 16px;
  }
  .map-spots .spot {
    position: static;
    width: auto;
  }
  .spot h3 {
    font-size: 0.74rem;
  }
  .spot p {
    font-size: 0.74rem;
  }
  .area-map.js-ready .spot:nth-child(even) {
    transition-delay: 0.12s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .map-sky {
    display: none;
  }
  .area-map [data-reveal],
  .area-map .draw {
    transition: none !important;
  }
}

/* ---------- terms page ---------- */

.terms h3 {
  margin-top: 2em;
}

.terms ul {
  padding-left: 1.2em;
}

.terms li {
  margin-bottom: 0.4em;
}

/* ---------- all-photos page ---------- */

.photos-head {
  padding-bottom: 8px;
}

.photos-head h1 {
  font-size: clamp(3.2rem, 10vw, 5.6rem);
}

.photo-group {
  padding: 28px 0 12px;
}

.photo-group h2 {
  font-size: clamp(2.2rem, 5vw, 3rem);
}

.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.photo-grid figure {
  margin: 0;
  scroll-margin-top: 16px;
}

.photo-grid figure.wide {
  grid-column: span 2;
}

.photo-grid a {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--paper-2);
}

.photo-grid figure:target a {
  outline: 3px solid var(--sage);
  outline-offset: 3px;
}

.photos-cta {
  text-align: center;
  padding: 36px 0 8px;
}

@media (max-width: 640px) {
  .photo-grid {
    grid-template-columns: 1fr;
  }
  .photo-grid figure.wide {
    grid-column: auto;
  }
}
