:root {
  --black: #1a1a1a;
  --gray: #666;
  --light: #999;
  --border: #eee;
  --bg: #fff;
  --blue: #0040FF;
  --section-gap: 56px;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: "SF Mono", "Fira Code", "Fira Mono", Menlo, Monaco, "Courier New", monospace;
  font-size: 14px;
  line-height: 1.7;
  color: var(--black);
  background: var(--bg);
}

/* Layout */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-wide {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography */
h1, h2, h3 {
  font-weight: 500;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 28px;
  line-height: 1.3;
}

h2 {
  font-size: 20px;
  margin-bottom: 16px;
}

h3 {
  font-size: 16px;
  margin-bottom: 12px;
}

p {
  margin-bottom: 16px;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--blue);
}

small, .small {
  font-size: 12px;
  color: var(--gray);
}

.muted {
  color: var(--gray);
}

.accent {
  color: var(--blue);
}

/* Header */
header {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  color: var(--black);
}

.logo:hover {
  color: var(--black);
}

.logo-icon {
  width: 24px;
  height: 24px;
  display: block;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

.header-nav a {
  font-size: 13px;
  text-decoration: none;
  color: var(--gray);
}

.header-nav a:hover {
  color: var(--black);
}

.lang-switch {
  display: flex;
  gap: 4px;
  font-size: 13px;
}

.lang-switch a {
  text-decoration: none;
  color: var(--gray);
  padding: 4px 6px;
  border-radius: 2px;
}

.lang-switch a:hover,
.lang-switch a.active {
  color: var(--black);
  text-decoration: underline;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue);
  color: var(--bg);
  padding: 8px 16px;
  font-size: 13px;
  text-decoration: none;
  font-weight: 400;
  letter-spacing: 0.02em;
  border-radius: 2px;
}

.header-cta:hover {
  background: #0033cc;
  color: var(--bg);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-right: -8px;
}

.menu-toggle svg {
  display: block;
  width: 20px;
  height: 20px;
}

/* Mobile nav (tablet) */
@media (max-width: 768px) {
  .header-right {
    gap: 16px;
  }
  
  .header-nav {
    gap: 14px;
  }
  
  .header-nav a {
    font-size: 12px;
  }
  
  .header-cta {
    padding: 8px 12px;
    font-size: 12px;
  }
  
  .lang-switch {
    font-size: 12px;
  }

  .btn-secondary {
    margin-left: 8px;
    padding: 10px 16px;
  }
}

/* Mobile nav (phone) */
@media (max-width: 600px) {
  .menu-toggle {
    display: block;
  }

  .header-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 24px;
    gap: 12px;
  }

  .header-nav.open {
    display: flex;
  }

  .header-nav a {
    font-size: 14px;
    padding: 8px 0;
  }

  header {
    position: relative;
  }

  header .container-wide {
    flex-wrap: nowrap;
  }

  .header-right {
    gap: 10px;
  }

  .header-cta {
    padding: 8px 12px;
    font-size: 12px;
  }

  /* Larger tap targets for language switch */
  .lang-switch {
    font-size: 13px;
    gap: 4px;
  }

  .lang-switch a {
    padding: 6px 8px;
    min-width: 32px;
    text-align: center;
  }
}

/* Footer */
footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  margin-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}

footer a {
  color: var(--gray);
  font-size: 13px;
}

footer a:hover {
  color: var(--black);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 500;
  color: var(--black);
  margin-bottom: 12px;
}

.footer-brand .logo-icon {
  width: 20px;
  height: 20px;
}

