/* ============================================================
   The 1820 House — Stowe, Vermont
   Design: brand constant (spruce / brass / parchment), photography carries the season
   ============================================================ */

/* ---------- Tokens: dark-first, light defined on bare :root ---------- */
:root {
  --ground:        #F2F4F2;
  --surface:       #FFFFFF;
  --surface-2:     #E7EBE8;
  --raised:        #DDE3DF;
  --text:          #14231D;
  --text-dim:      #566860;
  --hairline:      #C6D0CA;
  --brass:         #8A6522;
  --brass-bright:  #A87B2C;
  --ember:         #9C3A24;
  --scrim-1:       rgba(10, 22, 18, 0.30);
  --scrim-2:       rgba(10, 22, 18, 0.82);
  --on-scrim:      #ECF1EE;
  --on-scrim-dim:  #C2CEC7;
  --btn-text:      #F4F7F5;
  --shadow:        0 1px 2px rgba(20,35,29,.06), 0 8px 28px rgba(20,35,29,.09);

  --wrap: 1180px;
  --gut: clamp(20px, 5vw, 56px);

  --step--1: clamp(.78rem, .74rem + .18vw, .86rem);
  --step-0:  clamp(1rem, .96rem + .2vw, 1.09rem);
  --step-1:  clamp(1.2rem, 1.1rem + .5vw, 1.45rem);
  --step-2:  clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  --step-3:  clamp(2rem, 1.6rem + 2vw, 3.1rem);
  --step-4:  clamp(2.6rem, 1.9rem + 3.4vw, 4.9rem);

  --ff-display: "Bodoni Moda", "Didot", "Bodoni MT", Georgia, serif;
  --ff-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --ff-util: "Archivo Narrow", "Archivo", "Arial Narrow", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground:       #0E1D18;
    --surface:      #142720;
    --surface-2:    #1A3028;
    --raised:       #1C3A2F;
    --text:         #E8EDEA;
    --text-dim:     #9BAAA2;
    --hairline:     #27453A;
    --brass:        #C89B4A;
    --brass-bright: #E0B463;
    --ember:        #D9613F;
    --scrim-1:      rgba(6, 16, 13, 0.34);
    --scrim-2:      rgba(6, 16, 13, 0.88);
    --on-scrim:     #E8EDEA;
    --on-scrim-dim: #A8B5AE;
    --btn-text:     #0E1D18;
    --shadow:       0 1px 2px rgba(0,0,0,.34), 0 10px 34px rgba(0,0,0,.42);
  }
}

:root[data-theme="dark"] {
  --ground:       #0E1D18;
  --surface:      #142720;
  --surface-2:    #1A3028;
  --raised:       #1C3A2F;
  --text:         #E8EDEA;
  --text-dim:     #9BAAA2;
  --hairline:     #27453A;
  --brass:        #C89B4A;
  --brass-bright: #E0B463;
  --ember:        #D9613F;
  --scrim-1:      rgba(6, 16, 13, 0.34);
  --scrim-2:      rgba(6, 16, 13, 0.88);
  --on-scrim:     #E8EDEA;
  --on-scrim-dim: #A8B5AE;
  --btn-text:     #0E1D18;
  --shadow:       0 1px 2px rgba(0,0,0,.34), 0 10px 34px rgba(0,0,0,.42);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--ff-body);
  font-size: var(--step-0);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

:where(a, button, input, select, summary):focus-visible {
  outline: 2px solid var(--brass-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3 {
  font-family: var(--ff-display);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }

.eyebrow {
  font-family: var(--ff-util);
  font-size: var(--step--1);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--brass);
  margin: 0;
}

.lede { font-size: var(--step-1); line-height: 1.5; color: var(--text-dim); max-width: 62ch; }

section { padding-block: clamp(64px, 9vw, 128px); }

.rule { height: 1px; background: var(--hairline); border: 0; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--ff-util);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 1rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--brass); color: var(--btn-text); }
.btn-primary:hover { background: var(--brass-bright); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--on-scrim); border-color: rgba(232,237,234,.42); }
.btn-ghost:hover { border-color: var(--on-scrim); background: rgba(232,237,234,.09); }

