:root {
  --night: #0f1424;
  --night-2: #161d33;
  --night-3: #1f2842;
  --ink: #ece7dc;
  --ink-soft: #b9b4a9;
  --gold: #d6b26e;
  --gold-soft: rgba(214, 178, 110, 0.18);
  --line: rgba(236, 231, 220, 0.12);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.5rem; }

p { margin: 0 0 1.1em; }

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

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(15, 20, 36, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 68px; flex-wrap: wrap;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--serif); font-size: 1.3rem; color: var(--ink);
  text-decoration: none; white-space: nowrap;
}
.brand svg { width: 34px; height: 34px; flex: none; }
.nav { display: flex; gap: 4px 22px; flex-wrap: wrap; font-size: 0.92rem; }
.nav a { color: var(--ink-soft); text-decoration: none; padding: 6px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold); }

/* Hero */
.hero { position: relative; padding: 110px 0 90px; overflow: hidden; text-align: center; }
.hero .eyebrow, .eyebrow {
  font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 18px; display: block;
}
.hero p.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 620px; margin: 0 auto 36px; }
.wave { position: absolute; left: 0; right: 0; width: 100%; height: 220px; opacity: 0.55; pointer-events: none; }
.wave.top { top: 0; }
.wave.bottom { bottom: -40px; }
.hero .wrap { position: relative; }

.page-head { padding: 80px 0 40px; border-bottom: 1px solid var(--line); }
.page-head p { color: var(--ink-soft); font-size: 1.1rem; max-width: 640px; }

/* Buttons */
.btn {
  display: inline-block; padding: 12px 26px; border-radius: 999px;
  border: 1px solid var(--gold); color: var(--night); background: var(--gold);
  text-decoration: none; font-weight: 500; font-size: 0.95rem;
}
.btn:hover { background: transparent; color: var(--gold); }
.btn.ghost { background: transparent; color: var(--gold); }
.btn.ghost:hover { background: var(--gold); color: var(--night); }
.btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Sections */
section { padding: 80px 0; }
section.alt { background: var(--night-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: var(--night-3); border: 1px solid var(--line); border-radius: 14px; padding: 28px;
}
.card h3 { margin-bottom: 0.3em; }
.card .role { color: var(--gold); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }
.card p:last-child { margin-bottom: 0; }

/* Tenets */
.tenets { list-style: none; padding: 0; margin: 0; counter-reset: tenet; }
.tenets li {
  counter-increment: tenet; position: relative;
  padding: 36px 0 36px 84px; border-bottom: 1px solid var(--line);
}
.tenets li:last-child { border-bottom: 0; }
.tenets li::before {
  content: counter(tenet, upper-roman);
  position: absolute; left: 0; top: 34px; width: 56px;
  font-family: var(--serif); font-size: 2rem; color: var(--gold); text-align: center;
}
.tenets h3 { font-size: 1.7rem; }
.tenets p { color: var(--ink-soft); margin: 0; font-size: 1.08rem; }

.tenet-strip { display: grid; gap: 1px; background: var(--line); grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.tenet-strip a { background: var(--night-2); padding: 26px 22px; text-decoration: none; color: var(--ink); }
.tenet-strip a:hover { background: var(--night-3); }
.tenet-strip span { display: block; font-family: var(--serif); color: var(--gold); font-size: 1.4rem; }
.tenet-strip strong { font-family: var(--serif); font-weight: 500; font-size: 1.25rem; }

.tag {
  display: inline-block; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid var(--gold); color: var(--gold); border-radius: 999px; padding: 2px 10px; margin-bottom: 14px;
}

.note { color: var(--ink-soft); font-size: 0.92rem; }

/* Draft placeholders — every one must be gone before launch */
.todo {
  border: 1px dashed var(--gold); background: var(--gold-soft); color: var(--ink);
  border-radius: 10px; padding: 14px 18px; margin: 0 0 1.1em; font-size: 0.95rem;
}
.todo::before { content: "DRAFT — needs answer: "; color: var(--gold); font-weight: 600; }
span.todo { display: inline; padding: 2px 8px; margin: 0; }
span.todo::before { content: ""; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 60px; color: var(--ink-soft); font-size: 0.9rem; }
.site-footer .wrap { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.site-footer strong { color: var(--ink); font-family: var(--serif); font-size: 1.2rem; font-weight: 500; }
.site-footer a { color: var(--ink-soft); }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hero { padding: 80px 0 60px; }
  section { padding: 60px 0; }
  .tenets li { padding-left: 56px; }
  .tenets li::before { width: 40px; font-size: 1.6rem; }
}

/* Signup */
.signup-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.signup input {
  flex: 1 1 240px; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--night-3); color: var(--ink); font: inherit;
}
.signup input:focus { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Images */
img { max-width: 100%; height: auto; }
figure { margin: 0; }
figure img { display: block; width: 100%; border-radius: 14px; }
figure.inline { margin: 0 0 1.4em; }
figure.inline figcaption { margin-top: 8px; }

.hero.has-img {
  min-height: min(82vh, 760px); display: flex; align-items: center;
  background-color: var(--night);
  background-image:
    radial-gradient(ellipse 60% 45% at 50% 55%, rgba(15,20,36,.6), rgba(15,20,36,0) 100%),
    linear-gradient(180deg, rgba(15,20,36,.72) 0%, rgba(15,20,36,.5) 45%, rgba(15,20,36,.3) 70%, var(--night) 100%),
    image-set(url("img/01-hero-mountains.webp") 1x, url("img/01-hero-mountains@2x.webp") 2x);
  background-size: cover; background-position: center bottom;
}
.hero.has-img .wrap { width: 100%; }
.hero.has-img p.lead { color: var(--ink); }
.hero.has-img h1, .hero.has-img p, .hero.has-img .eyebrow { text-shadow: 0 2px 18px rgba(8,10,20,.85); }
.narrow h2:not(:first-child) { margin-top: 1.6em; }

.page-head.banner {
  padding: 140px 0 60px;
  background-color: var(--night);
  background-image:
    linear-gradient(90deg, rgba(15,20,36,.92) 0%, rgba(15,20,36,.6) 55%, rgba(15,20,36,.25) 100%),
    image-set(url("img/08-about-path.webp") 1x, url("img/08-about-path@2x.webp") 2x);
  background-size: cover; background-position: center;
}
.page-head.banner p { color: var(--ink); }

.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }

.tenet-strip a img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; margin-bottom: 14px; }

.tenets li { display: grid; grid-template-columns: 1fr 240px; gap: 32px; align-items: center; }
.tenets li img { border-radius: 10px; aspect-ratio: 3 / 2; object-fit: cover; }

.card .card-img {
  display: block; width: calc(100% + 56px); max-width: none; margin: -28px -28px 22px;
  aspect-ratio: 3 / 2; object-fit: cover; border-radius: 14px 14px 0 0;
}

@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split figure { max-width: 420px; }
}
@media (max-width: 640px) {
  .tenets li { grid-template-columns: 1fr; gap: 18px; }
  .page-head.banner { padding: 100px 0 48px; }
}
