/* Azura — azura.camp
   By Symbiont Systems LLC
   The sky is painted by sky.js onto --sky-top/--sky-mid/--sky-hor.
   Text theme flips via body[data-theme]. Fauna keyed to body[data-phase]. */

@font-face {
  font-family: 'Fraunces';
  src: url('fonts/fraunces-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Fraunces';
  src: url('fonts/fraunces-italic-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --jet: #05060e;
  --indigo: #10163a;
  --bone: #ece8dd;
  --ink: #1d232b;
  --alkali: #dce9f2;
  --desert-blue: #7fb2e5;
  --gold-night: #d9973f;
  --gold-day: #b0722a;

  --sky-top: var(--desert-blue);
  --sky-mid: #a8cbe8;
  --sky-hor: var(--alkali);

  --text: var(--ink);
  --accent: var(--gold-day);
  --panel: rgba(255, 255, 255, 0.55);

  --space-m: clamp(1.2rem, 2.5vh, 2rem);
  --space-l: clamp(2.4rem, 6vh, 4.5rem);
  --space-xl: clamp(4rem, 10vh, 8rem);

  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, "Segoe UI", Helvetica, Arial, sans-serif;
}

body[data-theme="night"] {
  --text: var(--bone);
  --accent: var(--gold-night);
  --panel: rgba(5, 6, 14, 0.45);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--text);
  transition: color 0.8s ease;
  min-height: 100vh;
}

/* ---- sky ---- */

.sky {
  position: fixed;
  inset: 0;
  z-index: -3;
  background: linear-gradient(to bottom,
    var(--sky-top) 0%,
    var(--sky-mid) 55%,
    var(--sky-hor) 100%);
}

#stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ---- horizon ---- */

.horizon {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  pointer-events: none;
}

.horizon svg {
  display: block;
  width: 100%;
  height: 26vh;
  min-height: 150px;
}

.range { fill: #0a0c14; opacity: 0.88; }
.fringe path { fill: var(--jet); }

/* ---- navigation + accessibility ---- */

.skip-link {
  position: fixed;
  top: -3rem;
  left: 1rem;
  z-index: 20;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus { top: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.site-nav {
  position: fixed;
  top: 0.9rem;
  left: 1rem;
  z-index: 10;
  display: flex;
  gap: 0.2em;
  font-size: clamp(0.7rem, 0.65rem + 0.2vw, 0.78rem);
  letter-spacing: 0.05em;
  background: var(--panel);
  backdrop-filter: blur(6px);
  padding: 0.15em 0.5em;
  border-radius: 2em;
  transition: background 0.8s ease;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  padding: 0.35em 0.55em;
  border-radius: 2em;
  transition: color 0.8s ease;
}

.site-nav a:hover { color: var(--accent); }

/* ---- HUD ---- */

.hud {
  position: fixed;
  top: 0.9rem;
  right: 1rem;
  z-index: 10;
  display: flex;
  gap: 0.9em;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: var(--text);
  background: var(--panel);
  backdrop-filter: blur(6px);
  padding: 0.35em 0.8em;
  border-radius: 2em;
  transition: color 0.8s ease, background 0.8s ease;
}

@media (max-width: 40rem) {
  /* narrow screens: HUD drops below the nav chip instead of colliding */
  .hud { top: 3.3rem; font-size: 0.68rem; }
}

/* ---- content ---- */

/* two-tier width: main carries feature grids at 72rem; prose elements
   inside cap themselves at a 65ch reading measure */
main {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.sky-section { container-type: inline-size; }

.sky-pair {
  display: grid;
  gap: var(--space-l);
  align-items: start;
  justify-content: center;
}

@container (min-width: 56rem) {
  .sky-pair { grid-template-columns: minmax(0, 65ch) minmax(18rem, 24rem); }
}

h1, h2 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 10vh;
}

/* Expedition Mark masthead: tracked caps over a hairline, wide-tracked
   display title, italic descriptor. All tracking offsets balanced with
   matching padding-left so the letters sit optically centered. */
.eyebrow {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.42em;
  padding-left: 0.42em;
  text-align: center;
  color: var(--accent);
  transition: color 0.8s ease;
  width: 100%;
  max-width: 34rem;
}

.eyebrow::after {
  content: '';
  display: block;
  height: 1px;
  margin-top: 1.1rem;
  background: color-mix(in srgb, var(--text) 26%, transparent);
}

.hero h1 {
  font-size: clamp(2.8rem, 8vw, 4.8rem);
  font-weight: 480;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  padding-left: 0.3em;
  text-align: center;
  margin-top: 1.6rem;
}

.tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  margin: 1rem 0 3.2rem;
  opacity: 0.82;
  text-align: center;
}

.intro {
  font-size: clamp(1rem, 0.97rem + 0.2vw, 1.08rem);
  line-height: 1.8;
  max-width: 65ch;
}

.scroll-cue {
  margin-top: 3rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
}

/* content-height sections on a spacing scale — no forced viewport voids */
section {
  padding: var(--space-xl) 0;
}

/* one spine: centered masthead, centered reading columns — text inside
   stays left-aligned (centered running text is a readability tax) */
section h2 {
  font-size: clamp(1.6rem, 1.25rem + 1.4vw, 2.1rem);
  font-weight: 540;
  margin-bottom: 1.2rem;
  text-align: center;
}

section p, blockquote {
  line-height: 1.75;
  max-width: 65ch;
  margin-inline: auto;
}

/* pull quote is display material — genuine centering is appropriate */
.quote-section blockquote,
.quote-section cite {
  text-align: center;
}

.placeholder {
  opacity: 0.75;
  font-style: italic;
}

/* copy rendered from content/*.md */
[data-copy] p + p,
[data-copy] p + blockquote,
[data-copy] blockquote + p {
  margin-top: 1em;
}

/* ---- tonight card ---- */

.card {
  background: var(--panel);
  backdrop-filter: blur(8px);
  border: 1px solid color-mix(in srgb, var(--text) 18%, transparent);
  border-radius: 10px;
  padding: 1.6rem 1.8rem;
  transition: background 0.8s ease, border-color 0.8s ease;
}

.card h2 { font-size: 1.4rem; margin-bottom: 1rem; }

.card dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.9rem 1.4rem;
  margin-bottom: 1.1rem;
}

.card dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.65;
  margin-bottom: 0.15rem;
}

.card dd {
  font-family: var(--serif);
  font-size: 1.05rem;
}

.verdict {
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent);
  transition: color 0.8s ease;
}

