/* The Crag on Haliburton Lake — site layout & components.
   Built entirely from tokens.css variables; no hard-coded colors, fonts, or spacing. */

body { overflow-x: clip; text-wrap: pretty; }
a { color: var(--color-accent-700); text-decoration: none; }
a:hover { color: var(--color-accent); }

.skip-link {
  position: absolute; left: var(--space-3); top: -100px;
  background: var(--color-text); color: var(--color-bg);
  padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm);
  z-index: 2000; transition: top .15s ease;
}
.skip-link:focus { top: var(--space-3); color: var(--color-bg); }

.page { background: var(--color-bg); color: var(--color-text); min-height: 100vh; }

.wrap { padding-left: clamp(20px, 5vw, 72px); padding-right: clamp(20px, 5vw, 72px); }

/* — site nav — */
.site-nav {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--space-4);
  padding-top: var(--space-4); padding-bottom: var(--space-4);
}
.brand { display: flex; align-items: center; gap: var(--space-3); }
.brand-logo { height: 46px; width: auto; display: block; }
.brand-name { display: flex; flex-direction: column; line-height: 1.15; }
.brand-title { font-family: var(--font-heading); font-size: 23px; }
.brand-sub { font-size: 13px; opacity: 0.6; letter-spacing: 0.04em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.nav-links a[aria-current="page"] { color: var(--color-accent-700); font-weight: 600; }

/* — hero (Home / interior page headers) — */
.hero { position: relative; padding-top: calc(2 * var(--space-8)); padding-bottom: var(--space-6); }
.hero-blob {
  position: absolute; right: -140px; top: -160px; width: 360px; height: 360px;
  border-radius: 50%; background: var(--color-accent-2-200); z-index: -1;
}
.hero-title { font-size: clamp(38px, 5.6vw, 72px); line-height: 1.08; margin-top: var(--space-4); max-width: 20ch; }
.hero-lede { font-size: 18px; line-height: 1.65; max-width: 58ch; margin-top: var(--space-4); opacity: 0.85; }
.hero-actions { display: flex; gap: var(--space-3); margin-top: var(--space-6); flex-wrap: wrap; }
.hero-tags { display: flex; gap: var(--space-2); margin-top: var(--space-6); flex-wrap: wrap; }

.page-header { padding-top: var(--space-6); padding-bottom: var(--space-4); }
.page-header h1 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.1; margin-top: var(--space-4); max-width: 22ch; }
.page-header p { font-size: 16px; line-height: 1.6; max-width: 60ch; margin-top: var(--space-3); opacity: 0.85; }

.hero-figure { margin-bottom: calc(2 * var(--space-8)); border-radius: calc(2 * var(--radius-lg)); overflow: hidden; }
.hero-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* — section rhythm — */
.section { padding-top: 0; padding-bottom: calc(2 * var(--space-8)); }
.section-kicker {
  display: block; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
  font-weight: 600; color: var(--color-accent-700); margin-bottom: var(--space-3);
}
.section-kicker.is-sage { color: var(--color-accent-2-800); }

/* — feature grid (Home "why stay here") — */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-6); }
.feature { position: relative; padding-left: var(--space-6); }
.feature-icon { position: absolute; left: 0; top: 2px; width: 20px; height: 20px; color: var(--color-accent); }
.feature h3 { font-size: 22px; margin-bottom: var(--space-2); }
.feature p { font-size: 15px; line-height: 1.6; opacity: 0.8; margin: 0; }

/* — photo grid (Home teaser / Gallery / About) — */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-4); }
.photo-grid figure { border-radius: var(--radius-lg); overflow: hidden; }
.photo-grid img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-grid.is-loose { margin-bottom: var(--space-5); }

/* — gallery thumbnails as buttons — */
.gallery-thumb {
  display: block; width: 100%; padding: 0; margin: 0; border: 0; background: none; cursor: pointer;
  border-radius: var(--radius-lg);
}
.gallery-thumb:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
.gallery-thumb img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }

