:root {
  --navy: #0b1f3a;
  --navy-2: #132a4a;
  --cream: #f6efe0;
  --cream-2: #efe4cc;
  --gold: #c9a227;
  --gold-2: #e8c96a;
  --crimson: #b42318;
  --ink: #1a140c;
  --muted: #5c5346;
  --white: #fffdf8;
  --shadow: 0 24px 60px rgba(11, 31, 58, 0.22);
  --radius: 22px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(201, 162, 39, 0.16), transparent 55%),
    linear-gradient(180deg, var(--cream) 0%, #e7dcc4 100%);
  font-family: "DM Sans", system-ui, sans-serif;
  line-height: 1.55;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
code, .mono { font-family: "IBM Plex Mono", ui-monospace, monospace; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus { left: 12px; background: #fff; padding: 8px 12px; z-index: 9; }

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 28px;
  background: rgba(11, 31, 58, 0.92);
  backdrop-filter: blur(12px);
  color: var(--cream);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.brand img { width: 40px; height: 40px; border-radius: 50%; }
.nav nav { display: flex; gap: 18px; margin-left: auto; font-size: 0.92rem; }
.nav nav a { text-decoration: none; opacity: 0.86; }
.nav nav a:hover { opacity: 1; color: var(--gold-2); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.btn--small { padding: 8px 14px; font-size: 0.88rem; }
.btn--gold {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: var(--navy);
}
.btn--ghost {
  border-color: rgba(246, 239, 224, 0.35);
  color: var(--cream);
}
.btn--navy {
  background: var(--navy);
  color: var(--cream);
}
.btn--outline {
  border-color: var(--navy);
  background: transparent;
}

.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--cream);
}
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 31, 58, 0.15) 20%, rgba(11, 31, 58, 0.78) 100%);
}
.hero__body {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 28px 56px;
}
.eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  padding: 6px 12px;
  border: 1px solid rgba(232, 201, 106, 0.55);
  color: var(--gold-2);
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  text-transform: uppercase;
}
.hero h1 {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  line-height: 0.95;
  margin: 0 0 16px;
  font-weight: 650;
}
.lede { max-width: 38rem; font-size: 1.15rem; color: #efe6d3; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }

.ca {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(11, 31, 58, 0.55);
  border: 1px dashed rgba(232, 201, 106, 0.45);
  border-radius: 12px;
  width: fit-content;
}
.ca__label { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-2); }
.ca code { font-size: 0.82rem; }
.ca button {
  background: var(--gold);
  color: var(--navy);
  border: 0;
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 700;
  cursor: pointer;
}
.ca--pending { color: #d7c9a8; }
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #e24b3d;
  display: inline-block;
  margin-right: 8px;
  box-shadow: 0 0 0 4px rgba(226, 75, 61, 0.25);
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 72px 28px; }
.section-kicker {
  color: var(--crimson);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
  margin: 0 0 8px;
}
h2 {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin: 0 0 16px;
  line-height: 1.15;
}

.pass {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid rgba(11, 31, 58, 0.08);
}
.pass__main, .pass__stub { padding: 28px; }
.pass__stub {
  background: var(--navy);
  color: var(--cream);
  position: relative;
}
.pass__stub::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 16px;
  bottom: 16px;
  border-left: 2px dashed rgba(246, 239, 224, 0.35);
}
.stamp {
  width: 120px;
  height: 120px;
  border: 4px solid var(--crimson);
  color: var(--crimson);
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.08em;
  transform: rotate(-18deg);
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-top: 18px;
}
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font-size: 0.92rem; }
.row span { display: block; color: var(--muted); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }

.grid-2 { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: center; }
.panel {
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.bylaws { list-style: none; padding: 0; margin: 0; }
.bylaws li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(11, 31, 58, 0.08);
}
.bylaws strong { font-family: Fraunces, serif; }

.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.table th, .table td { text-align: left; padding: 14px 18px; }
.table th {
  background: var(--navy);
  color: var(--cream);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.table tr:nth-child(even) td { background: #faf6ec; }

.steps { counter-reset: step; display: grid; gap: 14px; }
.steps li {
  list-style: none;
  background: var(--white);
  padding: 18px 18px 18px 64px;
  border-radius: 16px;
  position: relative;
  box-shadow: 0 10px 24px rgba(11, 31, 58, 0.08);
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 16px; top: 16px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  display: grid; place-items: center;
  font-weight: 800;
}

.risk {
  background: var(--navy);
  color: var(--cream);
}
.risk a { color: var(--gold-2); }
footer {
  background: #081526;
  color: #cbbfa4;
  padding: 28px;
  text-align: center;
  font-size: 0.9rem;
}
footer a { color: var(--gold-2); }

.manual-hero {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: center;
  background: var(--navy);
  color: var(--cream);
  padding: 48px 28px;
}
.manual-hero img {
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.prose { max-width: 760px; margin: 0 auto; padding: 56px 28px 80px; }
.prose h2 { margin-top: 2.2em; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0 28px; }
.prose td, .prose th { border-bottom: 1px solid rgba(11, 31, 58, 0.12); padding: 8px 0; text-align: left; }
blockquote {
  margin: 20px 0;
  padding: 8px 18px;
  border-left: 4px solid var(--gold);
  font-family: Fraunces, serif;
  font-size: 1.25rem;
}

@media (max-width: 820px) {
  .nav nav { display: none; }
  .pass, .grid-2, .manual-hero { grid-template-columns: 1fr; }
  .hero { min-height: 72vh; }
}
