/* Quiet Poconos Chalet — hand-written, mobile-first. See planning/poconos-chalet/design.md.
   v2: navy and off-white sections in turn, one idea per screen, centred headlines,
   one photo and one line per room, one motion moment on load (off under prefers-reduced-motion). */

:root {
  --ground: #F3F5F6;
  --ink: #1E2A3A;
  --ink-deep: #16202D;
  --stone: #8A9099;
  --stone-text: #656C76;   /* --stone darkened for 4.5:1 on --ground; hairlines keep --stone */
  --stone-on-dark: #B9C0C9; /* secondary text on --ink */
  --pine: #B8874B;
  --pine-text: #85622F;    /* --pine darkened for 4.5:1 text links on --ground */
  --ember: #B3362B;
  --hairline: rgba(30, 42, 58, 0.14);
  --hairline-dark: rgba(243, 245, 246, 0.16);
  --font: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --wrap: 72rem;
  --gutter: 1.25rem;
  --radius: 16px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  padding-bottom: 4rem; /* room for the sticky bar on mobile */
}

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

a { color: var(--pine-text); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--ink); }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.dark :focus-visible, .site-header :focus-visible { outline-color: var(--ground); }

h1, h2, h3 { font-weight: 700; line-height: 1.05; letter-spacing: -0.025em; margin: 0 0 0.75rem; }
h1 { font-size: 2.625rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.125rem; margin-top: 1.5rem; }
p { margin: 0 0 1rem; }
ul { padding-left: 1.2rem; margin: 0 0 1rem; }
li { margin-bottom: 0.4rem; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 44rem; }
.centered { text-align: center; }
.centered .cta-row, .centered .inline-list { justify-content: center; }
.centered p { margin-left: auto; margin-right: auto; }
.muted { color: var(--stone-text); }
.small { font-size: 0.875rem; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: var(--gutter); top: -3rem; background: var(--ground); color: var(--ink);
  padding: 0.5rem 0.75rem; z-index: 30;
}
.skip:focus { top: 0.5rem; }

/* Dark sections */
.dark { background: var(--ink); color: var(--ground); }
.dark .lede, .dark .muted { color: var(--stone-on-dark); }
.dark a { color: var(--ground); }
.dark .btn { border-color: rgba(243, 245, 246, 0.55); color: var(--ground); }
.dark .btn:hover { background: var(--ground); color: var(--ink); border-color: var(--ground); }
.dark .btn-primary, .dark .btn-primary:hover { background: var(--ember); border-color: var(--ember); color: #fff; }

/* Header: dark, translucent, sticks */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(30, 42, 58, 0.78);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  color: var(--ground);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 0 1rem;
  min-height: 3.25rem;
}
.brand { color: var(--ground); text-decoration: none; font-weight: 700; font-size: 1rem; white-space: nowrap; }
.site-header nav { display: flex; align-items: center; gap: 0 1.1rem; }
.site-header nav a { color: var(--ground); text-decoration: none; font-size: 0.875rem; white-space: nowrap; padding: 0.4rem 0; opacity: 0.85; }
.site-header nav a:not(.btn) { display: none; }
.site-header nav a:not(.btn):hover { opacity: 1; text-decoration: underline; }
.site-header nav .btn { opacity: 1; padding: 0.3rem 0.85rem; }

/* Buttons say what happens; ember is used once */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.75rem; padding: 0.55rem 1.2rem;
  border: 1px solid var(--ink); border-radius: 999px;
  color: var(--ink); background: transparent; text-decoration: none;
  font: 500 1rem/1.2 var(--font); cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}
