/* chrome.css — the shared frame: background, nav, footer.
 *
 * The landing page carries these rules inline. Subpages load this file so they
 * sit in the same world instead of drifting into a different one, which is how
 * /guide ended up with a flat background and a bare wordmark where the rest of
 * the site has an aura field and a real nav.
 *
 * Deliberately uses `.chrome-wrap` rather than `.wrap`: legal.css already owns
 * `.wrap` as a 720px reading column, and the nav and footer need the full
 * 1140px. Two different widths cannot share one class name.
 */

:root {
  --void: #07060C;
  --raised: #16121F;
  --magenta: #E06BC8;

  --s-1: clamp(.8rem, .78rem + .1vw, .875rem);
  --s0: clamp(1rem, .96rem + .18vw, 1.09rem);
}

/* The canvas replaces the static gradient legal.css paints. Leaving both on
   stacks two background treatments and muddies the colour. */
body::before { content: none; }

.chrome-wrap {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 clamp(1.15rem, 4vw, 2.5rem);
}

/* ─── Aura field (canvas) ──────────────────────────────── */
#aura-field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: .85;
}

/* A column so the footer sits at the bottom of short pages — /account and
   /signin are a single card, and a footer floating halfway up looks broken. */
.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.page > .wrap { flex: 1 0 auto; }

/* Flow pages (/signin, /account) are a single centred card. The card must not
   become the flex child itself — `flex-grow: 1` would stretch it down the whole
   viewport — so this holds the space and centres the card inside it. */
.page-body {
  flex: 1 0 auto;
  display: grid;
  place-items: center;
  padding: clamp(2rem, 6vh, 3.5rem) 1.5rem;
}

/* ─── Nav ──────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(10, 8, 16, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
nav.stuck {
  border-bottom-color: var(--hairline);
  background: rgba(10, 8, 16, 0.88);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 72px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: -.022em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark img {
  display: block;
  border-radius: 9px;
  image-rendering: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: var(--s-1);
  color: var(--ink-soft);
}
/* Excludes .btn deliberately. This reset exists because legal.css styles bare
   anchors violet, but `.nav-links a` (0,1,1) outranks `.btn-primary` (0,1,0) —
   so without the :not() the button inherits the rail's muted grey and its dark
   label washes out against the gradient. */
.nav-links a:not(.btn) { color: inherit; text-decoration: none; }
.nav-links a:not(.btn):hover { color: var(--ink); }

@media (max-width: 720px) { .nav-links .hide-sm { display: none; } }

/* ─── Footer ───────────────────────────────────────────── */
footer.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 2.25rem 0 3rem;
  margin-top: 4rem;
}
.foot-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .8rem;
  color: var(--ink-mute);
}
.foot-links { display: flex; gap: 1.35rem; flex-wrap: wrap; }
.foot-links a { color: inherit; text-decoration: none; }
.foot-links a:hover { color: var(--ink-soft); }

/* Full width by design. A legal disclosure rather than reading copy, so it
   spans the footer instead of sitting in a narrow column on the left. */
.disclosure {
  width: 100%;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
  font-size: .74rem;
  color: var(--ink-mute);
  line-height: 1.7;
  text-wrap: pretty;
}
.disclosure a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 2px; }
.disclosure a:hover { color: var(--ink); }
