/* ==========================================================================
   Highlands Ranch Resort — site styles
   1. Base   2. Layout   3. Header & nav   4. Hero   5. Components
   6. Page-specific   7. Footer   8. Motion & utilities
   ========================================================================== */

/* 1. Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  background: var(--bone);
  color: var(--basalt);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Faint film grain — original SVG noise, no image asset */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--pine); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--ember); }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--sage); color: var(--basalt); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-4);
  font-variation-settings: "SOFT" 60, "WONK" 0;
  text-wrap: balance;
}
h1 { font-size: var(--step-5); font-weight: 300; }
h2 { font-size: var(--step-4); font-weight: 300; }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p { margin: 0 0 var(--space-4); text-wrap: pretty; }
ul, ol { padding-left: 1.2em; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--space-7) 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cinder);
  margin: 0 0 var(--space-4);
}
.eyebrow::before { content: ""; width: 1.8em; height: 1px; background: currentColor; opacity: 0.7; }
.lede { font-size: var(--step-1); line-height: 1.55; color: var(--basalt-2); max-width: var(--max-text); }
.muted { color: var(--cinder); }
.small { font-size: var(--step--1); }
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--basalt); color: var(--bone); padding: 0.6rem 1rem; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.icon { width: 1.25em; height: 1.25em; flex: none; stroke-width: 1.6; }

/* 2. Layout -------------------------------------------------------------- */
.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.container--narrow { width: min(100% - 2 * var(--gutter), 48rem); margin-inline: auto; }
.section { padding-block: var(--space-9); position: relative; }
.section--tight { padding-block: var(--space-8); }
.section--panel { background: var(--bone-2); }
.section--dark { background: var(--basalt); color: var(--bone); }
.section--pine { background: var(--pine); color: var(--bone); }
.section--dark .eyebrow, .section--pine .eyebrow, .section--dusk .eyebrow { color: var(--sage-soft); }
.section--dark a:not(.btn), .section--pine a:not(.btn), .section--dusk a:not(.btn) { color: var(--bone); }
.section--dark .lede, .section--pine .lede, .section--dusk .lede { color: rgba(243, 238, 228, 0.86); }
.section--dark .muted, .section--pine .muted, .section--dusk .muted { color: rgba(243, 238, 228, 0.72); }

/* Topographic contour texture behind select sections */
.topo { isolation: isolate; overflow: hidden; }
.topo::before {
  content: ""; position: absolute; inset: -10% -5%; z-index: -1;
  background: url("../img/brand/topo-dark.svg") center / cover no-repeat;
  opacity: 0.07; pointer-events: none;
}
.section--dark.topo::before, .section--pine.topo::before, .section--dusk.topo::before { background-image: url("../img/brand/topo-light.svg"); opacity: 0.08; }

.section-head { max-width: 46rem; margin-bottom: var(--space-7); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::after { content: ""; width: 1.8em; height: 1px; background: currentColor; opacity: 0.7; }
.section-head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-5); }
.section-head--row > div { max-width: 40rem; }

.grid { display: grid; gap: var(--space-6); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.stack > * + * { margin-top: var(--space-4); }

/* 3. Header & nav -------------------------------------------------------- */
site-header { display: block; }
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  color: var(--bone);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}
.site-header::before { /* soft scrim so nav stays legible over any photo */
  content: ""; position: absolute; inset: 0 0 -3rem 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(20, 18, 16, 0.55), rgba(20, 18, 16, 0));
  transition: opacity 0.4s var(--ease);
}
.site-header.is-solid { background: var(--bone); color: var(--basalt); box-shadow: 0 1px 0 var(--line), 0 6px 20px rgba(31, 29, 27, 0.06); }
.site-header.is-solid::before { opacity: 0; }
.site-header.is-hidden { transform: translateY(-100%); }

