/* Loopgeist website. Mobile first, system fonts, no script, nothing from
   another server. Contrast (WCAG): light text #1a1523 on #faf8fd 16.9:1,
   muted #574f66 7.3:1, links #7a2be0 6.1:1, button text white on #7a2be0
   6.5:1; dark text #ece8f4 on #121018 15.7:1, muted #b3abc2 8.6:1, links
   #b48cff 7.3:1, button text #121018 on #b48cff 7.3:1. The brand violet
   #9a4dff is 4.3:1 / 4.4:1 against either ground, so it only draws lines,
   never text. */

:root {
  color-scheme: light dark;
  --bg: #faf8fd;
  --card: #ffffff;
  --text: #1a1523;
  --muted: #574f66;
  --link: #7a2be0;
  --on-link: #ffffff;
  --line: #e4ddef;
  --brand: #9a4dff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121018;
    --card: #1c1828;
    --text: #ece8f4;
    --muted: #b3abc2;
    --link: #b48cff;
    --on-link: #121018;
    --line: #2e2840;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-wrap: break-word;
}

a { color: var(--link); text-underline-offset: 0.15em; }
a:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 44rem; margin: 0 auto; padding: 0 1.25rem; }

/* Header: name left, language right, both at least 48 px tall to tap. */
.mast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--brand);
}
.mast a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 48px;
  min-width: 48px;
  justify-content: center;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.mast img { width: 36px; height: 36px; border-radius: 9px; }
.mast .lang { color: var(--link); text-decoration: underline; }

main { padding: 1.5rem 0 2rem; }

h1 { font-size: 1.75rem; line-height: 1.25; margin: 0.5rem 0 1rem; }
h2 { font-size: 1.35rem; line-height: 1.3; margin: 2.5rem 0 0.75rem; }
h3 { font-size: 1.1rem; margin: 1.75rem 0 0.5rem; }
.stamp { color: var(--muted); font-size: 0.95rem; }
address { font-style: normal; }
code { font-size: 0.95em; }

.toc { padding-left: 1.25rem; }
.toc li { margin: 0.4rem 0; }

/* Sections reached by an anchor clear the top edge. */
[id] { scroll-margin-top: 1rem; }

.doc + .doc { border-top: 1px solid var(--line); margin-top: 2.5rem; padding-top: 0.5rem; }

/* Landing */
.hero { text-align: center; padding-top: 1rem; }
.hero img { width: 112px; height: 112px; border-radius: 26px; }
.hero p { font-size: 1.15rem; color: var(--muted); margin: 0 auto; max-width: 32rem; }
.features { padding: 0; list-style: none; margin: 2rem 0; display: grid; gap: 0.75rem; }
.features li {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: 10px;
  padding: 0.85rem 1rem;
}
.features b { display: block; }
.cta { text-align: center; margin: 2rem 0; }
.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0.6rem 1.5rem;
  border-radius: 999px;
  background: var(--link);
  color: var(--on-link);
  font-weight: 600;
  text-decoration: none;
}
.note { color: var(--muted); font-size: 0.95rem; }
.center { text-align: center; }

@media (min-width: 720px) {
  .features { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 2.1rem; }
}

.foot {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  padding-bottom: 2rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.foot a { display: inline-block; padding: 0.75rem 0.15rem; }
