/* 4 Future LLC — shared styles */

:root {
  --bg: #faf9f7;
  --bg-raised: #ffffff;
  --ink: #1a1a1a;
  --ink-muted: #5b5b5b;
  --ink-faint: #8a8783;
  --accent: #1b3a6b;
  --accent-soft: #eef1f6;
  --rule: #e4e1dc;

  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --measure: 62ch;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --section-gap: clamp(4.5rem, 11vw, 9rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.wrap {
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: var(--gutter);
  top: 1rem;
  z-index: 10;
  background: var(--accent);
  color: #fff;
  padding: .5rem 1rem;
  border-radius: 4px;
}

:where(a, button):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- header ---------- */

.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 76px;
  flex-wrap: wrap;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark span { color: var(--accent); }

.site-nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
  font-size: .875rem;
  letter-spacing: .01em;
}
.site-nav a {
  text-decoration: none;
  color: var(--ink-muted);
  padding-block: .25rem;
  border-bottom: 1px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

/* ---------- typography ---------- */

.eyebrow {
  font-size: .75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.08;
}

h1 { font-size: clamp(2.75rem, 7.5vw, 5rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); line-height: 1.15; }
h3 { font-size: 1.5rem; line-height: 1.2; }

.lede {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  color: var(--ink-muted);
  max-width: var(--measure);
}

.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { margin-top: 3rem; }
.prose h3 { margin-top: 2.25rem; font-size: 1.25rem; }
.prose ul { padding-left: 1.25rem; }
.prose li + li { margin-top: .4rem; }
.prose a { color: var(--accent); text-underline-offset: .18em; }

/* ---------- sections ---------- */

.section { padding-block: var(--section-gap); }
.section + .section { border-top: 1px solid var(--rule); }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  flex-wrap: wrap;
}
.section-head .eyebrow { flex: none; }

/* ---------- hero ---------- */

.hero {
  padding-block: clamp(4rem, 12vw, 8.5rem) clamp(3.5rem, 9vw, 6.5rem);
}
.hero h1 { margin-block: 1.5rem 1.75rem; max-width: 16ch; }
.hero .lede { max-width: 52ch; }

.hero-meta {
  margin-top: 2.75rem;
  display: flex;
  gap: clamp(1.5rem, 5vw, 4rem);
  flex-wrap: wrap;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
}
.hero-meta div { min-width: 8rem; }
.hero-meta dt {
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.hero-meta dd {
  margin: .35rem 0 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
}

/* ---------- ventures carousel ---------- */

.carousel { position: relative; }

.carousel-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 2px;
}
.carousel-track::-webkit-scrollbar { display: none; }

@media (prefers-reduced-motion: reduce) {
  .carousel-track { scroll-behavior: auto; }
}

.venture {
  flex: 0 0 clamp(15.5rem, 30%, 20rem);
  scroll-snap-align: start;
  background: var(--bg-raised);
  border: 1px solid var(--rule);
  padding: clamp(1.5rem, 2.4vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: .85rem;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease;
}
.venture:hover {
  background: var(--accent-soft);
  border-color: #cfd6e2;
}

.venture-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  margin-bottom: .35rem;
  display: block;
}

.venture .venture-kind {
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.venture h3 { color: var(--ink); }
.venture p {
  color: var(--ink-muted);
  font-size: .9375rem;
  flex: 1;
}
.venture .go {
  font-size: .875rem;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.venture:hover .go .arrow { transform: translateX(3px); }
.venture .arrow { transition: transform .18s ease; }

/* controls */

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.75rem;
}
.carousel-controls[hidden] { display: none; }

.carousel-dots { display: flex; gap: .5rem; }
.carousel-dots button {
  width: 2rem;
  height: 2px;
  padding: 0;
  border: 0;
  background: var(--rule);
  cursor: pointer;
  transition: background .2s ease;
}
.carousel-dots button:hover { background: var(--ink-faint); }
.carousel-dots button[aria-selected="true"] { background: var(--accent); }
.carousel-dots button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.carousel-arrows { display: flex; gap: .5rem; }
.carousel-arrow {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  padding: 0;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.carousel-arrow svg { width: 1.05rem; height: 1.05rem; }
.carousel-arrow:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.carousel-arrow:disabled { opacity: .35; cursor: default; }
.carousel-arrow:disabled:hover { background: transparent; border-color: var(--rule); color: var(--ink); }

@media (max-width: 640px) {
  .venture { flex-basis: min(82%, 20rem); }
}

/* ---------- principles ---------- */

.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  counter-reset: principle;
}
.principle { border-top: 2px solid var(--accent); padding-top: 1.25rem; }
.principle::before {
  counter-increment: principle;
  content: "0" counter(principle);
  display: block;
  font-size: .75rem;
  letter-spacing: .14em;
  color: var(--ink-faint);
  margin-bottom: .75rem;
}
.principle h3 { margin-bottom: .6rem; font-size: 1.25rem; }
.principle p { color: var(--ink-muted); font-size: .9375rem; }

/* ---------- contact ---------- */

.contact-address {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5.5vw, 3.25rem);
  line-height: 1.15;
  color: var(--accent);
  margin-block: 1.25rem .5rem;
  word-break: break-word;
}
.contact-note { color: var(--ink-muted); max-width: 46ch; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--rule);
  padding-block: 2.5rem 3rem;
  font-size: .8125rem;
  color: var(--ink-faint);
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  flex-wrap: wrap;
}
.site-footer nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- inner page header ---------- */

.page-head { padding-block: clamp(3.5rem, 9vw, 6rem) clamp(2rem, 4vw, 3rem); }
.page-head h1 { font-size: clamp(2.25rem, 6vw, 3.75rem); margin-top: 1rem; }
.page-body { padding-bottom: var(--section-gap); }
.updated { font-size: .8125rem; color: var(--ink-faint); margin-top: 1rem; }

/* ---------- 404 ---------- */

.center-screen {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* A .prose block that is also the page container: keep the 1080px wrap centred,
   but cap each child at the reading measure so text stays flush left. */
.wrap.prose { max-width: 1080px; }
.wrap.prose > * { max-width: var(--measure); }