.utility {
  font-size: 0.8rem; letter-spacing: 0.04em;
  border-bottom: 1px solid var(--line-light);
}
.site-header.is-solid .utility { border-color: var(--line); }
.utility__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 2.1rem; }
.utility a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 0.4em; }
.utility a:hover { text-decoration: underline; }
.utility__group { display: flex; gap: 1.4rem; align-items: center; }
.status { display: inline-flex; align-items: center; gap: 0.5em; }
.status__dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #7fae6e; box-shadow: 0 0 0 3px rgba(127, 174, 110, 0.25); }
.status--closed .status__dot { background: #c98a6a; box-shadow: 0 0 0 3px rgba(201, 138, 106, 0.25); }

.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 0.75rem; color: inherit; text-decoration: none; }
.brand:hover { color: inherit; }
.brand img { width: 2.4rem; height: 2.4rem; border-radius: 2px; }
.brand__text { font-family: var(--font-display); line-height: 1; }
.brand__name { display: block; font-size: 1.28rem; letter-spacing: 0.02em; font-variant-caps: small-caps; }
.brand__sub { display: block; font-family: var(--font-body); font-size: 0.66rem; letter-spacing: 0.32em; text-transform: uppercase; opacity: 0.82; margin-top: 0.3rem; }

.nav__links { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); list-style: none; margin: 0; padding: 0; }
.nav__links a { color: inherit; text-decoration: none; font-size: 0.98rem; letter-spacing: 0.03em; padding: 0.4rem 0; position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.nav__actions { display: flex; align-items: center; gap: var(--space-3); }
.nav__toggle {
  display: none; background: none; border: 1px solid currentColor; color: inherit; border-radius: 999px;
  padding: 0.45rem 0.9rem; font: inherit; font-size: 0.9rem; align-items: center; gap: 0.4rem; cursor: pointer;
}

@media (max-width: 960px) {
  .nav__links, .nav__actions .btn { display: none; }
  .nav__toggle { display: inline-flex; }
  .utility__hide-sm { display: none; }
}

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 60; background: var(--basalt); color: var(--bone);
  display: flex; flex-direction: column; padding: 1rem var(--gutter) 2rem;
  transform: translateY(-100%); visibility: hidden; transition: transform 0.45s var(--ease), visibility 0s 0.45s;
  overflow-y: auto;
}
.drawer.is-open { transform: none; visibility: visible; transition: transform 0.45s var(--ease); }
.drawer::before { content: ""; position: absolute; inset: 0; background: url("../img/brand/topo-light.svg") center / cover; opacity: 0.06; pointer-events: none; }
.drawer__top { display: flex; justify-content: space-between; align-items: center; min-height: 3.5rem; position: relative; }
.drawer__links { list-style: none; padding: 0; margin: 2rem 0; position: relative; }
.drawer__links a { display: flex; justify-content: space-between; align-items: center; color: var(--bone); text-decoration: none; font-family: var(--font-display); font-size: 2rem; font-weight: 300; padding: 0.55rem 0; border-bottom: 1px solid var(--line-light); }
.drawer__links a[aria-current="page"] { color: var(--sage-soft); }
.drawer__meta { position: relative; margin-top: auto; display: grid; gap: 0.6rem; font-size: 0.95rem; }
.drawer__meta a { color: var(--bone); }
.drawer__secondary { position: relative; display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; margin-bottom: 2rem; }
.drawer__secondary a { color: rgba(243, 238, 228, 0.8); text-decoration: none; font-size: 0.95rem; }

/* Mobile action bar — Book · Call · Directions */
.action-bar { display: none; }
@media (max-width: 960px) {
  .action-bar {
    display: grid; grid-template-columns: 1fr 1fr 1.3fr; position: fixed; inset: auto 0 0 0; z-index: 40;
    background: rgba(31, 29, 27, 0.97); color: var(--bone);
    padding: 0.5rem 0.5rem calc(0.5rem + env(safe-area-inset-bottom)); gap: 0.4rem;
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.18);
  }
  .action-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.15rem; padding: 0.45rem; border-radius: var(--radius); color: var(--bone); text-decoration: none; font-size: 0.78rem; letter-spacing: 0.04em; }
  .action-bar a.is-primary { background: var(--ember); flex-direction: row; gap: 0.5rem; font-size: 0.95rem; font-weight: 600; }
  body { padding-bottom: 4.4rem; }
}

