/* Asymmetric Edge shared site styles (Nov 8, 2026): design tokens, nav, signup forms, the purple closing band, and the stone footer.
 Loaded on every page: the homepage (with ae-home.css) and every other template (with ae-site.css). Moved here from ae-home.css
 unchanged except that ".ae-home" scoping became ".ae-shell", a class on both the homepage body and every other page body. */
:root { --ae: #3A0CA3; --ae-dark: #26076E; --ink: #1C1B19; --body: #55524D; --muted: #55524D;
  --rule: #E6E3DC; --rule2: #D9D5CC; --wash: #F5F4F0; --gold: #F4D35E; --gain: #1F8A4C; --loss: #B8432F;
  /* A + D blend (Nov 8, 2026; replaced the Sky palette from earlier that day): warm stone bands (--wash) with --band-rule edges,
     stone panels, white cards with warm borders, warm-gray text (--ink headings, --body and --muted body), brass for Defense,
     and a gold marker stroke (--hl) under "my own money". Cards and panels use --radius; pills stay fully rounded. */
  --band-rule: #E6E3DC; --panel: #F5F4F0; --card-bd: #E2DED6; --pill-bd: #D9D5CC; --def-bd: #C9A55C; --brass: #B08D3E;
  --hl: rgba(244, 211, 94, .75); --radius: 8px;
  /* Serif headlines follow Ghost's Heading font (Design > Brand > Typography) once it's set; IBM Plex Serif until then */
  --serif: var(--gh-font-heading, "IBM Plex Serif"), Georgia, "Times New Roman", serif;
  --gutter: clamp(24px, 7vw, 112px); }
