/* CHC Ventures LLC. Hand written stylesheet, no build step, no framework.
   Ported from the Google AI Studio design (Tailwind v4 utility classes) per
   decision D4, 2026-08-22. Edit this file directly. It is the file served. */

/* ---------- Tokens ---------- */
:root {
  --navy: #1B263B;
  --slate: #415A77;
  --accent: #3A86FF;
  --light: #F8FAFC;
  --surface: #FFFFFF;

  --slate-05: rgba(65, 90, 119, 0.05);
  --slate-10: rgba(65, 90, 119, 0.10);
  --slate-15: rgba(65, 90, 119, 0.15);
  --slate-50: rgba(65, 90, 119, 0.50);
  --slate-80: rgba(65, 90, 119, 0.80);
  --accent-20: rgba(58, 134, 255, 0.20);

  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --wrap-wide: 72rem;
  --wrap-prose: 70ch;
  --wrap-mid: 48rem;
  --pad-x: 1.5rem;
}

@media (min-width: 768px) {
  :root { --pad-x: 3rem; }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* Do NOT put scroll-behavior: smooth on html. Chrome cancels the fragment scroll
   when the webfont stylesheet lands mid animation, silently breaking #anchor links.
   scroll-margin-top keeps anchor targets clear of the 5rem sticky header. */
[id] { scroll-margin-top: 6rem; }
body, h1, h2, h3, p, figure, blockquote, ul, ol { margin: 0; padding: 0; }
img { max-width: 100%; display: block; }

body {
  font-family: var(--font-body);
  background-color: var(--surface);
  color: var(--navy);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

::selection { background: var(--accent-20); color: var(--navy); }

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

a { color: inherit; }

/* ---------- Layout helpers ---------- */
.wrap      { max-width: var(--wrap-wide);  margin-inline: auto; padding-inline: var(--pad-x); }
.wrap-prose{ max-width: var(--wrap-prose); margin-inline: auto; }
.wrap-mid  { max-width: var(--wrap-mid);   margin-inline: auto; }

.section { padding-block: 6rem; padding-inline: var(--pad-x); width: 100%; }
.section--light   { background: var(--light);   border-top: 1px solid var(--slate-10); }
.section--surface { background: var(--surface); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--slate-10);
}

.site-header .wrap {
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  text-decoration: none;
  padding: 0 0.5rem;
  margin-left: -0.5rem;
  transition: color 0.2s ease;
}
.brand:hover { color: var(--accent); }

.site-nav { display: flex; align-items: center; gap: 0.5rem; }

@media (min-width: 768px) { .site-nav { gap: 1rem; } }

.site-nav a {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--slate);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.site-nav a:hover { color: var(--navy); background: var(--slate-05); }
.site-nav a[aria-current="page"] { color: var(--navy); background: var(--slate-05); }

/* ---------- Hero ---------- */
.hero {
  background: var(--navy);
  color: #fff;
  padding-block: 8rem;
  padding-inline: var(--pad-x);
  width: 100%;
  display: flex;
  justify-content: center;
  text-align: center;
}

.hero > div { max-width: 56rem; }

.hero h1 {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  color: #fff;
  margin-bottom: 2rem;
}

.hero p {
  font-size: clamp(1.125rem, 2.4vw, 1.5rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
  max-width: 42rem;
  margin-inline: auto;
  line-height: 1.65;
}

/* ---------- Type scale ---------- */
.h-xl { font-size: clamp(2.25rem, 5vw, 3rem); }
.h-lg { font-size: clamp(1.875rem, 4vw, 2.25rem); }
.h-md { font-size: 1.5rem; }

.lede {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  color: var(--slate);
  line-height: 1.7;
}

.body-text {
  font-size: 1.125rem;
  color: var(--slate);
  line-height: 1.75;
}

.eyebrow { color: var(--slate-50); font-weight: 500; margin-right: 0.5rem; }

/* ---------- Stacks ---------- */
.stack-sm  > * + * { margin-top: 0.75rem; }
.stack-md  > * + * { margin-top: 1.5rem; }
.stack-lg  > * + * { margin-top: 4rem; }
.stack-xl  > * + * { margin-top: 5rem; }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 2rem;
  text-align: left;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--slate-15);
  border-radius: 1rem;
  box-shadow: 0 1px 2px rgba(27, 38, 59, 0.05);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

@media (min-width: 768px) { .card { padding: 2.5rem; } }

.card:hover {
  border-color: var(--accent);
  box-shadow: 0 10px 24px rgba(27, 38, 59, 0.10);
  transform: translateY(-4px);
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}
.card:hover h3 { color: var(--accent); }

.card p { color: var(--slate); flex-grow: 1; }

/* ---------- Venture list ---------- */
.venture + .venture {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--slate-10);
}

.venture h3 { font-size: 1.875rem; margin-bottom: 1rem; }

.status {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-80);
}

.stack-sm > .cta { margin-top: 1.75rem; }

/* ---------- Pull quote ---------- */
.pullquote {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--navy);
  border-left: 2px solid var(--accent);
  padding: 0.25rem 0 0.25rem 1.5rem;
}

/* ---------- Button ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  background: var(--navy);
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  border-radius: 999px;
  transition: background-color 0.3s ease, transform 0.1s ease;
}
.btn--sm { padding: 0.8125rem 2rem; font-size: 0.9375rem; }
.btn:hover { background: var(--accent); }
.btn:active { transform: scale(0.96); }

/* ---------- Rules ---------- */
.rule { height: 1px; width: 100%; background: var(--slate-10); border: 0; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: auto;
  background: var(--surface);
  border-top: 1px solid var(--slate-10);
  padding: 3rem var(--pad-x);
  text-align: center;
}

.site-footer p {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-80);
  max-width: 48rem;
  margin-inline: auto;
}

/* ---------- Focus ---------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Motion, progressive enhancement only ----------
   Content is fully visible with CSS off, JS off, and motion reduced.
   These animations only run on load. Nothing gates visibility on scroll. */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    animation: rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .reveal:nth-child(1) { animation-delay: 0.05s; }
  .reveal:nth-child(2) { animation-delay: 0.14s; }
  .reveal:nth-child(3) { animation-delay: 0.23s; }
  .reveal:nth-child(4) { animation-delay: 0.32s; }
  .reveal:nth-child(5) { animation-delay: 0.41s; }
  .reveal:nth-child(6) { animation-delay: 0.50s; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
