:root {
  color-scheme: dark;
  --ink: #f7efd8;
  --muted: #c8bfa9;
  --soft: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.16);
  --gold: #f5c75f;
  --gold-deep: #a66f20;
  --stone: #0f1417;
  --forest: #17211d;
  --plum: #342433;
  --paper: #f2e5c6;
  --paper-ink: #2f2416;
  --radius: 8px;
  --shadow: 0 22px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font-family: Avenir Next, Inter, Segoe UI, system-ui, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.hero {
  min-height: 92vh;
  background:
    linear-gradient(90deg, rgba(4, 7, 8, 0.9) 0%, rgba(7, 9, 9, 0.66) 42%, rgba(7, 9, 9, 0.16) 100%),
    linear-gradient(180deg, rgba(6, 7, 8, 0.4) 0%, rgba(15, 20, 23, 0.9) 100%),
    url("assets/gold-vein-hero-clean.png") 58% center / cover;
  display: flex;
  flex-direction: column;
  position: relative;
}

.nav {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
h1,
h2,
h3,
.letter-mark {
  font-family: Georgia, Times New Roman, serif;
}

.brand {
  color: var(--gold);
  font-size: 1.05rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 0.92rem;
}

.nav-links a {
  border: 1px solid rgba(245, 199, 95, 0.28);
  border-radius: 999px;
  padding: 8px 12px;
}

.nav-links a:hover {
  color: var(--ink);
}

.hero-content {
  width: min(1180px, calc(100% - 40px));
  margin: auto;
  padding: 88px 0 130px;
}

.kicker,
.section-label {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(4.2rem, 10vw, 9rem);
  line-height: 0.9;
  margin: 0;
  text-shadow: 0 6px 42px rgba(0, 0, 0, 0.55);
}

.hero-copy {
  max-width: 720px;
  color: #efe6d0;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  margin: 28px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-adventure-chooser {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-top: 18px;
  max-width: 920px;
}

.hero-adventure-chooser[hidden] {
  display: none;
}

.hero-adventure-chooser a {
  background: rgba(15, 20, 23, 0.72);
  border: 1px solid rgba(245, 199, 95, 0.3);
  border-radius: var(--radius);
  display: grid;
  min-height: 96px;
  padding: 14px;
}

.hero-adventure-chooser span {
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
}

.hero-adventure-chooser strong {
  align-self: end;
  color: var(--ink);
  line-height: 1.2;
}

.home-menu {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(220px, 280px);
  margin-top: 34px;
  max-width: 280px;
}

.home-menu a {
  background: rgba(15, 20, 23, 0.62);
  border: 1px solid rgba(245, 199, 95, 0.28);
  border-radius: var(--radius);
  display: grid;
  min-height: 104px;
  padding: 16px;
}

.home-menu span {
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.home-menu strong {
  align-self: end;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.25;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: linear-gradient(135deg, var(--gold), #ffe19b 55%, #c4862d);
  color: #201404;
}

.button.secondary {
  background: rgba(15, 20, 23, 0.48);
  border-color: rgba(245, 199, 95, 0.48);
  color: var(--ink);
}

.button.wide {
  width: 100%;
}

.trail-type-strip {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin: 0 0 24px;
}

.trail-type-strip a {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  min-height: 98px;
  padding: 14px;
}

.trail-type-strip span {
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
}

.trail-type-strip strong {
  align-self: end;
  color: var(--ink);
  line-height: 1.2;
}

.section,
.adventure-section,
.app-section,
.letter-section,
.intro-band,
.trail-band,
.testimony-band {
  padding: 84px 0;
}

.section-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.app-page {
  display: none;
}

.app-page.active-page {
  display: block;
}

.intro-band {
  background: linear-gradient(135deg, var(--forest), var(--plum));
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.about-layout,
.intro-grid,
.testimony-grid,
.letter-layout,
.notes-layout,
.adventure-layout {
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: start;
}

.intro-grid p:last-child {
  color: var(--muted);
  font-size: 1.08rem;
  margin: 0;
}

.about-layout {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}

.about-layout > div:first-child p:last-child {
  color: var(--muted);
  font-size: 1.08rem;
  margin: 18px 0 0;
}

.about-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.about-grid article {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.about-grid span {
  color: var(--gold);
  display: block;
  font-size: 0.76rem;
  font-weight: 900;
  margin-bottom: 24px;
}

.about-grid p {
  color: var(--muted);
  margin: 0;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  margin: 0;
}

.section-heading {
  max-width: 710px;
  margin-bottom: 34px;
}

.section-heading p:last-child {
  color: var(--muted);
  margin: 18px 0 0;
}

.framework-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.framework-item,
.step,
.adventure-panel,
.adventure-card,
.search-panel,
.phone-shell,
.app-step,
.location-card,
.qr-card,
.trail-loop article {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.framework-item {
  min-height: 220px;
  padding: 24px;
}

.framework-item span {
  color: var(--gold);
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 42px;
}

h3 {
  font-size: 1.32rem;
  line-height: 1.18;
  margin: 0 0 10px;
}

.framework-item p,
.step p,
.adventure-panel p,
.adventure-card p,
.app-copy p,
.app-step p,
.trail-loop p,
.step li {
  color: var(--muted);
  margin: 0;
}

.discover-section {
  background:
    radial-gradient(circle at 80% 15%, rgba(245, 199, 95, 0.12), transparent 30%),
    #111617;
}

.search-panel {
  align-items: end;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 18px;
  padding: 18px;
}

.search-panel input {
  background: rgba(0, 0, 0, 0.24);
}

.search-status {
  grid-column: 1 / -1;
}

.adventure-card-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1.35fr 1fr 1fr;
}

.adventure-card {
  display: flex;
  flex-direction: column;
  min-height: 360px;
  padding: 24px;
}

.adventure-card.available {
  background:
    linear-gradient(135deg, rgba(245, 199, 95, 0.14), rgba(255, 255, 255, 0.055) 45%),
    rgba(255, 255, 255, 0.055);
}

.muted-card {
  opacity: 0.74;
}

.card-topline {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.78rem;
  font-weight: 800;
  gap: 10px;
  margin-bottom: 34px;
  text-transform: uppercase;
}

.status-pill {
  background: rgba(245, 199, 95, 0.18);
  border: 1px solid rgba(245, 199, 95, 0.4);
  border-radius: 999px;
  color: var(--gold);
  padding: 5px 9px;
}

.status-pill.quiet {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line);
  color: var(--muted);
}

.trail-meta,
.panel-meta {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

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

.trail-meta div,
.panel-meta div {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

dt {
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 800;
  margin-bottom: 2px;
  text-transform: uppercase;
}

dd {
  color: var(--ink);
  margin: 0;
}

.adventure-card .button {
  margin-top: auto;
}

.trail-band {
  background: linear-gradient(135deg, #271f18, #11201c 52%, #231c2b);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

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

.trail-loop article {
  min-height: 230px;
  padding: 18px;
}

.trail-loop span {
  color: var(--gold);
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 42px;
}

.app-section {
  background:
    radial-gradient(circle at 72% 22%, rgba(245, 199, 95, 0.14), transparent 28%),
    linear-gradient(135deg, #101716, #1d1a21 64%, #191710);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  padding: 84px 0;
}

.app-layout {
  align-items: start;
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.72fr);
}

.app-copy {
  position: sticky;
  top: 24px;
}

.app-copy p:not(.section-label) {
  font-size: 1.08rem;
  margin: 18px 0 0;
}

.phone-shell {
  border-color: rgba(245, 199, 95, 0.24);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.48);
  padding: 18px;
}

.phone-top {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
}

.phone-top span {
  color: var(--gold);
  font-family: Georgia, Times New Roman, serif;
  font-weight: 800;
}

.mini-button {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 7px 10px;
}

.app-progress {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(5, 1fr);
  margin-bottom: 18px;
}

.progress-dot {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  height: 7px;
}

.progress-dot.active,
.progress-dot.complete {
  background: linear-gradient(90deg, var(--gold), #d99831);
}

.trail-compass {
  --compass-turn: 0deg;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(245, 199, 95, 0.16), rgba(255, 255, 255, 0.055) 58%),
    rgba(10, 14, 15, 0.5);
  border: 1px solid rgba(245, 199, 95, 0.3);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: 54px minmax(0, 1fr);
  margin: 0 0 18px;
  min-height: 74px;
  padding: 10px;
}

.trail-compass[data-state="success"],
.trail-compass[data-state="complete"] {
  border-color: rgba(132, 214, 161, 0.5);
}

.trail-compass[data-state="error"] {
  border-color: rgba(255, 134, 134, 0.5);
}

.trail-compass[data-state="checking"] {
  border-color: rgba(245, 199, 95, 0.74);
}

.compass-dial {
  aspect-ratio: 1;
  background:
    radial-gradient(circle at center, rgba(245, 199, 95, 0.26), transparent 28%),
    conic-gradient(from 45deg, rgba(245, 199, 95, 0.16), rgba(255, 255, 255, 0.04), rgba(245, 199, 95, 0.16));
  border: 1px solid rgba(245, 199, 95, 0.38);
  border-radius: 8px;
  display: grid;
  place-items: center;
  position: relative;
}

.compass-dial::before,
.compass-dial::after {
  color: rgba(255, 244, 210, 0.62);
  font-size: 0.58rem;
  font-weight: 900;
  line-height: 1;
  position: absolute;
}

.compass-dial::before {
  content: "N";
  top: 5px;
}

.compass-dial::after {
  bottom: 5px;
  content: "S";
}

.compass-needle {
  background: linear-gradient(180deg, #ffe19b 0 50%, rgba(255, 255, 255, 0.42) 50% 100%);
  border-radius: 999px;
  display: block;
  height: 35px;
  transform: rotate(var(--compass-turn));
  transform-origin: center;
  transition: transform 220ms ease;
  width: 4px;
}

.trail-compass span {
  color: var(--muted);
  display: block;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.trail-compass strong {
  color: var(--ink);
  display: block;
  font-size: 0.98rem;
  margin-top: 4px;
}

.app-step {
  display: none;
  margin-top: 12px;
  padding: 20px;
}

.app-step.active {
  display: block;
}

.app-step.complete {
  display: none;
}

.app-step.locked {
  display: none;
}

.app-step.locked .button {
  pointer-events: none;
}

.step-label {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 800;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.location-card {
  border-color: rgba(245, 199, 95, 0.28);
  display: grid;
  gap: 4px;
  margin: 18px 0;
  padding: 14px;
}

.location-card span,
.location-card small {
  color: var(--muted);
}

.location-card strong {
  color: var(--ink);
  font-size: 1.06rem;
}

.location-gate {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.location-status {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  margin: 0;
  min-height: 1.35em;
}

.location-status[data-state="checking"] {
  color: var(--gold);
}

.location-status[data-state="success"] {
  color: #98e4b1;
}

.location-status[data-state="error"] {
  color: #ffaaaa;
}

.qr-card {
  align-items: center;
  border-color: rgba(245, 199, 95, 0.28);
  display: grid;
  gap: 14px;
  grid-template-columns: auto minmax(0, 1fr);
  margin: 18px 0;
  padding: 14px;
}

.qr-card span,
.qr-card small {
  color: var(--muted);
  display: block;
}

.qr-card strong {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.qr-code {
  background: #f4ead4;
  border: 4px solid #f4ead4;
  display: grid;
  gap: 3px;
  grid-template-columns: repeat(4, 10px);
  padding: 5px;
}

.qr-code span {
  background: #1c1710;
  height: 10px;
  width: 10px;
}

.qr-code span:nth-child(2),
.qr-code span:nth-child(5),
.qr-code span:nth-child(8),
.qr-code span:nth-child(10),
.qr-code span:nth-child(13),
.qr-code span:nth-child(15) {
  background: transparent;
}

.redeem-pass {
  align-items: center;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(245, 199, 95, 0.3);
  border-radius: var(--radius);
  display: grid;
  gap: 14px;
  grid-template-columns: auto minmax(0, 1fr);
  margin: 18px 0;
  padding: 14px;
}

.redeem-pass img {
  background: #fff8e8;
  border-radius: 8px;
  height: 112px;
  padding: 8px;
  width: 112px;
}

.redeem-pass span {
  color: var(--gold);
  display: block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.redeem-pass p {
  color: var(--muted);
  margin: 0 0 12px;
}

.prompt-list {
  color: var(--muted);
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
  padding-left: 22px;
}

.prompt-list li::marker {
  color: var(--gold);
}

.step-guidance {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.step-guidance p {
  color: var(--muted);
}

.step-guidance strong {
  color: var(--ink);
}

.scripture-map {
  background: rgba(10, 14, 15, 0.42);
  border: 1px solid rgba(245, 199, 95, 0.28);
  border-radius: var(--radius);
  margin: 18px 0;
  overflow: hidden;
}

.scripture-map summary {
  color: var(--gold);
  cursor: pointer;
  font-weight: 900;
  list-style-position: inside;
  padding: 14px;
}

.scripture-map summary::marker {
  color: var(--gold);
}

.map-intro {
  border-top: 1px solid var(--line);
  padding: 14px 14px 0;
}

.map-intro p {
  color: var(--muted);
  margin: 0;
}

.map-grid {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.map-grid article {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.map-grid span {
  color: var(--gold);
  display: block;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.map-grid p {
  color: var(--muted);
  margin: 0;
}

.pass-options {
  background: rgba(10, 14, 15, 0.38);
  border: 1px solid rgba(245, 199, 95, 0.24);
  border-radius: var(--radius);
  margin: 18px 0;
  overflow: hidden;
}

.pass-options summary {
  color: var(--gold);
  cursor: pointer;
  font-weight: 900;
  list-style-position: inside;
  padding: 14px;
}

.pass-option-grid {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 14px;
}

.pass-option-grid article {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.pass-option-grid span,
.companion-pass span,
.unlock-label {
  color: var(--gold);
  display: block;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.pass-option-grid p {
  color: var(--muted);
  margin: 0;
}

.companion-pass {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(245, 199, 95, 0.13), rgba(255, 255, 255, 0.05)),
    rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(245, 199, 95, 0.3);
  border-radius: var(--radius);
  display: grid;
  gap: 14px;
  grid-template-columns: auto minmax(0, 1fr);
  margin: 18px 0;
  padding: 14px;
}

.companion-pass strong {
  color: var(--ink);
  display: block;
  overflow-wrap: anywhere;
}

.companion-pass small {
  color: var(--muted);
}

.phone-touch-icon {
  height: 58px;
  position: relative;
  width: 74px;
}

.phone-touch-icon span {
  background: #f4ead4;
  border: 3px solid #1c1710;
  border-radius: 10px;
  height: 52px;
  position: absolute;
  top: 3px;
  width: 34px;
}

.phone-touch-icon span:first-child {
  left: 6px;
  transform: rotate(-8deg);
}

.phone-touch-icon span:last-child {
  right: 6px;
  transform: rotate(8deg);
}

.compact-label {
  margin: 18px 0;
}

.companion-actions,
.gift-unlock {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.companion-status,
.witness-status {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  margin: 0;
  min-height: 1.35em;
}

.companion-status[data-state="success"],
.witness-status[data-state="success"] {
  color: #98e4b1;
}

.companion-status[data-state="error"],
.witness-status[data-state="error"] {
  color: #ffaaaa;
}

.gift-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gift-grid label {
  cursor: pointer;
}

.gift-grid input {
  inline-size: auto;
  position: absolute;
  opacity: 0;
}

.gift-grid span {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: block;
  font-weight: 900;
  padding: 12px;
  text-align: center;
}

.gift-grid input:checked + span {
  background: rgba(245, 199, 95, 0.18);
  border-color: rgba(245, 199, 95, 0.62);
  color: var(--gold);
}

.conversation-prompt {
  border-left: 3px solid var(--gold);
  color: var(--ink);
  margin: 16px 0 18px;
  padding-left: 14px;
}

.treasure-step {
  background:
    linear-gradient(135deg, rgba(245, 199, 95, 0.18), rgba(255, 255, 255, 0.055) 45%),
    rgba(255, 255, 255, 0.055);
}

.app-status {
  color: var(--gold);
  font-weight: 800;
  margin: 18px 0 12px;
}

.support-note {
  background: rgba(245, 199, 95, 0.1);
  border: 1px solid rgba(245, 199, 95, 0.24);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 12px;
}

.support-note p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

.support-note a {
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 900;
}

.redeem-layout {
  display: grid;
  gap: 28px;
  max-width: 760px;
}

.redeem-panel {
  background:
    linear-gradient(145deg, rgba(245, 199, 95, 0.14), rgba(255, 255, 255, 0.055) 42%),
    rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(245, 199, 95, 0.32);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.redeem-panel.redeemed {
  border-color: rgba(132, 214, 161, 0.5);
}

.redeem-panel.invalid {
  border-color: rgba(255, 134, 134, 0.55);
}

.redeem-status-pill {
  background: rgba(245, 199, 95, 0.17);
  border: 1px solid rgba(245, 199, 95, 0.32);
  border-radius: 999px;
  color: var(--gold);
  display: inline-flex;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
  padding: 8px 12px;
  text-transform: uppercase;
}

.redeem-panel.redeemed .redeem-status-pill {
  background: rgba(132, 214, 161, 0.14);
  border-color: rgba(132, 214, 161, 0.38);
  color: #98e4b1;
}

.redeem-panel.invalid .redeem-status-pill {
  background: rgba(255, 134, 134, 0.13);
  border-color: rgba(255, 134, 134, 0.4);
  color: #ffaaaa;
}

.redeem-details {
  display: grid;
  gap: 12px;
  margin: 0 0 18px;
}

.redeem-details div {
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding-bottom: 12px;
}

.redeem-details dt {
  color: var(--muted);
  font-weight: 800;
}

.redeem-details dd {
  color: var(--ink);
  font-weight: 900;
  margin: 0;
  text-align: right;
}

.redeem-message {
  color: var(--muted);
  margin: 0 0 18px;
}

.adventure-section {
  background:
    radial-gradient(circle at top left, rgba(245, 199, 95, 0.16), transparent 34%),
    #111618;
  border-top: 1px solid var(--line);
}

.adventure-panel {
  position: sticky;
  top: 22px;
  padding: 28px;
}

.adventure-panel p {
  margin: 18px 0 24px;
}

.adventure-steps {
  display: grid;
  gap: 16px;
}

.step {
  padding: 24px;
}

.step strong {
  color: var(--ink);
  display: block;
  margin-top: 10px;
}

.step ul {
  columns: 2;
  margin: 0;
  padding-left: 20px;
}

.letter-section {
  background: #16201c;
}

.letter {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), transparent 28%),
    var(--paper);
  border: 1px solid rgba(98, 69, 31, 0.34);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--paper-ink);
  padding: 42px;
}

.letter h3 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.letter-mark,
.letter-close {
  color: #8b5d19;
  font-weight: 800;
}

.letter-question {
  border-left: 3px solid #b8842e;
  font-weight: 800;
  padding-left: 16px;
}

.creator-form,
.notes-form,
.testimony-form {
  display: grid;
  gap: 16px;
}

.creator-layout {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
}

.support-principle {
  background:
    linear-gradient(135deg, rgba(245, 199, 95, 0.16), rgba(255, 255, 255, 0.055)),
    rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(245, 199, 95, 0.28);
  border-radius: var(--radius);
  margin-bottom: 18px;
  padding: 22px;
}

.support-principle p {
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 800;
  margin: 0;
}

.venmo-panel {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(245, 199, 95, 0.18), rgba(132, 214, 161, 0.08)),
    rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(245, 199, 95, 0.34);
  border-radius: var(--radius);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 22px;
  padding: 22px;
}

.venmo-panel span {
  color: var(--gold);
  display: block;
  font-size: 0.76rem;
  font-weight: 900;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.venmo-panel p {
  color: var(--muted);
  margin: 0;
}

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

.support-grid article {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 12px;
  padding: 20px;
}

.support-grid span {
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 900;
}

.support-grid p,
.support-status {
  color: var(--muted);
  margin: 0;
}

.support-status {
  font-weight: 800;
  margin-top: 18px;
}

.support-builder {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1fr);
  margin-top: 22px;
}

.support-form,
.support-pledge-list {
  display: grid;
  gap: 14px;
}

.support-form {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

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

.amount-grid button {
  background: rgba(245, 199, 95, 0.14);
  border: 1px solid rgba(245, 199, 95, 0.28);
  border-radius: 8px;
  color: var(--gold);
  cursor: pointer;
  font-weight: 900;
  min-height: 44px;
}

.support-pledge {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 16px;
}

.support-pledge div {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.support-pledge span {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.support-pledge strong {
  color: var(--ink);
  font-size: 1.25rem;
}

.support-pledge p,
.support-pledge small {
  color: var(--muted);
  margin: 0;
}

.creator-form,
.creator-output,
.journal-trail-group {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.creator-output {
  display: grid;
  gap: 18px;
}

.creator-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.creator-preview,
.creator-draft-list {
  display: grid;
  gap: 12px;
}

.creator-card,
.creator-draft {
  background: rgba(10, 14, 15, 0.38);
  border: 1px solid rgba(245, 199, 95, 0.24);
  border-radius: 8px;
  padding: 18px;
}

.creator-card span,
.creator-draft span,
.journal-group-heading span {
  color: var(--gold);
  display: block;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.creator-card h3,
.creator-draft h3,
.journal-group-heading h3 {
  margin: 4px 0 12px;
}

.creator-card dl {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 14px;
}

.creator-card dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.creator-card dd {
  color: var(--ink);
  margin: 0;
}

.creator-step-list {
  display: grid;
  gap: 10px;
}

.creator-step-list p,
.creator-draft p,
.creator-draft small {
  color: var(--muted);
  margin: 0;
}

.creator-step-list strong {
  color: var(--ink);
}

.creator-draft h3 {
  font-size: 1.1rem;
}

.creator-draft small {
  display: block;
  font-weight: 800;
  margin-top: 10px;
}

.journal-meta-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.weather-row {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.weather-status {
  color: var(--muted);
  margin: -6px 0 0;
  min-height: 1.35em;
}

.weather-status[data-state="checking"] {
  color: var(--gold);
}

.weather-status[data-state="success"] {
  color: #98e4b1;
}

.weather-status[data-state="error"] {
  color: #ffaaaa;
}

.journal-log-title {
  color: var(--ink);
  font-size: 1.25rem;
  margin: 0 0 14px;
}

.journal-list {
  display: grid;
  gap: 14px;
}

.journal-trail-group {
  display: grid;
  gap: 14px;
}

.journal-group-heading {
  align-items: start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.journal-group-heading strong {
  background: rgba(245, 199, 95, 0.16);
  border: 1px solid rgba(245, 199, 95, 0.28);
  border-radius: 999px;
  color: var(--gold);
  flex: 0 0 auto;
  font-size: 0.78rem;
  padding: 7px 10px;
}

.journal-entry-stack {
  display: grid;
  gap: 12px;
}

.empty-journal {
  color: var(--muted);
  margin: 0;
}

.journal-entry {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.journal-entry-topline {
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.journal-entry-topline span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.journal-entry-topline strong {
  color: var(--gold);
  text-align: right;
}

.journal-entry dl {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 12px;
}

.journal-entry dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.journal-entry dd {
  color: var(--ink);
  margin: 0;
}

.journal-entry p {
  color: var(--muted);
  margin: 10px 0 0;
}

.journal-entry p strong {
  color: var(--ink);
}

label {
  color: var(--ink);
  display: grid;
  gap: 8px;
  font-weight: 700;
}

textarea,
input,
select {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  outline: none;
  padding: 12px 14px;
  resize: vertical;
  width: 100%;
}

textarea:focus,
input:focus,
select:focus {
  border-color: rgba(245, 199, 95, 0.72);
}

.form-status {
  color: var(--gold);
  margin: 0;
  min-height: 1.4em;
}

.testimony-band {
  background: linear-gradient(135deg, #271b26, #10201c 55%, #231d14);
  border-top: 1px solid var(--line);
}

.footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  padding: 28px 20px;
  width: min(1180px, 100%);
}

.footer p {
  color: var(--gold);
  font-family: Georgia, Times New Roman, serif;
  font-weight: 700;
  margin: 0;
}

@media (max-width: 820px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 12px 18px;
  }

  .home-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-adventure-chooser {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .journal-meta-grid,
  .weather-row {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-content {
    padding: 56px 0 94px;
  }

  h1 {
    font-size: clamp(3.7rem, 20vw, 5.5rem);
  }

  .intro-grid,
  .about-layout,
  .testimony-grid,
  .letter-layout,
  .notes-layout,
  .adventure-layout,
  .app-layout,
  .adventure-card-grid,
  .creator-layout,
  .creator-card dl,
  .about-grid,
  .support-grid,
  .support-builder,
  .venmo-panel,
  .search-panel,
  .trail-type-strip,
  .framework-grid {
    grid-template-columns: 1fr;
  }

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

  .amount-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section,
  .adventure-section,
  .app-section,
  .letter-section,
  .intro-band,
  .trail-band,
  .testimony-band {
    padding: 58px 0;
  }

  .adventure-panel {
    position: static;
  }

  .app-copy {
    position: static;
  }

  .redeem-pass {
    grid-template-columns: 1fr;
  }

  .redeem-pass img {
    height: 132px;
    width: 132px;
  }

  .companion-pass,
  .pass-option-grid,
  .gift-grid {
    grid-template-columns: 1fr;
  }

  .framework-item {
    min-height: auto;
  }

  .framework-item span {
    margin-bottom: 26px;
  }

  .letter {
    padding: 28px;
  }
}

@media (max-width: 560px) {
  .home-menu {
    grid-template-columns: 1fr;
  }

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

  .journal-entry-topline,
  .journal-entry dl {
    grid-template-columns: 1fr;
  }

  .journal-entry-topline {
    display: grid;
  }

  .home-menu a {
    min-height: 86px;
  }
}

@media (max-width: 560px) {
  .trail-loop,
  .trail-meta {
    grid-template-columns: 1fr;
  }

  .trail-loop article {
    min-height: auto;
  }

  .trail-loop span {
    margin-bottom: 24px;
  }
}

@media print {
  body * {
    visibility: hidden;
  }

  .letter,
  .letter * {
    visibility: visible;
  }

  .letter {
    box-shadow: none;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
  }
}