/* 4. Hero ---------------------------------------------------------------- */
.hero { position: relative; min-height: 72vh; min-height: 72svh; display: flex; align-items: flex-end; color: var(--bone); isolation: isolate; overflow: hidden; background: var(--basalt); }
.hero--home { min-height: 100vh; min-height: 100svh; }
.hero--short { min-height: 56vh; min-height: 56svh; }
.hero__media, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero__media img { animation: drift 38s var(--ease) both alternate infinite; transform-origin: 60% 50%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(20, 18, 16, 0.78) 0%, rgba(20, 18, 16, 0.35) 38%, rgba(20, 18, 16, 0.05) 65%, rgba(20, 18, 16, 0.25) 100%);
}
.hero__content { padding-block: calc(var(--header-h) + 4rem) clamp(2.5rem, 6vw, 5rem); }
.hero__title { max-width: 16ch; margin-bottom: var(--space-5); text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25); }
.hero--home .hero__title { font-size: clamp(2.9rem, 1.8rem + 5.2vw, 6.4rem); }
.hero__lede { font-size: var(--step-1); max-width: 34rem; color: rgba(243, 238, 228, 0.92); margin-bottom: var(--space-6); }
.hero .eyebrow { color: rgba(243, 238, 228, 0.88); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero__scroll { position: absolute; right: var(--gutter); bottom: 2rem; writing-mode: vertical-rl; font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(243, 238, 228, 0.75); text-decoration: none; display: flex; align-items: center; gap: 0.8rem; }
.hero__scroll::after { content: ""; width: 1px; height: 3.5rem; background: currentColor; animation: trickle 2.8s var(--ease) infinite; transform-origin: top; }
@media (max-width: 700px) { .hero__scroll { display: none; } }

@keyframes drift { from { transform: scale(1.04); } to { transform: scale(1.12) translate(-1.2%, -0.8%); } }
@keyframes trickle { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* 5. Components ---------------------------------------------------------- */
/* Buttons */
.btn {
  --btn-bg: var(--pine); --btn-fg: var(--bone); --btn-bd: var(--pine);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  padding: 0.82em 1.45em; border-radius: 999px; border: 1px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg);
  font: 600 0.95rem/1.1 var(--font-body); letter-spacing: 0.04em; text-decoration: none; cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:hover { --btn-bg: var(--pine-2); --btn-bd: var(--pine-2); color: var(--btn-fg); transform: translateY(-1px); }
.btn--ember { --btn-bg: var(--ember); --btn-bd: var(--ember); }
.btn--ember:hover { --btn-bg: var(--ember-2); --btn-bd: var(--ember-2); }
.btn--ghost { --btn-bg: transparent; --btn-fg: currentColor; --btn-bd: currentColor; }
.btn--ghost:hover { --btn-bg: rgba(127, 127, 127, 0.12); --btn-bd: currentColor; }
.btn--light { --btn-bg: var(--bone); --btn-fg: var(--basalt); --btn-bd: var(--bone); }
.btn--light:hover { --btn-bg: #fff; --btn-bd: #fff; --btn-fg: var(--basalt); }
.btn--sm { padding: 0.6em 1.1em; font-size: 0.85rem; }
.btn .icon { width: 1.05em; height: 1.05em; }
.text-link { display: inline-flex; align-items: center; gap: 0.45em; font-weight: 600; letter-spacing: 0.03em; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 0.1em; }
.text-link .icon { width: 1em; height: 1em; transition: transform 0.3s var(--ease); }
.text-link:hover .icon { transform: translateX(3px); }

/* Field notes — the "middle of nowhere" facts strip */
.field-notes { background: var(--basalt); color: var(--bone); }
.field-notes__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); }
.field-notes__item { padding: 1.6rem 1.2rem; border-left: 1px solid var(--line-light); }
.field-notes__item:first-child { border-left: 0; }
.field-notes__value { display: block; font-family: var(--font-display); font-size: var(--step-3); font-weight: 300; line-height: 1; }
.field-notes__label { display: block; margin-top: 0.55rem; font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(243, 238, 228, 0.7); }
@media (max-width: 640px) { .field-notes__item { border-left: 0; border-top: 1px solid var(--line-light); } .field-notes__item:nth-child(-n+2) { border-top: 0; } .field-notes__list { grid-template-columns: 1fr 1fr; } }

/* Split: image + text */
.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 5.5rem); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { position: relative; }
.split__media img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; border-radius: var(--radius-lg); }
.split__media--tall img { aspect-ratio: 4 / 4.6; }
.split__caption { position: absolute; left: 1rem; bottom: 1rem; background: rgba(31, 29, 27, 0.72); color: var(--bone); font-size: 0.78rem; letter-spacing: 0.08em; padding: 0.35rem 0.7rem; border-radius: 999px; backdrop-filter: blur(4px); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--reverse .split__media { order: 0; } }

