/* Home hero: the real Monteynard-lake photo (site/assets/img/hero-mountain.jpg)
   as a flat stack of layers — photo, dark scrim, topographic contour-line
   watermark, then the text — so the same band works as a legible backdrop
   in both light and dark mode without depending on theme color variables. */

.hero-home {
  position: relative;
  overflow: hidden;
  padding-block: var(--space-12) var(--space-10);
  isolation: isolate;
}

.hero-home__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: image-set("/assets/img/hero-mountain.jpg" 1x);
  background-image: url("/assets/img/hero-mountain.jpg");
  background-size: cover;
  background-position: center 62%;
}

@media (max-width: 47.99rem) {
  .hero-home__bg {
    background-image: url("/assets/img/hero-mountain-sm.jpg");
  }
}

.hero-home__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(16, 18, 14, 0.5) 0%, rgba(16, 18, 14, 0.8) 100%);
}

.hero-home__topo {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  color: rgba(253, 250, 243, 0.4);
}

.hero-home__content {
  position: relative;
  z-index: 3;
}

.hero-home .eyebrow {
  color: #f2aa70;
}

.hero-home h1 {
  color: #fdfaf3;
  max-width: 16ch;
}

.hero-home .hero__tagline {
  color: rgba(253, 250, 243, 0.85);
}

/* CV */

@media print {
  .corner-mark, .site-footer, .btn-row {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .timeline {
    border-left-color: #ccc;
  }
}

/* 404: text beside a small survey map whose "you are here" pin sits
   outside the map frame (site/templates/components/lost-map.mjs). */

.not-found {
  display: grid;
  gap: var(--space-8);
  align-items: center;
  padding-bottom: var(--space-10);
}

@media (min-width: 56rem) {
  .not-found {
    grid-template-columns: 1fr 1.15fr;
    min-height: 80vh;
  }
}

.not-found h1 {
  max-width: 14ch;
  margin-top: var(--space-3);
}

.not-found__message {
  margin-top: var(--space-5);
  font-size: var(--text-lg);
  max-width: var(--max-width-prose);
}

.not-found__aside {
  margin-top: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.lost-map {
  width: 100%;
  height: auto;
  overflow: visible;
  font-family: var(--font-mono);
}

.lost-map__paper { fill: var(--color-surface-alt); }
.lost-map__frame { fill: none; stroke: var(--color-border-strong); stroke-width: 1.5; }
.lost-map__ticks { stroke: var(--color-border-strong); stroke-width: 1.5; }

.lost-map__contour { fill: none; stroke: var(--color-text-muted); stroke-width: 1; opacity: 0.45; }
.lost-map__contour--index { stroke-width: 2; opacity: 0.7; }

.lost-map__halo,
.lost-map__elev {
  stroke: var(--color-surface-alt);
  stroke-width: 6px;
  paint-order: stroke;
}

.lost-map__elev {
  font-size: 12px;
  font-weight: 700;
  fill: var(--color-text-muted);
}

.lost-map__label { font-size: 11px; fill: var(--color-text-muted); }
.lost-map__label--strong { fill: var(--color-text); font-weight: 700; }

.lost-map__dragons {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 15px;
  fill: var(--color-text-muted);
}

.lost-map__summit { fill: var(--color-text); }
.lost-map__compass { fill: var(--color-surface); stroke: var(--color-border-strong); stroke-width: 1.5; }
.lost-map__needle-n { fill: var(--color-accent); }
.lost-map__needle-s { fill: var(--color-text-muted); }
.lost-map__shuttle { fill: none; stroke: var(--color-text); stroke-width: 1.2; stroke-linejoin: round; }
.lost-map__shuttle-cork { fill: var(--color-accent); }

.lost-map__trail {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 2.5;
  stroke-dasharray: 7 6;
  stroke-linecap: round;
}

.lost-map__camp { fill: var(--color-accent); }
.lost-map__pin path { fill: var(--color-accent); }
.lost-map__pin circle { fill: var(--color-surface); }

/* 403: the same map, with a fenced-off zone (reserved-zone.mjs). */
.reserved-zone__hatch { fill: none; stroke: var(--color-accent); stroke-width: 1.5; opacity: 0.35; }
.reserved-zone__fence { fill: none; stroke: var(--color-accent); stroke-width: 2.5; stroke-dasharray: 8 5; }
.reserved-zone__padlock rect { fill: var(--color-accent); }
.reserved-zone__shackle { fill: none; stroke: var(--color-accent); stroke-width: 2.5; }

/* One view per language on the error pages (error-page.mjs): only the one
   matching <html lang>, set client-side, is displayed. */
.error-view { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .lost-map__trail { animation: lost-map-march 1.2s linear infinite; }

  .lost-map__needle {
    transform-box: fill-box;
    transform-origin: center;
    animation: lost-map-dither 6s ease-in-out infinite;
  }

  .lost-map__pin path,
  .lost-map__pin circle { animation: lost-map-bob 2.4s ease-in-out infinite; }
}

@keyframes lost-map-march { to { stroke-dashoffset: -13; } }

/* A compass that can't make up its mind. */
@keyframes lost-map-dither {
  0%, 100% { transform: rotate(20deg); }
  20% { transform: rotate(-70deg); }
  35% { transform: rotate(160deg); }
  55% { transform: rotate(95deg); }
  70% { transform: rotate(400deg); }
  85% { transform: rotate(340deg); }
}

@keyframes lost-map-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
