:root {
  --home-paper: #f2efe6;
  --home-surface: #fffdf7;
  --home-surface-2: #e9e4d7;
  --home-ink: #171711;
  --home-copy: #565449;
  --home-line: #d9d3c4;
  --home-yellow: #f0dd38;
  --home-dark: #171713;
  --yellow: var(--home-yellow);
  --yellow-2: #d9c82f;
  --muted: #a3a3a3;
  --soft: #d4d4d4;
  --white: #ffffff;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  background: var(--home-paper);
  color: var(--home-ink);
}

body.lightbox-open {
  overflow: hidden;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 9999;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--yellow);
  color: #0b0b0b;
  font-weight: 900;
  transition: top .2s ease;
}

.skip-link:focus {
  top: 16px;
}

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

.trail-nav {
  background: rgba(17, 17, 14, .94);
  border-bottom-color: rgba(255, 255, 255, .09);
}

.trail-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trail-nav-book {
  height: 46px;
}

.trail-menu-button {
  width: 48px;
  min-width: 48px;
  padding: 0;
  clip-path: none;
  color: var(--yellow);
  border-color: rgba(240, 234, 89, .35);
  background: transparent;
}

.trail-menu-button::before,
.trail-menu-button::after {
  display: none;
}

.trail-mobile-menu {
  position: sticky;
  top: 84px;
  z-index: 55;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: rgba(17, 17, 14, .98);
}

.trail-mobile-menu[hidden] {
  display: none;
}

.trail-mobile-links {
  display: grid;
  gap: 6px;
  padding-top: 14px;
  padding-bottom: 18px;
}

.trail-mobile-links > a:not(.btn) {
  padding: 12px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  color: var(--soft);
  font: 800 15px/1.2 "Barlow", sans-serif;
}

.trail-hero {
  padding: 28px 0 64px;
  border-bottom: 0;
  background:
    radial-gradient(circle at 12% 12%, rgba(240, 221, 56, .22), transparent 24%),
    var(--home-paper);
}

.trail-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(420px, 1.12fr);
  gap: 26px;
  align-items: stretch;
}

.trail-hero-copy,
.trail-hero-visual {
  min-height: 600px;
  border: 1px solid var(--home-line);
  border-radius: 32px;
  overflow: hidden;
  background: var(--home-surface);
  box-shadow: 0 24px 70px rgba(34, 31, 18, .09);
}

.trail-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 5vw, 62px);
}

.trail-eyebrow {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 20px;
  padding: 9px 13px;
  border: 0;
  border-radius: 999px;
  background: var(--home-yellow);
  color: var(--home-ink);
  font: 950 12px/1 "Barlow", sans-serif;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.trail-hero h1,
.trail-section-head h2,
.trail-share-card h2,
.trail-club-card h2,
.trail-empty h3 {
  margin: 0;
  color: var(--home-ink);
  font-family: "Barlow", ui-sans-serif, system-ui, sans-serif;
  font-weight: 900;
  text-transform: none;
  text-shadow: none;
}

.trail-hero h1 {
  max-width: 690px;
  font-size: clamp(44px, 5.8vw, 78px);
  line-height: .98;
  letter-spacing: -.045em;
}

.trail-hero h1::after,
.trail-section-head h2::after,
.trail-share-card h2::after,
.trail-club-card h2::after {
  content: none;
}

.trail-hero h1 span {
  display: block;
  color: #918b22;
}

.trail-lead {
  max-width: 60ch;
  margin: 26px 0 0;
  color: var(--home-copy);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.58;
}

.trail-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.trail-count,
.trail-total {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: var(--home-copy);
  font-weight: 750;
}

.trail-count strong {
  color: var(--home-ink);
  font-size: 22px;
}

.trail-hero-visual {
  position: relative;
  margin: 0;
  background: var(--home-surface);
}

.trail-hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.trail-hero-visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 28%;
  background: linear-gradient(transparent, rgba(0, 0, 0, .72));
  pointer-events: none;
}

.trail-hero-visual figcaption {
  position: absolute;
  left: 20px;
  bottom: 18px;
  z-index: 1;
  color: #fff;
  font: 800 14px/1.2 "Barlow", sans-serif;
}

.trail-gallery-section {
  padding: 76px 0 84px;
  background: var(--home-surface-2);
}

.trail-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.trail-section-head .trail-eyebrow,
.trail-share-card .trail-eyebrow,
.trail-club-card .trail-eyebrow {
  margin-bottom: 14px;
}