.btn:hover { background: var(--ink); color: var(--ground); }
.btn-primary { background: var(--ember); border-color: var(--ember); color: #fff; }
.btn-primary:hover { background: var(--ember); border-color: var(--ember); color: #fff; filter: brightness(0.92); }
.btn-small { min-height: 2rem; font-size: 0.875rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0 0 1rem; }
.round {
  display: inline-flex; align-items: center; justify-content: center; padding: 0;
  width: 2.75rem; height: 2.75rem; border-radius: 999px; border: 1px solid var(--ink);
  background: transparent; color: var(--ink); cursor: pointer;
}
.round svg { display: block; }
.round:hover { background: var(--ink); color: var(--ground); }
.round:disabled { opacity: 0.3; cursor: default; }

/* Intro: headline above the photo */
.intro { padding: 3rem 0 3rem; }
.intro h1 { max-width: 16ch; margin: 0 auto 1rem; }
.lede { font-size: 1.125rem; max-width: 42ch; margin: 0 auto 1.5rem; color: var(--stone-text); }
.hero { margin: 2rem 0 0; }
.hero picture { display: block; overflow: hidden; }
.hero img {
  width: 100%; aspect-ratio: 1 / 1; height: auto; object-fit: cover; object-position: 50% 45%;
  transform: scale(1.03);
  animation: settle 700ms ease-out forwards;
}
.hero-caption { text-align: center; color: var(--stone-on-dark); font-size: 0.9375rem; margin: 0.9rem var(--gutter) 0; }
@keyframes settle { to { transform: scale(1); } }

/* The one motion moment: the opening text arrives in a short stagger while the hero photo settles.
   The photo itself never fades: it is the largest contentful paint. */
.arrive { opacity: 0; transform: translateY(12px); animation: arrive 700ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
h1.arrive { animation-delay: 60ms; }
.lede.arrive { animation-delay: 180ms; }
.cta-row.arrive { animation-delay: 300ms; }
@keyframes arrive { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero img { transform: none; animation: none; }
  .arrive { opacity: 1; transform: none; animation: none; }
}

/* Facts: one line of display type */
.facts { padding: 3.5rem 0 2.5rem; }
.facts-line { font-size: 1.75rem; font-weight: 700; line-height: 1.15; letter-spacing: -0.025em; max-width: 22ch; margin: 0 auto; }

/* Walkthrough: one photo, one line, one screen per room */
.walkthrough-section { padding: 2.5rem 0 3rem; }
.walkthrough { display: flex; flex-direction: column; gap: 3.25rem; }
.room { margin: 0; scroll-margin-top: 4rem; }
.room button, .two-up-photo button, .strip button {
  display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; color: inherit; text-align: inherit; font: inherit;
}
.room picture, .two-up-photo picture, .strip picture { display: block; overflow: hidden; }
.room img { width: 100%; }
.room figcaption {
  text-align: center; font-weight: 500; font-size: 1.1875rem; line-height: 1.3; letter-spacing: -0.015em;
  margin: 1rem auto 0; padding: 0 var(--gutter); max-width: 30ch;
}

/* More of the house: horizontal snap strip */
.more { padding: 2rem 0 3rem; border-top: 1px solid var(--hairline); }
.strip-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.strip-head h2 { margin: 0; }
.strip-controls { display: none; gap: 0.5rem; margin: 0; }
.strip {
  display: flex; gap: 0.75rem; overflow-x: auto; padding: 0 var(--gutter) 0.5rem;
  scroll-snap-type: x mandatory; scroll-padding-left: var(--gutter);
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.strip::-webkit-scrollbar { display: none; }
.strip figure { flex: 0 0 82vw; margin: 0; scroll-snap-align: start; }
.strip picture { border-radius: 12px; }
.strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.strip figcaption { font-size: 0.875rem; color: var(--stone-text); margin-top: 0.5rem; line-height: 1.35; }

/* Evenings: dark, text beside photo */
.evening { padding: 4rem 0; }
.two-up { display: grid; gap: 2rem; align-items: center; }
.two-up-text p { max-width: 48ch; color: var(--stone-on-dark); }
.two-up-photo { margin: 0; }
.two-up-photo picture { border-radius: var(--radius); }

/* Prose sections */
.prose-section { padding: 3.5rem 0; border-top: 1px solid var(--hairline); }
.prose-section p, .prose-section ul, .prose-section blockquote { max-width: 65ch; }
.two-col { display: grid; gap: 2.5rem; }
.two-col h2 { font-size: 1.625rem; }
.facts-list { padding-left: 1.1rem; }
details { margin-top: 0.5rem; }
summary { cursor: pointer; font-weight: 500; color: var(--ink); padding: 0.4rem 0; }
details ul { margin-top: 0.5rem; }

.inline-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
.inline-list li { margin: 0; }

blockquote { margin: 0 0 1.5rem; padding-left: 1rem; border-left: 2px solid var(--pine); }
blockquote p { margin-bottom: 0.35rem; }
blockquote footer { color: var(--stone-text); font-size: 0.875rem; }

/* Availability calendar: monochrome, read-only */
.cal-controls { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 0 0 1.25rem; }
.cal-controls[hidden] { display: none; }
#cal-range { min-width: 14ch; font-weight: 500; }
.calendar { display: grid; gap: 1.25rem 2rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 18rem)); justify-content: center; margin: 0 auto 1.25rem; }
.month { font-size: 0.875rem; text-align: left; }
.month h3 { font-size: 0.9375rem; font-weight: 700; margin: 0 0 0.35rem; text-align: center; }
.month table { border-collapse: collapse; width: 100%; table-layout: fixed; }
.month th { font-weight: 400; color: var(--stone-text); padding: 0.15rem 0; text-align: center; font-size: 0.75rem; }
.month td { text-align: center; padding: 0; height: 2rem; font-variant-numeric: tabular-nums; }
.month td.free { color: var(--ink); }
.month td.blocked { color: var(--stone-text); text-decoration: line-through; text-decoration-thickness: 1px; }
.month td.past { color: var(--stone); opacity: 0.5; }
.month td.blocked { cursor: default; }
.tip {
  position: absolute; z-index: 15; transform: translate(-50%, -100%); margin-top: -0.5rem;
  background: var(--ink); color: var(--ground); font-size: 0.8125rem; line-height: 1.2; white-space: nowrap;
  padding: 0.4rem 0.6rem; border-radius: 6px; pointer-events: none;
}
.tip::after {
  content: ""; position: absolute; left: 50%; top: 100%; transform: translateX(-50%);
  border: 0.35rem solid transparent; border-top-color: var(--ink);
}
.calendar-key { display: flex; justify-content: center; gap: 1.25rem; margin: 0.25rem 0 0; padding: 0; list-style: none; font-size: 0.8125rem; color: var(--stone-text); grid-column: 1 / -1; }
.calendar-key span { display: inline-block; min-width: 1.4rem; text-align: center; margin-right: 0.35rem; font-variant-numeric: tabular-nums; }
.calendar-key .k-free { color: var(--ink); }
.calendar-key .k-blocked { color: var(--stone-text); text-decoration: line-through; }

/* Enquiry form (hidden until /api/config says otherwise) */
#enquiry-form label { display: block; margin-bottom: 0.9rem; font-weight: 500; }
#enquiry-form input, #enquiry-form textarea {
  display: block; width: 100%; margin-top: 0.3rem; padding: 0.55rem 0.65rem;
  font: 400 1rem/1.3 var(--font); color: var(--ink); background: #fff;
  border: 1px solid var(--stone); border-radius: 8px;
}
#enquiry-form .field-row { display: grid; gap: 0 1rem; grid-template-columns: 1fr; }
#enquiry-form .hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
#enquiry-form { max-width: 40rem; }

/* Good to know: spec sheet */
.gtk .lede { margin-bottom: 2.5rem; }
.spec { display: grid; gap: 1.75rem 2.5rem; margin: 0; }
.spec-item { border-top: 1px solid var(--hairline); padding-top: 1rem; }
.spec dt { font-size: 0.875rem; font-weight: 500; color: var(--stone-text); margin-bottom: 0.35rem; }
.spec dd { margin: 0; font-size: 1rem; color: var(--stone-text); line-height: 1.45; }
.spec dd strong { display: block; color: var(--ink); font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 0.4rem; }
.sticky-bar { grid-template-columns: repeat(2, 1fr); }

/* Reviews */
.reviews h2 { margin-bottom: 2rem; }
.review-grid { display: grid; gap: 1.25rem; margin-bottom: 1.5rem; }
.review {
  position: relative; background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 2.75rem 1.5rem 1.5rem; margin: 0;
}
.review::before {
  content: "\201C"; position: absolute; top: 0.4rem; left: 1.25rem;
  font-size: 4.5rem; line-height: 1; font-weight: 700; color: var(--pine); opacity: 0.85;
}
.review .pull { font-size: 1.375rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 0.9rem; max-width: none; color: var(--ink); }
.review p { font-size: 1rem; color: var(--stone-text); max-width: none; }
.review p:last-of-type { margin-bottom: 1.25rem; }
.review footer { display: flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; color: var(--stone-text); }
.review footer strong { display: block; color: var(--ink); font-size: 1rem; }
.mono {
  flex: 0 0 auto; width: 2.5rem; height: 2.5rem; border-radius: 999px; background: var(--ink); color: var(--ground);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.0625rem;
}

/* Contact: dark close */
.contact { padding: 4rem 0; }
.contact .lede { margin-bottom: 1.75rem; }

/* Footer */
.site-footer { background: var(--ink-deep); color: var(--stone-on-dark); padding: 1.75rem 0 2.25rem; font-size: 0.875rem; }
.site-footer a { color: var(--ground); }

/* Sticky bar: the primary conversion surface on phones */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: grid; grid-template-columns: repeat(2, 1fr);
  background: rgba(30, 42, 58, 0.92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--hairline-dark);
  transform: translateY(100%); transition: transform 200ms ease-out;
  padding-bottom: env(safe-area-inset-bottom);
}
.sticky-bar.is-visible { transform: none; }
.sticky-bar a {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 3.5rem; padding: 0.4rem 0.5rem;
  color: var(--ground); text-decoration: none; font-size: 0.875rem; font-weight: 500; line-height: 1.2;
}
.sticky-bar a + a { border-left: 1px solid var(--hairline-dark); }
.sticky-bar a:focus-visible { outline-color: var(--ground); outline-offset: -3px; }
@media (prefers-reduced-motion: reduce) { .sticky-bar { transition: none; } }

