/* Deliberately minimal, in the spirit of soumith.ch:
   one centered column of serif text, default-looking links, no chrome. */
:root {
  --bg: #fff;
  --fg: #111;
  --muted: #777;
  --link: #0000ee;
  --visited: #551a8b;
  --rule: #ddd;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #111; --fg: #e6e6e6; --muted: #999; --link: #8ab4f8; --visited: #c58af9; --rule: #333; }
}

body {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.5;
  max-width: 650px;
  margin: 50px auto;
  padding: 20px;
  background: var(--bg);
  color: var(--fg);
}

a { color: var(--link); }
a:visited { color: var(--visited); }

nav a { margin-right: 10px; }
nav .sep { color: var(--muted); margin-right: 10px; }
.name-link {
  color: var(--fg);
  text-decoration: none;
  font-size: 1.5em;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

h1 { font-size: 1.6em; line-height: 1.25; margin-bottom: 0.2em; }
h2 { font-size: 1.25em; margin-top: 2em; }
.meta { color: var(--muted); margin-top: 0; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2em 0; }
img { max-width: 100%; display: block; margin: 1em auto; }
blockquote { margin: 1em 0; padding-left: 1em; border-left: 3px solid var(--rule); color: var(--muted); }
code { font-size: 0.9em; }
pre { overflow-x: auto; padding: 0.8em; background: rgba(127,127,127,0.1); font-size: 0.85em; }
ul.posts { padding-left: 1.2em; }

/* "[expand]" collapsibles, as on the inspiration site */
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
.expand { color: var(--muted); font-style: italic; margin-left: 0.5em; }

/* Profile image, shown only when src/images/profile.jpg exists */
.profile {
  float: right;
  width: 140px; height: 140px;
  object-fit: cover;
  border-radius: 8px;
  margin: 0.3em 0 1em 1.5em;
}
@media (max-width: 500px) {
  .profile { float: none; margin: 0 0 1em 0; }
}