/* Cards */
.card { position: relative; display: flex; flex-direction: column; background: var(--paper); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); color: inherit; text-decoration: none; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
a.card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(31, 29, 27, 0.06), 0 18px 40px rgba(31, 29, 27, 0.14); color: inherit; }
.card__media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--bone-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
a.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.card__title { font-size: var(--step-2); margin: 0; }
.card__meta { font-size: 0.85rem; letter-spacing: 0.06em; color: var(--cinder); }
.card__text { color: var(--basalt-2); margin: 0; }
.card__foot { margin-top: auto; padding-top: 0.8rem; }
.badge { display: inline-flex; align-items: center; gap: 0.35em; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.3rem 0.65rem; border-radius: 999px; background: var(--sage-soft); color: var(--pine); }
.card__media .badge { position: absolute; top: 0.9rem; left: 0.9rem; background: rgba(243, 238, 228, 0.92); }
.badge .icon { width: 1.1em; height: 1.1em; }

/* Amenity list */
.amenities { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14.5rem), 1fr)); gap: 0.2rem 2rem; }
.amenities li { display: flex; gap: 0.8rem; align-items: center; padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
.amenities .icon { color: var(--pine); width: 1.4em; height: 1.4em; }
.section--dark .amenities li, .section--pine .amenities li { border-color: var(--line-light); }
.section--dark .amenities .icon, .section--pine .amenities .icon { color: var(--sage-soft); }

/* Tabs (seasons) */
.tabs__list { display: inline-flex; gap: 0.25rem; padding: 0.3rem; border-radius: 999px; background: var(--bone-2); margin-bottom: var(--space-6); }
.section--dark .tabs__list { background: rgba(243, 238, 228, 0.08); }
.tabs__tab { border: 0; background: transparent; font: 600 0.95rem var(--font-body); letter-spacing: 0.04em; color: inherit; padding: 0.6rem 1.2rem; border-radius: 999px; cursor: pointer; display: inline-flex; gap: 0.5rem; align-items: center; }
.tabs__tab[aria-selected="true"] { background: var(--basalt); color: var(--bone); }
.section--dark .tabs__tab[aria-selected="true"] { background: var(--bone); color: var(--basalt); }
.tabs__panel[hidden] { display: none; }
.tabs__panel { animation: fade 0.6s var(--ease); }

.season-card { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.season-card img { border-radius: var(--radius-lg); aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.season-card ul { list-style: none; padding: 0; margin: 0 0 var(--space-5); }
.season-card li { padding: 0.55rem 0; border-bottom: 1px solid var(--line-light); display: flex; gap: 0.7rem; align-items: baseline; }
.season-card li::before { content: "—"; color: var(--sage); }
@media (max-width: 860px) { .season-card { grid-template-columns: 1fr; } }

/* Accordion */
.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.15rem 0; font-family: var(--font-display); font-size: var(--step-1); }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-family: var(--font-body); font-weight: 300; font-size: 1.6rem; line-height: 1; color: var(--cinder); transition: transform 0.3s var(--ease); }
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion details > div { padding: 0 0 1.4rem; max-width: 46rem; color: var(--basalt-2); }

/* Quotes */
.quote { margin-block: 0; }
.quote blockquote { margin: 0; font-family: var(--font-display); font-weight: 300; font-size: var(--step-3); line-height: 1.25; text-wrap: balance; }
.quote blockquote::before { content: "\201C"; display: block; font-size: 4rem; line-height: 0.6; color: var(--sage); margin-bottom: 0.6rem; }
.quote figcaption { margin-top: var(--space-5); font-size: 0.82rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cinder); }
.section--dark .quote figcaption, .section--pine .quote figcaption { color: var(--sage-soft); }
.review { background: var(--paper); border-radius: var(--radius-lg); padding: 1.8rem; box-shadow: var(--shadow); margin: 0; display: flex; flex-direction: column; }
.review blockquote { margin: 0 0 1.2rem; }
.review__title { font-family: var(--font-display); font-size: var(--step-1); margin-bottom: 0.5rem; }
.review figcaption { margin-top: auto; font-size: 0.85rem; color: var(--cinder); }