/* ---- gallery ---- */

.gallery-section { max-width: none; }

.filmstrip-wrap {
  position: relative;
  margin-top: 1.4rem;
  /* full-bleed out of the content column */
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.filmstrip {
  display: flex;
  gap: 1.2rem;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 1.2rem calc(50vw - min(31vw, 21rem));
  outline: none;
}

.filmstrip::-webkit-scrollbar { display: none; }

.filmstrip li {
  flex: 0 0 auto;
  width: min(62vw, 42rem);
  scroll-snap-align: center;
  cursor: pointer;
  transition: none; /* transforms driven per-frame by sky.js */
}

.filmstrip img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  box-shadow: 0 6px 30px rgba(5, 6, 14, 0.35);
}

.strip-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  border: none;
  background: none;
  padding: 0.4rem 0.7rem; /* invisible hit area */
  color: var(--text);
  font-size: 2.6rem;
  line-height: 1;
  opacity: 0.7;
  cursor: pointer;
  transition: color 0.8s ease, opacity 0.2s ease;
}

.strip-btn:hover { opacity: 1; }

#strip-prev { left: max(0.8rem, calc(50vw - min(31vw, 21rem) - 3.4rem)); }
#strip-next { right: max(0.8rem, calc(50vw - min(31vw, 21rem) - 3.4rem)); }

.strip-counter {
  margin-top: 0.6rem;
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  opacity: 0.8;
}

#lightbox {
  border: none;
  padding: 0;
  background: transparent;
  max-width: 92vw;
  max-height: 92vh;
}

#lightbox::backdrop { background: rgba(5, 6, 14, 0.88); }

#lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  display: block;
  border-radius: 6px;
}

#lightbox-close {
  position: absolute;
  top: 0.4rem;
  right: 0.6rem;
  font-size: 1.6rem;
  line-height: 1;
  color: #ece8dd;
  background: rgba(5, 6, 14, 0.55);
  border: none;
  border-radius: 50%;
  width: 2.2rem;
  height: 2.2rem;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  .gallery img, .gallery button:hover img { transition: none; transform: none; }
}

/* ---- getting here (Visit) ---- */

.getting-here {
  max-width: 40rem;
  margin: var(--space-l) auto 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
}

.gh-heading {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 540;
  text-align: center;
}

.geo-block {
  background: var(--panel);
  backdrop-filter: blur(6px);
  border: 1px solid color-mix(in srgb, var(--text) 18%, transparent);
  border-radius: 10px;
  padding: 0.9rem 1.2rem;
  font-variant-numeric: tabular-nums;
  transition: background 0.8s ease, border-color 0.8s ease;
}

.geo-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.15rem 0;
}

.geo-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
  align-self: center;
}

.geo-coords { font-family: var(--serif); }

.geo-actions {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  margin-top: 0.7rem;
  padding-top: 0.7rem;
  border-top: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
  font-size: 0.85rem;
}

.geo-actions a { color: var(--accent); }

