/* DCAF — Living Room Conversations
   dcaf.craiglambie.com
   CC0 — No rights reserved */

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

:root {
  --navy:   #1a3a5c;
  --rust:   #c2410c;
  --amber:  #fbbf24;
  --cream:  #fdf8f3;
  --soft:   #f0ebe4;
  --white:  #ffffff;
  --text:   #1c1917;
  --muted:  #57534e;
  --border: #e7e5e4;
  --r:      10px;
  --font:   -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ──────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 2rem;
  height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.nav-logo {
  font-weight: 800; font-size: 1.1rem; color: var(--navy);
  text-decoration: none; letter-spacing: -0.02em; flex-shrink: 0;
}
.nav-logo span { color: var(--rust); }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 0.9rem;
  font-weight: 500; white-space: nowrap; transition: color 0.15s;
}
.nav-links a:hover { color: var(--navy); }
.nav-cta { background: var(--rust); color: var(--white) !important; padding: 0.5rem 1.25rem; border-radius: 6px; }
.nav-cta:hover { background: #9a3309 !important; }

.nav-hamburger {
  display: none; cursor: pointer; font-size: 1.4rem; color: var(--navy);
  background: none; border: none; padding: 0.25rem;
}

/* ── LAYOUT ───────────────────────────────────────── */
.container        { max-width: 1100px; margin: 0 auto; }
.container-narrow { max-width: 740px;  margin: 0 auto; }
section { padding: 5rem 2rem; }

/* ── HERO ─────────────────────────────────────────── */
.hero {
  background: var(--navy); color: var(--white);
  padding: 7rem 2rem 6rem; text-align: center;
}
.hero-tag {
  display: inline-block;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.35rem 1rem; border-radius: 100px; margin-bottom: 2rem;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.75rem); font-weight: 800;
  line-height: 1.1; letter-spacing: -0.03em;
  max-width: 820px; margin: 0 auto 1.5rem;
}
.hero h1 em { color: var(--amber); font-style: normal; }
.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem); color: rgba(255,255,255,0.78);
  max-width: 580px; margin: 0 auto 2.5rem; line-height: 1.75;
}

/* ── BUTTONS ──────────────────────────────────────── */
.btn-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.875rem 2rem; border-radius: 8px; font-weight: 600;
  font-size: 1rem; text-decoration: none; transition: all 0.15s;
  cursor: pointer; border: none; line-height: 1;
}
.btn-primary  { background: var(--rust); color: var(--white); }
.btn-primary:hover  { background: #9a3309; transform: translateY(-1px); }
.btn-outline  { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.4); }
.btn-outline:hover  { border-color: rgba(255,255,255,0.8); background: rgba(255,255,255,0.08); }
.btn-secondary { background: var(--soft); color: var(--navy); }
.btn-secondary:hover { background: var(--border); }
.btn-ghost { background: transparent; color: var(--navy); border: 2px solid var(--border); }
.btn-ghost:hover { border-color: var(--navy); }

/* ── TYPOGRAPHY ───────────────────────────────────── */
.label {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--rust); margin-bottom: 0.75rem; display: block;
}
h2 {
  font-size: clamp(1.75rem, 3vw, 2.4rem); font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.2; color: var(--navy);
}
h3 { font-size: 1.1rem; font-weight: 600; color: var(--navy); margin-bottom: 0.5rem; line-height: 1.35; }
h4 { font-size: 0.95rem; font-weight: 600; color: var(--navy); margin-bottom: 0.3rem; }
p  { color: var(--muted); line-height: 1.75; }
.lead { font-size: 1.1rem; color: var(--muted); line-height: 1.75; margin-top: 1rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }
.text-center { text-align: center; }
.divider { height: 1px; background: var(--border); margin: 3rem 0; }

/* ── PROBLEM SECTION ──────────────────────────────── */
.problem { background: var(--soft); }
.two-col {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: start; margin-top: 3rem;
}
.two-col-center { align-items: center; }
.stat-block {
  text-align: center; padding: 2rem; background: var(--white);
  border-radius: var(--r); box-shadow: 0 1px 6px rgba(0,0,0,0.06);
  margin-bottom: 1rem;
}
.stat-block .stat-num {
  font-size: 3.5rem; font-weight: 800; color: var(--rust);
  letter-spacing: -0.04em; line-height: 1; display: block; margin-bottom: 0.5rem;
}
.stat-block p { font-size: 0.9rem; max-width: 200px; margin: 0 auto; }

