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

:root {
  --bg:           #faf7f2;
  --surface:      #f3ede3;
  --border:       #dfd6c8;
  --border-light: #ece5d8;
  --text-primary: #1e1a14;
  --text-body:    #5a4e43;
  --text-muted:   #b8ac9e;
  --text-dim:     #9e9186;
  --accent:       #7a5c3e;
}

html { font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ── Wrapper ───────────────────────────────────────── */
#wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Nav ───────────────────────────────────────────── */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 36px 0 28px;
  border-bottom: 1px solid var(--border);
  gap: 16px;
  flex-wrap: wrap;
}

.nav-brand {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-primary);
  text-decoration: none;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.nav-links a {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-body);
}

.nav-links a.nav-join {
  color: var(--accent);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.nav-links a.nav-join:hover,
.nav-links a.nav-join.active {
  color: var(--text-primary);
  border-color: var(--accent);
}

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

.hero-eyebrow {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.hero h1 {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  max-width: 580px;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

/* ── Intro text block ──────────────────────────────── */
.body-text {
  padding: 56px 0 0;
  max-width: 620px;
}

.body-text p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.9;
  color: var(--text-body);
  margin-bottom: 20px;
}

.body-text p:last-child {
  margin-bottom: 0;
}

/* ── Content sections ──────────────────────────────── */
.section {
  padding: 72px 0;
  border-bottom: 1px solid var(--border);
}

.section-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}

.section h2 {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 28px;
}

.section p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.9;
  color: var(--text-body);
  margin-bottom: 20px;
  max-width: 620px;
}

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

/* ── Feature grid ──────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 44px;
}

.feature-item {
  background: var(--surface);
  padding: 28px 24px;
}

.feature-num {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.feature-item h3 {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.feature-item p {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-body);
  margin: 0;
  max-width: none;
}

/* ── Org card ──────────────────────────────────────── */
.org {
  margin-top: 72px;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  overflow: hidden;
}

.org-header {
  padding: 16px 28px;
  background: var(--surface);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 10px;
}

.org-header::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
  flex-shrink: 0;
}

.org-header span {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.org-grid {
  display: grid;
  grid-template-columns: 120px 1fr;
}

.org-row {
  display: contents;
}

.org-row .key,
.org-row .val {
  padding: 14px 28px;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}

.org-row:last-child .key,
.org-row:last-child .val {
  border-bottom: none;
}

.org-row .key {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.org-row .val {
  color: var(--text-body);
  font-weight: 300;
  line-height: 1.5;
}

.org-row .val a {
  color: var(--text-body);
  text-decoration: none;
  border-bottom: 1px solid var(--border-light);
  transition: color 0.15s, border-color 0.15s;
}

.org-row .val a:hover {
  color: var(--text-primary);
  border-color: var(--text-dim);
}

/* ── Page header (About / Privacy / Terms) ─────────── */
.page-header {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.meta {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* ── Doc content (Privacy / Terms) ────────────────── */
.doc {
  padding: 52px 0 0;
  max-width: 640px;
}

.doc > p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.9;
  color: var(--text-body);
  margin-bottom: 28px;
}

.doc h2 {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 48px 0 14px;
}

.doc h2:first-child {
  margin-top: 0;
}

.doc ul {
  margin: 0 0 28px 0;
  padding-left: 0;
  list-style: none;
}

.doc ul li {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.9;
  color: var(--text-body);
  padding-left: 20px;
  position: relative;
  margin-bottom: 2px;
}

.doc ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

.doc a {
  color: var(--text-body);
  text-decoration: none;
  border-bottom: 1px solid var(--border-light);
  transition: color 0.15s, border-color 0.15s;
}

.doc a:hover {
  color: var(--text-primary);
  border-color: var(--text-dim);
}

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

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 24px;
}

.footer-info {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  line-height: 1.9;
}

.footer-info a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-info a:hover {
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  text-align: right;
}

.footer-links a {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

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

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.footer-domain {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Mobile ────────────────────────────────────────── */
@media (max-width: 520px) {
  #wrap { padding: 0 20px; }

  nav { padding: 28px 0 22px; }

  .nav-links { gap: 14px; }

  .hero { padding: 56px 0 48px; }

  .section { padding: 52px 0; }

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

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

  .org-row .key {
    padding: 12px 20px 4px;
    border-right: none;
    border-bottom: none;
  }

  .org-row .val { padding: 4px 20px 12px; }

  .page-header { padding: 48px 0 36px; }

  .footer-inner {
    flex-direction: column;
    gap: 20px;
  }

  .footer-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    text-align: left;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}