/* ---------- Masthead ---------- */
.masthead {
  position: absolute; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem var(--gut);
}
.masthead img { height: 58px; width: auto; }
.masthead nav { display: flex; align-items: center; gap: 1.9rem; }
.masthead nav a {
  font-family: var(--ff-util);
  font-size: .9rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .13em;
  color: var(--on-scrim); text-decoration: none; opacity: .88;
}
.masthead nav a:hover { opacity: 1; color: var(--brass-bright); }
@media (max-width: 860px) { .masthead nav { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  /* Kept deliberately light on the right so vivid photography (the fall
     maples especially) keeps its colour. Legibility on the left comes from
     a tighter, steeper wedge plus the text-shadow on the headline. */
  background:
    linear-gradient(180deg, rgba(10,22,18,.20) 0%, rgba(10,22,18,.03) 20%, rgba(10,22,18,.42) 50%, rgba(10,22,18,.80) 78%, rgba(8,18,15,.93) 100%),
    linear-gradient(96deg, rgba(10,22,18,.70) 0%, rgba(10,22,18,.34) 32%, rgba(10,22,18,.04) 60%, rgba(10,22,18,0) 76%);
}
.hero-inner { padding-block: 7rem 2.4rem; display: grid; gap: 2rem; align-content: end; }

.hero-copy { max-width: 44rem; }
.hero h1 { color: var(--on-scrim); text-shadow: 0 2px 30px rgba(6,16,13,.5); }
/* The brass accent has to survive sitting on top of bright red foliage,
   not just the dark winter shot — hence the heavier shadow stack. */
.hero h1 em {
  font-style: italic;
  color: var(--brass-bright);
  text-shadow: 0 1px 3px rgba(6,16,13,.9), 0 2px 20px rgba(6,16,13,.9), 0 0 70px rgba(6,16,13,.8);
}
.hero-sub {
  margin-top: 1.15rem; max-width: 46ch;
  color: var(--on-scrim-dim); font-size: var(--step-1); line-height: 1.45;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .6rem; flex-wrap: wrap;
  font-family: var(--ff-util); font-size: var(--step--1); font-weight: 600;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--on-scrim); margin-bottom: 1.15rem;
}
.hero-badge .stars { color: var(--brass-bright); letter-spacing: .08em; }
.hero-badge .divider { color: rgba(232,237,234,.4); }

/* ---------- Booking bar ---------- */
.bookbar {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 3px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 0;
  overflow: hidden;
}
.bookbar .field {
  display: grid; gap: .3rem;
  padding: .9rem 1.1rem;
  border-right: 1px solid var(--hairline);
  min-width: 0;
}
.bookbar .field:nth-of-type(3) { border-right: 0; }
.bookbar label {
  font-family: var(--ff-util); font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .15em; color: var(--text-dim);
}
.bookbar input, .bookbar select {
  font-family: var(--ff-body); font-size: 1rem; font-weight: 500;
  color: var(--text); background: transparent;
  border: 0; padding: 0; width: 100%; min-width: 0;
  color-scheme: light dark;
}
.bookbar .btn { border-radius: 0; align-self: stretch; padding-inline: 2rem; }
@media (max-width: 780px) {
  .bookbar { grid-template-columns: 1fr 1fr; }
  .bookbar .field:nth-of-type(2) { border-right: 0; }
  .bookbar .field:nth-of-type(3) { grid-column: 1 / -1; border-top: 1px solid var(--hairline); }
  .bookbar .btn { grid-column: 1 / -1; padding-block: 1.05rem; }
}
.bookbar-note {
  font-family: var(--ff-util); font-size: var(--step--1);
  text-transform: uppercase; letter-spacing: .13em;
  color: var(--on-scrim-dim); margin-top: .85rem; text-align: center;
}
.bookbar-note strong { color: var(--brass-bright); font-weight: 700; }

/* ---------- Spec strip (trail sign) ---------- */
.specs { background: var(--raised); border-block: 1px solid var(--hairline); padding-block: 0; }
.specs ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr);
}
.specs li {
  padding: 1.7rem 1rem; text-align: center;
  border-right: 1px solid var(--hairline);
  display: grid; gap: .3rem; align-content: center;
}
.specs li:last-child { border-right: 0; }
.specs .n {
  font-family: var(--ff-display); font-size: var(--step-2); font-weight: 500;
  line-height: 1; font-variant-numeric: tabular-nums; color: var(--text);
}
.specs .l {
  font-family: var(--ff-util); font-size: .74rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .15em; color: var(--text-dim);
}
@media (max-width: 900px) {
  .specs ul { grid-template-columns: repeat(2, 1fr); }
  .specs li { border-bottom: 1px solid var(--hairline); }
  .specs li:nth-child(2n) { border-right: 0; }
  .specs li:last-child { grid-column: 1 / -1; border-bottom: 0; }
}

/* ---------- Section heading ---------- */
.head { display: grid; gap: .9rem; margin-bottom: clamp(2.4rem, 4vw, 3.6rem); }
.head p.lede { margin-top: .2rem; }