/* ── CALLOUT ──────────────────────────────────────── */
.callout { background: var(--soft); border-radius: var(--r); padding: 2rem; }
.callout-check {
  display: flex; gap: 0.75rem; align-items: center; margin-bottom: 0.65rem;
}
.callout-check-icon { font-size: 1.1rem; flex-shrink: 0; }
.callout-check span { color: var(--muted); font-size: 0.95rem; }

/* ── STEPS ────────────────────────────────────────── */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem;
}
.step { background: var(--soft); border-radius: var(--r); padding: 2rem 1.75rem; }
.step-number {
  width: 40px; height: 40px; background: var(--navy); color: var(--white);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem; margin-bottom: 1.25rem;
}
.step p { font-size: 0.95rem; margin-top: 0.4rem; }

/* ── TIMELINE ─────────────────────────────────────── */
.timeline { margin-top: 2.5rem; position: relative; }
.timeline::before {
  content: ''; position: absolute; left: 72px; top: 8px; bottom: 8px;
  width: 2px; background: var(--border);
}
.timeline-item {
  display: flex; gap: 1.5rem; align-items: flex-start; margin-bottom: 1.75rem;
}
.timeline-time {
  width: 72px; flex-shrink: 0; font-size: 0.8rem; font-weight: 700;
  color: var(--rust); padding-top: 0.15rem; text-align: right;
}
.timeline-dot {
  width: 14px; height: 14px; background: var(--white); border: 3px solid var(--rust);
  border-radius: 50%; flex-shrink: 0; margin-top: 0.15rem; position: relative; z-index: 1;
}
.timeline-content h4 { margin-bottom: 0.15rem; }
.timeline-content p  { font-size: 0.9rem; }

/* ── GROUND RULES ─────────────────────────────────── */
.rules-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin-top: 2rem; }
.rule {
  padding: 1rem 1.25rem; background: var(--white); border-radius: 8px;
  border-left: 3px solid var(--rust);
}
.rule strong { color: var(--navy); display: block; margin-bottom: 0.2rem; font-size: 0.88rem; }
.rule span   { color: var(--muted); font-size: 0.82rem; }

/* ── OPEN SOURCE BAND ─────────────────────────────── */
.open-source { background: var(--navy); color: var(--white); }
.open-source h2   { color: var(--white); }
.open-source p    { color: rgba(255,255,255,0.72); }
.open-source .lead{ color: rgba(255,255,255,0.72); }
.open-source .label { color: var(--amber); }

.os-features { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 2rem; }
.os-feature  { display: flex; gap: 1rem; align-items: flex-start; }
.os-icon {
  width: 38px; height: 38px; background: rgba(255,255,255,0.1);
  border-radius: 8px; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; font-size: 1rem;
}
.os-feature h4 { color: rgba(255,255,255,0.9); margin-bottom: 0.15rem; }
.os-feature p  { font-size: 0.88rem; color: rgba(255,255,255,0.55); }

.code-block {
  background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px; padding: 1.5rem;
  font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
  font-size: 0.85rem; color: rgba(255,255,255,0.85); line-height: 2;
}
.code-block .comment { color: rgba(255,255,255,0.35); }
.code-block .cmd     { color: var(--amber); }

/* ── DIRECTORY CARDS ──────────────────────────────── */
.directory-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem; margin: 2.5rem 0 2rem;
}
.person-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.5rem;
  transition: box-shadow 0.15s, transform 0.15s;
}
.person-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); transform: translateY(-2px); }
.person-avatar {
  width: 48px; height: 48px; border-radius: 50%; background: var(--navy);
  color: var(--white); display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem; margin-bottom: 1rem;
}
.person-role {
  font-size: 0.73rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--rust); margin-bottom: 0.2rem;
}
.person-name     { font-weight: 600; color: var(--navy); font-size: 1rem; }
.person-location { font-size: 0.85rem; color: var(--muted); margin-top: 0.4rem; }
.tags { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.75rem; }
.tag  {
  background: var(--soft); color: var(--muted); font-size: 0.73rem;
  padding: 0.25rem 0.6rem; border-radius: 100px; font-weight: 500;
}

