:root {
  --night: #0A120D;
  --forest: #0F2A18;
  --ivory: #F4EFE3;
  --paper: #FAF7F0;
  --ink: #141812;
  --muted: #5B6157;
  --mist: #B9C2B3;
  --brass: #B79A5B;
  --serif: "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 6vw, 96px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1; margin: 0; letter-spacing: -0.01em; }
em { font-style: italic; }

.label {
  font: 500 11px/1 var(--sans);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 28px;
}

.btn {
  display: inline-block;
  font: 500 12px/1 var(--sans);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ivory);
  padding: 19px 34px;
  border: 1px solid rgba(244, 239, 227, 0.55);
  background: transparent;
  cursor: pointer;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.btn:hover { background: var(--ivory); color: var(--night); border-color: var(--ivory); }
.btn.solid { background: var(--night); border-color: var(--night); color: var(--ivory); width: 100%; }
.btn.solid:hover { background: var(--forest); border-color: var(--forest); color: var(--ivory); }
.btn[disabled] { opacity: 0.55; cursor: wait; }
a:focus-visible, .btn:focus-visible, input:focus-visible { outline: 1px solid var(--brass); outline-offset: 4px; }

.draft-bar {
  position: fixed; z-index: 20; left: 50%; bottom: 14px; transform: translateX(-50%);
  width: max-content; max-width: calc(100% - 32px);
  background: rgba(10, 18, 13, 0.92); color: var(--ivory);
  border: 1px solid var(--brass);
  font: 500 12px/1.4 var(--sans); letter-spacing: 0.04em; text-align: center;
  padding: 8px 16px;
}

/* header */
.top {
  position: absolute; inset: 0 0 auto 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px var(--gutter);
}
.brand img { width: clamp(108px, 11vw, 136px); height: auto; opacity: 0.95; }
.top-link {
  font: 500 11px/1 var(--sans); letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--ivory); text-decoration: none; padding-bottom: 6px;
  border-bottom: 1px solid rgba(244, 239, 227, 0.4);
  transition: border-color 0.3s;
}
.top-link:hover { border-color: var(--ivory); }

