:root {
  --space-0: #0b1020;
  --space-1: #101a2a;
  --space-2: #13203d;
  --space-3: #1b355e;
  --panel: rgba(16, 25, 42, 0.88);
  --panel-strong: rgba(11, 16, 32, 0.94);
  --panel-soft: rgba(27, 53, 94, 0.58);
  --line: rgba(175, 196, 232, 0.22);
  --line-strong: rgba(255, 200, 87, 0.46);
  --text: #f8fbff;
  --muted: #d7e3ff;
  --soft: #afc4e8;
  --gold: #ffc857;
  --gold-soft: rgba(255, 200, 87, 0.18);
  --blue: #29a9ff;
  --leaf: #459e7a;
  --bronze: #cd8a5c;
  --link-accent: #ffb15d;
  --tag-accent: #ffb15d;
  --shadow: 0 34px 100px rgba(0, 0, 0, 0.38);
  --page-accent: var(--gold);
  --page-accent-soft: rgba(255, 200, 87, 0.18);
  --page-glow: rgba(41, 169, 255, 0.24);
  --site-bg: url("/assets/hero-cosmo-ridge.webp");
}

body.theme-home {
  --page-accent: #7fe7ff;
  --page-accent-soft: rgba(127, 231, 255, 0.20);
  --page-glow: rgba(255, 232, 122, 0.28);
  --site-bg: url("/assets/hero-splash-trails.webp");
}

body.theme-privacy {
  --page-accent: #9ed0ff;
  --page-accent-soft: rgba(158, 208, 255, 0.18);
  --page-glow: rgba(41, 169, 255, 0.34);
  --site-bg: url("/assets/hero-privacy-moon.webp");
}

body.theme-support {
  --page-accent: #ffb15d;
  --page-accent-soft: rgba(255, 177, 93, 0.22);
  --page-glow: rgba(205, 138, 92, 0.34);
  --site-bg: url("/assets/hero-support-trading-post.webp");
}

body.theme-deletion {
  --page-accent: #b7d8ff;
  --page-accent-soft: rgba(183, 216, 255, 0.18);
  --page-glow: rgba(116, 151, 226, 0.34);
  --site-bg: url("/assets/hero-deletion-sleepy-shore.webp");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: "Aptos Display", "Trebuchet MS", "Lucida Sans Unicode", sans-serif;
  line-height: 1.65;
  background:
    radial-gradient(circle at 14% 12%, var(--page-accent-soft), transparent 24rem),
    radial-gradient(circle at 90% 0%, var(--page-glow), transparent 28rem),
    radial-gradient(circle at 70% 92%, rgba(69, 158, 122, 0.20), transparent 28rem),
    linear-gradient(180deg, var(--space-0) 0%, var(--space-1) 44%, #08101f 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background-image:
    linear-gradient(rgba(215, 227, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(215, 227, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.74), transparent 82%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(180deg, rgba(11, 16, 32, 0.30), rgba(11, 16, 32, 0.86)),
    var(--site-bg) center top / cover no-repeat;
  opacity: 0.40;
}

a {
  color: var(--link-accent);
  font-weight: 900;
  text-decoration-line: underline;
  text-decoration-thickness: 0.13em;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus {
  color: #ffe29a;
}

.site-shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 14px 0 18px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(11, 16, 32, 0.94), rgba(19, 32, 61, 0.86));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 12px;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.72rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(215, 227, 255, 0.26);
  border-radius: 18px;
  background: #ffffff;
  box-shadow:
    0 0 0 6px rgba(41, 169, 255, 0.12),
    0 0 44px var(--page-glow),
    0 18px 42px rgba(0, 0, 0, 0.42);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.nav a {
  padding: 10px 14px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  background: rgba(16, 25, 42, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.nav a:hover,
.nav a:focus {
  color: var(--space-0);
  border-color: transparent;
  background: var(--page-accent);
}

.hero,
.content-card {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 410px);
  gap: clamp(22px, 4vw, 46px);
  min-height: clamp(560px, 70vh, 760px);
  margin: 0 0 28px;
  padding: clamp(26px, 5vw, 62px);
  overflow: hidden;
  border-radius: 40px;
  background:
    linear-gradient(90deg, rgba(11, 16, 32, 0.94) 0%, rgba(11, 16, 32, 0.78) 42%, rgba(11, 16, 32, 0.18) 100%),
    linear-gradient(180deg, rgba(11, 16, 32, 0.12), rgba(11, 16, 32, 0.72)),
    var(--site-bg) center / cover no-repeat;
}

.compact-hero {
  min-height: clamp(440px, 58vh, 620px);
}

.hero::before {
  position: absolute;
  inset: 0;
  height: auto;
  content: "";
  background:
    radial-gradient(circle at 18% 28%, var(--page-accent-soft), transparent 23rem),
    radial-gradient(circle at 80% 82%, var(--page-glow), transparent 28rem);
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 36%;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(11, 16, 32, 0.88));
}

.hero > * {
  position: relative;
  min-width: 0;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--tag-accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before,
.section-kicker::before {
  width: 34px;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--tag-accent), transparent);
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.08;
}

h1 {
  max-width: 760px;
  margin: 0;
  color: var(--text);
  font-size: clamp(3rem, 8.2vw, 6.4rem);
  letter-spacing: -0.055em;
  text-shadow: 0 18px 50px rgba(0, 0, 0, 0.44);
}

h2 {
  margin: 42px 0 12px;
  color: var(--text);
  font-size: clamp(1.65rem, 4vw, 2.4rem);
  letter-spacing: -0.03em;
}

.content-card > h2:first-child,
.content-card .section-kicker + h2,
.split-card h2 {
  margin-top: 0;
}

h3 {
  margin: 26px 0 8px;
  color: var(--muted);
  font-size: 1.22rem;
}

p {
  margin: 0 0 16px;
}

.lede {
  max-width: 760px;
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.hero .lede,
.hero .eyebrow,
.hero h1 {
  max-width: 700px;
}

.hero > div:first-child {
  align-self: end;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid rgba(215, 227, 255, 0.18);
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(11, 16, 32, 0.78), rgba(19, 32, 61, 0.46));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(10px);
}

.home-hero {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 410px);
}

.trail-card {
  position: relative;
  align-self: end;
  min-height: clamp(420px, 42vw, 560px);
  overflow: hidden;
  border: 1px solid rgba(215, 227, 255, 0.20);
  border-radius: 36px;
  background:
    linear-gradient(180deg, rgba(11, 16, 32, 0.02), rgba(11, 16, 32, 0.30) 62%, rgba(11, 16, 32, 0.82)),
    var(--site-bg) center / cover no-repeat;
  box-shadow:
    0 0 0 10px rgba(41, 169, 255, 0.06),
    0 32px 86px rgba(0, 0, 0, 0.42);
}

.trail-card .trail-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.theme-support .trail-card .trail-art {
  object-position: center;
}

.theme-home .trail-card .trail-art {
  object-position: center;
}

.theme-deletion .trail-card .trail-art {
  object-position: 58% center;
}

.content-card {
  position: relative;
  margin: 0 0 34px;
  padding: clamp(24px, 5vw, 52px);
  overflow: hidden;
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(22, 36, 59, 0.94), rgba(11, 16, 32, 0.96));
}

