:root {
  --bg: #0d1114;
  --bg-2: #141a1f;
  --panel: #182027;
  --line: #2a343d;
  --text: #d8dde1;
  --muted: #8e99a3;
  --accent: #e3a548;
  --accent-2: #7fb3c8;
  --radius: 14px;
  --wrap: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 var(--font);
}

a { color: var(--accent-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }

img { max-width: 100%; display: block; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(13, 17, 20, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 14px;
}

.logo svg { width: 26px; height: 26px; }

.nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; padding: 6px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 72vh;
  display: flex;
  align-items: flex-end;
  background:
    radial-gradient(120% 80% at 70% 10%, rgba(127, 179, 200, 0.18), transparent 60%),
    linear-gradient(180deg, #1b252c 0%, #121a20 55%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}

.hero .ridges { position: absolute; inset: auto 0 0 0; width: 100%; height: 62%; }

.hero.photo {
  background:
    linear-gradient(90deg, rgba(13, 17, 20, 0.9) 0%, rgba(13, 17, 20, 0.6) 45%, rgba(13, 17, 20, 0.1) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(13, 17, 20, 0) 35%),
    url(/gallery/zipline-sunset.jpg) center / cover no-repeat;
}

.hero.photo .rain { opacity: 0.5; }

@media (max-width: 600px) {
  .hero.photo {
    background:
      linear-gradient(0deg, var(--bg) 0%, rgba(13, 17, 20, 0.75) 55%, rgba(13, 17, 20, 0.25) 100%),
      url(/gallery/zipline-sunset-s.jpg) 60% center / cover no-repeat;
  }
}

.hero .rain {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(105deg, transparent 0 22px, rgba(216, 221, 225, 0.05) 22px 23px);
  animation: fall 1.6s linear infinite;
  pointer-events: none;
}

@keyframes fall { from { background-position: 0 0; } to { background-position: -40px 160px; } }

@media (prefers-reduced-motion: reduce) { .hero .rain { animation: none; } }

.hero .wrap { position: relative; width: 100%; padding-top: 120px; padding-bottom: 56px; }

.kicker {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 12px;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(36px, 7vw, 68px); letter-spacing: 0.01em; }
h2 { font-size: clamp(24px, 3.4vw, 32px); margin-top: 1.8em; }
h3 { font-size: 20px; }

.lead { font-size: clamp(18px, 2.2vw, 21px); color: #c3cad0; max-width: 680px; }

.page-head { padding: 72px 0 24px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-2), var(--bg)); }

main { padding-bottom: 72px; }

.prose { max-width: 720px; }
.prose p { margin: 0 0 1.1em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin: 36px 0;
}

.card {
  display: block;
  padding: 22px 22px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--text); }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .more { display: inline-block; margin-top: 14px; color: var(--accent); font-size: 14px; letter-spacing: 0.06em; }

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 36px 0 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.facts div { padding: 16px 18px; background: var(--bg-2); }

@media (max-width: 760px) { .facts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .facts { grid-template-columns: 1fr; } }
.facts dt { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; }
.facts dd { margin: 4px 0 0; font-weight: 600; }

.glossary { margin: 28px 0 0; max-width: 760px; }
.glossary dt { font-weight: 700; font-size: 19px; margin-top: 26px; }
.glossary dt small { color: var(--muted); font-weight: 400; font-size: 14px; margin-left: 6px; }
.glossary dd { margin: 6px 0 0; color: #c8cfd4; }

.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 18px; }
.people div { padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); }
.people b { display: block; margin-bottom: 4px; }
.people span { color: var(--muted); font-size: 15px; }

details.spoiler {
  margin-top: 28px;
  max-width: 720px;
  border: 1px dashed var(--accent);
  border-radius: 12px;
  padding: 14px 18px;
  background: rgba(227, 165, 72, 0.05);
}

details.spoiler summary { cursor: pointer; color: var(--accent); font-weight: 600; }
details.spoiler[open] summary { margin-bottom: 10px; }

blockquote {
  margin: 28px 0;
  padding: 4px 0 4px 18px;
  border-left: 3px solid var(--accent);
  color: #c3cad0;
  font-size: 19px;
}

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 22px; margin-top: 36px; }
.gallery figure { margin: 0; }
.gallery a { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); }
.gallery img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.4s; }
.gallery a:hover img { transform: scale(1.03); }
.gallery figcaption { margin-top: 10px; color: var(--muted); font-size: 15px; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.site-footer p { margin: 0 0 8px; max-width: 760px; }

.notfound { min-height: 70vh; display: flex; align-items: center; }
.notfound .code { font-size: 15px; color: var(--accent); letter-spacing: 0.3em; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { min-height: 64vh; }
  .hero .wrap { padding-top: 96px; padding-bottom: 40px; }
  .page-head { padding-top: 48px; }
}
