/* site.css: the blog pieces the original landing page did not have. Colours and type come from tokens.css. */

main { display: block; }

.ai-note {
  max-width: var(--issue-measure, 38rem);
  margin: 0 auto clamp(1.75rem, 5vw, 2.5rem);
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface-sunken);
  color: var(--text-muted);
  font-size: var(--step--1);
}
.ai-note p { margin: 0; }
.ai-note p + p { margin-top: 0.4rem; }

.badge {
  display: inline-block;
  padding: 0.05rem 0.5rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- Post lists ---------- */
.post-list { list-style: none; padding: 0; margin: 0; max-width: 46rem; }
.post-item { border-bottom: 1px solid var(--border); padding: 1.15rem 0; }
.post-item:first-child { padding-top: 0.25rem; }
.post-item h3 { font-size: var(--step-1); margin: 0 0 0.35rem; }
.post-item h3 a { color: var(--text); text-decoration: none; }
.post-item h3 a:hover { color: var(--brand); text-decoration: underline; }
.post-item p { margin: 0 0 0.35rem; color: var(--text-muted); }
.post-meta { font-family: var(--font-mono); font-size: var(--step--1); color: var(--text-faint); display: flex; flex-wrap: wrap; gap: 0.25rem 0.9rem; align-items: center; }

/* ---------- Sign-up ---------- */
.consent { display: flex; gap: 0.55rem; align-items: flex-start; margin-top: 0.75rem; font-size: var(--step--1); color: var(--text-muted); }
.consent input { margin-top: 0.3rem; width: 1rem; height: 1rem; flex: none; accent-color: var(--brand); }
.signup-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(1.15rem, 4vw, 1.75rem); max-width: 34rem;
}
.signup-card h2 { font-size: var(--step-1); }

/* ---------- Plain pages (about, privacy) ---------- */
.page { max-width: var(--measure); }
.page h2 { font-size: var(--step-1); margin-top: 2rem; }
.page ul { padding-left: 1.2rem; }
.page li { margin-bottom: 0.45rem; }
.page table { border-collapse: collapse; width: 100%; font-size: var(--step--1); margin: 0 0 1.25rem; }
.page th, .page td { text-align: left; vertical-align: top; padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--border); }
.page th { color: var(--text-faint); font-weight: 600; }

.theme-toggle[hidden] { display: none; }

/* section kickers are real h2s on the blog (one h1 per page, a heading outline for readers and crawlers) */
.issue-section-head h2.issue-kicker { margin: 0; line-height: 1.4; letter-spacing: 0.1em; }
.issue-foot .signup { margin: 0 auto; text-align: left; }

@media (max-width: 30rem) {
  .header-nav { gap: 0.7rem; }
  .header-nav a { font-size: 0.8rem; }
}