/* — CTA band — */
.cta-band { border-radius: calc(2 * var(--radius-lg)); padding: var(--space-8) clamp(24px, 4vw, 64px); }
.cta-band.is-accent { background: var(--color-accent-100); }
.cta-band.is-sage { background: var(--color-accent-2-100); }
.cta-band h2 { font-size: 28px; margin-bottom: var(--space-3); }
.cta-band p { font-size: 15.5px; line-height: 1.6; opacity: 0.85; max-width: 56ch; margin-bottom: var(--space-6); }

/* — footer — */
.site-footer {
  padding-top: var(--space-6);
  padding-bottom: calc(2 * var(--space-8));
  font-size: 13px; opacity: 0.6;
  display: flex; gap: var(--space-4); flex-wrap: wrap; justify-content: space-between;
}
.footer-links { display: flex; gap: var(--space-4); flex-wrap: wrap; }

/* — About page intro — */
.about-intro { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-6) clamp(24px, 5vw, 64px); align-items: center; }
.about-intro p { font-size: 16px; line-height: 1.7; opacity: 0.85; max-width: 52ch; margin-top: var(--space-4); margin-bottom: 0; }
.about-intro p + p { margin-top: var(--space-4); }
.about-portrait { width: 100%; border-radius: calc(2 * var(--radius-lg)); overflow: hidden; }
.about-portrait img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
@media (max-width: 760px) {
  .about-intro { grid-template-columns: 1fr; }
}

/* — Area page: map float + activity cards, stacking single-column below tablet — */
.area-layout::after { content: ""; display: block; clear: both; }
.area-map {
  float: right; width: min(320px, 40%); margin: 0 0 var(--space-4) var(--space-4);
  border-radius: var(--radius-lg); overflow: hidden;
}
.area-map img { width: 100%; display: block; object-fit: cover; }
.activity-card {
  display: inline-block; vertical-align: top; width: 200px;
  margin: 0 var(--space-3) var(--space-3) 0;
}
@media (max-width: 760px) {
  .area-map { float: none; width: 100%; margin: 0 0 var(--space-4); }
  .activity-card { display: block; width: 100%; margin: 0 0 var(--space-3); }
}

/* — FAQ list — */
.faq-list { display: grid; gap: var(--space-4); max-width: 70ch; }
.faq-list .card-title { font-family: var(--font-body); font-weight: 700; font-size: 16px; }

/* — Coming Soon — */
.splash {
  position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: var(--color-bg);
}
.splash-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.22;
}
.splash-fade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--color-bg) 0%, color-mix(in oklch, var(--color-bg) 85%, transparent) 55%, var(--color-bg) 100%);
}
.splash-content {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: var(--space-6); padding: var(--space-8) clamp(20px, 6vw, 72px); max-width: 640px;
}
.splash-brand { display: flex; align-items: center; gap: var(--space-3); }
.splash-logo { height: 64px; width: auto; display: block; }
.splash-wordmark { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.splash-title { font-family: var(--font-heading); font-size: 30px; }
.splash-sub { font-family: var(--font-body); font-size: 14px; letter-spacing: 0.03em; opacity: 0.7; }
.splash-h1 { font-size: clamp(30px, 4.5vw, 44px); line-height: 1.15; margin: 0; }
.splash-body { font-size: 16.5px; line-height: 1.65; opacity: 0.85; margin: 0; }

/* — Lightbox modal — */
.lightbox-backdrop {
  position: fixed; inset: 0; z-index: 1000;
  background: color-mix(in srgb, var(--color-neutral-900) 88%, transparent);
  display: flex; align-items: center; justify-content: center; padding: var(--space-6);
  border: 0; margin: 0; width: 100%; cursor: default;
}
.lightbox-backdrop[hidden] { display: none; }
.lightbox-close {
  position: absolute; top: var(--space-4); left: var(--space-4);
  width: 44px; height: 44px; border-radius: 50%; border: none;
  background: color-mix(in srgb, white 15%, transparent); color: #fff;
  font-size: 22px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-close:hover { background: color-mix(in srgb, white 25%, transparent); }
.lightbox-close:focus-visible { outline: 2px solid var(--color-accent-300); outline-offset: 2px; }
.lightbox-figure { margin: 0; max-width: min(1200px, 92vw); max-height: 88vh; }
.lightbox-figure img {
  max-width: min(1200px, 92vw); max-height: 88vh; object-fit: contain;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); display: block;
}
body.lightbox-open { overflow: hidden; }
