:root {
  --navy: #0f2a4a;
  --navy-deep: #0a1f36;
  --paper: #f7f5f0;
  --ink: #1a2430;
  --muted: #5b6675;
  --gold: #b8862c;
  --gold-soft: #f2e6c9;
  --green: #2e7d4f;
  --line: #e4dfd3;
  --serif: Georgia, "Times New Roman", "Iowan Old Style", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .5em; }

a { color: var(--navy); }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand { display: flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--navy); }
.brand-seal { font-size: 1.3rem; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.1rem; letter-spacing: .01em; }

.topnav { display: flex; align-items: center; gap: 1.25rem; font-size: .95rem; }
.topnav a:not(.btn) { text-decoration: none; color: var(--muted); }
.topnav a:not(.btn):hover { color: var(--navy); }

.hero {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5.5rem) clamp(1rem, 4vw, 2.5rem) clamp(2.5rem, 6vw, 4rem);
  text-align: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  color: var(--gold);
  font-weight: 600;
}

.hero h1 { font-size: clamp(2rem, 5.2vw, 3.3rem); }
.hero h1 em { font-style: normal; color: var(--navy); border-bottom: 4px solid var(--gold-soft); padding-bottom: .05em; }

.lede { font-size: 1.1rem; color: var(--muted); max-width: 620px; margin: 1rem auto 2.25rem; }

.join-box {
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem 1.5rem 1.25rem;
  text-align: left;
  box-shadow: 0 8px 24px rgba(15, 42, 74, .07);
}

.join-box label { font-weight: 600; font-size: .98rem; display: block; margin-bottom: .6rem; }

.join-row { display: flex; gap: .5rem; }
.join-row input { flex: 1; }

input, select {
  font: inherit;
  padding: .72rem .9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  width: 100%;
  margin-bottom: .6rem;
}
input:focus, select:focus { outline: 2px solid var(--gold); outline-offset: 1px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-weight: 600;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  border-radius: 8px;
  padding: .72rem 1.1rem;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { border-color: var(--gold); }
.btn-small { padding: .45rem .9rem; font-size: .9rem; }
.btn-primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
.btn[disabled] { opacity: .6; cursor: wait; }

.form-status { margin: .25rem 0 0; font-size: .92rem; min-height: 1.4em; }
.form-status.ok { color: var(--green); }
.form-status.err { color: #b3362d; }

.fineprint { font-size: .8rem; color: var(--muted); margin: .35rem 0 0; }

.section { max-width: 980px; margin: 0 auto; padding: clamp(2.5rem, 6vw, 4rem) clamp(1rem, 4vw, 2.5rem); }
.section-alt { background: var(--navy); color: #eaf0f7; border-radius: 18px; margin: 1rem auto 2.5rem; max-width: 980px; }
.section-alt h2 { color: #fff; }
.section-alt .section-lede { color: #b9c7d9; max-width: 640px; }
.section-alt .join-box { background: #fff; }
.section-alt input, .section-alt select { background: #fff; }

.section h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--navy); text-align: center; }
.section-alt h2 { text-align: left; }
.section-lede { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 1.5rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-top: 1.75rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1.25rem; }
.card h3 { font-size: 1.1rem; color: var(--navy); margin-bottom: .35rem; }
.card p { margin: 0; font-size: .93rem; color: var(--muted); }

.how { max-width: 640px; margin: 1.75rem auto 0; padding-left: 1.5rem; color: var(--muted); }
.how li { margin-bottom: 1rem; }
.how strong { color: var(--ink); }

.footer { text-align: center; padding: 2rem clamp(1rem, 4vw, 2.5rem); border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.footer .fineprint { margin-top: .4rem; }

@media (max-width: 520px) {
  .topnav a:not(.btn) { display: none; }
  .join-row { flex-direction: column; }
  .join-row .btn { width: 100%; }
}