/* Lightbox */
.lightbox { border: 0; padding: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; background: var(--ink-deep); color: var(--ground); }
.lightbox::backdrop { background: var(--ink-deep); }
.lightbox figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3.5rem 0.5rem 1rem; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 7rem); width: auto; height: auto; object-fit: contain; border-radius: 8px; }
.lightbox figcaption { font-size: 0.9375rem; margin-top: 0.75rem; padding: 0 1rem; text-align: center; max-width: 60ch; }
.lightbox button {
  position: absolute; min-width: 2.75rem; min-height: 2.75rem; padding: 0.5rem 0.9rem;
  border: 1px solid rgba(243, 245, 246, 0.5); border-radius: 999px;
  background: rgba(30, 42, 58, 0.6); color: var(--ground); font: 500 0.9375rem var(--font); cursor: pointer;
}
.lb-close { top: 0.75rem; right: 0.75rem; }
.lb-prev { bottom: 0.75rem; left: 0.75rem; }
.lb-next { bottom: 0.75rem; right: 0.75rem; }

/* Tablet and up */
@media (min-width: 700px) {
  .hero { margin-left: var(--gutter); margin-right: var(--gutter); }
  .hero picture, .room picture { border-radius: var(--radius); }
  .walkthrough { padding: 0 var(--gutter); }
  .two-col { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .review-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; }
  .review { padding: 3.25rem 2rem 1.75rem; }
  .review .pull { font-size: 1.625rem; }
  .spec { grid-template-columns: repeat(2, 1fr); }
  .strip figure { flex: 0 0 26rem; }
  .strip-controls:not([hidden]) { display: flex; }
  .hero img { aspect-ratio: 4 / 3; }
}

