:root {
  --bg: #07111f;
  --bg-2: #0c1b2e;
  --card: #12233c;
  --card-2: rgba(18, 35, 60, 0.86);
  --line: rgba(46, 230, 200, 0.2);
  --text: #f3f7fb;
  --muted: #a9b8c9;
  --accent: #2ee6c8;
  --accent-dim: #1bb7a0;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  --radius: 18px;
  --max: 1080px;
  --sans: "Outfit", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  background: radial-gradient(1200px 600px at 10% -10%, #14314f 0%, transparent 55%), var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 18px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 12px;
  top: 12px;
  background: var(--accent);
  color: #062018;
  padding: 8px 12px;
  z-index: 100;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(7, 17, 31, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}
.brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: 0.02em;
}
.brand:hover { text-decoration: none; color: var(--accent); }
.nav-toggle {
  display: none;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
}
.nav-links {
  display: flex;
  gap: 8px 22px;
  flex-wrap: wrap;
  align-items: center;
}
.nav-links a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.98rem;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--accent);
  text-decoration: none;
}

main { padding: 48px 0 80px; }
body.home main { padding-top: 0; }

.hero {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 48px;
}

.hero-banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 48px 0 56px;
  margin-bottom: 48px;
}
.hero-banner .hero {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
}
.hero-banner-media,
.hero-banner-media picture,
.hero-banner-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-banner-media {
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-banner-media img {
  max-width: none;
  object-fit: cover;
  object-position: center;
}
.hero-banner-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(7, 17, 31, 0.28) 0%, rgba(7, 17, 31, 0.55) 58%, rgba(7, 17, 31, 0.94) 100%),
    linear-gradient(90deg, rgba(7, 17, 31, 0.22) 0%, rgba(7, 17, 31, 0.1) 50%, rgba(7, 17, 31, 0.22) 100%);
}
.hero-banner h1,
.hero-banner .lede,
.hero-banner .kicker {
  text-shadow: 0 2px 16px rgba(7, 17, 31, 0.65);
}
picture:has(.portrait) { width: 100%; display: block; }
.portrait {
  width: 100%;
  border-radius: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  object-fit: cover;
  aspect-ratio: 4 / 5;
}
h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  font-weight: 700;
}
.lede {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  color: var(--muted);
  max-width: 38rem;
  margin: 0 0 28px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  font: inherit;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--accent);
  color: #062018;
}
.btn-primary:hover { background: #7af3de; }
.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.card h2, .section h2, .page-title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}
.card p, .prose p { margin: 0 0 12px; color: var(--muted); }
.card p:last-child { margin-bottom: 0; }
.kicker {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin: 0 0 8px;
}

.prose { max-width: 42rem; }
.prose h2 { margin-top: 2rem; }
.stack { display: grid; gap: 20px; }

.page-title { margin: 0 0 10px; }
.intro { color: var(--muted); font-size: 1.15rem; margin: 0 0 28px; max-width: 42rem; }

form.upload { display: grid; gap: 10px; }
form.upload label { font-weight: 600; }
form.upload input[type="text"],
form.upload input[type="file"] {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0a1628;
  color: var(--text);
  padding: 12px 14px;
  font: inherit;
}
.hp {
  position: absolute;
  left: -9999px;
  height: 1px;
  width: 1px;
  overflow: hidden;
}
.note { color: var(--muted); font-size: 1rem; }
.msg { margin: 8px 0 0; }
.msg.err { color: #ff8f8f; }
.msg.ok { color: var(--accent); }
.share { margin-top: 12px; word-break: break-all; }
.item { margin: 0 0 28px; }
.item h3 { margin: 0 0 10px; font-size: 1.25rem; }
video.player, img.still {
  width: 100%;
  max-height: 70vh;
  background: #000;
  border-radius: 14px;
}

.legacy-list, .legacy-list ul { list-style: none; padding: 0; margin: 0; }
.legacy-list li { margin: 0 0 8px; }
.legacy-list a { color: #e8fff9; }
.legacy-list a:hover { color: var(--accent); }
.legacy-list .sub { margin: 8px 0 16px 1rem; color: var(--muted); font-size: 0.98rem; }

body.old-school {
  background:
    linear-gradient(180deg, rgba(7,17,31,0.72), rgba(7,17,31,0.82)),
    url("../campsite_with_view.jpg") center / cover fixed;
  background-color: #cccc99;
}
body.old-school .site-header {
  background: rgba(7, 17, 31, 0.9);
}
body.old-school .card {
  background: var(--card-2);
}

.site-footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; gap: 28px; }
  picture:has(.portrait) { width: 100%; display: block; }
.portrait { width: min(280px, 70vw); margin: 0 auto; }
  h1 { text-align: center; }
  .lede, .actions { text-align: center; margin-left: auto; margin-right: auto; }
  .actions { justify-content: center; }
  .grid { grid-template-columns: 1fr; }
  main { padding: 32px 0 64px; }
  body.home main { padding-top: 0; }
  .hero-banner { padding: 32px 0 40px; margin-bottom: 32px; }
  /* Keep a wide banner crop on phones so both bolts stay in frame */
  .hero-banner-media {
    bottom: auto;
    height: 42vw;
    min-height: 150px;
    max-height: 220px;
  }
}
@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #0c1b2e;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 20px 16px;
    gap: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .site-header { position: sticky; }
  body.old-school { background-attachment: scroll; }
}
