:root {
  --bg: #faf9f7;
  --text: #171717;
  --heading: #111111;
  --muted: #66625d;
  --link: #2e2e2e;
  --nav-link: #5f8ee6;
  --external-link: #165dfc;
  --border: #e7e5e0;
  --border-strong: #cbc7bf;
  --code-border: #ddd9d3;
  --pre-bg: #1e1915;
  --pre-text: #f8f8f2;
}

.dark {
  --bg: #202020;
  --text: #d7d2ca;
  --heading: #f0ece4;
  --muted: #aaa39a;
  --link: #e3ded6;
  --nav-link: #a8c7fa;
  --external-link: #8ab4ff;
  --border: #3a3a3a;
  --border-strong: #5b5b5b;
  --code-border: #4a4a4a;
  --pre-bg: #1e1915;
  --pre-text: #f8f8f2;
}

#theme-toggle {
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  padding: 0;
  position: absolute;
  right: 0;
}

#theme-toggle:hover {
  color: var(--text);
}

footer a {
  color: var(--nav-link);
}

.page-row a {
  color: var(--nav-link);
  font-weight: 600;
}

.home-bio-column > p:first-of-type {
  margin-top: 0.25rem;
}

.home-bio-column > p {
  margin-bottom: 0.55rem;
}

.home-layout h1,
.home-card > h2 {
  font-family: var(--font-code);
  font-size: 1.25rem;
  font-weight: 700;
}

.home-writing-entry a {
  color: var(--nav-link);
  font-family: var(--font-code);
  font-weight: 600;
}

.home-layout h1,
.home-card > h2,
.home-card > h2 a {
  text-transform: uppercase;
}

.home-card > h2 {
  border-bottom: 1px solid var(--border-strong);
  margin-bottom: 0.75rem;
  padding-bottom: 0.25rem;
}

.link-list span,
.byline,
.description {
  color: var(--muted);
}

.description {
  font-style: italic;
}

.home-writing-list {
  display: grid;
  gap: 1.15rem;
}

.home-writing-entry p {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
  margin: 0.35rem 0 0;
}

.home-writing-tags {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.78rem;
  gap: 0.45rem;
  margin-top: 0.4rem;
}

.home-writing-tags span::before {
  content: "#";
}

article h2,
article h3 {
  margin-top: 2rem;
}

figure {
  margin: 0 0 var(--spacing);
}

figcaption {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
}