/* Desktop */
@media (min-width: 900px) {
  body { font-size: 1.125rem; padding-bottom: 0; }
  h1 { font-size: 4.5rem; }
  h2 { font-size: 2.75rem; }
  .site-header nav { gap: 0 1.5rem; }
  .site-header nav a:not(.btn) { display: inline; font-size: 0.9375rem; }
  .intro { padding-top: 5.5rem; padding-bottom: 4rem; }
  .intro h1 { max-width: 17ch; }
  .lede { font-size: 1.375rem; max-width: 46ch; }
  .hero { margin: 3rem auto 0; max-width: var(--wrap); }
  .hero img { aspect-ratio: auto; height: auto; max-height: 78vh; }
  .facts { padding: 5.5rem 0 4rem; }
  .facts-line { font-size: 2.75rem; }
  .walkthrough-section { padding: 3.5rem 0 4rem; }
  .walkthrough { gap: 5rem; max-width: var(--wrap); margin: 0 auto; }
  .room img { height: auto; max-height: 82vh; object-fit: cover; }
  .room figcaption { font-size: 1.625rem; margin-top: 1.4rem; max-width: 30ch; }
  .more { padding: 4rem 0 5rem; }
  .strip { padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); scroll-padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); }
  .strip figure { flex: 0 0 34rem; }
  .evening { padding: 6rem 0; }
  .two-up { grid-template-columns: 5fr 7fr; gap: 4rem; }
  .prose-section { padding: 5rem 0; }
  .two-col h2 { font-size: 2rem; }
  .spec { grid-template-columns: repeat(3, 1fr); gap: 2.5rem 3rem; }
  .spec dd strong { font-size: 1.75rem; }
  .calendar { grid-template-columns: repeat(3, 18rem); }
  .contact { padding: 6rem 0; }
  #enquiry-form .field-row { grid-template-columns: 1fr 1fr; }
  #enquiry-form .field-row.three { grid-template-columns: 1fr 1fr 1fr; }
  .sticky-bar { display: none; }
  .lightbox figure { padding: 3.5rem 5rem 1rem; }
  .lb-prev, .lb-next { top: 50%; bottom: auto; transform: translateY(-50%); }
}
