/* Wadj Labs — quiet, typographic, dependency-free.
   "wadj": green, flourishing, alive. */

:root {
  --bg: #f7f6f1;
  --ink: #1c211d;
  --muted: #5c6660;
  --accent: #1f4d3b;
  --rule: #dedbcf;
  --link: #26694f;
  --maxw: 46rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12160f;
    --ink: #e7e9e1;
    --muted: #9aa39a;
    --accent: #7fb79a;
    --rule: #2a3026;
    --link: #93c7ac;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3rem, 9vh, 7rem) 1.5rem 3rem;
}

/* Masthead */
.masthead {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  font-size: clamp(2rem, 6vw, 2.9rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--accent);
}

.status {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Lede */
.lede { margin: 2.5rem 0; }

.register {
  font-size: clamp(1.25rem, 3.5vw, 1.6rem);
  line-height: 1.4;
  font-style: italic;
  color: var(--ink);
  margin: 0 0 1.5rem;
}

.body {
  color: var(--muted);
  margin: 0;
  max-width: 40rem;
}

/* Threads */
.threads {
  margin: 3rem 0;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}

.threads__title {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.threads__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.threads__list li {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 0.5rem 1.25rem;
  align-items: baseline;
}

.thread__name {
  font-weight: 600;
  color: var(--accent);
}

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

@media (max-width: 34rem) {
  .threads__list li { grid-template-columns: 1fr; gap: 0.15rem; }
}

/* Footer */
.footer {
  margin-top: 3.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.9rem;
}

.footer p { margin: 0; }

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

a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}

a:hover { border-bottom-color: currentColor; }