/* ---------- The Ledger ---------- */
.ledger-grid {
  display: grid; grid-template-columns: 1fr minmax(340px, 480px);
  gap: clamp(2.4rem, 5vw, 5rem); align-items: start;
}
@media (max-width: 940px) { .ledger-grid { grid-template-columns: 1fr; } }

.ledger {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 3px; box-shadow: var(--shadow); overflow: hidden;
}
.ledger-head {
  padding: 1.3rem 1.5rem; border-bottom: 1px solid var(--hairline);
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
}
.ledger-head span:first-child {
  font-family: var(--ff-util); font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .16em; color: var(--text-dim);
}
.ledger-body { padding: 1.5rem; display: grid; gap: 1.15rem; }

.nights { display: grid; gap: .7rem; }
.nights .row { display: flex; align-items: baseline; justify-content: space-between; }
.nights label {
  font-family: var(--ff-util); font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .15em; color: var(--text-dim);
}
.nights output {
  font-family: var(--ff-display); font-size: var(--step-1);
  font-variant-numeric: tabular-nums; color: var(--text);
}
input[type="range"] { width: 100%; accent-color: var(--brass); }

.lines { display: grid; gap: .1rem; }
.line {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: .62rem 0; border-bottom: 1px dashed var(--hairline);
}
.line:last-child { border-bottom: 0; }
.line .k { color: var(--text-dim); font-size: var(--step--1); }
.line .v { font-variant-numeric: tabular-nums; font-weight: 500; }
.line.total { border-top: 1px solid var(--hairline); border-bottom: 0; margin-top: .4rem; padding-top: .95rem; }
.line.total .k { color: var(--text); font-size: var(--step-0); font-weight: 600; }
.line.total .v { font-family: var(--ff-display); font-size: var(--step-2); }

.verdict {
  background: var(--raised); border-top: 1px solid var(--hairline);
  padding: 1.35rem 1.5rem; display: grid; gap: .25rem; text-align: center;
}
.verdict .amt {
  font-family: var(--ff-display); font-size: var(--step-3); line-height: 1;
  color: var(--ember); font-variant-numeric: tabular-nums;
}
.verdict .cap {
  font-family: var(--ff-util); font-size: .78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .15em; color: var(--text-dim);
}
.disclaimer { font-size: .78rem; line-height: 1.5; color: var(--text-dim); margin-top: 1rem; }

.why { display: grid; gap: 1.5rem; margin-top: 2rem; }
.why div { display: grid; gap: .3rem; padding-left: 1.15rem; border-left: 2px solid var(--brass); }
.why h3 { font-family: var(--ff-body); font-size: var(--step-0); font-weight: 700; letter-spacing: 0; }
.why p { color: var(--text-dim); font-size: var(--step--1); line-height: 1.6; }

/* ---------- Proof ---------- */
.proof { background: var(--surface); border-block: 1px solid var(--hairline); }
.score-grid {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center; margin-bottom: clamp(2.6rem, 5vw, 4rem);
}
@media (max-width: 820px) { .score-grid { grid-template-columns: 1fr; } }
.score { text-align: center; display: grid; gap: .35rem; }
.score .big {
  font-family: var(--ff-display); font-size: clamp(3.6rem, 9vw, 5.6rem);
  line-height: .9; font-variant-numeric: tabular-nums;
}
.score .stars { color: var(--brass); letter-spacing: .16em; font-size: 1.05rem; }
.score .meta {
  font-family: var(--ff-util); font-size: .78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .14em; color: var(--text-dim);
}

.cats { display: grid; gap: .85rem; }
.cat { display: grid; grid-template-columns: 8.5rem 1fr 2.6rem; gap: 1rem; align-items: center; }
.cat .name {
  font-family: var(--ff-util); font-size: .8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .12em; color: var(--text-dim);
}
.cat .bar { height: 5px; background: var(--raised); border-radius: 99px; overflow: hidden; }
.cat .bar i { display: block; height: 100%; background: var(--brass); border-radius: 99px; }
.cat .val { font-variant-numeric: tabular-nums; font-size: var(--step--1); font-weight: 600; text-align: right; }
@media (max-width: 560px) { .cat { grid-template-columns: 7rem 1fr 2.4rem; gap: .7rem; } }

.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } }
.quote {
  background: var(--ground); border: 1px solid var(--hairline); border-radius: 3px;
  padding: 1.7rem; display: grid; gap: 1rem; align-content: start;
}
.quote blockquote { margin: 0; font-size: var(--step-0); line-height: 1.6; }
.quote blockquote::before { content: "\201C"; font-family: var(--ff-display); color: var(--brass); font-size: 2.4rem; line-height: 0; vertical-align: -.35rem; margin-right: .1rem; }
.quote figcaption {
  font-family: var(--ff-util); font-size: .76rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .13em; color: var(--text-dim);
}