.trail-section-head h2,
.trail-share-card h2,
.trail-club-card h2 {
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.04;
  letter-spacing: -.035em;
}

.trail-section-head p:not(.trail-eyebrow),
.trail-share-card p:not(.trail-eyebrow):not(.trail-share-status),
.trail-club-card p:not(.trail-eyebrow) {
  max-width: 65ch;
  margin: 14px 0 0;
  color: var(--home-copy);
  font-size: 17px;
  line-height: 1.55;
}

.trail-total {
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 1px solid var(--home-line);
  border-radius: 999px;
  background: var(--home-surface);
  color: var(--home-copy);
}

.trail-total span {
  color: var(--home-ink);
  font-weight: 900;
}

.trail-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.trail-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--home-line);
  border-radius: 18px;
  background: var(--home-surface);
  color: #fff;
  cursor: zoom-in;
  isolation: isolate;
  box-shadow: 0 10px 28px rgba(39, 35, 20, .07);
}

.trail-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  border-radius: inherit;
  transition: border-color .2s ease;
  pointer-events: none;
}

.trail-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.002);
  transition: transform .35s cubic-bezier(.22, 1, .36, 1), filter .2s ease;
}

.trail-photo-number {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  display: grid;
  min-width: 36px;
  height: 36px;
  padding: 0 9px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  background: rgba(5, 5, 5, .78);
  color: var(--yellow);
  font: 900 13px/1 "Barlow", sans-serif;
  backdrop-filter: blur(8px);
}

@media (hover: hover) {
  .trail-photo:hover img {
    transform: scale(1.035);
    filter: brightness(1.06);
  }

  .trail-photo:hover::after {
    border-color: rgba(240, 234, 89, .62);
  }
}

.trail-empty {
  padding: 46px 24px;
  border: 1px dashed #a8a13a;
  border-radius: 24px;
  text-align: center;
  background: var(--home-surface);
}

.trail-empty h3 {
  font-size: 34px;
}

.trail-empty p {
  margin: 12px auto 0;
  max-width: 720px;
  color: var(--home-copy);
  line-height: 1.6;
}

.trail-empty code {
  color: #77711d;
}

.trail-share-section,
.trail-club-section {
  padding: 0 0 74px;
}

.trail-share-card,
.trail-club-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: clamp(28px, 5vw, 54px);
  overflow: hidden;
  border: 1px solid var(--home-line);
  border-radius: 28px;
  background: var(--home-surface);
  box-shadow: 0 14px 36px rgba(39, 35, 20, .07);
}

.trail-share-status {
  position: absolute;
  right: 52px;
  bottom: 16px;
  margin: 0;
  color: #77711d;
  font-size: 13px;
  font-weight: 800;
}

.trail-club-card {
  border-color: #d5c52f;
  background: var(--home-yellow);
  box-shadow: 0 24px 60px rgba(96, 86, 12, .16);
}

.trail-club-card .trail-eyebrow {
  border: 1px solid rgba(23, 23, 17, .18);
  background: rgba(255, 253, 247, .46);
}

.trail-club-card .btn {
  border-color: var(--home-dark);
  background: var(--home-dark);
  color: #fffdf7;
  box-shadow: none;
}

.trail-club-card .btn::after {
  background: var(--home-yellow);
  color: var(--home-ink);
}

.trail-address {
  color: #3f3d35 !important;
  font-weight: 800;
}

.trail-address span {
  margin-right: 8px;
  color: var(--home-ink);
}

.trail-removal {
  padding: 0 0 42px;
  color: var(--home-copy);
  text-align: center;
  font-size: 14px;
}

.trail-removal p {
  margin: 0;
}

.trail-removal a {
  color: var(--home-ink);
  text-decoration: underline;
  text-decoration-color: rgba(240, 234, 89, .55);
  text-underline-offset: 4px;
}

.trail-foot {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.trail-foot .col {
  min-width: 250px;
}

.trail-footer-address {
  margin-top: 8px;
  color: #d4d4d4;
  font-weight: 900;
}

.trail-foot a {
  color: #aaa89f;
}

.trail-foot a:hover {
  color: #fffdf7;
}

.trail-copyright {
  margin-top: 18px;
}

body > footer {
  border-top: 0;
  background: var(--home-dark);
  color: #aaa89f;
}

body > footer .kicker {
  color: var(--home-yellow);
}

.trail-lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: rgba(2, 2, 2, .98);
  color: #fff;
}

.trail-lightbox::backdrop {
  background: rgba(0, 0, 0, .94);
}

