/* 2A Ventures — base styles, layout primitives, header and footer. */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  background: var(--bg);
  color: var(--text);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
button, input, select, textarea { font: inherit; color: inherit; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
address { font-style: normal; }
::selection { background: var(--volt); color: var(--carbon); }

:focus-visible { outline: 2px solid var(--volt); outline-offset: 3px; border-radius: 2px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  background: var(--volt); color: var(--carbon); padding: 0.75rem 1rem; font-weight: 600;
  border-radius: var(--radius); text-decoration: none;
}
.skip-link:focus { top: 0.75rem; }

/* ---------- Type ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-stretch: var(--wide);
  letter-spacing: -0.025em;
  line-height: var(--lh-head);
  text-wrap: balance;
}
.display {
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  letter-spacing: -0.035em;
  font-weight: 600;
  font-stretch: var(--wide);
}
.h1 { font-size: var(--fs-h1); line-height: 1; letter-spacing: -0.035em; }
.h2, h2 { font-size: var(--fs-h2); line-height: 1.04; letter-spacing: -0.03em; }
.h3, h3 { font-size: var(--fs-h3); line-height: 1.18; letter-spacing: -0.02em; font-stretch: var(--semi); }
.h4, h4 { font-size: var(--fs-h4); line-height: 1.3; letter-spacing: -0.01em; font-stretch: var(--semi); }

p { max-width: 66ch; text-wrap: pretty; }
.lead { font-size: var(--fs-lead); line-height: 1.45; color: var(--text); max-width: 40ch; letter-spacing: -0.005em; }
.lead--wide { max-width: 52ch; }
.muted { color: var(--text-2); }
.small { font-size: var(--fs-small); }
.accent { color: var(--volt); }

.label {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--text-2);
}
.label .idx { color: var(--volt); margin-right: 0.75em; }
.num { font-variant-numeric: tabular-nums; }

.prose > * + * { margin-top: 1.1em; }
.prose h3 { margin-top: 2em; }
.prose p, .prose li { color: var(--text-2); }
.prose strong { color: var(--text); font-weight: 600; }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 0.5em; }
.prose blockquote {
  font-size: var(--fs-h3); font-stretch: var(--semi); font-weight: 500; line-height: 1.3;
  letter-spacing: -0.015em; color: var(--text); margin: 2em 0; max-width: 30ch;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
}
.section { padding-block: var(--section) 0; }
.section:last-child { padding-bottom: var(--section); }
.section--tight { padding-top: calc(var(--section) * 0.6); }

/* The editorial section head: index label on the left, heading on the right */
.sec-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: var(--s-5); margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 5rem); }
.sec-head .label { grid-column: 1 / span 3; padding-top: 0.6em; }
.sec-head__body { grid-column: 4 / -1; }
.sec-head__body > * + * { margin-top: var(--s-5); }
.sec-head__body p { color: var(--text-2); max-width: 58ch; }

.offset { grid-column: 4 / -1; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
}
.site-header__inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-6);
}
.brand { display: inline-flex; align-items: center; flex: none; padding-block: var(--s-2); }
.brand img { width: 168px; height: auto; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2.25rem); }
.nav__list { display: flex; align-items: center; gap: clamp(0.9rem, 1.6vw, 1.75rem); }
.nav__link {
  position: relative; display: inline-block;
  font-size: 0.9375rem; font-weight: 500; text-decoration: none; color: var(--text-2);
  padding-block: 0.5rem;
  transition: color var(--dur) var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.2rem; height: 2px;
  background: var(--volt); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--text); }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
  display: none; align-items: center; gap: 0.75rem; min-height: 44px; padding: 0 0.25rem;
  background: none; border: 0; cursor: pointer;
  font-family: var(--font-mono); font-size: var(--fs-label); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
}
.nav-toggle__bars { position: relative; width: 22px; height: 12px; }
.nav-toggle__bars::before, .nav-toggle__bars::after, .nav-toggle__bars span {
  content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: currentColor;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars span { top: 5px; }
.nav-toggle__bars::after { top: 10px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-5px) rotate(-45deg); }

/* ---------- Footer ---------- */
.site-footer { padding-block: var(--section) var(--s-7); }
.footer__grid { row-gap: var(--s-8); }
.footer__brand { grid-column: 1 / span 5; }
.footer__brand img { width: 56px; height: auto; }
.footer__statement { margin-top: var(--s-6); color: var(--text-2); max-width: 34ch; font-size: var(--fs-lead); line-height: 1.4; }
.footer__col { grid-column: span 2; }
.footer__col--wide { grid-column: span 3; }
.footer__col h2 { font-family: var(--font-mono); font-size: var(--fs-label); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); font-stretch: 100%; margin-bottom: var(--s-5); }
.footer__col li + li { margin-top: 0.6rem; }
.footer__col a { text-decoration: none; transition: color var(--dur) var(--ease); }
.footer__col a:hover { color: var(--volt); }
.footer__col address { line-height: 1.9; margin-bottom: var(--s-5); color: var(--text-2); }
.footer__col address a { color: var(--text); }
.footer__mark { grid-column: 1 / -1; }
.footer__mark img { width: 100%; height: auto; }
.footer__legal {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3) var(--s-6);
  color: var(--text-2); font-size: var(--fs-small);
}
.footer__legal a { color: var(--text-2); }
.footer__legal a:hover { color: var(--text); }
