:root {
  --bg: #f4f1ea;
  --ink: #1a1916;
  --muted: #5e5a53;
  --line: rgba(26, 25, 22, 0.14);
  --max: 720px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--bg); padding: 8px 12px; z-index: 20; }

header.site {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 92%, white);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.nav {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  text-decoration: none;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 14px;
}
.links a { text-decoration: none; color: var(--muted); }
.links a:hover,
.links a[aria-current="page"] { color: var(--ink); }
.links .nav-hello {
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 5px 10px;
}
.links .nav-hello:hover {
  color: var(--bg);
  background: var(--ink);
  text-decoration: none;
}
.menu {
  display: none;
  border: 0;
  background: none;
  font: 500 14px "Source Sans 3", system-ui, sans-serif;
  color: var(--ink);
  padding: 0;
}

.intro { padding: 64px 0 28px; }
.intro-grid {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 28px;
  align-items: start;
}
.intro img {
  width: 112px;
  height: 112px;
  object-fit: cover;
  object-position: center 12%;
  border-radius: 6px;
}
.intro h1 {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 16px;
}
.intro p { margin: 0 0 14px; }
.where {
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 13px;
  color: var(--muted);
  margin: 10px 0 0;
}
.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 14px;
}
.socials a { color: var(--muted); text-decoration: none; }
.socials a:hover { color: var(--ink); text-decoration: underline; }

section { padding: 42px 0; }
section + section { border-top: 1px solid var(--line); }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 22px;
}
h2 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.section-head h2,
.page-hero h1 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
}
.section-head a {
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}
.section-head a:hover { color: var(--ink); text-decoration: underline; }

.work-index {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0 0 28px;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 13px;
}
.work-index a { color: var(--muted); text-decoration: none; }
.work-index a:hover { color: var(--ink); }

.piece { padding: 22px 0; border-top: 1px solid var(--line); }
.piece:first-of-type { border-top: 0; padding-top: 0; }
.piece h3 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
}
.piece h3 a { text-decoration: none; }
.piece h3 a:hover { text-decoration: underline; }
.piece .kind {
  display: block;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}
.piece p { margin: 0 0 12px; }
.piece .links-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 14px;
}
.piece .links-inline a { color: var(--muted); }
.piece .links-inline a:hover { color: var(--ink); }

.notes { display: grid; gap: 22px; }
.note-item h3 {
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 6px;
}
.note-item p { margin: 0; }

.write-list { list-style: none; margin: 0; padding: 0; }
.write-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.write-list li:first-child { border-top: 0; }
.write-list a { text-decoration: none; }
.write-list a:hover { text-decoration: underline; }
.write-list time {
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}
.write-list .blurb {
  display: block;
  color: var(--muted);
  font-size: 16px;
  margin-top: 4px;
}

.page-hero { padding: 56px 0 12px; }
.page-hero .lede { margin: 14px 0 0; max-width: 62ch; }
.crumbs {
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
}
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.prose p { margin: 0 0 16px; }
.prose h2 {
  font-size: 22px;
  font-weight: 500;
  margin: 36px 0 12px;
  letter-spacing: -0.02em;
}
.prose h3 {
  font-size: 18px;
  font-weight: 500;
  margin: 26px 0 8px;
}
.prose ol, .prose ul { margin: 0 0 18px; padding-left: 1.2em; }
.prose li { margin: 0 0 6px; }
.prose blockquote {
  margin: 24px 0;
  padding: 0 0 0 16px;
  border-left: 2px solid var(--ink);
  font-size: 20px;
  line-height: 1.4;
}
.article { padding: 48px 0 72px; }
.article p, .article li { margin: 0 0 16px; }
.article h2 {
  font-size: 22px;
  font-weight: 500;
  margin: 36px 0 12px;
  letter-spacing: -0.02em;
}
.article h3 {
  font-size: 18px;
  font-weight: 500;
  margin: 26px 0 8px;
}
.article ul, .article ol { margin: 0 0 18px; padding-left: 1.2em; }
.article blockquote {
  margin: 24px 0;
  padding: 0 0 0 16px;
  border-left: 2px solid var(--ink);
  font-size: 20px;
  line-height: 1.4;
}
.article h1 {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 10px;
}
.article .meta {
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 32px;
}
.revision {
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--muted);
}

.stage-list { list-style: none; margin: 0; padding: 0; }
.stage-list li {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.stage-list li:first-child { border-top: 0; }
.stage-list .n {
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 13px;
  color: var(--muted);
  padding-top: 3px;
}
.stage-list h3 { font-size: 18px; font-weight: 500; margin: 0 0 4px; }
.stage-list p { margin: 0; color: var(--muted); font-size: 16px; }

.quiet-list { list-style: none; margin: 0; padding: 0; }
.quiet-list li { padding: 10px 0; border-top: 1px solid var(--line); }
.quiet-list li:first-child { border-top: 0; }
.quiet-list a { text-decoration: none; }
.quiet-list a:hover { text-decoration: underline; }
.quiet-list span {
  display: block;
  color: var(--muted);
  font-size: 16px;
  margin-top: 3px;
}

.contact a { text-underline-offset: 3px; }

footer {
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 13px;
  color: var(--muted);
}
.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--ink); text-decoration: underline; }
.footer-links { display: flex; gap: 14px; flex-wrap: wrap; }

@media (max-width: 700px) {
  .intro-grid { grid-template-columns: 84px 1fr; gap: 18px; }
  .intro img { width: 84px; height: 84px; }
  .intro h1 { font-size: 24px; }
  .write-list li { grid-template-columns: 1fr; gap: 4px; }
  .menu { display: block; }
  .links { display: none; }
  .nav.open .links {
    display: grid;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    padding: 12px 20px 18px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    gap: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
