:root {
  --ink: #07090a;
  --ink-2: #0d1211;
  --emerald: #0f5a3c;
  --emerald-soft: #1d7a55;
  --navy: #16235a;
  --gold: #d4b26a;
  --gold-light: #ecd9a4;
  --sand: #f3ece0;
  --muted: #a7a196;
  --line: rgba(212, 178, 106, 0.22);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--sand);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }
img { max-width: 100%; display: block; }
/* Logo has a black field; lighten blends it into the page background */
.gate__mark, .hero__mark, .footer__mark { mix-blend-mode: lighten; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; }
h1 { font-size: clamp(3rem, 9vw, 6rem); letter-spacing: 0.02em; color: var(--gold-light); }
h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: 1.5rem; }
h2 em { color: var(--gold); font-style: italic; }
h3 { font-size: 1.6rem; color: var(--gold-light); margin-bottom: 0.5rem; }
.center { text-align: center; }

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border: 1px solid var(--gold);
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: transparent; color: var(--gold); }
.btn--ghost { background: transparent; color: var(--gold); }
.btn--ghost:hover { background: var(--gold); color: var(--ink); }

/* Gate */
.gate {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(7, 9, 10, 0.97);
  display: grid; place-items: center;
  padding: 1.5rem;
  transition: opacity 0.6s;
}
.gate.hidden { opacity: 0; pointer-events: none; }
.gate__inner { max-width: 440px; text-align: center; }
.gate__mark { width: 160px; margin: 0 auto 1rem; }
.gate h2 { color: var(--gold-light); margin-bottom: 1rem; }
.gate p { color: var(--muted); margin-bottom: 2rem; }
.gate__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem clamp(1rem, 4vw, 3rem);
  transition: background 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(7, 9, 10, 0.9); backdrop-filter: blur(10px); border-color: var(--line); }
