/* Langley chrome, v6 (Nov 15, 2026). Replaces the look C chrome of Nov 14.
   The nav, phone menu and footer for every kept page: essays, tools, the Vibe Check,
   Groundwork, privacy, 404, success. Same look as the v6 home, coaching and GTM pages.
   Every class starts with lg- and every rule is scoped under .lg-nav, .lg-drawer or .lg-foot,
   so this sheet can't restyle a page body. Needs Archivo (variable) and IBM Plex Mono loaded.
   The markup is written by scripts/swap-chrome.py. Change it there, then bump ?v= on the link. */

.lg-nav, .lg-drawer, .lg-foot {
  --lg-ink: #0A1F20;
  --lg-paper: #F2EDE6;
  --lg-muted: rgba(242, 237, 230, .56);
  --lg-rule: rgba(242, 237, 230, .16);
  --lg-gold: #D4A96A;
  --lg-pad: clamp(20px, 2.2vw, 32px);
  --lg-mono: "IBM Plex Mono", ui-monospace, monospace;
  --lg-ease: cubic-bezier(.28, 0, 0, 1);
  box-sizing: border-box; margin: 0;
  color: var(--lg-paper);
  font-family: "Archivo", "Inter", Arial, sans-serif; font-size: 16px; font-weight: 400;
  font-style: normal; font-variation-settings: "wdth" 100; line-height: 1.45;
  letter-spacing: normal; text-align: left; text-transform: none;
  -webkit-font-smoothing: antialiased;
}
.lg-nav *, .lg-nav *::before, .lg-nav *::after,
.lg-drawer *, .lg-drawer *::before, .lg-drawer *::after,
.lg-foot *, .lg-foot *::before, .lg-foot *::after { box-sizing: border-box; }

/* Nav: one line of metadata */
.lg-nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  width: auto; max-width: none;
  padding: 14px var(--lg-pad) 15px;
  background: rgba(10, 31, 32, .96);
  border: 0; border-bottom: 1px solid var(--lg-rule);
  transform: none;
}
.lg-nav a.lg-wordmark {
  display: inline-block; margin: 0; padding: 0;
  color: var(--lg-paper); text-decoration: none;
  font-size: 17px; font-weight: 600; line-height: 1.45; letter-spacing: -.02em;
}
.lg-nav .lg-nav-links { display: flex; align-items: center; gap: 22px; margin: 0; padding: 0; }
.lg-nav .lg-nav-links a, .lg-nav .lg-menu, .lg-drawer .lg-close, .lg-drawer .lg-drawer-mail,
.lg-foot .lg-foot-grid, .lg-foot .lg-foot-small {
  font-family: var(--lg-mono); font-size: 11px; font-weight: 400; line-height: 1.6;
  letter-spacing: .08em; text-transform: uppercase;
}
.lg-nav .lg-nav-links a {
  display: inline-block; margin: 0; padding: 4px 0;
  color: var(--lg-muted); text-decoration: none; white-space: nowrap; transition: color .2s linear;
}
.lg-nav .lg-nav-links a:hover, .lg-nav .lg-nav-links a[aria-current="page"] { color: var(--lg-paper); }
.lg-nav .lg-menu, .lg-drawer .lg-close {
  display: none; align-items: center; padding: 5px 9px 6px; margin: 0;
  background: none; color: var(--lg-paper); border: 1px solid currentColor; border-radius: 4px; cursor: pointer;
}

/* Phone menu */
.lg-drawer {
  position: fixed; inset: 0; z-index: 200; background: var(--lg-ink);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 14px var(--lg-pad) 28px;
  transform: translateY(-100%); visibility: hidden; transition: transform .6s var(--lg-ease), visibility .6s;
}
.lg-drawer.lg-open { transform: none; visibility: visible; }
.lg-drawer .lg-drawer-top { display: flex; justify-content: space-between; align-items: center; }
.lg-drawer .lg-drawer-top .lg-wordmark { color: var(--lg-paper); text-decoration: none; font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.lg-drawer .lg-close { display: inline-flex; }
.lg-drawer nav a {
  display: block; padding: 6px 0; margin: 0; border-bottom: 1px solid var(--lg-rule);
  color: var(--lg-paper); text-decoration: none;
  font-size: 40px; font-weight: 520; line-height: 1.12; letter-spacing: -.025em;
}
.lg-drawer .lg-drawer-mail { color: var(--lg-muted); text-decoration: none; }

/* Keyboard focus */
.lg-nav a:focus-visible, .lg-nav button:focus-visible, .lg-drawer a:focus-visible,
.lg-drawer button:focus-visible, .lg-foot a:focus-visible {
  outline: 2px solid var(--lg-gold); outline-offset: 3px;
}

/* Footer */
.lg-foot {
  display: block; overflow: hidden;
  padding: 72px var(--lg-pad) 24px;
  background: var(--lg-ink);
  border: 0; border-top: 1px solid var(--lg-rule);
}
.lg-foot .lg-foot-wrap { max-width: none; margin: 0; padding: 0; }
.lg-foot .lg-foot-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; }
.lg-foot .lg-foot-grid ul { display: grid; gap: 8px; align-content: start; margin: 0; padding: 0; list-style: none; }
.lg-foot .lg-foot-grid li {
  display: block; position: static; margin: 0; padding: 0; border: 0; list-style: none; color: var(--lg-muted);
}
.lg-foot .lg-foot-grid li::before, .lg-foot .lg-foot-grid li::after { content: none; }
.lg-foot .lg-foot-grid a { color: var(--lg-muted); text-decoration: none; transition: color .2s linear; }
.lg-foot .lg-foot-grid a:hover { color: var(--lg-paper); }
.lg-foot .lg-foot-mark {
  margin: clamp(56px, 8vw, 120px) 0 0 -.04em; padding: 0 0 .2em;
  color: var(--lg-paper); white-space: nowrap; user-select: none;
  font-size: clamp(88px, 23vw, 380px); font-weight: 560; line-height: .8; letter-spacing: -.055em;
  text-transform: none; font-variation-settings: "wdth" 100;
}
.lg-foot .lg-foot-small {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px;
  margin: 0; padding: 0; max-width: none; color: var(--lg-muted);
}

/* Pages that center a padded body (success.html: 48px top and bottom, 24px sides) */
.lg-nav.lg-flush, .lg-foot.lg-flush { align-self: stretch; margin-left: -24px; margin-right: -24px; }
.lg-nav.lg-flush { margin-top: -48px; margin-bottom: 64px; }
.lg-foot.lg-flush { margin-top: 64px; margin-bottom: auto; }
/* Pages whose old footer carried its own space above it (the two self-styled tool pages) */
.lg-foot.lg-gap { margin-top: 56px; }

@media (max-width: 760px) {
  .lg-nav .lg-nav-links { display: none; }
  .lg-nav .lg-menu { display: inline-flex; }
  .lg-nav .lg-menu, .lg-drawer .lg-close { min-height: 44px; padding: 0 14px; }
  .lg-foot .lg-foot-grid { grid-template-columns: 1fr 1fr; row-gap: 28px; }
}

/* The Vibe Check hides the site chrome while the quiz is running, and on phones its
   results view pins a button to the bottom of the screen, so the footer leaves room for it */
body.vc-in-quiz .lg-nav, body.vc-in-quiz .lg-foot { display: none; }
@media (max-width: 767px) { body.vc-on-results .lg-foot { padding-bottom: 96px; } }

@media (prefers-reduced-motion: reduce) {
  .lg-nav a, .lg-foot a, .lg-drawer { transition: none; }
}
@media print { .lg-nav, .lg-drawer, .lg-foot { display: none; } }
