/* BodyFi brand foundation: fonts, colours, type, buttons, header and footer. Loaded by every public and member page. */

@font-face { font-family: Archivo; src: url('/fonts/archivo.woff2') format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }
@font-face { font-family: Archivo; src: url('/fonts/archivo-italic.woff2') format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-style: italic; font-display: swap; }

:root {
  color-scheme: dark;
  --lime: #b4f65d;
  --lime-soft: #cdfb91;
  --ink: #0d100b;
  --ink-raised: #151a11;
  --ink-raised-2: #1d2317;
  --bone: #f4f5ef;
  --muted-on-ink: #a9b29e;
  --hairline: rgba(244, 245, 239, .12);
  --hairline-strong: rgba(244, 245, 239, .3);
  --over: #ffb86b;
  --alert: #ff9a85;
  --success: #b4f65d;
  --display: Archivo, 'Helvetica Neue', Arial, sans-serif;
  --text: Archivo, 'Helvetica Neue', Arial, sans-serif;
  --gutter: clamp(20px, 4vw, 64px);
  --wrap: 1560px;
  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 24px;
  --section: clamp(84px, 11vw, 176px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  /* Read by every component. Lime panels override them below. */
  --bg: var(--ink);
  --fg: var(--bone);
  --muted: var(--muted-on-ink);
  --line: var(--hairline);
  --line-strong: var(--hairline-strong);
  --raised: var(--ink-raised);
  --accent: var(--lime);
  --accent-fg: #11150e;
  --link: var(--lime);
  --logo-fi: var(--lime);
}
.on-lime { --bg: var(--lime); --fg: #11150e; --muted: #2f3d1a; --line: rgba(17, 21, 14, .22); --line-strong: #11150e; --raised: rgba(17, 21, 14, .08); --accent: #11150e; --accent-fg: var(--lime); --link: #11150e; --logo-fi: #11150e; background: var(--bg); color: var(--fg); color-scheme: light; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; background: var(--ink); scrollbar-color: #3a4231 var(--ink); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }
html.menu-open { overflow: hidden; }
body { margin: 0; font-family: var(--text); font-size: 18px; line-height: 1.55; font-weight: 400; font-stretch: 100%; background: var(--ink); color: var(--bone); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
::selection { background: var(--lime); color: #11150e; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 4px; }
.on-lime :focus-visible { outline-color: #11150e; }
main:focus { outline: none; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 1000; padding: 12px 18px; border-radius: var(--radius-m); background: var(--lime); color: #11150e; font-weight: 600; }
.skip-link:focus { top: 12px; }
.wrap { width: min(var(--wrap), calc(100% - var(--gutter) * 2)); margin-inline: auto; }

/* Type: one family. Headlines are wide and heavy, like the wordmark. */
h1, h2, .display { font-family: var(--display); font-weight: 800; font-stretch: 125%; line-height: 1; letter-spacing: -.022em; text-wrap: balance; }
h3 { font-family: var(--display); font-weight: 700; font-stretch: 112%; font-size: 21px; line-height: 1.2; letter-spacing: -.008em; }
.section-title { font-size: clamp(36px, 5.1vw, 84px); }
.lede { max-width: 56ch; font-size: clamp(18px, 1.45vw, 22px); line-height: 1.5; color: var(--muted); }
.note { max-width: 72ch; font-size: 15px; line-height: 1.5; color: var(--muted); }
.note a, .lede a, .prose a { color: var(--link); text-underline-offset: 3px; }
/* Keeps descenders from being cut when a headline's lines rise into view. */
.split-line { padding-bottom: .14em; margin-bottom: -.14em; }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 28px; border: 1.5px solid var(--accent); border-radius: var(--radius-m); background: var(--accent); color: var(--accent-fg); font-family: var(--display); font-weight: 650; font-stretch: 108%; font-size: 16.5px; line-height: 1.15; letter-spacing: -.003em; text-align: center; text-decoration: none; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s, box-shadow .3s, transform .3s var(--ease-out); }
.button:hover { background: var(--lime-soft); border-color: var(--lime-soft); box-shadow: 0 10px 40px rgba(180, 246, 93, .28); transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button:disabled, .button[aria-disabled='true'] { opacity: .5; cursor: not-allowed; box-shadow: none; transform: none; }
.button-quiet { background: transparent; color: var(--fg); border-color: var(--line-strong); }
.button-quiet:hover { background: rgba(244, 245, 239, .08); border-color: var(--bone); box-shadow: none; }
.on-lime .button:hover { background: #2a3320; border-color: #2a3320; box-shadow: 0 10px 40px rgba(17, 21, 14, .3); }
.button-small { min-height: 44px; padding: 0 18px; font-size: 15px; }
.text-link { color: var(--link); font-weight: 600; text-underline-offset: 4px; }

/* Header: sits over the first screen, then gains a blurred ground. */
.site-bar { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; padding: 12px var(--gutter); color: var(--bone); border-bottom: 1px solid transparent; transition: background-color .3s, border-color .3s, min-height .3s; }
.site-bar.is-scrolled { min-height: 64px; background: rgba(13, 16, 11, .78); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%); border-bottom-color: var(--hairline); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand-mark { width: 44px; height: 30px; }
.brand-word { width: 112px; height: 17px; }
.site-nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 34px); font-weight: 500; font-size: 15.5px; }
.site-nav a { text-decoration: none; }
.site-nav a:not(.button) { color: rgba(244, 245, 239, .78); transition: color .2s; }
.site-nav a:not(.button):hover, .site-nav a[aria-current='page']:not(.button) { color: var(--bone); }
.site-nav a[aria-current='page']:not(.button) { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--lime); text-decoration-thickness: 2px; }
.menu-toggle { display: none; width: 48px; height: 48px; padding: 0 11px; border: 0; border-radius: var(--radius-m); background: transparent; cursor: pointer; }
.menu-toggle span { display: block; height: 2px; margin: 7px 0; background: currentColor; transform-origin: center; transition: transform .24s var(--ease-out); }
.menu-toggle[aria-expanded='true'] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.menu-toggle[aria-expanded='true'] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
@media (max-width: 900px) {
  .menu-toggle { display: block; position: relative; z-index: 2; }
  .brand { position: relative; z-index: 2; }
  .site-nav { position: fixed; inset: 0; z-index: 1; display: none; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 4px; height: 100dvh; padding: 96px var(--gutter) max(32px, env(safe-area-inset-bottom)); background: var(--ink); font-family: var(--display); font-weight: 750; font-stretch: 125%; letter-spacing: -.02em; font-size: clamp(30px, 8.4vw, 50px); line-height: 1.25; overflow-y: auto; }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.button) { color: var(--bone); }
  .site-nav .button { width: 100%; margin-top: 18px; font-size: 18px; letter-spacing: 0; }
}

/* Footer */
.site-foot { padding: clamp(56px, 7vw, 96px) 0 28px; border-top: 1px solid var(--hairline); background: var(--ink); color: var(--bone); }
.foot-grid { display: grid; grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(130px, 1fr)); gap: 40px 28px; }
.foot-brand svg { width: min(100%, 260px); height: 38px; margin-bottom: 18px; }
.foot-brand p { max-width: 30ch; color: var(--muted-on-ink); }
.foot-col h2 { margin-bottom: 12px; font-family: var(--text); font-size: 14.5px; font-weight: 500; font-stretch: 100%; letter-spacing: 0; line-height: 1.3; color: var(--muted-on-ink); }
.foot-col a { display: block; padding: 5px 0; font-weight: 500; font-size: 16px; text-decoration: none; transition: color .2s; }
.foot-col a:hover { color: var(--lime); }
.foot-social a { display: flex; align-items: center; gap: 10px; }
.foot-social img { width: 18px; height: 18px; object-fit: contain; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--hairline); font-size: 14px; line-height: 1.5; color: var(--muted-on-ink); }
.foot-legal span:last-child { max-width: 78ch; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* Moving between pages: a quick fade. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: page-out .18s ease both; }
::view-transition-new(root) { animation: page-in .34s var(--ease-out) both; }
@keyframes page-out { to { opacity: 0; } }
@keyframes page-in { from { opacity: 0; transform: translateY(10px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  ::view-transition-new(root), ::view-transition-old(root) { animation: none; }
  .button:hover { transform: none; }
}
