/* The AI Psychology Project. One stylesheet for every page. Written 22 Oct 2026 by CC. */
:root {
  --bg: #fbfaf7; --text: #22201c; --muted: #6b665d; --rule: #e3dfd6;
  --accent: #1f6f6b; --accent-text: #ffffff; --card: #f3f0e9;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171614; --text: #ece8df; --muted: #a39d92; --rule: #34312c;
    --accent: #6cc2bb; --accent-text: #10201f; --card: #211f1c;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 18px/1.6 Charter, "Iowan Old Style", Georgia, "Times New Roman", serif;
}
a { color: var(--accent); text-underline-offset: 0.15em; }
header.site, main, footer.site { max-width: 44rem; margin: 0 auto; padding: 0 1rem; }
header.site {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: baseline; justify-content: space-between;
  padding-top: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--rule);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 0.95rem;
}
header.site .name { color: var(--text); text-decoration: none; font-weight: 600; }
header.site nav { display: flex; gap: 1.25rem; }
header.site nav a { color: var(--muted); text-decoration: none; }
header.site nav a[aria-current="page"], header.site nav a:hover { color: var(--text); }
main { padding-top: 2rem; padding-bottom: 3rem; }
h1 { font-size: 1.9rem; line-height: 1.25; margin: 0 0 0.75rem; }
h2 {
  font: 600 0.8rem/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 2rem 0 0.5rem;
}
.lede { font-size: 1.1rem; color: var(--muted); }
.kind, .meta, .author, .back, .earlier {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 0.9rem; color: var(--muted);
}
.kind { margin: 0 0 0.4rem; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.78rem; }
.author { font-size: 1rem; color: var(--text); margin: 0 0 1.25rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; align-items: center;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 0.95rem; }
.button {
  display: inline-block; background: var(--accent); color: var(--accent-text); text-decoration: none;
  padding: 0.55rem 1rem; border-radius: 6px; font: 600 0.95rem/1.2 system-ui, -apple-system, "Segoe UI", sans-serif;
}
.button:hover { filter: brightness(1.08); }
.intro { background: var(--card); border-radius: 8px; padding: 0.25rem 1.25rem 0.5rem; margin-top: 1.5rem; }
.intro h2 { margin-top: 1rem; }
.abstract p { hyphens: auto; }
ul.links { padding-left: 1.2rem; }
ul.pubs { list-style: none; padding: 0; margin: 2rem 0; }
ul.pubs li { padding: 1.1rem 0; border-top: 1px solid var(--rule); }
ul.pubs li:last-child { border-bottom: 1px solid var(--rule); }
ul.pubs .title { font-size: 1.15rem; font-weight: 600; text-decoration: none; color: var(--text); }
ul.pubs .title:hover { color: var(--accent); }
ul.pubs .meta { margin: 0.35rem 0 0; }
.back { margin-top: 2.5rem; }
footer.site {
  padding-top: 1rem; padding-bottom: 2rem; border-top: 1px solid var(--rule);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 0.85rem; color: var(--muted);
}
@media (max-width: 480px) { body { font-size: 17px; } h1 { font-size: 1.55rem; } }
footer.site .signature { display: block; width: 100%; height: 40px; margin: 0 0 0.75rem; }
footer.site:has(.signature) { border-top: none; }   /* the two lines are the divider */
/* The homepage illustration (Saskia's drawing, 4 Dec 2026): a light and a dark version, as wide as the text (1344 x 448, twice the column for sharp screens; 4 Dec). */
.hero { display: block; margin: 1.25rem 0 1.75rem; }
.hero img { display: block; width: 100%; height: auto; }
