:root {
  --paper: #fff;
  --ink: #202020;
  --muted: #666;
  --accent: #202020;
  --line: #dedede;
  --wash: #f7f7f7;
  --white: #fff;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    15px/1.75 Arial,
    Helvetica,
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 5px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.25;
  font-weight: 400;
  letter-spacing: -0.025em;
}
.wrap {
  width: min(1080px, calc(100% - 80px));
  margin-inline: auto;
}
.header {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 30px;
}
.wordmark {
  font:
    italic 600 31px Georgia,
    serif;
  letter-spacing: -1.5px;
}
.wordmark span {
  font-size: 20px;
  margin-left: 3px;
}
.header nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13px;
}
.header nav [aria-current] {
  text-decoration: underline;
  text-underline-offset: 7px;
}
.search-link {
  display: flex;
  padding: 5px;
}
.eyebrow {
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.13em;
  color: var(--muted);
}
.profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 70px;
  padding-block: 48px 60px;
  align-items: center;
}
.profile h1 {
  font-size: 46px;
  font-style: italic;
  margin: 14px 0 12px;
}
.profile-subtitle {
  font:
    italic 23px/1.5 Georgia,
    serif;
  margin-bottom: 24px;
}
.profile-prose p {
  margin-top: 18px;
  line-height: 1.85;
}
.profile-prose a,
.prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: #999;
}
.profile-prose strong {
  font-weight: 400;
}
.current-panel {
  border: 1px solid var(--line);
  background: var(--wash);
  padding: 28px;
  border-radius: 5px;
}
.notebook-mark {
  display: block;
  font:
    italic 65px/1 Georgia,
    serif;
  letter-spacing: -6px;
  margin: 0 0 35px;
}
.current-panel h2 {
  font-size: 28px;
  margin: 12px 0 16px;
}
.current-panel ul {
  padding-left: 17px;
  font-size: 12px;
  line-height: 2;
  color: var(--muted);
  margin-bottom: 22px;
}
.current-panel > a {
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.sample-note {
  font-size: 9px;
  color: var(--muted);
  margin-top: 24px;
}
.directory {
  padding-bottom: 25px;
}
.directory > h2,
.section-heading h2 {
  font-size: 29px;
}
.section-description {
  color: var(--muted);
  font-size: 13px;
  margin-top: 7px;
}
.directory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin-top: 24px;
}
.directory-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 5px;
  display: block;
  transition: background 0.15s;
}
.directory-card:hover {
  background: var(--wash);
  text-decoration: none;
}
.directory-card h3 {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 19px;
  margin: 9px 0 10px;
  letter-spacing: -0.025em;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.directory-card h3 span {
  font-weight: 400;
}
.directory-card p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 260px;
}
.feed-section {
  padding-top: 35px;
  padding-bottom: 12px;
}
.section-heading {
  display: flex;
  align-items: baseline;
  gap: 20px;
  justify-content: space-between;
}
.section-heading > a {
  font-size: 12px;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.recent-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}