/* ---------- The house ---------- */
.house-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.house-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; aspect-ratio: 4 / 3; }
.house-grid a:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.house-grid a:nth-child(1) img { aspect-ratio: 1 / 1; }
@media (max-width: 760px) {
  .house-grid { grid-template-columns: repeat(2, 1fr); }
  .house-grid a:nth-child(1) { grid-column: span 2; }
}
.house-grid a { display: block; overflow: hidden; border-radius: 2px; }
.house-grid img { transition: transform .5s cubic-bezier(.2,.7,.3,1); }
.house-grid a:hover img { transform: scale(1.035); }

.amenities { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem 2rem; margin-top: 2.6rem; list-style: none; padding: 0; }
@media (max-width: 760px) { .amenities { grid-template-columns: repeat(2, 1fr); } }
.amenities li {
  font-size: var(--step--1); color: var(--text-dim);
  padding: .55rem 0 .55rem 1.35rem; border-bottom: 1px solid var(--hairline); position: relative;
}
.amenities li::before { content: "—"; position: absolute; left: 0; color: var(--brass); }

/* ---------- Location ---------- */
.location { background: var(--surface); border-block: 1px solid var(--hairline); }
/* Top-aligned, not centred: the list is always taller than the prose, and
   centring left the copy floating with dead space above and below it. */
.loc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 860px) { .loc-grid { grid-template-columns: 1fr; } }
.distances { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 0; }
.distances li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: .9rem 0; border-bottom: 1px solid var(--hairline);
}
.distances .p { font-weight: 500; }
.distances .d {
  font-family: var(--ff-util); font-size: .82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .11em; color: var(--brass);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0; max-width: 800px; }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.3rem 2.5rem 1.3rem 0;
  font-size: var(--step-1); font-family: var(--ff-display); position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .3rem; top: 50%; transform: translateY(-50%);
  font-family: var(--ff-body); font-size: 1.5rem; color: var(--brass); line-height: 1;
}
.faq details[open] summary::after { content: "\2013"; }
.faq .a { padding: 0 2.5rem 1.5rem 0; color: var(--text-dim); max-width: 64ch; }

/* ---------- Guest list ---------- */
.guestlist { background: var(--raised); border-block: 1px solid var(--hairline); text-align: center; }
.guestlist .inner { max-width: 640px; margin-inline: auto; display: grid; gap: 1.4rem; justify-items: center; }
.signup { display: flex; gap: .6rem; width: 100%; max-width: 480px; }
.signup input {
  flex: 1; min-width: 0; padding: 1rem 1.1rem; font-family: var(--ff-body); font-size: 1rem;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--hairline); border-radius: 2px;
}
@media (max-width: 560px) { .signup { flex-direction: column; } }

/* ---------- Footer ---------- */
footer { padding-block: 3.5rem 2.5rem; }
.foot-grid { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; }
.foot-grid img { height: 52px; width: auto; }
.foot-links { display: flex; flex-wrap: wrap; gap: 1.6rem; }
.foot-links a {
  font-family: var(--ff-util); font-size: .82rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .13em; color: var(--text-dim); text-decoration: none;
}
.foot-links a:hover { color: var(--brass); }
.colophon { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--hairline); font-size: .8rem; color: var(--text-dim); display: flex; flex-wrap: wrap; gap: .8rem 1.6rem; justify-content: space-between; }

/* ---------- Sticky mobile book bar ---------- */
.sticky-book {
  position: fixed; inset: auto 0 0 0; z-index: 40;
  background: var(--surface); border-top: 1px solid var(--hairline);
  padding: .7rem var(--gut) calc(.7rem + env(safe-area-inset-bottom));
  display: none; align-items: center; justify-content: space-between; gap: 1rem;
  box-shadow: 0 -6px 24px rgba(0,0,0,.16);
  transform: translateY(110%); transition: transform .3s cubic-bezier(.2,.7,.3,1);
}
.sticky-book.on { transform: translateY(0); }
.sticky-book .price { display: grid; gap: .05rem; }
.sticky-book .price .n { font-family: var(--ff-display); font-size: 1.25rem; line-height: 1; }
.sticky-book .price .c {
  font-family: var(--ff-util); font-size: .7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .12em; color: var(--text-dim);
}
.sticky-book .btn { padding: .85rem 1.4rem; }
@media (max-width: 860px) { .sticky-book { display: flex; } body { padding-bottom: 0; } }

/* ---------- Reveal ----------
   Content is visible by DEFAULT. The hidden-then-fade-in state is only
   applied once JS has confirmed it can un-hide it (html.js-anim), so a
   JS failure, a slow connection or a crawler still sees the whole page. */