.map-card {
  background: var(--panel);
  backdrop-filter: blur(6px);
  border: 1px solid color-mix(in srgb, var(--text) 18%, transparent);
  border-radius: 10px;
  padding: 1rem;
  transition: background 0.8s ease, border-color 0.8s ease;
}

.map-card svg { width: 100%; height: auto; display: block; }

.map-card figcaption {
  font-size: 0.75rem;
  font-style: italic;
  opacity: 0.7;
  text-align: center;
  margin-top: 0.5rem;
}

.m-road { fill: none; stroke: var(--text); stroke-width: 2; opacity: 0.8; }
.m-hwy { stroke-width: 4; }
.m-spur { stroke-dasharray: 3 4; stroke-width: 1.5; }
.m-power { fill: none; stroke: var(--text); stroke-width: 1; stroke-dasharray: 6 4; opacity: 0.6; }
.m-towers path { fill: none; stroke: var(--text); stroke-width: 1; opacity: 0.6; }
.m-node { fill: var(--text); opacity: 0.8; }
.m-pin { fill: var(--accent); }
.m-camp { fill: var(--accent); }
.m-north { fill: var(--text); opacity: 0.7; }
.m-label { fill: var(--text); font-size: 11px; font-family: var(--sans); opacity: 0.85; }
.m-dim { opacity: 0.55; }
.m-accent { fill: var(--accent); letter-spacing: 0.08em; font-weight: 600; }

.directions ul, [data-copy] ul {
  max-width: 65ch;
  margin: 1em auto 0;
  padding-left: 1.4rem;
  line-height: 1.75;
}

/* ---- availability calendar ---- */

.availability { margin: 1.8rem 0 2.4rem; }

.cal-months {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: var(--space-m);
}

.cal-month {
  background: var(--panel);
  backdrop-filter: blur(8px);
  border: 1px solid color-mix(in srgb, var(--text) 18%, transparent);
  border-radius: 10px;
  padding: 1rem 1.1rem 1.2rem;
  transition: background 0.8s ease, border-color 0.8s ease;
}

.cal-month h3 {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 540;
  margin: 0 0 0.7rem;
  text-align: center;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.cal-wd {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.7;
  text-align: center;
  padding-bottom: 0.3rem;
}

.cal-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 0.18rem 0;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  border-radius: 6px;
}

.cal-cell canvas { display: block; }

.cal-cell.busy { opacity: 0.32; }
.cal-cell.busy .cal-day { text-decoration: line-through; }
.cal-cell.past { opacity: 0.28; }
.cal-cell.today { box-shadow: inset 0 0 0 1px var(--accent); }

.cal-legend {
  font-size: 0.82rem;
  opacity: 0.8;
  margin-top: 0.8rem;
  text-align: center;
}

.cal-note {
  font-size: 0.78rem;
  font-style: italic;
  opacity: 0.75;
  margin-top: 0.3rem;
  text-align: center;
}

/* ---- booking platforms ---- */

.platforms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: var(--space-m);
  margin-top: 1.6rem;
}

.platform {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.3rem 1.4rem;
  background: var(--panel);
  backdrop-filter: blur(8px);
  border: 1px solid color-mix(in srgb, var(--text) 18%, transparent);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  transition: background 0.8s ease, border-color 0.3s ease, transform 0.2s ease;
}

.platform:hover:not(.pending) {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.platform-name {
  font-family: var(--serif);
  font-size: 1.25rem;
}

.platform-blurb {
  font-size: 0.85rem;
  line-height: 1.5;
  opacity: 0.75;
  flex-grow: 1;
}

.platform-action {
  margin-top: 0.4rem;
  align-self: flex-start;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 2em;
  padding: 0.35em 1em;
  transition: color 0.8s ease, border-color 0.8s ease;
}

.platform.pending {
  cursor: default;
  pointer-events: none;
}

.platform.pending .platform-action {
  color: var(--text);
  border-color: color-mix(in srgb, var(--text) 35%, transparent);
  opacity: 0.6;
}

@media (prefers-reduced-motion: reduce) {
  .platform, .platform:hover:not(.pending) { transform: none; }
}

/* ---- quote ---- */

.quote-section blockquote p {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.6;
  font-style: italic;
}

.quote-section cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  opacity: 0.75;
}

/* ---- footer ---- */

footer {
  padding: 3rem 0 30vh; /* clears the horizon silhouette */
  font-size: 0.85rem;
  opacity: 0.75;
  text-align: center;
}

.fine { font-size: 0.75rem; margin-top: 0.3rem; }

/* ---- fade-up on viewport entry ---- */

.fade-up {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: none;
}

/* first paint lands on the correct theme instantly; transitions enable after */
.no-transitions, .no-transitions * { transition: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-up { opacity: 1; transform: none; transition: none; }
}