.ae-nav, .ae-cta, .ae-foot { font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
.ae-nav *, .ae-cta *, .ae-foot * { box-sizing: border-box; }

.ae-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Nav */
.ae-nav { background: var(--ae); color: #fff; padding: 0 var(--gutter); }
.ae-nav-in { max-width: 1200px; margin: 0 auto; padding: 18px 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.ae-shell .ae-brand { color: #fff; text-decoration: none; font-weight: 900; font-size: 22px; letter-spacing: -.02em; }
.ae-navlinks { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 15px; font-weight: 500; }
.ae-shell .ae-navlinks a, .ae-shell .ae-signin { color: #EEE9FA; text-decoration: none; }
.ae-shell .ae-navlinks a:hover, .ae-shell .ae-signin:hover { color: #fff; }
.ae-navcta { display: flex; align-items: center; gap: 12px; }
.ae-signin { font-size: 15px; font-weight: 500; padding: 12px 8px; }
.ae-shell .ae-btn-white { background: #fff; color: var(--ae); text-decoration: none; font-weight: 700; font-size: 15px; padding: 12px 20px; border-radius: 999px; }

/* Signup forms (Ghost Members) */
.ae-form { display: flex; flex-wrap: wrap; gap: 12px; max-width: 560px; margin-top: 8px; position: relative; }
.ae-form input { flex: 1 1 260px; min-width: 0; height: 52px; padding: 0 18px; font-size: 16px; font-family: inherit;
  border: 1px solid var(--rule2); border-radius: 999px; background: #fff; color: var(--ink); }
.ae-form button { height: 52px; padding: 0 26px; font-size: 16px; font-weight: 700; font-family: inherit; border: none;
  border-radius: 999px; background: var(--ae); color: #fff; cursor: pointer; }
.ae-form .ae-msg { display: none; flex-basis: 100%; margin: 0; font-size: 14px; }
.ae-form.loading button { opacity: .6; }
.ae-form.success input, .ae-form.success button { display: none; }
.ae-form.success .ae-msg-ok { display: block; color: var(--gain); font-weight: 600; }
.ae-form.error .ae-msg-err { display: block; color: var(--loss); }
.ae-cta .ae-form.success .ae-msg-ok { color: #fff; }
.ae-cta .ae-form.error .ae-msg-err { color: #FFE4E0; }
.ae-member-note { margin: 8px 0 0; font-size: 16px; color: var(--body); }

/* Closing CTA */
.ae-cta { background: var(--ae); color: #fff; padding: 64px var(--gutter); }
.ae-cta-in { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; align-items: center; text-align: center; }
.ae-cta h2 { margin: 0; font-size: 40px; line-height: 1.1; }
.ae-cta p.sub { margin: 0; font-size: 18px; line-height: 1.6; color: #E7E0F3; }
.ae-cta .ae-form { justify-content: center; width: 100%; max-width: 520px; }
.ae-cta .ae-form input { border: none; }
.ae-cta .ae-form button { background: var(--gold); color: var(--ink); }
.ae-shell .ae-cta a { color: #fff; }

/* Footer */
.ae-foot { background: var(--wash); color: var(--body); border-top: 1px solid var(--band-rule); padding: 48px var(--gutter); }
.ae-foot-in { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.ae-foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.ae-foot-top strong { font-weight: 900; font-size: 18px; color: var(--ink); }
.ae-foot-links { display: flex; flex-wrap: wrap; gap: 24px; font-size: 14px; }
.ae-shell .ae-foot-links a { color: var(--body); text-decoration: none; }
.ae-foot p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); max-width: 900px; }
/* Closing band headline in serif on every page (the homepage also sets this in ae-home.css) */
.ae-cta h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; text-wrap: balance; color: #fff; }

/* Hover colors for links styled as buttons or blocks (keeps the generic link hover from darkening them) */
.ae-shell .ae-brand:hover, .ae-shell .ae-cta a:hover { color: #fff; }
.ae-shell .ae-btn-white:hover { color: var(--ae-dark); }
.ae-shell .ae-foot-links a:hover { color: var(--ae); }

/* Menu button (narrow screens only) */
.ae-menu-btn { display: none; width: 44px; height: 44px; padding: 11px 10px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; flex-direction: column; justify-content: space-between; }
.ae-menu-btn span { display: block; height: 2px; border-radius: 2px; background: #fff; transition: transform .2s, opacity .2s; }
.ae-menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.ae-menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.ae-menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }
.ae-signin-m { display: none; }
@media (max-width: 1180px) {
  .ae-nav-in { flex-wrap: wrap; gap: 0 8px; padding: 12px 0; }
  .ae-brand { order: 1; margin-right: auto; }
  .ae-navcta { order: 2; }
  .ae-navcta .ae-signin { display: none; }
  .ae-menu-btn { order: 3; display: flex; }
  .ae-navlinks { order: 4; flex-basis: 100%; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 4px; font-size: 17px; }
  .ae-navlinks.open { display: flex; }
  .ae-shell .ae-navlinks ul.nav { flex-direction: column; gap: 0; }
  .ae-shell .ae-navlinks a { display: block; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.15); }
  .ae-shell .ae-navlinks .ae-signin-m { display: block; }
  .ae-shell .ae-btn-white { padding: 10px 16px; font-size: 14px; }
}

/* Ghost {{navigation}} output */
.ae-navlinks ul.nav { display: flex; flex-wrap: wrap; gap: 8px 28px; list-style: none; margin: 0; padding: 0; }

/* Phones: email field and button share one row */
@media (max-width: 700px) {
  .ae-form { gap: 8px; }
  .ae-form input { flex: 1 1 0; height: 48px; padding: 0 14px; }
  .ae-form button { flex: 0 0 auto; height: 48px; padding: 0 18px; }
}
@media (max-width: 360px) {
  .ae-form input { flex-basis: 100%; }
  .ae-form button { flex: 1 1 100%; }
}

/* Phones (moved from the homepage Phones block) */
@media (max-width: 700px) {
  .ae-shell .ae-brand { font-size: 20px; }
  .ae-cta h2 { font-size: 30px; }
}

/* Small phones */
@media (max-width: 420px) {
  .ae-nav-in { gap: 0 4px; }
  .ae-shell .ae-brand { font-size: 18px; }
  .ae-shell .ae-btn-white { padding: 8px 14px; }
  .ae-menu-btn { width: 40px; padding: 11px 8px; }
}
@media (max-width: 350px) {
  .ae-shell .ae-brand { font-size: 16px; }
  .ae-shell .ae-btn-white { padding: 8px 12px; font-size: 13px; }
  .ae-menu-btn { width: 34px; padding: 11px 5px; }
}

/* Nav list items: keep Casper's global li rules (li + li margin, padding) out of the nav on non-homepage pages */
.ae-navlinks ul.nav li { margin: 0; padding: 0; line-height: inherit; }
