/* ============================================
   PublicWerx — Swiss editorial, electric blue
   Dark mode
   ============================================ */

:root {
  --blue: #4488ff;
  --blue-dim: rgba(68, 136, 255, 0.15);
  --bg: #0c0c0c;
  --bg-raised: #141414;
  --bg-card: #1a1a1a;
  --text: #d4d4d4;
  --text-bright: #f0f0f0;
  --text-muted: #888;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "SF Mono", "Fira Code", "Fira Mono", Menlo, Consolas, monospace;
  --max-width: 1120px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Typography */
h1, h2, h3 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-bright);
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text);
}

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

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--bg-card);
  padding: 0.15em 0.4em;
  border-radius: 3px;
  color: var(--text-bright);
}

ol {
  padding-left: 1.5rem;
}

ol li {
  margin-bottom: 0.75rem;
  color: var(--text);
}

strong {
  color: var(--text-bright);
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 12, 12, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-bright);
}

nav {
  display: flex;
  gap: 1.75rem;
}

nav a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

nav a:hover {
  color: var(--text-bright);
  text-decoration: none;
}

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

.hero h1 {
  margin-bottom: 1.5rem;
  max-width: 720px;
}

.subtitle {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 620px;
}

/* ---- Two-column layout ---- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}

/* ---- Problem ---- */
.problem {
  padding: 6rem 0;
  border-bottom: 1px solid var(--border);
}

/* ---- Why Now ---- */
.why-now {
  padding: 6rem 0;
  background: var(--bg-raised);
  border-bottom: 1px solid var(--border);
}

.why-now .section-intro {
  color: var(--text-muted);
}


/* ---- Constitution ---- */
.constitution {
  padding: 6rem 0;
  background: var(--bg-raised);
}

.section-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 3rem;
}

.tenets {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.tenet {
  padding: 2rem;
  background: var(--bg-card);
  border-radius: 6px;
  border: 1px solid var(--border);
}

.tenet-number {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
}

.tenet h3 {
  color: var(--text-bright);
}

.tenet p {
  font-size: 0.95rem;
}

/* ---- Zurich ---- */
.zurich {
  padding: 6rem 0;
  border-bottom: 1px solid var(--border);
}

.zurich .two-col {
  margin-bottom: 3rem;
}

.zurich-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.pillar {
  padding: 2rem;
  border-top: 3px solid var(--blue);
}

.pillar h3 {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  color: var(--text-bright);
}

.pillar p {
  font-size: 0.95rem;
}

.zurich-closing {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-bright);
  max-width: 600px;
}

/* ---- Payments ---- */
.payments {
  padding: 6rem 0;
  background: var(--bg-raised);
}

.payments .section-intro {
  color: var(--text-muted);
}

.payment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.payment-item {
  padding: 1.75rem;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
}

.payment-item h3 {
  color: var(--blue);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.payment-item p {
  font-size: 0.95rem;
}

/* ---- Projects ---- */
.projects {
  padding: 6rem 0;
  border-bottom: 1px solid var(--border);
}

.project-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.project {
  padding: 2rem;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
}

.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.project-header h3 {
  margin-bottom: 0;
}

.project-status {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2em 0.6em;
  border-radius: 3px;
}

.status-live {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

.status-dev {
  background: var(--blue-dim);
  color: var(--blue);
}

.project p {
  font-size: 0.95rem;
}

.project-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
}

/* ---- Adopt ---- */
.adopt {
  padding: 6rem 0;
  background: var(--blue);
  color: #fff;
}

.adopt h2 {
  color: #fff;
}

.adopt ol li {
  color: rgba(255, 255, 255, 0.85);
}

.adopt ol li strong {
  color: #fff;
}

.adopt a {
  color: #fff;
  text-decoration: underline;
}

.adopt code {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* ---- Footer ---- */
.site-footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 3rem;
}

.footer-content .logo {
  margin-bottom: 0.5rem;
}

.footer-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--text-bright);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .container {
    padding: 0 1.25rem;
  }

  .hero {
    padding: 5rem 0 4rem;
  }

  .problem,
  .why-now,
  .constitution,
  .zurich,
  .payments,
  .projects,
  .adopt {
    padding: 4rem 0;
  }

  .two-col {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }


  .tenets {
    grid-template-columns: 1fr;
  }

  .zurich-pillars {
    grid-template-columns: 1fr;
  }

  .payment-grid {
    grid-template-columns: 1fr;
  }

  .project-list {
    grid-template-columns: 1fr;
  }

  nav {
    display: none;
  }

  .footer-content {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
  }
}
