:root {
  --bg: #d9d9d4;
  --text: #000000;
  --name: #00873a;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --text: #ffffff;
    --name: #3ddc6a;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9375rem;
  line-height: 1.7;
}

::selection { background: var(--name); color: var(--bg); }

.wrap { max-width: 42rem; margin: 0 auto; padding: 2.5rem 1.25rem 5rem; }

a { color: var(--text); text-underline-offset: 3px; }
a:hover { background: var(--text); color: var(--bg); text-decoration: none; }
a:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

/* Header */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 4rem;
}
.site-name {
  color: var(--name);
  font-weight: 600;
  font-size: 1.125rem;
  text-decoration: none;
}
.site-name:hover { background: var(--name); color: var(--bg); }
.site-links { display: flex; gap: 1.25rem; }

/* Sections */
section { margin-bottom: 3.25rem; }
section p { margin: 0; }
.section-title {
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 0 0 1rem;
}
.section-title::before { content: "> "; }

.notes { list-style: none; padding: 0; margin: 0; }
.notes li { padding: 0.1rem 0 0.1rem 1.5ch; text-indent: -1.5ch; }
.notes li::before { content: "- "; }

.year { font-size: 0.9375rem; font-weight: 600; margin: 1.5rem 0 0.25rem; }

.post-list, .roles { list-style: none; padding: 0; margin: 0; }
.post-list li, .role-line {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
}
.post-list li { padding: 0.25rem 0; }
.roles li { padding: 0.45rem 0; }
.role-title { font-weight: 600; }
.work-link { font-weight: 600; }
time, .years { white-space: nowrap; }
.role-note { margin: 0.1rem 0 0; }

/* Post */
.post h1 { font-size: 1.6rem; line-height: 1.25; font-weight: 600; margin: 0 0 0.5rem; }
.post-date { margin: 0 0 2.5rem; }
.post img { max-width: 100%; height: auto; margin: 0 0 2rem; border: 1px solid var(--text); }
.post p { margin: 0 0 1.4em; }
.post h2 { font-size: 1.05rem; margin: 2.5rem 0 0.75rem; font-weight: 600; }
.post blockquote { margin: 1.5rem 0; padding-left: 1.25rem; border-left: 2px solid var(--text); }

.post-nav { margin-top: 4rem; padding-top: 1.25rem; border-top: 1px dashed var(--text); }

@media (max-width: 30rem) {
  .post-list li, .role-line { flex-direction: column; gap: 0; }
}