/* ── RESOURCES GRID ───────────────────────────────── */
.resources-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem; margin-top: 2rem;
}
.resource-card {
  border: 1px solid var(--border); border-radius: var(--r); padding: 1.75rem;
  display: flex; flex-direction: column; gap: 0.5rem; transition: box-shadow 0.15s;
}
.resource-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.07); }
.resource-type {
  font-size: 0.73rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--rust);
}
.resource-card h3  { margin-bottom: 0; }
.resource-card p   { font-size: 0.9rem; flex-grow: 1; }
.resource-card .btn{ margin-top: 0.75rem; align-self: flex-start; }
.resource-coming   { opacity: 0.5; }

/* ── DIRECTORY FILTERS ────────────────────────────── */
.filters { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 2rem; }
.filter-btn {
  background: var(--white); border: 1px solid var(--border);
  color: var(--muted); font-size: 0.85rem; font-weight: 500;
  padding: 0.4rem 1rem; border-radius: 100px; cursor: pointer; transition: all 0.15s;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--navy); border-color: var(--navy); color: var(--white);
}

/* ── START-HERE PAGE ──────────────────────────────── */
.checklist { list-style: none; margin-top: 1.25rem; display: flex; flex-direction: column; gap: 0.75rem; }
.checklist li { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.95rem; color: var(--muted); }
.check-icon {
  width: 22px; height: 22px; background: var(--soft); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 0.8rem; color: var(--navy); margin-top: 0.1rem;
}

/* ── PAGE HERO ────────────────────────────────────── */
.page-hero { background: var(--cream); padding: 4.5rem 2rem; border-bottom: 1px solid var(--border); }
.page-hero h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem); font-weight: 800;
  letter-spacing: -0.02em; color: var(--navy); margin-top: 0.5rem;
}
.page-hero p { margin-top: 1rem; font-size: 1.05rem; max-width: 600px; }

/* ── FEATURE ROW ──────────────────────────────────── */
.feature-row {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.5rem 0; border-bottom: 1px solid var(--border);
}
.feature-row:first-child { padding-top: 0; }
.feature-row:last-child  { border-bottom: none; }
.feature-num {
  width: 32px; height: 32px; background: var(--soft); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; color: var(--navy); flex-shrink: 0; margin-top: 0.1rem;
}
.feature-row h4   { margin-bottom: 0.2rem; }
.feature-row p    { font-size: 0.9rem; }

/* ── CTA BAND ─────────────────────────────────────── */
.cta-band {
  background: var(--navy); color: var(--white); padding: 5rem 2rem; text-align: center;
}
.cta-band h2  { color: var(--white); }
.cta-band p   { color: rgba(255,255,255,0.72); margin-top: 1rem; font-size: 1.1rem; }
.cta-band .label { color: var(--amber); }

/* ── FOOTER ───────────────────────────────────────── */
footer { background: #111; color: rgba(255,255,255,0.55); padding: 4rem 2rem 2rem; }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-top {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem; margin-bottom: 3rem;
}
.footer-brand .logo { color: var(--white); display: block; margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.88rem; line-height: 1.65; max-width: 240px; }
.footer-col h4 { color: rgba(255,255,255,0.85); font-size: 0.85rem; font-weight: 600; margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a  { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 0.88rem; transition: color 0.15s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 2rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem; font-size: 0.85rem;
}
.cc-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6); padding: 0.3rem 0.75rem; border-radius: 6px;
  font-size: 0.8rem; text-decoration: none; font-weight: 500;
}
.cc-badge:hover { color: var(--white); }

/* ── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  section { padding: 3.5rem 1.5rem; }
  .hero   { padding: 5rem 1.5rem 4rem; }
  .page-hero { padding: 3rem 1.5rem; }

  .nav-links {
    display: none; flex-direction: column; gap: 0; list-style: none;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--border);
    padding: 1rem 2rem 1.5rem;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--border); }
  .nav-links a { display: block; padding: 0.75rem 0; font-size: 1rem; color: var(--text); }
  .nav-cta { border-radius: 0; padding: 0.75rem 0; background: none !important; color: var(--rust) !important; }
  .nav-hamburger { display: block; }

  .two-col   { grid-template-columns: 1fr; gap: 2.5rem; }
  .steps     { grid-template-columns: 1fr; }
  .rules-grid{ grid-template-columns: 1fr; }

  .timeline::before { display: none; }
  .timeline-time { display: none; }

  .footer-top    { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
