:root {
  --ink: #1a1a1a;
  --paper: #f4f1ea;
  --paper-dark: #e8e3d8;
  --accent: #a63d2a;
  --muted: #6b6458;
  --rule: #d4ccbc;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter Tight', sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Noise texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

/* MASTHEAD / NAV */
.masthead {
  border-bottom: 1px solid var(--rule);
  padding: 1.5rem 0;
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  background: rgba(244, 241, 234, 0.85);
}

.masthead-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
}

.logo span { color: var(--accent); }

nav ul {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  padding: 0.3rem 0;
  transition: color 0.3s;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s;
}

nav a:hover { color: var(--accent); }
nav a:hover::after { width: 100%; }

/* DATELINE */
.dateline {
  border-bottom: 1px solid var(--rule);
  padding: 0.5rem 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.dateline-inner {
  display: flex;
  justify-content: space-between;
}

/* HERO */
.hero {
  padding: 6rem 0 4rem;
  border-bottom: 1px solid var(--rule);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: end;
}

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: inline-block;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
}

h1 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
}

h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

.hero-lead {
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 40ch;
}

.hero-lead::first-letter {
  font-size: 3.5rem;
  float: left;
  line-height: 0.9;
  padding: 0.3rem 0.6rem 0 0;
  font-weight: 700;
  color: var(--ink);
}

/* PRINCIPLES / MISSION */
.principles {
  padding: 6rem 0;
  border-bottom: 1px solid var(--rule);
}

.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-label::before {
  content: '';
  width: 2rem;
  height: 1px;
  background: var(--accent);
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  border-top: 1px solid var(--rule);
  padding-top: 3rem;
}

.principle {
  position: relative;
}

.principle-number {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 3rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 1rem;
}

.principle h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.principle p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* MEMBERS */
.members {
  padding: 6rem 0;
  background: var(--paper-dark);
  border-bottom: 1px solid var(--rule);
  position: relative;
}

.members-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--rule);
}

.members-header h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
}

.member-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--muted);
}

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

.member {
  padding: 1.5rem 0;
  border-top: 1px solid var(--rule);
  transition: padding 0.3s;
}

.member:hover {
  padding-left: 1rem;
}

.member-name {
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.member-role {
  font-size: 0.8rem;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.members-note {
  margin-top: 2.5rem;
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  max-width: 65ch;
}

.document-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 3rem;
  padding: 1rem 1.5rem;
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.3s;
}

.document-link:hover {
  background: var(--ink);
  color: var(--paper);
}

.document-link::before {
  content: '↓';
  font-size: 1.1rem;
}

/* MANIFESTO */
.manifesto {
  padding: 8rem 0;
  text-align: center;
  border-bottom: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}

.manifesto::before, .manifesto::after {
  content: '"';
  position: absolute;
  font-family: 'Fraunces', serif;
  font-size: 20rem;
  color: var(--rule);
  font-weight: 300;
  line-height: 0.7;
  opacity: 0.4;
}

.manifesto::before { top: 2rem; left: 5%; }
.manifesto::after { bottom: -2rem; right: 5%; transform: scaleX(-1); }

.manifesto blockquote {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.4;
  max-width: 28ch;
  margin: 0 auto;
  font-style: italic;
  letter-spacing: -0.01em;
}

.manifesto cite {
  display: block;
  margin-top: 2.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-style: normal;
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* CONTACT */
/* JOIN */
.join {
  padding: 6rem 0;
  background: var(--accent);
  color: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.join .section-label { color: rgba(244, 241, 234, 0.7); }
.join .section-label::before { background: var(--paper); }

.join-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.join h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--paper);
}

.join h2 em {
  font-style: italic;
  font-weight: 300;
  color: rgba(244, 241, 234, 0.7);
}

.join-content {
  max-width: 50ch;
}

.join-lead {
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.join-text {
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(244, 241, 234, 0.85);
  margin-bottom: 2.5rem;
}

.join-text a {
  color: var(--paper);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.join-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.join-actions .document-link {
  margin-top: 0;
}

.join .document-link {
  border-color: var(--paper);
  color: var(--paper);
}

.join .document-link:hover {
  background: var(--paper);
  color: var(--accent);
}

.join-cta {
  background: var(--paper) !important;
  color: var(--ink) !important;
}

.join-cta:hover {
  background: var(--ink) !important;
  color: var(--paper) !important;
  border-color: var(--ink) !important;
}

.contact {
  padding: 6rem 0;
  background: var(--ink);
  color: var(--paper);
}

.contact .section-label { color: rgba(244, 241, 234, 0.6); }
.contact .section-label::before { background: var(--paper); }

.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 2rem;
}

.contact-info {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  line-height: 2;
}

.contact-info a {
  color: var(--paper);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 4px;
}

.contact-label {
  color: rgba(244, 241, 234, 0.5);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  display: block;
  margin-top: 1rem;
}

/* FOOTER */
footer {
  padding: 2rem 0;
  border-top: 1px solid rgba(244, 241, 234, 0.15);
  background: var(--ink);
  color: rgba(244, 241, 234, 0.6);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
}

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero .eyebrow { animation: fadeUp 0.8s ease-out both; }
.hero h1 { animation: fadeUp 0.8s 0.1s ease-out both; }
.hero-lead { animation: fadeUp 0.8s 0.3s ease-out both; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .container { padding: 0 1.5rem; }
  .masthead-inner { flex-wrap: wrap; gap: 0.5rem 1rem; }
  nav { width: 100%; }
  nav ul { flex-wrap: wrap; gap: 0.5rem 1.1rem; }
  nav a { font-size: 0.8rem; }
  .hero-grid, .principles-grid, .members-grid, .contact-grid, .join-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .members-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 3rem 0; }
  .principles, .members, .manifesto, .contact, .join { padding: 4rem 0; }
  .manifesto::before, .manifesto::after { font-size: 10rem; }
  .dateline-inner .hide-mobile { display: none; }
}