/* Gallery + lightbox */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0.75rem; }
.gallery__item { grid-column: span 4; border: 0; padding: 0; background: none; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.gallery__item--wide { grid-column: span 8; aspect-ratio: auto; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter 0.6s var(--ease); }
.gallery__item:hover img { transform: scale(1.04); }
@media (max-width: 760px) { .gallery__item, .gallery__item--wide { grid-column: span 6; aspect-ratio: 4 / 3; } .gallery__item--wide { grid-column: span 12; } }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(15, 14, 13, 0.92); }
.lightbox__inner { position: relative; width: 100%; height: 100%; display: grid; place-items: center; padding: 3.5rem 1rem; }
.lightbox img { max-width: min(92vw, 1600px); max-height: 82vh; object-fit: contain; border-radius: var(--radius); }
.lightbox__caption { color: var(--bone); text-align: center; margin-top: 0.8rem; font-size: 0.95rem; }
.lightbox__btn { position: absolute; background: rgba(243, 238, 228, 0.1); border: 1px solid rgba(243, 238, 228, 0.3); color: var(--bone); width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.lightbox__btn:hover { background: rgba(243, 238, 228, 0.22); }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* Hours table */
.hours { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.hours caption { text-align: left; font-family: var(--font-display); font-size: var(--step-1); padding-bottom: 0.6rem; }
.hours th, .hours td { text-align: left; padding: 0.7rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.hours th { font-weight: 600; padding-right: 1rem; width: 40%; }
.hours-season { padding: 1.6rem; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--paper); }
.hours-season.is-current { border-color: var(--pine); box-shadow: inset 0 0 0 1px var(--pine); }
.hours-season__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.4rem; }
.hours-season__head h3 { margin: 0; }
.hours-season .badge { visibility: hidden; }
.hours-season.is-current .badge { visibility: visible; }

/* Chips (filters) */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: var(--space-6); }
.chip { border: 1px solid var(--line); background: transparent; color: inherit; border-radius: 999px; padding: 0.5rem 1rem; font: 500 0.92rem var(--font-body); cursor: pointer; display: inline-flex; align-items: center; gap: 0.45rem; }
.chip[aria-pressed="true"] { background: var(--basalt); color: var(--bone); border-color: var(--basalt); }
.chip .icon { width: 1.05em; height: 1.05em; }

/* Explore list */
.explore-group { padding-top: var(--space-7); }
.explore-group + .explore-group { border-top: 1px solid var(--line); margin-top: var(--space-7); }
.explore-group__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--space-6); align-items: start; margin-bottom: var(--space-6); }
.explore-group__head img { border-radius: var(--radius-lg); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
@media (max-width: 860px) { .explore-group__head { grid-template-columns: 1fr; } }
.activity { padding: 1.4rem; border-radius: var(--radius-lg); background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 0.45rem; }
.activity[hidden] { display: none; }
.activity__top { display: flex; gap: 0.8rem; align-items: center; }
.activity__icon { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--sage-soft); color: var(--pine); flex: none; }
.activity h3 { font-size: var(--step-1); margin: 0; }
.activity__meta { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; font-size: 0.82rem; letter-spacing: 0.04em; color: var(--cinder); }
.activity__meta span { display: inline-flex; gap: 0.35rem; align-items: center; }
.activity__meta .icon { width: 1em; height: 1em; }
.activity p { margin: 0; color: var(--basalt-2); }
.activity__link { margin-top: auto; padding-top: 0.5rem; font-size: 0.92rem; }

/* Night sky band */
.section--dusk { background: radial-gradient(120% 90% at 70% 0%, var(--dusk-2) 0%, var(--dusk) 55%, #12181f 100%); color: var(--bone); overflow: hidden; isolation: isolate; }
.stars { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.stars i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; opacity: 0.7; animation: twinkle 5s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: 0.25; } 50% { opacity: 0.9; } }
.night { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.night__photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4); }
.night__photo img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
@media (max-width: 860px) { .night { grid-template-columns: 1fr; } }
.signal { display: inline-flex; align-items: center; gap: 0.75rem; padding: 0.7rem 1.1rem; border: 1px solid var(--line-light); border-radius: 999px; font-size: 0.9rem; margin-top: var(--space-4); }