/* hero */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: grid; place-items: center; text-align: center;
  background: var(--night); color: var(--ivory);
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; filter: saturate(0.55) brightness(0.62); transform: scale(1.04); }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(10,18,13,0.25) 0%, rgba(10,18,13,0.75) 70%),
    linear-gradient(180deg, rgba(10,18,13,0.55), rgba(10,18,13,0.2) 40%, rgba(10,18,13,0.85));
}
.hero-inner { position: relative; z-index: 1; padding: 120px var(--gutter) 96px; max-width: 900px; }
.hero h1 { font-size: clamp(56px, 11vw, 148px); line-height: 0.92; }
.hero h1 em { color: #E7DDC4; }
.rule { display: block; width: 56px; height: 1px; background: var(--brass); margin: 40px auto 32px; }
.lede { font: 400 clamp(19px, 1.9vw, 23px)/1.55 var(--serif); color: #DCD7C9; max-width: 32em; margin: 0 auto 44px; }
.hero-note { font: 500 11px/1 var(--sans); letter-spacing: 0.28em; text-transform: uppercase; color: var(--mist); margin: 26px 0 0; }

/* intro */
.intro { padding: clamp(96px, 16vw, 200px) var(--gutter); max-width: 1100px; margin: 0 auto; text-align: center; }
.statement { font: 400 clamp(26px, 3.4vw, 44px)/1.3 var(--serif); color: var(--ink); margin: 0; }
.statement span { display: block; margin-top: 28px; font: 400 15px/1.6 var(--sans); letter-spacing: 0.04em; color: var(--muted); }

/* privileges */
.privileges {
  display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(40px, 8vw, 140px);
  padding: 0 var(--gutter) clamp(96px, 16vw, 200px);
  max-width: 1280px; margin: 0 auto;
}
.priv-head h2 { font-size: clamp(42px, 5.4vw, 76px); }
.priv-head h2 em { color: var(--forest); }
.priv-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid #DDD6C4; }
.priv-list li { display: grid; grid-template-columns: 64px 1fr; gap: 24px; padding: 36px 0; border-bottom: 1px solid #DDD6C4; }
.num { font: italic 400 22px/1.2 var(--serif); color: var(--brass); }
.priv-list h3 { font-size: clamp(28px, 2.6vw, 36px); margin-bottom: 8px; }
.priv-list p { margin: 0; color: var(--muted); max-width: 30em; }

/* join */
.join { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; background: var(--ivory); }
.join-card {
  background: var(--night); display: grid; place-items: center;
  padding: clamp(64px, 10vw, 140px) var(--gutter);
  position: relative; overflow: hidden;
}
.join-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 40%, rgba(183,154,91,0.16), transparent 60%); }
.card {
  position: relative; width: min(100%, 420px); aspect-ratio: 1.586;
  background: linear-gradient(135deg, #13301D 0%, #0B1A11 55%, #10261A 100%);
  border: 1px solid rgba(183,154,91,0.55);
  padding: clamp(20px, 3vw, 30px);
  display: flex; flex-direction: column;
  color: var(--ivory);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.06);
  transform: rotate(-3deg);
  transition: transform 0.8s var(--ease);
}
.join-card:hover .card { transform: rotate(0deg) translateY(-4px); }
.card-mark { width: 34px; height: auto; opacity: 0.9; }
.card-club { font: 500 10px/1 var(--sans); letter-spacing: 0.34em; text-transform: uppercase; color: var(--brass); margin: auto 0 10px; }
.card-name { font: italic 400 clamp(24px, 2.6vw, 32px)/1.1 var(--serif); margin: 0 0 18px; min-height: 1.1em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-foot { display: flex; justify-content: space-between; gap: 12px; font: 500 9px/1 var(--sans); letter-spacing: 0.26em; text-transform: uppercase; color: var(--mist); border-top: 1px solid rgba(183,154,91,0.3); padding-top: 12px; }
.card-foot b { font-weight: 500; color: var(--ivory); }

.join-form { padding: clamp(64px, 10vw, 140px) var(--gutter); max-width: 640px; }
.join-form h2 { font-size: clamp(44px, 5.4vw, 72px); margin-bottom: 18px; }
.join-form h2 em { color: var(--forest); }
.join-sub { color: var(--muted); margin: 0 0 40px; }

.field { position: relative; margin: 0 0 26px; }
.field input {
  width: 100%; font: 400 18px/1.4 var(--sans); color: var(--ink);
  padding: 22px 0 10px; border: 0; border-bottom: 1px solid #BDB49C;
  background: transparent; border-radius: 0;
  transition: border-color 0.3s;
}
.field input:focus { outline: none; border-color: var(--night); }
.field input[aria-invalid="true"] { border-color: #A12A22; }
.field label {
  position: absolute; left: 0; top: 22px;
  font: 400 15px/1.4 var(--sans); color: var(--muted);
  pointer-events: none; transform-origin: left top;
  transition: transform 0.3s var(--ease), color 0.3s;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label { transform: translateY(-20px) scale(0.78); color: var(--brass); letter-spacing: 0.06em; }

.check { display: flex; gap: 14px; align-items: flex-start; font-size: 14px; line-height: 1.55; color: var(--ink); margin: 0 0 16px; cursor: pointer; }
.check input {
  appearance: none; -webkit-appearance: none; flex: none;
  width: 18px; height: 18px; margin: 2px 0 0; border: 1px solid #8F876F; background: transparent; cursor: pointer;
  display: grid; place-content: center;
}
.check input::after { content: ""; width: 8px; height: 8px; background: var(--night); transform: scale(0); transition: transform 0.2s var(--ease); }
.check input:checked { border-color: var(--night); }
.check input:checked::after { transform: scale(1); }
.check a { color: var(--forest); text-underline-offset: 3px; }
.signup .btn { margin-top: 18px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { min-height: 1.6em; margin: 16px 0 0; font-size: 14px; color: var(--muted); }
.form-msg.err { color: #A12A22; }
.welcome h3 { font-size: clamp(36px, 4vw, 52px); margin-bottom: 14px; }
.welcome h3 em { color: var(--forest); }
.welcome p { color: var(--muted); margin: 0; }

/* coda */
.coda { position: relative; min-height: 78vh; display: grid; place-items: center; overflow: hidden; background: var(--night); text-align: center; }
.coda-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: saturate(0.7) brightness(0.55); }
.coda-line { position: relative; z-index: 1; margin: 0; padding: 0 var(--gutter); color: var(--ivory); font: 400 clamp(40px, 6.4vw, 88px)/1.08 var(--serif); }
.coda-line em { color: #E7DDC4; }

/* footer */
.foot { background: var(--night); color: var(--mist); padding: 72px var(--gutter) 40px; font-size: 13px; letter-spacing: 0.02em; }
.foot-mark { width: 40px; height: auto; margin-bottom: 40px; opacity: 0.85; }
.foot-cols { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 24px 96px; }
.foot-cols p { margin: 0; line-height: 1.8; }
.foot a { color: var(--ivory); text-decoration: none; border-bottom: 1px solid rgba(244,239,227,0.25); }
.foot a:hover { border-color: var(--ivory); }
.fine { margin: 56px 0 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08); color: #7D8778; font-size: 12px; }

/* reveal (added by app.js only when JS runs) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* simple document pages (privacy, thanks) */
.doc { max-width: 720px; margin: 0 auto; padding: 64px 16px 112px; }
.doc .back { display: inline-block; margin-bottom: 48px; font: 500 11px/1 var(--sans); letter-spacing: 0.28em; text-transform: uppercase; color: var(--forest); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 6px; }
.doc h1 { font-size: clamp(44px, 7vw, 68px); margin-bottom: 16px; }
.doc h2 { font-size: 28px; margin: 2em 0 0.4em; }
.doc p, .doc li { color: var(--muted); }
.doc .meta { font-size: 13px; letter-spacing: 0.04em; }

@media (max-width: 860px) {
  .privileges, .join { grid-template-columns: 1fr; }
  .join-form { max-width: none; }
  .foot-cols { grid-template-columns: 1fr; }
  .priv-list li { grid-template-columns: 44px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .card, .btn, .field label { transition: none; }
}
