/* Brookland Ventures — house theme
   Palette: soft stone paper + brand gold, with terracotta as a warm action accent on charcoal
   Type: Fraunces (display serif) + Inter (sans) */

:root {
  --bg:        #F1EEE8;   /* soft stone paper */
  --bg-2:      #E8E4DB;   /* deeper stone for banding */
  --surface:   #FCFBF8;   /* cards */
  --surface-2: #FFFFFF;
  --ink:       #242220;   /* dark charcoal grey */
  --ink-soft:  #45423D;
  --muted:     #6E6A60;
  --line:      #E2DDD1;   /* hairline borders */
  --line-2:    #D6D0C2;
  --accent:    #C5A14B;   /* gold — action accent (fills, borders, button bg) */
  --accent-d:  #806320;   /* deep gold — links / labels / text (readable on light) */
  --accent-sf: #F1E7C9;   /* gold tint */
  --gold:      #C5A14B;   /* brand gold — logo & labels */
  --gold-d:    #806320;   /* deep gold (labels on light) */
  --gold-l:    #DDC177;   /* gold on dark footer */
  --ok:        #2E9E7A;
  --shadow:    0 1px 2px rgba(27,26,23,.05), 0 8px 28px rgba(27,26,23,.06);
  --radius:    16px;
  --radius-sm: 10px;
  --maxw:      1140px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.12; color: var(--ink); margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 460; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1rem; color: var(--ink-soft); }
a { color: var(--accent-d); text-decoration: none; }
a:hover { color: var(--ink); }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow { font-family: var(--sans); font-weight: 600; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-d); margin: 0 0 1rem; }
.eyebrow::before { content: ""; display: inline-block; width: 22px; height: 1.5px; background: var(--gold); vertical-align: middle; margin-right: 10px; margin-bottom: 3px; }
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 60ch; }
.muted { color: var(--muted); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(241,238,232,.82);
  backdrop-filter: saturate(140%) blur(10px);
  border-top: 3px solid var(--gold);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 1.22rem; color: var(--ink); font-weight: 500; }
.brand:hover { color: var(--ink); }
.brand .mark { width: 30px; height: 30px; border-radius: 8px; background: var(--gold); color: var(--ink); display: grid; place-items: center; font-family: var(--serif); font-size: .95rem; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { color: var(--ink-soft); font-size: .95rem; font-weight: 500; }
.nav-links a:hover { color: var(--accent-d); }
.nav-cta { background: var(--ink); color: #fff !important; padding: 9px 18px; border-radius: 999px; font-size: .9rem; }
.nav-cta:hover { background: var(--accent-d); }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 9vw, 120px) 0 clamp(40px, 6vw, 72px); }
.hero h1 { max-width: 16ch; }
.hero .lede { margin-top: 1.2rem; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 2rem; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 550; font-size: .98rem; cursor: pointer; border: 1px solid transparent; transition: .18s ease; }
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: var(--accent-d); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-d); }

/* ---------- Sections ---------- */
section { padding: clamp(48px, 7vw, 88px) 0; }
.section-band { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 64ch; margin-bottom: 2.6rem; }

/* ---------- Stat strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.stat .num { font-family: var(--serif); font-size: 2.3rem; color: var(--accent-d); line-height: 1; }
.stat .lbl { font-size: .9rem; color: var(--muted); margin-top: .5rem; }

/* ---------- Feature grid ---------- */
.grid { display: grid; gap: 20px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: .18s ease;
}
.card.link:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); }
.card h3 { margin-bottom: .35rem; }
.card .tag { display: inline-block; font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-d); background: var(--accent-sf); padding: 4px 10px; border-radius: 999px; margin-bottom: 14px; }
.card .more { font-weight: 600; font-size: .92rem; color: var(--accent-d); }

/* ---------- Charts ---------- */
.chart-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.chart-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.chart-box h3 { font-family: var(--sans); font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.chart-canvas { position: relative; width: 100%; }
.chart-half { height: 300px; }
.chart-tall { height: 420px; }
.legend-note { font-size: .85rem; color: var(--muted); margin-top: 14px; }

/* ---------- Approach list ---------- */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.ticks li { padding-left: 30px; position: relative; color: var(--ink-soft); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 14px; border-radius: 50%; background: var(--accent-sf); border: 2px solid var(--accent); }

/* ---------- Detail page ---------- */
.detail-hero { padding: clamp(48px, 8vw, 90px) 0 0; }
.crumb { font-size: .9rem; color: var(--muted); margin-bottom: 1.4rem; }
.crumb a { color: var(--muted); }
.meta-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin: 0 0 1.4rem; }
.pull { font-family: var(--serif); font-size: 1.5rem; line-height: 1.3; color: var(--ink); border-left: 3px solid var(--accent); padding: 6px 0 6px 22px; margin: 2rem 0; }
.detail-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 44px; align-items: start; }
.disclaimer { font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; margin-top: 12px; }

/* ---------- Legal ---------- */
.legal h3 { margin-top: 2rem; }
.legal { max-width: 72ch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #D8D4C9; padding: 64px 0 36px; }
.site-footer h4 { font-family: var(--serif); color: var(--gold-l); font-weight: 500; margin-bottom: .8rem; }
.site-footer p { color: #CBC6BB; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.site-footer a { color: #D8D4C9; }
.site-footer a:hover { color: var(--gold-l); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .95rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 44px; padding-top: 24px; font-size: .85rem; color: #9C988C; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-links { position: fixed; inset: 64px 0 auto 0; background: var(--bg); flex-direction: column; padding: 20px 24px 28px; gap: 18px; border-bottom: 1px solid var(--line); transform: translateY(-130%); transition: transform .25s ease; }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); cursor: pointer; }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content:""; display:block; width:18px; height:2px; background: var(--ink); position: relative; }
  .nav-toggle span::before { position:absolute; top:-6px; } .nav-toggle span::after { position:absolute; top:6px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cols-2, .cols-3, .chart-layout, .detail-grid, .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; }
}

/* ---------- Scroll reveal (added by reveal.js) ---------- */
.reveal { opacity: 0; transform: translateY(20px); will-change: opacity, transform;
  transition: opacity .7s cubic-bezier(.2,.65,.2,1), transform .7s cubic-bezier(.2,.65,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.in { opacity: 1 !important; transform: none !important; transition: none !important; }
}
