/* minimalist black-and-white typewriter theme */

:root {
  --bg: #ffffff;
  --fg: #000000;
  --muted: #d0d0d0;
  --link: #000000;
}

html[data-theme="dark"] {
  --bg: #000000;
  --fg: #ffffff;
  --muted: #2a2a2a;
  --link: #ffffff;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.wrap {
  max-width: 720px;
  padding: 24px;
  margin: 0 auto;
}

@media (max-width: 720px) {
  .wrap { padding: 16px; }
}

a {
  color: var(--link);
  text-decoration: underline;
}

header.site {
  border-bottom: 1px solid var(--muted);
}

header.site .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.brand a { 
  color: var(--fg); 
  text-decoration: none; 
  white-space: nowrap;
}

nav.site-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  white-space: nowrap;
}

button.toggle {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--fg);
  padding: 4px 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
}

main { padding-top: 16px; }

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  margin: 1.2em 0 0.6em;
}

.lc { text-transform: lowercase; }

ul.plain {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

ul.plain li { margin: 6px 0; }

hr { border: 0; border-top: 1px solid var(--muted); margin: 24px 0; }

blockquote {
  border-left: 2px solid var(--muted);
  padding-left: 12px;
  margin: 16px 0;
}

pre {
  border: 1px solid var(--muted);
  padding: 12px;
  overflow-x: auto;
}

code { font-family: inherit; }

img { max-width: 100%; height: auto; }

footer.site {
  border-top: 1px solid var(--muted);
  margin-top: 32px;
  padding-top: 16px;
  color: var(--fg);
}

.dim { opacity: 0.7; }

.list-item-meta { color: var(--fg); opacity: 0.7; }

/* home layout helpers (simple grid + cards) */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 720px) {
  .grid { grid-template-columns: 1fr; }
}

.avatar {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border: 1px solid var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 720px) {
  .cards { grid-template-columns: 1fr; }
}

.card {
  border: 1px solid var(--muted);
  padding: 12px;
}

.card .title a { text-decoration: underline; color: var(--fg); }

.section { margin-top: 24px; }

/* runner */
.runner-wrap { margin-top: 24px; }
canvas#runner { width: 100%; display: block; border: 1px solid var(--muted); }


