/* The Loonie Moose. Palette from the common loon (black, white, the red eye)
   and the lake. Display: Bricolage Grotesque. Text: Newsreader. */

@font-face { font-family: "Bricolage Grotesque"; src: url(fonts/bricolage.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url(fonts/newsreader.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --loon: #000;            /* the logo's ink, headlines */
  --white: #fff;
  --eye: #C4262E;          /* the loon's red eye: booking buttons only */
  --eye-deep: #A11E25;
  --lake: #1E5568;         /* deep water */
  --lake-deep: #163F4D;
  --sage: #E1E9E4;         /* the house siding, lightened */
  --ink: #24302D;          /* body text */
  --muted: #56625F;
  --rule: rgba(0, 0, 0, .14);

  --display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --text: "Newsreader", Georgia, "Times New Roman", serif;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1320px;
  --gap: clamp(8px, 1.2vw, 16px);
  --section: clamp(72px, 10vw, 144px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 1.125rem/1.6 var(--text); font-optical-sizing: auto; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); color: var(--loon); margin: 0; font-optical-sizing: auto; }
p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--eye); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--white); padding: 8px 14px; }
.skip:focus { left: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px;
  font: 600 1rem/1.1 var(--display); letter-spacing: .005em; text-decoration: none; border-radius: 3px;
  border: 2px solid transparent; cursor: pointer; white-space: nowrap; transition: background-color .15s, color .15s, border-color .15s; }
.btn--primary { background: var(--eye); color: var(--white); }
.btn--primary:hover { background: var(--eye-deep); }
.btn--ghost { border-color: rgba(255, 255, 255, .85); color: var(--white); background: rgba(0, 0, 0, .12); }
.btn--ghost:hover { background: var(--white); color: var(--loon); }
.btn--outline { border-color: var(--loon); color: var(--loon); background: none; }
.btn--outline:hover { background: var(--loon); color: var(--white); }
.btn--small { min-height: 40px; padding: 8px 16px; font-size: .9375rem; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* Top bar: white type over the hero, white bar once you scroll past it */
.topbar { position: fixed; inset: 0 0 auto; z-index: 50; color: var(--white); transition: background-color .25s, color .25s, box-shadow .25s; }
.topbar-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand span { font: 700 1.1875rem/1 var(--display); letter-spacing: -.01em; white-space: nowrap; }
.brand-moose { width: 46px; height: 43px; fill: currentColor; }
.brand-moose .moose-lines { fill: currentColor; }
.topbar-links { display: flex; gap: 28px; }
.topbar-links a { font: 500 .9375rem/1 var(--display); text-decoration: none; padding: 8px 0; border-bottom: 2px solid transparent; }
.topbar-links a:hover { border-bottom-color: currentColor; }
.topbar.is-solid { background: var(--white); color: var(--loon); box-shadow: 0 1px 0 var(--rule); }
.topbar:not(.is-solid) .btn--small { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .8); }
.topbar:not(.is-solid) .btn--small:hover { background: var(--white); color: var(--loon); }

/* Hero */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; display: flex; align-items: flex-end; color: var(--white); overflow: hidden; background: var(--lake-deep); }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background:
  linear-gradient(to top, rgba(8, 24, 30, .72) 0%, rgba(8, 24, 30, .38) 32%, rgba(8, 24, 30, 0) 58%),
  linear-gradient(to bottom, rgba(8, 24, 30, .45) 0%, rgba(8, 24, 30, 0) 18%); }
.hero-copy { position: relative; padding-bottom: clamp(104px, 15vh, 168px); }
.hero h1 { color: var(--white); font-size: clamp(2.75rem, 7.4vw, 6.75rem); font-weight: 700; line-height: .95; letter-spacing: -.018em; max-width: 11.5ch; text-wrap: balance; }
.hero-sub { margin-top: 18px; max-width: 34ch; font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.45; color: rgba(255, 255, 255, .92); }
.ctas--hero { margin-top: 28px; }

