:root {
  --bg: #fffff5;
  --text: #111111;
  --muted: #666666;
  --link: #0000ee;
  --visited: #551a8b;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0b;
    --text: #d4d4d4;
    --muted: #8a8a8a;
    --link: #6ab0ff;
    --visited: #c39bff;
  }
}

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

body {
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
  max-width: 72ch;
  background: var(--bg);
  color: var(--text);
  position: relative;
  font: 14px/1.55 ui-monospace, "SFMono-Regular", Menlo, Consolas, "DejaVu Sans Mono", "Liberation Mono", monospace;
}

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

h1, h2, h3 { font-size: 1em; margin: 0; }
h1 { text-transform: uppercase; letter-spacing: 0.1em; }
h2 { margin: 2em 0 0.75em; }
h3 { display: inline; }

/* Indent section content under its ## heading. */
h2 ~ p, h2 ~ table, h2 ~ .entry { margin-left: 2ch; }

p { margin: 0 0 1em; }

pre { margin: 0; font: inherit; }

hr {
  border: 0;
  border-top: 1px dashed var(--muted);
  margin: 1.5em 0;
}

.muted { color: var(--muted); }
header .muted { font-size: 0.85em; }

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5em 2ch;
  padding-bottom: 0.75em;
  margin-bottom: 1.75em;
  border-bottom: 1px dashed var(--muted);
}
.site-name {
  margin: 0;
  font-size: 1em;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  text-decoration: none;
}
a.site-name:visited { color: var(--text); }
.nav span { white-space: nowrap; }

/* Profile links: monochrome glyphs in the text color. */
.icons { display: flex; gap: 1.25rem; margin: 1em 0 0; }
.icons a { color: var(--muted); line-height: 0; }
.icons a:hover, .icons a:focus-visible { color: var(--link); }
.footer-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.75em 1.5em;
}
.footer .icons { margin: 0; }


table { border-collapse: collapse; margin: 0 0 1em; }
td { padding: 0 2ch 0.35em 0; vertical-align: top; }
td:first-child { white-space: nowrap; color: var(--muted); }

.entry { margin: 0 0 1.5em; padding-left: 4ch; text-indent: -4ch; }
.entry div { text-indent: 0; }

.footer { margin-top: 3em; font-size: 0.8em; }

/* Headshot: in the right margin beside the main column when there's room, else inline at the top. */
.headshot {
  display: block;
  width: 8rem;
  height: auto;
  margin: 0 0 1em;
  border: 1px solid var(--muted);
}
@media (min-width: 70rem) {
  .headshot {
    position: absolute;
    left: calc(100% + 3ch);
    width: 11rem;
    margin: 0.5em 0 0;
  }
}

.empty { margin-top: 2em; }