.reveal { opacity: 1; transform: none; }

html.js-anim .reveal {
  opacity: 0; transform: translateY(14px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1);
}
html.js-anim .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html.js-anim .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Season system — brand stays constant, photography carries season
   ============================================================ */

.season-toggle {
  display: inline-flex; gap: 0; align-self: start;
  background: rgba(10,22,18,.42);
  border: 1px solid rgba(232,237,234,.28);
  border-radius: 2px; padding: 3px;
  backdrop-filter: blur(8px);
}
.season-toggle button {
  font-family: var(--ff-util); font-size: .76rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em;
  padding: .5rem .95rem; border: 0; border-radius: 1px;
  background: transparent; color: var(--on-scrim-dim);
  cursor: pointer; transition: background-color .2s ease, color .2s ease;
}
.season-toggle button:hover { color: var(--on-scrim); }
.season-toggle button[aria-pressed="true"] { background: var(--brass); color: #0E1D18; }

/* Each season is a <picture> (or a placeholder div) stacked in the same
   box; only the active one is opaque. <picture> lets a portrait crop load
   on phones instead of a squashed landscape one. */
.hero-media > picture,
.hero-media > .ph-empty {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity .8s cubic-bezier(.4,0,.2,1);
}
.hero-media > picture.active,
.hero-media > .ph-empty.active { opacity: 1; }
.hero-media picture img { width: 100%; height: 100%; object-fit: cover; }

/* Three seasons */
.seasons-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.4vw, 2rem); }
@media (max-width: 900px) { .seasons-grid { grid-template-columns: 1fr; } }

.season-card {
  display: grid; gap: 0; align-content: start;
  border: 1px solid var(--hairline); border-radius: 3px;
  background: var(--surface); overflow: hidden;
}
.season-card .ph { position: relative; aspect-ratio: 3 / 2; background: var(--raised); overflow: hidden; }
.season-card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.3,1); }
.season-card:hover .ph img { transform: scale(1.04); }
.season-card .ph .tag {
  position: absolute; left: 0; bottom: 0;
  background: var(--brass); color: #0E1D18;
  font-family: var(--ff-util); font-size: .74rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .16em;
  padding: .4rem .8rem;
}
.season-card .body { padding: 1.5rem; display: grid; gap: .85rem; }
.season-card h3 { font-size: var(--step-1); }
.season-card p { color: var(--text-dim); font-size: var(--step--1); line-height: 1.6; }
.season-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.season-card li {
  font-family: var(--ff-util); font-size: .8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em; color: var(--text-dim);
  padding-left: 1.1rem; position: relative;
}
.season-card li::before { content: "\2022"; position: absolute; left: .15rem; color: var(--brass); }
.season-card .rate {
  font-family: var(--ff-util); font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em; color: var(--brass);
  padding-top: .85rem; border-top: 1px solid var(--hairline);
}

/* Placeholder state — used until the real photo roll lands */
.ph-empty {
  display: grid; place-content: center; gap: .4rem; text-align: center;
  background: repeating-linear-gradient(45deg, var(--raised), var(--raised) 12px, var(--surface-2) 12px, var(--surface-2) 24px);
  color: var(--text-dim); height: 100%;
}
.ph-empty .k {
  font-family: var(--ff-util); font-size: .74rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .16em;
}
.ph-empty .s { font-size: .74rem; opacity: .8; }

/* Booking-window line beside the season toggle */
.season-row { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.booking-window {
  font-family: var(--ff-util); font-size: var(--step--1); font-weight: 600;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--on-scrim); margin: 0;
  /* Sits over open photograph, so it carries its own legibility. */
  text-shadow: 0 1px 2px rgba(6,16,13,.95), 0 0 16px rgba(6,16,13,.85);
}
.booking-window strong { color: var(--brass-bright); font-weight: 700; }
.hero-badge { text-shadow: 0 1px 2px rgba(6,16,13,.9), 0 0 14px rgba(6,16,13,.8); }

/* ---------- Phone hero: get the date fields above the fold ----------
   The stack (toggle + booking window + rating + headline + subhead) was
   pushing "Check availability" off a 812px screen. Everything below
   tightens the stack rather than cutting content. */