/* Intro band, with the moose peeking up over the edge of the hero */
.intro { position: relative; background: var(--lake); color: var(--white); padding-block: clamp(88px, 11vw, 150px) var(--section); }
.peek { position: absolute; top: 0; right: var(--gutter); width: clamp(132px, 19vw, 290px); transform: translateY(-58%); z-index: 2; pointer-events: none; }
.peek-moose { width: 100%; height: auto; overflow: visible; }
.peek-moose .moose-fill { fill: var(--white); }
.peek-moose .moose-lines { fill: var(--loon); }
@media (prefers-reduced-motion: no-preference) {
  .js .peek { transform: translateY(-8%); transition: transform 1.1s cubic-bezier(.2, .9, .25, 1.25) .15s; }
  .js .peek.is-up { transform: translateY(-58%); }
}
.facts { list-style: none; margin: 0 auto clamp(36px, 5vw, 64px); display: flex; flex-wrap: wrap; row-gap: 10px; font: 650 clamp(1.25rem, 2.2vw, 1.75rem)/1.2 var(--display); letter-spacing: -.01em; }
.facts li + li { margin-left: clamp(16px, 2.4vw, 32px); padding-left: clamp(16px, 2.4vw, 32px); border-left: 1px solid rgba(255, 255, 255, .35); }
.intro-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.lede { font-size: clamp(1.375rem, 2.3vw, 1.875rem); line-height: 1.42; max-width: 30ch; text-wrap: pretty; }
.highlights { list-style: none; margin: 6px 0 0; padding: 0; font: 500 1.0625rem/1.35 var(--display); }
.highlights li { padding: 14px 0 14px 22px; border-top: 1px solid rgba(255, 255, 255, .22); position: relative; }
.highlights li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .22); }
.highlights li::before { content: ""; position: absolute; left: 0; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--eye); box-shadow: 0 0 0 2px var(--white); }

/* Full-bleed photographs */
.bleed { position: relative; margin: 0; height: min(92vh, 66vw); min-height: 360px; overflow: hidden; background: var(--lake-deep); }
.bleed-img { width: 100%; height: 100%; object-fit: cover; }
.bleed-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(6, 12, 14, .74) 0%, rgba(6, 12, 14, .2) 45%, rgba(6, 12, 14, 0) 70%); }
.bleed-copy { position: absolute; left: 0; right: 0; bottom: 0; padding-bottom: clamp(32px, 6vw, 80px); color: var(--white); }
.bleed-copy h2 { color: var(--white); font-size: clamp(2.25rem, 5.4vw, 4.5rem); font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.bleed-copy p { margin-top: 12px; max-width: 36ch; font-size: clamp(1.125rem, 1.7vw, 1.4375rem); line-height: 1.45; }

/* Story sections */
.story, .features, .gallery { padding-block: var(--section) 0; }
.story--sage { background: var(--sage); padding-bottom: var(--section); margin-top: var(--section); }
.story-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(28px, 4vw, 52px); }
.story-head h2 { font-size: clamp(2.25rem, 5vw, 4.25rem); font-weight: 700; letter-spacing: -.02em; line-height: .98; }
.story-head p { max-width: 44ch; font-size: clamp(1.125rem, 1.5vw, 1.3125rem); line-height: 1.55; color: var(--ink); }

.mosaic { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 21vw, 300px); gap: var(--gap); }
.tile { margin: 0; grid-column: span var(--cols); grid-row: span var(--rows); min-height: 0; }
.tile-open { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: var(--sage); cursor: zoom-in; overflow: hidden; border-radius: 2px; }
.tile-open img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tile-open:hover img { transform: scale(1.025); }

/* Rain or shine */
.feature-list { list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.feature-photo { aspect-ratio: 4 / 5; height: auto; }
.feature-list h3 { margin-top: 16px; font-size: 1.3125rem; font-weight: 650; letter-spacing: -.01em; }
.feature-list p { margin-top: 4px; color: var(--muted); font-size: 1.0625rem; line-height: 1.5; }
.features + .bleed { margin-top: var(--section); }
.story + .bleed, .story + .features { margin-top: 0; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.gallery-item { aspect-ratio: 3 / 2; position: relative; }
.gallery-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .52); color: var(--white); font: 700 clamp(1.5rem, 3vw, 2.25rem)/1 var(--display); }
.gallery .btn--outline { margin-top: 28px; }

/* Video clips */
.videos { padding-block: var(--section) 0; }
.clip-rows { display: grid; gap: clamp(20px, 2.4vw, 32px); }
.clip-list { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--gap); }
.clip-list li { flex: var(--ar) 1 0; min-width: 0; }   /* width follows each clip's shape, so a row shares one height */
.clip-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.clip { display: block; width: 100%; aspect-ratio: var(--ar); object-fit: cover; background: var(--sage); border-radius: 2px; }
.clip-label { margin-top: 10px; font: 600 1.0625rem/1.3 var(--display); color: var(--loon); }

