:root {
  --bg: #fffdf9;
  --text: #1c1917;
  --muted: #78716c;
  --line: #e7e2da;
  --accent: #5f7a2f;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121410;
    --text: #f5f3f0;
    --muted: #a8a29e;
    --line: #2b2826;
    --accent: #a8c373;
  }
}

body {
  margin: 0;
  background: radial-gradient(50rem 24rem at 50% -6rem, color-mix(in srgb, var(--accent) 14%, transparent), transparent) no-repeat var(--bg);
  color: var(--text);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
main { max-width: 44rem; margin: 0 auto; padding: 4rem 1.25rem; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

header { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 1.5rem; }
header img {
  width: 96px; height: 96px; flex: none;
  border-radius: 50%; object-fit: cover; object-position: center 20%;
  outline: 2px solid var(--accent); outline-offset: 3px;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 30%, transparent);
}
h1 { margin: 0; font-size: 2.1rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
header p { margin: .3rem 0 0; color: var(--muted); }

/* archetypal-analysis motif: a simplex whose interior points are mixtures of its vertices */
.simplex { width: 120px; margin: -12px 0 -12px auto; flex: none; overflow: visible; cursor: grab; touch-action: none; user-select: none; }
.simplex .hull { fill: color-mix(in srgb, var(--accent) 10%, transparent); stroke: var(--accent); stroke-width: 1.2; stroke-linejoin: round; }
.simplex .mix { fill: none; stroke: var(--accent); stroke-width: 1; stroke-dasharray: 2 3; }
.simplex .v { fill: var(--accent); }
.simplex .p { fill: var(--muted); }
@media (max-width: 34rem) {
  .simplex { display: none; }
  main { padding: 2.5rem 1.25rem; }
  header { gap: 1rem; }
  header img { width: 72px; height: 72px; }
  h1 { font-size: 1.6rem; }
}

.links { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0 0; }
.links a {
  padding: .2rem .75rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font: .8rem var(--mono);
  transition: border-color .15s, color .15s;
}
.links a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

h2 {
  display: flex; align-items: center; gap: .75rem;
  margin: 3rem 0 1.1rem;
  color: var(--accent);
  font: 600 .78rem var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
h2::after { content: ""; flex: 1; height: 1px; background: var(--line); }

ul { margin: 0; padding: 0; list-style: none; }
li { margin-bottom: 1rem; padding-left: 1rem; border-left: 2px solid var(--line); }
li:hover { border-left-color: var(--accent); }
em { color: var(--muted); font-style: normal; }