@media (max-width: 560px) {
  .hero-inner { padding-block: 5.5rem 1.4rem; gap: 1.1rem; }
  .hero h1 { font-size: clamp(2.1rem, 9.5vw, 2.7rem); line-height: 1.02; }
  .hero-copy { max-width: none; }
  .hero-badge { margin-bottom: .7rem; font-size: .72rem; letter-spacing: .1em; gap: .4rem; }
  .hero-sub {
    margin-top: .8rem; font-size: 1rem; line-height: 1.4;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
  }
  .season-row { gap: .6rem; }
  .booking-window { font-size: .68rem; letter-spacing: .1em; }
  .season-toggle button { padding: .45rem .7rem; font-size: .7rem; letter-spacing: .1em; }
  .bookbar .field { padding: .7rem .9rem; }
  .bookbar-note { font-size: .68rem; margin-top: .6rem; }
}

/* ============================================================
   Scrim corrections
   ------------------------------------------------------------
   --brass-bright is #A87B2C in light mode: a dark brass built to sit on
   parchment. The hero puts it on top of photographs, where it measured as
   low as 1.4:1 over the fall maples. Text that sits on an image needs a
   token that is not theme-dependent, because the image is not.
   ============================================================ */
:root {
  --brass-on-scrim: #E0B463;
  --ink-on-brass:   #0E1D18;
}

.hero h1 em,
.booking-window strong,
.bookbar-note strong,
.hero-badge .stars { color: var(--brass-on-scrim); }

/* Deepen the left wedge where the copy sits; the right side stays open so
   vivid photography keeps its colour. */
.hero-media::after {
  background:
    linear-gradient(180deg, rgba(10,22,18,.30) 0%, rgba(10,22,18,.10) 18%, rgba(10,22,18,.52) 48%, rgba(10,22,18,.84) 78%, rgba(8,18,15,.94) 100%),
    linear-gradient(96deg, rgba(10,22,18,.86) 0%, rgba(10,22,18,.60) 30%, rgba(10,22,18,.14) 58%, rgba(10,22,18,0) 76%);
}

/* The masthead sat on open photograph with no bed of its own. */
.hero-media::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 190px;
  background: linear-gradient(180deg, rgba(10,22,18,.62) 0%, rgba(10,22,18,.28) 45%, transparent 100%);
  pointer-events: none;
}
.masthead nav a { opacity: 1; text-shadow: 0 1px 3px rgba(6,16,13,.9); }

/* Active chip was #0E1D18 on #8A6522 — 3.28:1, an AA failure, while the
   inactive chips sat at 11.4:1. */
.season-toggle button[aria-pressed="true"] {
  background: var(--brass-on-scrim);
  color: var(--ink-on-brass);
}

/* The address moved out of an eyebrow and under its heading. */
.address-line {
  font-family: var(--ff-util); font-size: var(--step--1); font-weight: 600;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--brass); margin-top: .9rem;
}

/* The ledger is the highest-intent moment on the page and it dead-ended. */
.verdict .btn { margin-top: 1rem; width: 100%; }

/* Season cards are operated by click; they must be reachable by keyboard. */
.season-card { cursor: pointer; }
.season-card:focus-visible { outline: 2px solid var(--brass-bright); outline-offset: 3px; }

/* Browser surfaces the design never claimed. */
::selection { background: var(--brass); color: var(--btn-text); }
:root { accent-color: var(--brass); caret-color: var(--brass); }

/* Explains why the visitor is being asked for their own number. */
.nights .hint {
  font-size: .78rem; line-height: 1.5; color: var(--text-dim);
  margin-top: .55rem;
}

/* Forewarns the handover to the booking calendar. */
.handoff-note {
  margin-top: .7rem; text-align: center;
  font-size: .82rem; line-height: 1.5;
  color: var(--on-scrim-dim);
  text-shadow: 0 1px 2px rgba(6,16,13,.9);
}

/* ============================================================
   Conversion defects from the critique
   ============================================================ */

/* Tap targets. The date inputs measured 20px tall and the slider 16px,
   against a 44px minimum — at the single most important interaction on the
   page, on the device most guests browse from. The visual 72px box was a
   wrapper div, so none of its padding was part of the hit area. */
.bookbar input[type="date"],
.bookbar select {
  min-height: 44px;
  padding-block: 0;
  font-size: 16px;            /* also stops iOS zooming the page on focus */
}
.bookbar .field { padding-block: .55rem; }

input[type="range"] {
  height: 44px;               /* hit area */
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 5px; border-radius: 99px; background: var(--raised);
}
input[type="range"]::-moz-range-track {
  height: 5px; border-radius: 99px; background: var(--raised);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 26px; height: 26px; margin-top: -10px;
  border-radius: 50%; background: var(--brass);
  border: 3px solid var(--surface); box-shadow: 0 1px 4px rgba(0,0,0,.3);
  cursor: grab;
}
input[type="range"]::-moz-range-thumb {
  width: 26px; height: 26px; border: 3px solid var(--surface);
  border-radius: 50%; background: var(--brass); cursor: grab;
}

