/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #fafaf8;
  --surface:   #f2f1ee;
  --border:    #e0ddd8;
  --text:      #1a1a18;
  --muted:     #6b6860;
  --accent:    #1a6b3a;
  --accent-lt: #e8f5ee;
  --danger:    #c0392b;

  --font-sans: system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "Fira Code", "Consolas", monospace;

  --max-w: 1000px;
  --gap:   2rem;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── Layout ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Header ── */
header {
  border-bottom: 1px solid var(--border);
  padding: 1.1rem 0;
  position: sticky;
  top: 0;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(8px);
  z-index: 10;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.logo .tld { color: var(--accent); }

nav { display: flex; gap: 1.75rem; }
nav a {
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
nav a:hover { color: var(--text); }

/* ── Hero ── */
.hero {
  padding: 6rem 0 5rem;
  border-bottom: 1px solid var(--border);
}

.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-lt);
  border: 1px solid #b6ddc5;
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  margin-bottom: 1.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  max-width: 18ch;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 52ch;
  margin-bottom: 2.25rem;
  line-height: 1.7;
}
.lead em {
  color: var(--danger);
  font-style: normal;
  font-weight: 600;
}

.cta {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  border-bottom: 2px solid var(--text);
  padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
}
.cta:hover { color: var(--accent); border-color: var(--accent); }

/* ── Pull quote ── */
.divider-section {
  padding: 4rem 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.pull-quote {
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  font-style: italic;
  color: var(--muted);
  max-width: 60ch;
  line-height: 1.6;
  padding-left: 1.5rem;
  border-left: 3px solid var(--border);
}

/* ── Principles ── */
.principles {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
}

.principles h2,
.pledge h2,
.closing h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 3rem;
  line-height: 1.2;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--gap);
}

article {
  padding: 1.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
article:hover {
  border-color: #c8c4bc;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

.number {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.75rem;
  letter-spacing: 0.04em;
}

article h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
  letter-spacing: -0.01em;
}

article p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ── Pledge ── */
.pledge {
  padding: 5rem 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.pledge-intro {
  color: var(--muted);
  margin-bottom: 2rem;
  font-size: 1rem;
}

.pledge-list {
  list-style: none;
  counter-reset: pledge;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  max-width: 62ch;
}

.pledge-list li {
  counter-increment: pledge;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.975rem;
  line-height: 1.65;
}

.pledge-list li span {
  flex: 1;
}

.pledge-list li::before {
  content: counter(pledge);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-lt);
  border-radius: 999px;
  width: 1.6rem;
  height: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.pledge-list strong { font-weight: 700; }

/* ── Closing ── */
.closing {
  padding: 5.5rem 0;
  border-bottom: 1px solid var(--border);
}

.closing h2 {
  margin-bottom: 1.25rem;
}

.closing p {
  font-size: 1rem;
  color: var(--muted);
  max-width: 50ch;
  line-height: 1.7;
}

/* ── Footer ── */
footer {
  padding: 2rem 0;
}

footer p {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .hero { padding: 4rem 0 3rem; }
  nav { gap: 1.25rem; }
  .grid { grid-template-columns: 1fr; }
}
