/* Aandall.org — shared styles */
:root {
  --ink: #1a1a1a;
  --paper: #fdfcf9;
  --accent: #b3541e;
  --accent-dark: #8a3f14;
  --muted: #6b6b6b;
  --rule: #e5e0d8;
  --card: #ffffff;
}

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

body {
  font-family: Georgia, 'Times New Roman', serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
}

/* ---------- Header ---------- */
header {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.wordmark {
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink);
}
.wordmark span { color: var(--accent); }
nav { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }
nav a {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
nav a:hover, nav a.active { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.9rem;
  border: none;
  border-radius: 6px;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-google {
  background: #fff;
  color: #3c4043;
  border: 1px solid #dadce0;
  font-weight: 500;
}
.btn-google:hover { background: #f8f9fa; }
.btn-google img { width: 18px; height: 18px; }
.btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--rule); }
.btn-ghost:hover { color: var(--ink); }

/* ---------- Layout ---------- */
main { max-width: 960px; margin: 0 auto; padding: 3rem 1.5rem; }
.hero { text-align: center; padding: 3rem 0 2rem; }
.hero h1 { font-size: 2.8rem; line-height: 1.2; margin-bottom: 1rem; }
.hero .tagline { font-size: 1.2rem; color: var(--muted); max-width: 640px; margin: 0 auto 2rem; }

.section-label {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin: 3rem 0 1rem;
}

/* ---------- Project cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.card h3 { font-size: 1.25rem; }
.card .path {
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  color: var(--accent);
}
.card p { font-size: 0.95rem; color: var(--muted); flex: 1; }
.card a { align-self: flex-start; }

/* ---------- Article pages ---------- */
article { max-width: 700px; margin: 0 auto; }
article h1 { font-size: 2.2rem; line-height: 1.25; margin-bottom: 0.5rem; }
article .subtitle { font-size: 1.15rem; color: var(--muted); margin-bottom: 2rem; }
article h2 { font-size: 1.5rem; margin: 2.25rem 0 0.75rem; }
article p { margin-bottom: 1.1rem; }
article ul, article ol { margin: 0 0 1.1rem 1.5rem; }
article li { margin-bottom: 0.4rem; }
.status-chip {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  margin-bottom: 1rem;
}
.chip-live { background: #e7f2e7; color: #2c6e2c; }
.chip-concept { background: #fdf0e5; color: var(--accent-dark); }

/* ---------- Sign-in gate ---------- */
.gate {
  position: relative;
  margin-top: 2rem;
}
.gate-fade {
  position: absolute;
  top: -120px;
  left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to bottom, rgba(253,252,249,0), var(--paper));
  pointer-events: none;
}
.gate-box {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}
.gate-box h3 { margin-bottom: 0.5rem; }
.gate-box p { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.5rem; }

/* Auth visibility: JS toggles the body class */
.members-only { display: none; }
.signed-in .members-only { display: block; }
.signed-in .gate { display: none; }
.signed-in .signed-out-only { display: none; }
.user-pill {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
  display: none;
  align-items: center;
  gap: 0.6rem;
}
.signed-in .user-pill { display: inline-flex; }
.user-pill img { width: 28px; height: 28px; border-radius: 50%; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--rule);
  margin-top: 4rem;
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

@media (max-width: 600px) {
  .hero h1 { font-size: 2rem; }
  .header-inner { flex-direction: column; }
}