.nav__brand { font-family: var(--serif); font-size: 1.4rem; color: var(--gold-light); letter-spacing: 0.05em; }
.nav__links { display: flex; gap: 2rem; align-items: center; font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; }
.nav__links a:hover { color: var(--gold); }
.nav__cta { border: 1px solid var(--gold); color: var(--gold); padding: 0.6rem 1.1rem; }
.nav__cta:hover { background: var(--gold); color: var(--ink) !important; }
.nav__cta .short { display: none; }
.nav__login { color: var(--gold-light); }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 7rem 1rem 4rem;
  overflow: hidden;
}
.hero__glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 50% 45%, rgba(15, 90, 60, 0.28), transparent 70%),
    radial-gradient(ellipse 50% 30% at 60% 80%, rgba(22, 35, 90, 0.35), transparent 70%);
  pointer-events: none;
}
.hero > * { position: relative; }
.hero__mark { width: min(340px, 70vw); margin-bottom: 1rem; animation: float 8s ease-in-out infinite; }
.hero__lede { max-width: 560px; margin: 1.25rem auto 2.5rem; color: var(--muted); font-size: 1.1rem; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* Sections */
.section { padding: clamp(5rem, 10vw, 8rem) clamp(1rem, 6vw, 5rem); max-width: 1200px; margin: 0 auto; }
.section--tint {
  max-width: none;
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 50%, var(--ink) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section--tint > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: start; }
.prose p { color: var(--muted); margin-bottom: 1.25rem; font-size: 1.05rem; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.card {
  border: 1px solid var(--line);
  padding: 2rem 1.75rem;
  background: rgba(15, 90, 60, 0.05);
  transition: border-color 0.3s, transform 0.3s;
}
.card:hover { border-color: var(--gold); transform: translateY(-4px); }
.card__num { font-family: var(--serif); color: var(--gold); font-size: 1.1rem; display: block; margin-bottom: 1rem; }
.card { display: flex; flex-direction: column; }
.card p { color: var(--muted); font-size: 0.95rem; }
.card .card__when { color: var(--gold); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.75rem; }
.card .card__desc { margin-bottom: 1.5rem; flex: 1; }

/* Commitment tallies + go/no-go */
.tally { margin-bottom: 0.9rem; font-size: 0.82rem; }
.tally__head { display: flex; justify-content: space-between; color: var(--muted); margin-bottom: 0.35rem; }
.tally__head strong { color: var(--sand); font-weight: 400; }
.tally__bar { position: relative; height: 4px; background: rgba(243, 236, 224, 0.1); }
.tally__bar span { position: absolute; inset: 0 auto 0 0; background: var(--gold); }
.tally__bar span.met { background: var(--emerald-soft); }
.tally__bar i { position: absolute; top: -3px; width: 1px; height: 10px; background: var(--sand); opacity: 0.6; }
.card .status { margin-top: 0.4rem; padding-top: 0.9rem; border-top: 1px solid var(--line); font-size: 0.85rem; }
.status strong { font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; margin-right: 0.25rem; }
.status--go strong { color: #4fc28c; }
.status--nogo strong { color: #e0856b; }

.toast {
  position: fixed; z-index: 60; left: 50%; bottom: 1.5rem; transform: translateX(-50%);
  width: min(92vw, 520px); padding: 1rem 1.25rem; text-align: center;
  background: var(--ink-2); border: 1px solid var(--gold); color: var(--gold-light);
  font-family: var(--serif); font-size: 1.1rem;
}

/* Full calendar list */
.cal { margin-top: 4rem; }
.cal[hidden] { display: none; }
.cal__title { text-align: center; margin-bottom: 1.5rem; }
.cal__month { font-family: var(--sans); font-weight: 400; font-size: 0.75rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); margin: 2rem 0 0.25rem; }
.cal__row {
  display: grid; grid-template-columns: 4.5rem 1fr auto 5.5rem; gap: 1.25rem; align-items: center;
  padding: 1rem 0; border-bottom: 1px solid var(--line);
}
.cal__row--public { grid-template-columns: 4.5rem 1fr; }
.cal__day strong { display: block; font-family: var(--serif); font-size: 1.6rem; font-weight: 500; color: var(--gold-light); line-height: 1; }
.cal__day span { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.cal__info strong { display: block; font-family: var(--serif); font-size: 1.25rem; font-weight: 500; }
.cal__info span { font-size: 0.85rem; color: var(--muted); }
.cal__counts { display: flex; gap: 1rem; font-size: 0.82rem; color: var(--muted); white-space: nowrap; }
.cal__row .status { margin: 0; padding: 0; border: 0; text-align: right; font-size: 0.78rem; }

/* Principles */
.principles { list-style: none; }
.principles li { padding: 1.25rem 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.principles li:first-child { border-top: 1px solid var(--line); }
.principles strong { color: var(--gold-light); font-weight: 400; font-family: var(--serif); font-size: 1.25rem; margin-right: 0.4rem; }

/* Steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; margin-top: 3rem; text-align: center; }
.steps span { font-family: var(--serif); font-size: 2.5rem; color: var(--emerald-soft); display: block; }
.steps p { color: var(--muted); }

/* Form */
.form-wrap { max-width: 720px; margin: 0 auto; }
.form { display: grid; gap: 1.5rem; margin-top: 2.5rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form label { display: grid; gap: 0.5rem; font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.form .opt { color: var(--muted); text-transform: none; letter-spacing: 0; }
.form input, .form select, .form textarea {
  font: inherit; font-size: 1rem; letter-spacing: 0; text-transform: none;
  background: transparent; color: var(--sand);
  border: none; border-bottom: 1px solid var(--line);
  padding: 0.6rem 0;
  border-radius: 0;
}
.form select option { background: var(--ink); }
.form textarea { border: 1px solid var(--line); padding: 0.75rem; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--gold); }
.form .check { display: flex; gap: 0.75rem; align-items: flex-start; text-transform: none; letter-spacing: 0; font-size: 0.9rem; color: var(--muted); }
.form .check input { width: auto; accent-color: var(--gold); margin-top: 0.35rem; }
.form .btn { justify-self: center; margin-top: 0.5rem; }
.form__status { text-align: center; color: var(--gold-light); min-height: 1.5rem; font-family: var(--serif); font-size: 1.15rem; }

/* Footer */
.footer { text-align: center; padding: 4rem 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
.footer__mark { width: 80px; margin: 0 auto 0.75rem; }
.footer__name { font-family: var(--serif); font-size: 1.5rem; color: var(--gold-light); }
.footer__small { font-size: 0.75rem; margin-top: 1rem; opacity: 0.7; }

/* Responsive */
.nav__brand, .nav__links a { white-space: nowrap; }
@media (max-width: 960px) {
  /* Tablet: keep just Experiences + the CTA so the header stays on one line */
  .nav__links { gap: 1.25rem; }
  .nav__links a[href="#society"], .nav__links a[href="#discretion"] { display: none; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 720px) {
  .nav__links a:not(.nav__cta):not(.nav__login) { display: none; }
  .nav__cta { font-size: 0.65rem; padding: 0.5rem 0.8rem; }
  .cards, .steps, .form .row { grid-template-columns: 1fr; }
  .steps { gap: 2rem; }
}
@media (max-width: 480px) {
  .nav { padding: 1rem; }
  .nav__brand { font-size: 1.25rem; }
  .nav__cta .long, .nav__login .long { display: none; }
  .nav__cta .short { display: inline; }
  .eyebrow { letter-spacing: 0.2em; font-size: 0.68rem; }
  .card { padding: 1.75rem 1.4rem; }
  /* Calendar rows: date | name, with counts + status on a second line */
  .cal__row { grid-template-columns: 3.5rem 1fr; gap: 0.35rem 1rem; }
  .cal__day { grid-row: span 2; align-self: start; }
  .cal__counts { gap: 0.75rem; }
  .cal__row .status { position: absolute; right: 0; top: 1.1rem; }
  .cal__row { position: relative; }
  .cal__info { padding-right: 4.5rem; }
  .gate__actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__mark { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Members area (members.html) ---------- */
.members main { min-height: 100vh; padding-top: 7rem; }
.m-wrap { max-width: 960px; }
.m-panel { max-width: 520px; margin: 0 auto; }
.m-mark { width: 120px; margin: 0 auto 1rem; mix-blend-mode: lighten; }
.m-title { font-size: clamp(2rem, 6vw, 3rem); margin-bottom: 1rem; }
.m-title em { color: var(--gold); }
.m-lede { color: var(--muted); margin-bottom: 2rem; }
.m-small { color: var(--muted); font-size: 0.9rem; margin-top: 1.5rem; }
.m-small a, .m-sub a { color: var(--gold); }
.m-alias-form { text-align: left; }
.m-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.m-sub { color: var(--muted); font-size: 0.9rem; }
.m-h2 { font-size: 1.6rem; margin: 3rem 0 0.5rem; }
.m-row { display: grid; grid-template-columns: 4rem 1fr auto; gap: 1.25rem; align-items: center; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.m-info strong { display: block; font-family: var(--serif); font-size: 1.25rem; font-weight: 500; }
.m-info > span { display: block; font-size: 0.85rem; color: var(--muted); }
.m-counts b { font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }
.m-counts b.go { color: #4fc28c; }
.m-counts b.nogo { color: #e0856b; }
.m-private { margin-top: 0.6rem; padding: 0.6rem 0.8rem; border-left: 2px solid var(--gold); color: var(--sand); font-size: 0.9rem; }
.m-btn { padding: 0.7rem 1.1rem; font-size: 0.72rem; white-space: nowrap; }
.m-btn:disabled { opacity: 0.5; cursor: wait; }
.m-reserved { color: #4fc28c; font-size: 0.85rem; letter-spacing: 0.08em; }
.m-full { color: var(--muted); font-size: 0.85rem; }
.m-empty { color: var(--muted); padding: 1rem 0; }
button.nav__cta { background: transparent; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
@media (max-width: 600px) {
  .m-row { grid-template-columns: 3rem 1fr; }
  .m-action { grid-column: 2; }
}