.content-card::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 0% 0%, var(--page-accent-soft), transparent 22rem),
    radial-gradient(circle at 100% 20%, var(--page-glow), transparent 24rem);
}

.content-card > * {
  position: relative;
}

.split-card {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1.05fr);
  gap: clamp(22px, 4vw, 42px);
  align-items: start;
}

.resource-grid,
.mini-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.resource-card,
.mini-card {
  position: relative;
  min-height: 210px;
  padding: 22px;
  overflow: hidden;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 26px;
  text-decoration: none;
  background:
    linear-gradient(150deg, rgba(19, 32, 61, 0.88), rgba(11, 16, 32, 0.76));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 20px 54px rgba(0, 0, 0, 0.24);
}

.resource-card::after,
.mini-card::after {
  position: absolute;
  inset: auto -18px -28px auto;
  width: 170px;
  height: 170px;
  content: "";
  opacity: 0.24;
  background: var(--site-bg) center / cover no-repeat;
  border-radius: 42px;
  transform: rotate(-8deg);
}

.resource-card strong,
.mini-card strong {
  display: block;
  margin: 18px 0 8px;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
  line-height: 1.1;
}

.resource-card span,
.mini-card span {
  display: block;
}

.mini-card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mini-card {
  min-height: 180px;
}

.moon-mini::after {
  background-image: url("/assets/hero-privacy-moon.webp");
}

.trading-mini::after {
  background-image: url("/assets/hero-support-trading-post.webp");
}

.shore-mini::after {
  background-image: url("/assets/hero-deletion-sleepy-shore.webp");
}

article {
  color: var(--muted);
}

article section {
  scroll-margin-top: 112px;
}

.callout {
  padding: 20px;
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-left: 6px solid var(--page-accent);
  border-radius: 22px;
  background: linear-gradient(135deg, var(--page-accent-soft), rgba(41, 169, 255, 0.08));
}

.check-list,
.steps {
  display: grid;
  gap: 16px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.check-list li,
.steps li {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(27, 53, 94, 0.82), rgba(11, 16, 32, 0.78));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 44px rgba(0, 0, 0, 0.20);
}

.check-list li {
  min-height: auto;
  padding: 18px 20px;
}

.steps li {
  min-height: 82px;
  padding: 18px 20px 18px 78px;
}

.steps li::before {
  position: absolute;
  left: 18px;
  top: 18px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--space-0);
  border-radius: 16px;
  background: var(--page-accent);
  content: counter(step);
  counter-increment: step;
  font-weight: 900;
}

ol.steps {
  counter-reset: step;
}

ol.steps li::before,
ol.steps li:nth-child(1)::before,
ol.steps li:nth-child(2)::before,
ol.steps li:nth-child(3)::before {
  background: linear-gradient(180deg, var(--page-accent), #ffde8b);
  content: counter(step);
  counter-increment: step;
}

ul:not(.steps):not(.check-list) li,
ol:not(.steps) li {
  margin-bottom: 8px;
}

.footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 28px;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer a {
  color: var(--link-accent);
  font-weight: 900;
}

@media (max-width: 1000px) {
  .mini-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .topbar,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero,
  .home-hero,
  .split-card {
    grid-template-columns: 1fr;
  }

  .trail-card {
    min-height: 310px;
  }

  .resource-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-shell {
    width: min(100% - 20px, 1160px);
  }

  .brand {
    font-size: 1.28rem;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 14px;
  }

  .nav a {
    padding: 8px 10px;
    font-size: 0.92rem;
  }

  .hero,
  .content-card {
    border-radius: 26px;
  }

  h1 {
    font-size: clamp(2rem, 8.8vw, 2.8rem);
  }

  .hero .lede {
    max-width: 100%;
    font-size: 1rem;
  }

  .mini-card-grid {
    grid-template-columns: 1fr;
  }

  .steps li {
    padding-left: 70px;
  }
}