/* The sticky bar was hidden above 860px, so 90% of a 7,500px desktop page
   had no booking control at all. The IntersectionObserver already exists —
   it just was not allowed to show anything on a large screen. */
@media (min-width: 861px) {
  .sticky-book {
    display: flex;
    padding-inline: var(--gut);
  }
  .sticky-book .price .n { font-size: 1.15rem; }
}

/* A second CTA after the proof section, where conviction peaks. */
.after-proof {
  display: flex; flex-direction: column; align-items: center; gap: .9rem;
  text-align: center; margin-top: clamp(2.4rem, 5vw, 3.6rem);
}
.after-proof p {
  font-family: var(--ff-util); font-size: var(--step--1); font-weight: 600;
  text-transform: uppercase; letter-spacing: .14em; color: var(--text-dim);
}

/* ============================================================
   Availability calendar
   Only appears when /api/availability returns real data; otherwise the
   native date inputs stay as they were.
   ============================================================ */
.cal-pop {
  /* top/left/width are set inline by calendar.js, measured against the
     booking bar — the popover is mounted on the bar's WRAPPER, because the
     bar itself clips overflow to its rounded corners. */
  position: absolute; z-index: 60;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(6,16,13,.28);
  padding: 1rem 1.1rem 0.9rem;
  width: min(620px, calc(100vw - 2 * var(--gut)));
}
.cal-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-bottom: .85rem;
}
.cal-hint {
  font-family: var(--ff-util); font-size: .78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .13em; color: var(--text-dim);
}
.cal-nav {
  width: 34px; height: 34px; border-radius: 2px; cursor: pointer;
  background: transparent; border: 1px solid var(--hairline);
  color: var(--text); font-size: 1rem; line-height: 1;
}
.cal-nav:hover:not(:disabled) { border-color: var(--brass); color: var(--brass); }
.cal-nav:disabled { opacity: .3; cursor: default; }

.cal-months { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
@media (max-width: 620px) { .cal-months { grid-template-columns: 1fr; gap: 1.2rem; } }

.cal-month-name {
  font-family: var(--ff-display); font-size: 1.05rem;
  text-align: center; margin-bottom: .5rem;
}
.cal-dow, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-dow span {
  font-family: var(--ff-util); font-size: .64rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-dim); text-align: center; padding-bottom: .3rem;
}
.cal-pad { aspect-ratio: 1; }

.cal-day {
  aspect-ratio: 1; min-height: 38px;
  display: grid; place-items: center;
  border: 0; border-radius: 2px; cursor: pointer;
  background: transparent; color: var(--text);
  font-family: var(--ff-body); font-size: .86rem;
  font-variant-numeric: tabular-nums;
  transition: background-color .12s ease, color .12s ease;
}
.cal-day:hover:not(.is-blocked) { background: var(--raised); }

/* Booked nights read as struck-through, not merely faint — low contrast alone
   is ambiguous, and this has to be unmistakable. */
.cal-day.is-blocked {
  color: var(--text-dim); cursor: not-allowed;
  text-decoration: line-through;
  text-decoration-color: var(--ember);
  opacity: .55;
}
.cal-day.is-between { background: var(--raised); border-radius: 0; }
.cal-day.is-start, .cal-day.is-end {
  background: var(--brass); color: var(--btn-text); font-weight: 700;
}

.cal-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-top: .9rem; padding-top: .7rem;
  border-top: 1px solid var(--hairline);
}
.cal-key {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--ff-util); font-size: .7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em; color: var(--text-dim);
}
.cal-swatch {
  width: 14px; height: 2px; background: var(--ember); display: inline-block;
}
.cal-clear {
  background: transparent; border: 0; cursor: pointer;
  font-family: var(--ff-util); font-size: .74rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em; color: var(--brass);
}
.cal-clear:hover { text-decoration: underline; }

/* The inputs become triggers once the calendar is live. */
.bookbar input[readonly] { cursor: pointer; }

/* The booking bar sits low in the hero, so the calendar usually has to open
   upward. Flipped by measurement at open time, not assumed. */
.cal-pop.is-above { top: auto; }

/* Live Guesty quote under the booking bar — the real total, before handoff. */
.quote-note {
  margin-top: .7rem; text-align: center;
  font-family: var(--ff-util); font-size: .86rem; letter-spacing: .04em;
  color: var(--on-scrim);
  text-shadow: 0 1px 3px rgba(6,16,13,.95);
}
.quote-note strong {
  font-family: var(--ff-display); font-size: 1.25rem; font-weight: 500;
  color: var(--brass-on-scrim); letter-spacing: 0;
}