.lightbox-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: 100%;
  height: 100%;
}

.lightbox-toolbar {
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  padding: 12px max(18px, env(safe-area-inset-right)) 12px max(18px, env(safe-area-inset-left));
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  background: rgba(5, 5, 5, .94);
}

.lightbox-counter {
  display: block;
  color: var(--yellow);
  font: 900 16px/1.2 "Barlow", sans-serif;
}

.lightbox-caption {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.lightbox-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lightbox-download,
.lightbox-icon,
.lightbox-nav {
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: #111;
  color: #fff;
  font: 900 14px/1 "Barlow", sans-serif;
  cursor: pointer;
}

.lightbox-download {
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  border-color: var(--yellow);
  background: var(--yellow);
  color: #0b0b0b;
}

.lightbox-icon {
  width: 46px;
  padding: 0;
  font-size: 30px;
  line-height: 1;
}

.lightbox-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  overflow: hidden;
  touch-action: pan-y;
}

.lightbox-stage img {
  width: auto;
  max-width: calc(100vw - 150px);
  height: auto;
  max-height: calc(100dvh - 104px);
  object-fit: contain;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 54px;
  min-height: 54px;
  padding: 0;
  transform: translateY(-50%);
  border-color: rgba(240, 234, 89, .38);
  color: var(--yellow);
  font-size: 23px;
  backdrop-filter: blur(10px);
}

.lightbox-prev {
  left: 22px;
}

.lightbox-next {
  right: 22px;
}

@media (max-width: 980px) {
  .trail-nav-book {
    display: none;
  }

  .trail-hero-grid {
    grid-template-columns: 1fr;
  }

  .trail-hero-copy,
  .trail-hero-visual {
    min-height: 0;
  }

  .trail-hero-visual {
    aspect-ratio: 16 / 10;
  }

  .trail-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  html {
    scroll-padding-top: 82px;
  }

  .trail-mobile-menu {
    top: 72px;
  }

  .trail-hero {
    padding: 18px 0 42px;
  }

  .trail-hero-grid {
    gap: 14px;
  }

  .trail-hero-copy,
  .trail-hero-visual {
    border-radius: 22px;
  }

  .trail-hero-copy {
    padding: 28px 22px 30px;
  }

  .trail-hero h1 {
    font-size: clamp(42px, 13vw, 58px);
  }

  .trail-lead {
    margin-top: 20px;
    font-size: 16px;
  }

  .trail-hero-actions {
    align-items: stretch;
    flex-direction: column;
    margin-top: 26px;
  }

  .trail-hero-actions .btn {
    width: 100%;
  }

  .trail-count {
    justify-content: center;
  }

  .trail-hero-visual {
    aspect-ratio: 4 / 3;
  }

  .trail-gallery-section {
    padding: 54px 0 62px;
  }

  .trail-section-head {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 22px;
  }

  .trail-section-head h2,
  .trail-share-card h2,
  .trail-club-card h2 {
    font-size: 42px;
  }

  .trail-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .trail-photo {
    border-radius: 13px;
  }

  .trail-photo-number {
    right: 7px;
    bottom: 7px;
    min-width: 32px;
    height: 32px;
    padding: 0 7px;
    font-size: 12px;
  }

  .trail-share-section,
  .trail-club-section {
    padding-bottom: 52px;
  }

  .trail-share-card,
  .trail-club-card {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 28px 22px;
    border-radius: 22px;
  }

  .trail-share-card .btn,
  .trail-club-card .btn {
    width: 100%;
  }

  .trail-share-status {
    position: static;
    min-height: 1.2em;
  }

  .lightbox-toolbar {
    min-height: 68px;
    gap: 8px;
    padding-top: calc(8px + env(safe-area-inset-top));
  }

  .lightbox-caption {
    display: none;
  }

  .lightbox-download {
    min-height: 42px;
    padding: 0 13px;
    font-size: 12px;
  }

  .lightbox-icon {
    width: 42px;
    min-height: 42px;
  }

  .lightbox-stage img {
    max-width: 100vw;
    max-height: calc(100dvh - 96px - env(safe-area-inset-top));
  }

  .lightbox-nav {
    top: auto;
    bottom: calc(18px + env(safe-area-inset-bottom));
    width: 48px;
    min-height: 48px;
    transform: none;
    background: rgba(5, 5, 5, .82);
  }

  .lightbox-prev {
    left: 16px;
  }

  .lightbox-next {
    right: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .trail-photo img,
  .skip-link {
    transition: none;
  }
}