.footer-tagline {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 16px;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-copy {
  font-size: 12px;
  color: var(--light);
  margin-top: 40px;
  padding-top: 24px;
}

/* Page sections – spacing only, no dividers */
.hero {
  padding: 56px 0 40px;
}

.hero h1 {
  margin-bottom: 12px;
}

.hero p {
  color: var(--gray);
  max-width: 480px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-buttons .btn-secondary {
  margin-left: 0;
}

section {
  padding: var(--section-gap) 0;
}

.hero + section {
  padding-top: 24px;
}

/* Cards / Grid */
.grid {
  display: grid;
  gap: 24px;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.card {
  padding: 24px;
  border: 1px solid var(--border);
  background: var(--bg);
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  font-size: 13px;
  color: var(--gray);
}

/* Stats */
.stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 32px;
  font-weight: 500;
  color: var(--blue);
}

.stat-label {
  font-size: 12px;
  color: var(--gray);
  margin-top: 4px;
}

/* Buttons - minimal mono style */
.btn {
  display: inline-block;
  padding: 10px 20px;
  font-size: 13px;
  font-family: inherit;
  text-decoration: none;
  background: var(--blue);
  color: var(--bg);
  border: none;
  cursor: pointer;
  letter-spacing: 0.02em;
}

.btn-secondary {
  display: inline-block;
  padding: 10px 20px;
  font-size: 13px;
  font-family: inherit;
  text-decoration: none;
  background: transparent;
  color: var(--dark);
  border: 1px solid var(--border);
  cursor: pointer;
  letter-spacing: 0.02em;
  margin-left: 12px;
}

.btn-secondary:hover {
  border-color: var(--dark);
}

.home-hero-img {
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  object-position: center 70%;
  border-radius: 4px;
  margin-bottom: var(--section-gap);
}

.btn:hover {
  background: #0033cc;
  color: var(--bg);
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 1px solid var(--blue);
}

.btn-outline:hover {
  background: var(--blue);
  color: var(--bg);
}

/* Story / About page */
.story-section {
  padding: var(--section-gap) 0;
}

.story-section p {
  max-width: 560px;
}

.about-hero-img {
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  object-position: center 70%;
  border-radius: 4px;
  margin-bottom: var(--section-gap);
}

.section-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 24px;
}

/* Quote */
blockquote {
  padding: 32px 0;
  margin: var(--section-gap) 0;
}

blockquote p {
  font-size: 18px;
  font-style: italic;
}

blockquote cite {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  color: var(--gray);
  font-style: normal;
}

/* Donate form */
.donate-options {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.donate-option {
  padding: 10px 20px;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 13px;
  background: var(--bg);
  cursor: pointer;
  letter-spacing: 0.02em;
}

.donate-option:hover,
.donate-option.active {
  border-color: var(--blue);
}

.donate-option.active {
  background: var(--blue);
  color: var(--bg);
}

/* Crypto addresses */
.crypto-address {
  padding: 16px;
  background: #f5f5f5;
  font-size: 12px;
  word-break: break-all;
  margin-bottom: 12px;
}

.crypto-address strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}

/* Blog / post cards – minimal list, no “Read more” needed */
.story-card {
  padding: 24px 0;
}

.story-card + .story-card {
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.story-card h3 {
  margin-bottom: 6px;
  font-size: 17px;
}

.story-card .meta {
  font-size: 12px;
  color: var(--gray);
  margin-bottom: 10px;
}

.story-card p {
  margin-bottom: 0;
  font-size: 14px;
  color: var(--gray);
  line-height: 1.6;
}

.story-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.story-card-link:hover {
  color: inherit;
}

.story-card-link:hover h3 {
  color: var(--blue);
}

.story-card-read {
  font-size: 13px;
  margin-top: 10px;
  margin-bottom: 0;
  color: var(--gray);
}

.story-card-link:hover .story-card-read {
  color: var(--blue);
}

/* Standalone story page (mini-blog post) */
.story-article {
  padding: 32px 0 64px;
}

.story-back {
  margin-bottom: 32px;
  font-size: 13px;
}

.story-back a {
  text-decoration: none;
  color: var(--gray);
}

.story-back a:hover {
  color: var(--black);
}

.story-article-header {
  margin-bottom: 32px;
}

.story-article-header .meta {
  font-size: 12px;
  color: var(--gray);
  margin-top: 8px;
  margin-bottom: 0;
}

.story-article-body {
  max-width: 560px;
}

.story-article-body p {
  margin-bottom: 20px;
}

.story-article-footer {
  margin-top: 40px;
  padding-top: 20px;
}

.story-article-footer p {
  margin-bottom: 0;
}

/* Reports list */
.reports-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reports-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Program cards */
.program-card {
  padding: 32px 0;
}

.program-card + .program-card {
  margin-top: 8px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.program-card h3 {
  font-size: 17px;
  margin-bottom: 12px;
}

.program-card p {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 12px;
}

.program-meta {
  font-size: 12px;
  color: var(--light);
  margin-top: 12px;
}

/* 404 */
.error-page {
  padding: 120px 0;
  text-align: center;
}

.error-code {
  font-size: 80px;
  font-weight: 500;
  color: var(--light);
  margin-bottom: 16px;
}

/* Utilities */
.text-center {
  text-align: center;
}

.mt-24 {
  margin-top: 24px;
}

.mt-48 {
  margin-top: 48px;
}

.mb-24 {
  margin-bottom: 24px;
}

.mb-48 {
  margin-bottom: 48px;
}

/* Placeholder styling */
.placeholder {
  background: #fffde7;
  padding: 0 4px;
}

/* Image placeholders */
.img-placeholder {
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.img-placeholder--16x9 {
  aspect-ratio: 16 / 9;
}

.img-placeholder--4x3 {
  aspect-ratio: 4 / 3;
}

.img-placeholder--1x1 {
  aspect-ratio: 1 / 1;
}

.img-placeholder--hero {
  aspect-ratio: 21 / 9;
  margin-bottom: 24px;
}

/* Team grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.team-member {
  text-align: center;
}

.team-member .img-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  margin-bottom: 12px;
}

.team-member h4 {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}

.team-member p {
  font-size: 12px;
  color: var(--gray);
  margin-bottom: 0;
}

/* Blog card with image */
.story-card-img {
  margin-bottom: 12px;
}

/* Program card with image */
.program-card-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-bottom: 16px;
  border-radius: 4px;
}

/* Card image (homepage) */
.card-img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: 16px;
  border-radius: 4px;
}

/* Responsive - tablet */
@media (max-width: 768px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .stats {
    flex-wrap: wrap;
    gap: 24px 40px;
  }

  .stat-number {
    font-size: 28px;
  }

  .stat-label {
    font-size: 12px;
  }
}

/* Responsive - mobile */
@media (max-width: 640px) {
  .container,
  .container-wide {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Hero & typography */
  .hero {
    padding: 32px 0 24px;
  }

  .hero h1 {
    margin-bottom: 12px;
  }

  .hero p {
    font-size: 13px;
  }

  h1 {
    font-size: 22px;
    line-height: 1.3;
  }

  h2 {
    font-size: 18px;
    margin-bottom: 12px;
  }

  h3 {
    font-size: 15px;
  }

  section {
    padding: 28px 0;
  }

  /* Hero buttons - keep inline on mobile */
  .hero-buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
  }

  .hero-buttons .btn,
  .hero-buttons .btn-secondary {
    display: inline-block;
    text-align: center;
    width: auto;
    padding: 10px 16px;
    font-size: 12px;
  }

  .hero-buttons .btn-secondary {
    margin-left: 0;
  }

  /* Buttons */
  .btn {
    display: inline-block;
    text-align: center;
    padding: 12px 20px;
  }

  .btn-secondary {
    display: inline-block;
    text-align: center;
    padding: 12px 20px;
    margin-left: 8px;
    margin-top: 0;
  }

  /* Button + link spacing - override inline styles */
  .btn + .muted,
  .btn + span,
  p > .btn + span {
    display: block;
    margin-top: 16px !important;
    margin-left: 0 !important;
  }

  /* CTA sections need more breathing room */
  section p:last-child {
    line-height: 1.8;
  }

  /* Stats - keep readable on mobile */
  .stats {
    gap: 20px 32px;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .stat {
    flex: 0 0 auto;
    min-width: 90px;
  }

  .stat-number {
    font-size: 26px;
  }

  .stat-label {
    font-size: 11px;
  }

  .mb-48 {
    margin-bottom: 28px;
  }

  .mt-48 {
    margin-top: 28px;
  }

  .mt-24 {
    margin-top: 16px;
  }

  /* Cards grid */
  .grid-3 {
    gap: 24px;
  }

  .card {
    padding: 16px;
  }

  .card-img {
    margin-bottom: 12px;
  }

  /* Story cards */
  .story-card {
    padding: 16px 0;
  }

  .story-card h3 {
    margin-bottom: 6px;
  }

  .story-card .meta {
    margin-bottom: 10px;
  }

  /* Standalone story article */
  .story-article {
    padding: 24px 0 48px;
  }

  .story-back {
    margin-bottom: 24px;
    font-size: 12px;
  }

  .story-article-header {
    margin-bottom: 24px;
  }

  .story-article-body p {
    margin-bottom: 16px;
  }

  .story-article-footer {
    margin-top: 32px;
    padding-top: 20px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  footer {
    padding: 28px 0;
    margin-top: 40px;
  }

  .footer-brand {
    margin-bottom: 8px;
  }

  .footer-tagline {
    margin-bottom: 12px;
  }

  .footer-social {
    margin-bottom: 12px;
  }

  .footer-links {
    gap: 8px;
  }

  .footer-links a {
    padding: 4px 0;
    display: inline-block;
  }

  .footer-social a {
    padding: 4px 0;
  }

  /* Program cards */
  .program-card {
    padding: 28px 0;
  }

  .program-card + .program-card {
    margin-top: 8px;
    padding-top: 36px;
  }

  .program-card h3 {
    font-size: 16px;
  }

  .program-meta {
    font-size: 11px;
  }

  /* Donate / forms */
  .crypto-address {
    word-break: break-word;
    font-size: 12px;
    padding: 16px;
    line-height: 1.8;
  }

  .crypto-address strong {
    font-size: 12px;
    margin-bottom: 10px;
  }

  /* Reports links */
  .reports-list a {
    padding: 8px 0;
    display: block;
  }

  /* Images */
  .home-hero-img,
  .about-hero-img {
    aspect-ratio: 16 / 9;
  }

  .section-img {
    margin-bottom: 16px;
  }

  /* 404 */
  .error-code {
    font-size: 48px;
  }

  .error-page {
    padding: 60px 0;
  }
}