/* Distances / getting here */
.distances { list-style: none; padding: 0; margin: 0; }
.distances li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.distances li span:last-child { font-family: var(--font-display); font-size: var(--step-1); white-space: nowrap; }
.section--dark .distances li, .section--pine .distances li { border-color: var(--line-light); }
.map-frame { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--radius-lg); filter: saturate(0.75) contrast(0.95); background: var(--bone-2); }
.map-credit { font-size: 0.78rem; color: var(--cinder); margin-top: 0.5rem; }

/* Notice / callouts */
.callout { display: flex; gap: 1rem; padding: 1.2rem 1.4rem; border-radius: var(--radius-lg); background: var(--sage-soft); color: var(--pine); align-items: flex-start; }
.callout .icon { margin-top: 0.2rem; }
.callout p { margin: 0; color: var(--basalt-2); }
.callout--placeholder { background: #f6e7d7; color: var(--ember-2); border: 1px dashed rgba(168, 67, 42, 0.45); }

/* Menus (Dine) */
.menu-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: 0.75rem; }
.menu-link { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 1.2rem; border-radius: var(--radius); border: 1px solid var(--line-light); color: var(--bone); text-decoration: none; font-family: var(--font-display); font-size: var(--step-1); transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease); }
.menu-link:hover { background: rgba(243, 238, 228, 0.08); border-color: rgba(243, 238, 228, 0.5); color: var(--bone); }
.menu-link small { display: block; font-family: var(--font-body); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.7; }

/* Photo strip */
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(16rem, 1fr); gap: 0.75rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 0.5rem; scrollbar-width: thin; }
.strip > * { scroll-snap-align: start; }
.strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }

/* Cottage detail */
.cottage-nav { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); padding-top: var(--space-6); margin-top: var(--space-8); }
.cottage-nav a { display: flex; flex-direction: column; text-decoration: none; color: inherit; max-width: 48%; }
.cottage-nav a:last-child { text-align: right; align-items: flex-end; }
.cottage-nav small { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cinder); display: inline-flex; gap: 0.4rem; align-items: center; }
.cottage-nav span { font-family: var(--font-display); font-size: var(--step-2); }
.cottage-nav a:hover span { color: var(--ember); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--paper); }
.facts div { padding: 1.1rem 1.2rem; border-right: 1px solid var(--line); }
.facts div:last-child { border-right: 0; }
.facts dt { font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cinder); }
.facts dd { margin: 0.3rem 0 0; font-family: var(--font-display); font-size: var(--step-1); }
.sticky-book { position: sticky; top: calc(var(--header-h) + 3rem); padding: 1.6rem; border-radius: var(--radius-lg); background: var(--basalt); color: var(--bone); }
.sticky-book h3 { font-size: var(--step-2); }
.sticky-book .btn { width: 100%; margin-top: 0.5rem; }
.sticky-book a:not(.btn) { color: var(--bone); }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
@media (max-width: 960px) { .detail-layout { grid-template-columns: 1fr; } .sticky-book { position: static; } }

/* Forms */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.3rem; }
.form .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label, .field legend { font-size: 0.86rem; font-weight: 600; letter-spacing: 0.04em; }
.field .req { color: var(--ember); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--basalt); background: var(--paper);
  border: 1px solid rgba(31, 29, 27, 0.28); border-radius: var(--radius); padding: 0.75rem 0.9rem; width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--pine); box-shadow: 0 0 0 3px rgba(31, 74, 51, 0.18); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--ember); }
.field__error { font-size: 0.84rem; color: var(--ember-2); min-height: 0; }
.field fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; }
.field fieldset legend { margin-bottom: 0.5rem; }
.check { display: inline-flex; gap: 0.5rem; align-items: center; font-size: 0.98rem; font-weight: 400; }
.check input { width: 1.1rem; height: 1.1rem; accent-color: var(--pine); }
.form__status { padding: 1rem 1.2rem; border-radius: var(--radius); background: var(--sage-soft); color: var(--pine); }
.form__status[hidden] { display: none; }