/* Floor plans */
.plans { padding-block: var(--section) 0; }
.fly { display: block; width: 100%; aspect-ratio: 16 / 9; margin-bottom: clamp(20px, 3vw, 36px); border-radius: 2px; background: #0a2129; cursor: pointer; }
.plan-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.plan-tabs [role=tab] { font: 600 .9375rem/1 var(--display); padding: 11px 18px; border: 1.5px solid var(--rule); border-radius: 999px; background: none; color: var(--ink); cursor: pointer; }
.plan-tabs [role=tab]:hover { border-color: var(--loon); }
.plan-tabs [aria-selected="true"] { background: var(--loon); border-color: var(--loon); color: var(--white); }
.js .plan-panel[data-inactive] { display: none; }
.plan-panel + .plan-panel { margin-top: var(--gap); }
.js .plan-panel + .plan-panel { margin-top: 0; }
.plan-frame { --plan-h: min(74vh, 780px); display: flex; align-items: center; justify-content: center; height: var(--plan-h); border-radius: 2px; background: #E6EBE9; overflow: hidden; }
.plan-stage { position: relative; }
.plan-open { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; }
.plan-open img { display: block; width: auto; height: auto; max-height: var(--plan-h); max-width: min(calc(100vw - 2 * var(--gutter)), calc(var(--max) - 2 * var(--gutter))); }
.spot { position: absolute; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; cursor: pointer; transform: translate(-8px, -50%); }
.spot--left { flex-direction: row-reverse; transform: translate(calc(-100% + 8px), -50%); }
.spot-dot { position: relative; flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--eye); box-shadow: 0 0 0 3px var(--white), 0 2px 8px rgba(0, 0, 0, .35); }
.spot-dot::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid var(--eye); opacity: 0; }
.spot-label { font: 600 .875rem/1 var(--display); color: var(--loon); background: var(--white); padding: 7px 11px; border-radius: 999px; box-shadow: 0 2px 10px rgba(0, 0, 0, .18); white-space: nowrap; transition: background-color .15s, color .15s; }
.spot:hover .spot-label, .spot:focus-visible .spot-label { background: var(--loon); color: var(--white); }
@media (prefers-reduced-motion: no-preference) {
  .spot-dot::after { animation: ping 2.6s ease-out infinite; }
  @keyframes ping { 0% { transform: scale(1); opacity: .85; } 70%, 100% { transform: scale(2.4); opacity: 0; } }
}

/* Around here */
.area { padding-block: var(--section); }
.area-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); }
.area h2 { font-size: clamp(2.25rem, 5vw, 4.25rem); font-weight: 700; letter-spacing: -.02em; line-height: .98; }
.area-text { margin-top: 18px; max-width: 34ch; font-size: clamp(1.125rem, 1.5vw, 1.3125rem); }
.area-list { margin: 0; }
.area-list div { padding: 22px 0; border-top: 1px solid var(--rule); }
.area-list div:last-child { border-bottom: 1px solid var(--rule); }
.area-list dt { font: 650 1.3125rem/1.2 var(--display); color: var(--loon); }
.area-list dd { margin: 6px 0 0; color: var(--muted); max-width: 52ch; }

/* Reviews and FAQ (shown only when content.json has them) */
.reviews, .faq { padding-block: 0 var(--section); }
.review-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; }
.review-list blockquote { margin: 0; font-size: 1.3125rem; line-height: 1.5; }
.review-list figcaption { margin-top: 12px; font: 600 1rem var(--display); }
.faq-list details { border-top: 1px solid var(--rule); padding: 18px 0; }
.faq-list summary { font: 600 1.1875rem var(--display); cursor: pointer; }
.faq-list p { margin-top: 10px; max-width: 60ch; color: var(--muted); }

/* Closing */
.closing { position: relative; min-height: min(86vh, 860px); display: flex; align-items: flex-start; overflow: hidden; background: var(--lake-deep); }
.closing-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.closing-shade { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(10, 30, 40, .58) 0%, rgba(10, 30, 40, .3) 50%, rgba(10, 30, 40, 0) 78%); }
.closing-copy { position: relative; padding-top: clamp(80px, 12vw, 160px); color: var(--white); }
.closing h2 { color: var(--white); font-size: clamp(2.5rem, 6.4vw, 5.5rem); font-weight: 700; letter-spacing: -.018em; line-height: .96; max-width: 12ch; text-wrap: balance; }
.ctas--closing { margin-top: 30px; }
.pending { margin-top: 14px; font-size: 1rem; color: var(--white); text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }

/* Footer: the loon's checkered back as one thin band */
.footer { background: var(--loon); color: rgba(255, 255, 255, .86); padding-bottom: 48px; }
.loon-band { height: 28px; background-color: var(--loon);
  background-image: radial-gradient(circle, rgba(255, 255, 255, .9) 1.6px, transparent 2px);
  background-size: 14px 14px; background-position: 7px 7px; border-bottom: 1px solid rgba(255, 255, 255, .18); }
.footer-grid { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px 32px; padding-top: 44px; }
.footer-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); }
.footer-brand span { font: 700 1.375rem/1 var(--display); }
.footer-moose { width: 64px; height: 60px; fill: currentColor; }
.footer-moose .moose-lines { fill: var(--white); }
.footer-place { font-size: 1rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; font: 500 .9375rem var(--display); }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.credit { grid-column: 1 / -1; margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .16); font-size: .9375rem; }
.credit a { text-decoration: none; color: rgba(255, 255, 255, .7); }
.credit a:hover { color: var(--white); }

/* Lightbox */
.lightbox { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(4, 8, 10, .96); color: var(--white); }
.lightbox::backdrop { background: rgba(4, 8, 10, .96); }
.lightbox[open] { display: grid; place-items: center; }
.lb-figure { margin: 0; display: grid; justify-items: center; gap: 12px; padding: 64px 72px 24px; }
.lb-img { max-width: calc(100vw - 144px); max-height: calc(100dvh - 140px); width: auto; height: auto; object-fit: contain; }
.lb-video { display: block; width: min(100vw, calc((100dvh - 140px) * 9 / 16)); height: auto; aspect-ratio: 9 / 16; object-fit: contain; background: #000; border-radius: 2px; cursor: pointer; }
.lb-video.is-wide { width: min(calc(100vw - 144px), calc((100dvh - 140px) * 16 / 9)); aspect-ratio: 16 / 9; }
.lb-img[hidden], .lb-video[hidden] { display: none; }
.lb-caption { font-size: 1rem; color: rgba(255, 255, 255, .8); text-align: center; max-width: 60ch; }
.lb-btn { position: fixed; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .06); color: var(--white); font: 400 1.5rem/1 var(--display); cursor: pointer; }
.lb-btn:hover { background: rgba(255, 255, 255, .18); }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-close { right: 16px; top: 16px; }

/* Tablet */
@media (max-width: 1000px) {
  .topbar-links { display: none; }
  .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Phone */
@media (max-width: 760px) {
  body { font-size: 1.0625rem; }
  .topbar-inner { height: 64px; gap: 12px; }
  .brand-moose { width: 40px; height: 37px; }
  .brand span { font-size: 1rem; }
  .btn--small { padding: 6px 12px; font-size: .875rem; min-height: 38px; }
  .hero-copy { padding-bottom: 92px; }
  .hero h1 { font-size: clamp(2.5rem, 11.5vw, 3.5rem); }
  .ctas--hero .btn, .ctas--closing .btn { flex: 1 1 100%; }
  .peek { width: 118px; }
  .facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
  .facts li + li { margin-left: 0; padding-left: 0; border-left: 0; }
  .intro { padding-top: 84px; }
  .intro-grid, .story-head, .area-grid { grid-template-columns: minmax(0, 1fr); }
  .mosaic { grid-auto-rows: 58vw; }
  .tile { grid-column: span 12; grid-row: span 1; }
  .tile:first-child { grid-row: span 1; }
  .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .feature-list h3 { font-size: 1.125rem; margin-top: 10px; }
  .feature-list p { font-size: .9375rem; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-frame { --plan-h: min(118vw, 72vh); }
  .spot, .spot--left { padding: 8px; transform: translate(-50%, -50%); }
  .spot-label { display: none; }
  .clip-rows { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding-bottom: 6px; }
  .clip-list { display: contents; }
  .clip-list li { flex: 0 0 calc(var(--ar) * 49vw); scroll-snap-align: start; }
  .lb-video.is-wide { width: 100vw; }
  .bleed { height: 78vw; min-height: 300px; }
  .bleed--text { height: 120vw; }
  .closing { min-height: 128vw; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .lb-figure { padding: 60px 0 16px; }
  .lb-img { max-width: 100vw; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
}