.recent-list li {
  display: grid;
  grid-template-columns: 115px 1fr;
  gap: 20px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.recent-list time {
  font-size: 11px;
  color: var(--muted);
  padding-top: 2px;
}
.recent-list a {
  font-size: 14px;
}
.recent-list a span {
  color: #888;
}
.compact-projects {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.compact-projects article {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.compact-projects article > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.compact-projects h3 {
  font-size: 23px;
}
.compact-projects p {
  font-size: 13px;
  color: var(--muted);
  margin: 12px 0;
}
.status {
  font-size: 10px;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 2px 9px;
  white-space: nowrap;
}
.project-stack {
  font:
    10px/1.8 "Courier New",
    monospace;
  color: var(--muted);
  display: block;
  margin-top: 15px;
}
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  border-top: 1px solid var(--line);
  padding-block: 28px;
  margin-top: 60px;
}
.footer p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 8px;
}
.footer-right {
  text-align: right;
  font-size: 12px;
}
.page {
  padding-block: 45px 30px;
  min-height: 65vh;
}
.page h1 {
  font-size: 44px;
  margin: 12px 0 18px;
}
.intro {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.8;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0;
}
.filters a {
  font-size: 11px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.filters a[aria-current] {
  background: var(--ink);
  color: var(--paper);
}
.filters span {
  margin-left: 5px;
}
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.post-card {
  padding: 23px 0;
  border-top: 1px solid var(--line);
}
.meta {
  display: flex;
  gap: 10px;
  font-size: 10px;
  color: var(--muted);
}
.meta a {
  font-weight: 600;
}
.post-card h3 {
  font-size: 25px;
  margin: 12px 0;
}
.post-card p {
  font-size: 13px;
  color: var(--muted);
}
.post-card time {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-top: 20px;
}
.archive {
  margin-top: 32px;
  row-gap: 20px;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 35px;
}
.category-card {
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.category-card h2 {
  font-size: 27px;
  margin: 18px 0 12px;
}
.category-card p {
  font-size: 13px;
  color: var(--muted);
}
.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}
.project-card {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 26px;
}
.project-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.project-symbol {
  display: grid;
  place-items: center;
  height: 110px;
  background: var(--wash);
  font:
    40px Georgia,
    serif;
  margin: 22px 0;
}
.project-card h3 {
  font-size: 29px;
}
.project-card p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
}
.timeline {
  margin-top: 35px;
}
.timeline article {
  display: grid;
  grid-template-columns: 125px 1fr;
  gap: 25px;
  padding: 25px 0;
  border-top: 1px solid var(--line);
}
.timeline time {
  font-size: 11px;
  color: var(--muted);
}
.timeline h2 {
  font-size: 28px;
  margin: 8px 0 12px;
}
.timeline p {
  font-size: 14px;
  color: var(--muted);
}
.log-heading {
  font-size: 30px;
  margin-top: 45px;
}
.reading {
  width: min(720px, calc(100% - 48px));
  margin: auto;
}
.article-header {
  padding: 42px 0 26px;
  margin-bottom: 25px;
  border-bottom: 1px solid var(--line);
}
.back {
  display: inline-block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 26px;
}
.article-header h1 {
  font-size: 42px;
  margin: 16px 0;
}
.article-header time {
  font-size: 11px;
  display: block;
  color: var(--muted);
  margin-top: 15px;
}
.prose {
  font-size: 16px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}
.prose p,
.prose ul,
.prose ol,
.prose blockquote,
.prose pre,
.prose table {
  margin: 22px 0;
}
.prose h2 {
  font-size: 29px;
  margin-top: 35px;
}
.prose h3 {
  font-size: 24px;
  margin-top: 28px;
}
.prose blockquote {
  border-left: 2px solid var(--ink);
  padding-left: 23px;
  font:
    italic 20px/1.7 Georgia,
    serif;
}
.prose pre {
  background: var(--wash);
  overflow: auto;
  padding: 18px;
  font-size: 13px;
}
.prose img {
  max-width: 100%;
  height: auto;
}
.prose table {
  display: block;
  overflow: auto;
  border-collapse: collapse;
}
.prose td,
.prose th {
  border: 1px solid var(--line);
  padding: 8px;
}
.article-end {
  border-top: 1px solid var(--line);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 11px;
  color: var(--muted);
  margin-top: 30px;
}
.related {
  margin-top: 40px;
}
.related .post-grid {
  margin-top: 22px;
}
.button {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  padding: 11px 17px;
  font:
    12px Arial,
    sans-serif;
  cursor: pointer;
}
.button:hover {
  background: var(--paper);
  color: var(--ink);
}
.cv .prose {
  font-size: 15px;
}
.cv .prose h2 {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.search-label {
  display: block;
  font-size: 12px;
  margin: 28px 0 9px;
}
input[type="search"] {
  width: min(100%, 700px);
  font: inherit;
  padding: 14px 18px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}
.search-status {
  font-size: 12px;
  color: var(--muted);
  margin: 18px 0 28px;
}
.skip {
  position: absolute;
  top: -100px;
  left: 20px;
  padding: 10px;
  background: black;
  color: var(--paper);
  z-index: 10;
}
.skip:focus {
  top: 10px;
}
@media (max-width: 850px) {
  .wrap {
    width: calc(100% - 48px);
  }
  .header nav {
    gap: 19px;
  }
  .profile {
    gap: 35px;
    grid-template-columns: minmax(0, 1fr) 210px;
  }
  .current-panel {
    padding: 22px;
  }
  .directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .post-grid,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .header {
    height: auto;
    padding-block: 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 17px;
  }
  .header nav {
    width: 100%;
    gap: 0;
    justify-content: space-between;
    font-size: 11px;
  }
  .header nav a {
    padding-block: 5px;
  }
  .profile {
    grid-template-columns: 1fr;
    padding-block: 32px 38px;
    gap: 28px;
  }
  .profile h1 {
    font-size: 35px;
  }
  .profile-subtitle {
    font-size: 21px;
  }
  .profile-prose {
    font-size: 14px;
  }
  .current-panel {
    padding: 22px;
  }
  .notebook-mark {
    display: none;
  }
  .current-panel h2 {
    font-size: 26px;
  }
  .current-panel ul {
    margin-block: 12px;
  }
  .sample-note {
    margin-top: 14px;
  }
  .directory-grid {
    gap: 12px;
  }
  .directory-card {
    padding: 16px;
  }
  .directory-card h3 {
    font-size: 17px;
    gap: 8px;
  }
  .directory-card p {
    font-size: 11px;
  }
  .directory-card .eyebrow {
    font-size: 9px;
    letter-spacing: 0.06em;
  }
  .directory > h2,
  .section-heading h2 {
    font-size: 25px;
  }
  .section-heading {
    gap: 12px;
    flex-wrap: wrap;
  }
  .section-heading > a {
    font-size: 11px;
  }
  .recent-list li {
    grid-template-columns: 1fr;
    gap: 2px;
    padding-block: 12px;
  }
  .compact-projects,
  .post-grid,
  .category-grid,
  .project-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .feed-section {
    padding-top: 28px;
  }
  .footer {
    align-items: flex-start;
    gap: 20px;
  }
  .footer-right {
    max-width: 140px;
  }
  .page h1,
  .article-header h1 {
    font-size: 35px;
  }
  .timeline article {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .timeline h2 {
    font-size: 25px;
  }
  .article-end {
    flex-direction: column;
    gap: 10px;
  }
  .cv .section-heading {
    align-items: flex-start;
  }
  .prose {
    font-size: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
@media print {
  .header,
  .footer,
  .skip,
  .print-button {
    display: none !important;
  }
  .cv.reading {
    width: 100%;
    max-width: none;
    padding: 0;
  }
  .cv h1 {
    font-size: 30pt;
  }
  .cv .prose {
    font-size: 10pt;
    line-height: 1.5;
  }
  .cv .prose h2 {
    font-size: 17pt;
    margin-top: 20px;
    padding-top: 12px;
  }
  .cv .prose h3 {
    font-size: 13pt;
    margin-top: 14px;
  }
  .cv .prose p,
  .cv .prose ul {
    margin: 10px 0;
  }
  .cv h2,
  .cv h3 {
    break-after: avoid;
  }
  .cv li {
    break-inside: avoid;
  }
  @page {
    margin: 16mm;
  }
}
:root {
  color-scheme: light;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #171717;
  --ink: #e8e8e8;
  --muted: #aaa;
  --accent: #e8e8e8;
  --line: #363636;
  --wash: #202020;
  --white: #171717;
}
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  background: transparent;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  flex-shrink: 0;
}
.theme-toggle .sun {
  display: none;
}
[data-theme="dark"] .theme-toggle .sun {
  display: block;
}
[data-theme="dark"] .theme-toggle .moon {
  display: none;
}
.theme-toggle:hover {
  background: var(--wash);
  border-radius: 4px;
}
.skip {
  background: var(--ink);
  color: var(--paper);
}
@media print {
  :root[data-theme] {
    color-scheme: light;
    --paper: #fff;
    --ink: #202020;
    --muted: #666;
    --line: #dedede;
    --wash: #f7f7f7;
  }
  .theme-toggle {
    display: none !important;
  }
}