/* Package cards */
.package { padding: 2rem; border-radius: var(--radius-lg); background: var(--paper); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 0.6rem; }
.package__price { font-family: var(--font-display); font-size: var(--step-2); color: var(--pine); }
.package ul { padding-left: 1.1em; margin: 0.4rem 0 1rem; }
.package li { margin-bottom: 0.3rem; }
.package .btn { margin-top: auto; align-self: flex-start; }

/* Events */
.event { display: grid; grid-template-columns: 6.5rem 1fr auto; gap: 1.5rem; align-items: center; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.event__date { text-align: center; border: 1px solid var(--line); border-radius: var(--radius); padding: 0.6rem 0.4rem; background: var(--paper); }
.event__date b { display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 400; line-height: 1; }
.event__date span { font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cinder); }
.event h3 { font-size: var(--step-1); margin: 0 0 0.25rem; }
.event p { margin: 0; color: var(--basalt-2); }
@media (max-width: 640px) { .event { grid-template-columns: 4.5rem 1fr; } .event > :last-child { grid-column: 2; } }

/* Press row */
.press { display: flex; flex-wrap: wrap; gap: 0.6rem 2.2rem; align-items: center; justify-content: center; font-family: var(--font-display); font-size: var(--step-1); color: var(--cinder); }
.press span { white-space: nowrap; }

/* Signpost CTA */
.signpost { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1px; background: var(--line-light); border-radius: var(--radius-lg); overflow: hidden; }
.signpost a { background: var(--basalt); padding: 2rem 1.6rem; color: var(--bone); text-decoration: none; display: flex; flex-direction: column; gap: 0.6rem; transition: background-color 0.3s var(--ease); }
.signpost a:hover { background: var(--basalt-2); color: var(--bone); }
.signpost .icon { width: 1.6rem; height: 1.6rem; color: var(--sage); }
.signpost strong { font-family: var(--font-display); font-weight: 400; font-size: var(--step-2); }
.signpost span { color: rgba(243, 238, 228, 0.75); font-size: 0.95rem; }

/* 7. Footer -------------------------------------------------------------- */
site-footer { display: block; }
.site-footer { background: #171513; color: rgba(243, 238, 228, 0.82); padding: var(--space-8) 0 var(--space-6); position: relative; isolation: isolate; overflow: hidden; font-size: 0.95rem; }
.site-footer::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../img/brand/topo-light.svg") center / cover; opacity: 0.05; }
.site-footer a { color: rgba(243, 238, 228, 0.88); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: var(--space-6); }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
.footer__brand .brand { color: var(--bone); margin-bottom: 1.2rem; }
.footer__brand p { max-width: 26rem; }
.footer__title { font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sage); margin: 0 0 1rem; font-family: var(--font-body); font-weight: 600; }
.footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.footer__social { display: flex; gap: 0.6rem; margin-top: 1.2rem; flex-wrap: wrap; }
.footer__social a { border: 1px solid var(--line-light); border-radius: 999px; padding: 0.35rem 0.85rem; font-size: 0.85rem; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid var(--line-light); font-size: 0.82rem; color: rgba(243, 238, 228, 0.6); }

/* 8. Motion & utilities -------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.js-off .reveal, .no-js .reveal { opacity: 1; transform: none; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .hero__media img { animation: none; transform: none; }
  .reveal { opacity: 1; transform: none; }
}

.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-4 { margin-top: var(--space-4); } .mt-6 { margin-top: var(--space-6); } .mt-7 { margin-top: var(--space-7); }
.mb-0 { margin-bottom: 0; } .mb-6 { margin-bottom: var(--space-6); }
.flex-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.noscript { background: var(--basalt); color: var(--bone); padding: 1rem var(--gutter); text-align: center; }
.noscript a { color: var(--bone); }

/* Mobile refinements ----------------------------------------------------- */
.utility a, .status { white-space: nowrap; }
@media (max-width: 960px) {
  .utility .utility__hide-sm { display: none; }
  .hero--home { min-height: calc(100svh - 4.4rem); }
  .action-bar { grid-template-columns: 1fr 1fr 1.7fr; }
  .action-bar a.is-primary { white-space: nowrap; }
}
@media (max-width: 420px) {
  .utility { font-size: 0.74rem; }
  .utility__inner { gap: 0.5rem; }
}
@media (max-width: 640px) {
  .field-notes__item:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* Full cottage list: 4 + 3 centered on desktop, never an orphan row */
.cottage-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-6); }
.cottage-grid > .card { flex: 0 1 calc((100% - 3 * var(--space-6)) / 4); }
@media (max-width: 1100px) { .cottage-grid > .card { flex-basis: calc((100% - 2 * var(--space-6)) / 3); } }
@media (max-width: 820px) { .cottage-grid > .card { flex-basis: calc((100% - var(--space-6)) / 2); } }
@media (max-width: 560px) { .cottage-grid > .card { flex-basis: 100%; } }