/* ---------- Embedded booking engine ----------
   The frame holds a full third-party page, so it needs real height to be
   usable rather than a letterbox the guest has to scroll inside twice. */
.book {
  max-width: var(--wrap, 1120px);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter, 1rem);
}
.book h2 { margin: 0 0 .35rem; }
.book-sub { margin: 0 0 1.5rem; color: var(--ink-soft, #6b6358); }

.book-cta-wrap { margin: 1.75rem 0 0; }

/* ---------- Shoulder season band ----------
   Visually distinct from the season cards above it on purpose: those sell a
   season, this sells the house in the weeks that are not one. Quieter
   treatment, no photography — the point is substance, not scenery. */
.shoulder {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: var(--surface);
}
.shoulder h3 {
  margin: 0 0 .5rem;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  line-height: 1.15;
}
.shoulder-sub {
  margin: 0 0 1.75rem;
  max-width: 62ch;
  color: var(--text-dim);
}
.shoulder-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}
.shoulder-points li { display: grid; gap: .35rem; }
.shoulder-points strong {
  font-weight: 600;
  color: var(--brass);
  letter-spacing: .01em;
}
.shoulder-points span {
  color: var(--text-dim);
  font-size: .975rem;
  line-height: 1.55;
}

/* ============================================================
   Journal — the old Durable blog, restored at its original URLs
   (built by scripts/build-journal.mjs)
   ============================================================ */
.journal-page { background: var(--ground); }
.journal-bar { border-bottom: 1px solid var(--hairline); background: var(--surface); }
.journal-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .8rem; }
.journal-bar img { height: 50px; width: auto; }
.journal-bar nav { display: flex; align-items: center; gap: 1.4rem; }
.journal-bar nav a:not(.btn) {
  font-family: var(--ff-util); font-size: .82rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .13em; color: var(--text-dim); text-decoration: none;
}
.journal-bar nav a:not(.btn):hover { color: var(--brass); }
.journal-bar .btn { padding: .7rem 1.1rem; font-size: .85rem; }

.journal-article { padding-block: clamp(40px, 6vw, 80px); }
.journal-article article.wrap { max-width: calc(46rem + 2 * var(--gut)); }
.journal-article .eyebrow a { color: inherit; text-decoration: none; }
.journal-article h1 { font-size: var(--step-3); margin-top: .7rem; }
.journal-cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-top: 2rem; border-radius: 2px; }

.journal-body { margin-top: 2.2rem; }
.journal-body > * + * { margin-top: 1.1rem; }
.journal-body h2 { font-size: var(--step-2); margin-top: 2.6rem; }
.journal-body h3 { font-size: var(--step-1); margin-top: 2rem; }
.journal-body ul, .journal-body ol { padding-left: 1.3rem; }
.journal-body li + li { margin-top: .45rem; }
.journal-body a { color: var(--brass); text-underline-offset: 3px; }
.journal-body a:hover { color: var(--brass-bright); }
.journal-body figure { margin: 2rem 0; }
.journal-body figure img { width: 100%; height: auto; border-radius: 2px; }
.journal-body figcaption { margin-top: .6rem; font-size: var(--step--1); color: var(--text-dim); }

.journal-cta {
  margin-top: clamp(48px, 7vw, 80px); padding: clamp(24px, 4vw, 40px);
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 2px; box-shadow: var(--shadow);
}
.journal-cta h2 { font-size: var(--step-2); margin-top: .6rem; }
.journal-cta p:not(.eyebrow) { margin-top: .9rem; color: var(--text-dim); max-width: 60ch; }
.journal-cta .btn { margin-top: 1.4rem; }

.journal-list { list-style: none; padding: 0; margin: 2.4rem 0 0; display: grid; gap: 2rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.journal-list a { display: block; text-decoration: none; color: inherit; }
.journal-list img, .journal-noimg { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 2px; background: var(--surface-2); }
.journal-meta { display: block; margin-top: .9rem; font-family: var(--ff-util); font-size: var(--step--1); letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }
.journal-title { display: block; margin-top: .35rem; font-family: var(--ff-display); font-size: var(--step-1); line-height: 1.2; }
.journal-list a:hover .journal-title { color: var(--brass); }

@media (max-width: 560px) {
  .journal-bar nav a:not(.btn) { display: none; }
}

/* ---------- Nearby list footer ----------
   The airport and the drive-time caveat, below the list rather than in it. */
.dist-footer {
  margin: 1.1rem 0 0;
  font-family: var(--ff-util);
  font-size: .82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .11em;
  color: var(--brass);
}
.dist-footer strong { font-weight: 700; }
.dist-note {
  margin: .5rem 0 0;
  font-size: .85rem; line-height: 1.5;
  color: var(--text-dim);
}