/* Layout refinements ----------------------------------------------------- */
.menu-links { grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr)); }
.explore-group .grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
/* Keep contour lines at a constant scale on tall sections */
.topo::before, .site-footer::before { background-size: 1500px auto !important; background-repeat: repeat !important; background-position: center top !important; }

/* Custom select to match inputs */
.field select {
  -webkit-appearance: none; appearance: none; min-height: 3rem; padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%235f574f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.7rem center; background-size: 1.2rem;
}
.field input { min-height: 3rem; }

/* Gallery: even rows regardless of source aspect ratio */
.gallery { grid-auto-rows: clamp(9rem, 18vw, 16rem); }
.gallery__item, .gallery__item--wide { aspect-ratio: auto !important; height: 100%; }

@media (max-width: 640px) { .press { flex-direction: column; gap: 0.7rem; text-align: center; } .press span { white-space: normal; } }

/* Facts: hairline gaps instead of borders, so wrapping never leaves stray lines */
.facts { gap: 1px; background: var(--line); }
.facts div { border: 0 !important; background: var(--paper); }

/* Hero variant for bright, busy photos: a left-side scrim behind the text column
   plus a soft text shadow, so headlines stay legible without darkening the whole image. */
.hero--bright::after {
  background:
    linear-gradient(to right, rgba(20, 18, 16, 0.78) 0%, rgba(20, 18, 16, 0.55) 38%, rgba(20, 18, 16, 0.12) 68%, rgba(20, 18, 16, 0) 85%),
    linear-gradient(to top, rgba(20, 18, 16, 0.6) 0%, rgba(20, 18, 16, 0) 45%, rgba(20, 18, 16, 0.3) 100%);
}
.hero--bright .hero__title,
.hero--bright .hero__lede,
.hero--bright .eyebrow { text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 2px 24px rgba(0, 0, 0, 0.35); }
.hero--bright .hero__lede { color: var(--bone); }
@media (max-width: 700px) {
  /* Text spans the full width on phones, so darken evenly instead */
  .hero--bright::after { background: linear-gradient(to top, rgba(20, 18, 16, 0.85) 0%, rgba(20, 18, 16, 0.55) 55%, rgba(20, 18, 16, 0.35) 100%); }
}

/* Logo legibility over any photo ---------------------------------------
   A feathered dark halo sits behind the brand only while the header is
   transparent. Invisible on dark images, quietly effective on bright ones.
   Removed once the header turns solid on scroll. */
.site-header .brand { position: relative; isolation: isolate; }
.site-header .brand::before {
  content: ""; position: absolute; z-index: -1; inset: -1.1rem -2.2rem -1.1rem -1.6rem;
  background: radial-gradient(closest-side, rgba(20, 18, 16, 0.5), rgba(20, 18, 16, 0.28) 55%, rgba(20, 18, 16, 0));
  pointer-events: none; transition: opacity 0.4s var(--ease);
}
.site-header .brand__text { text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55), 0 0 14px rgba(0, 0, 0, 0.3); transition: text-shadow 0.4s var(--ease); }
.site-header .brand__sub { opacity: 0.92; }
.site-header .brand img { box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35); }
.site-header.is-solid .brand::before { opacity: 0; }
.site-header.is-solid .brand__text { text-shadow: none; }
.site-header.is-solid .brand img { box-shadow: none; }
