:root {
  --paper: #f3eee4;
  --paper-2: #eae3d6;
  --ink: #1c1916;
  --muted: #5e574e;
  --rule: #d4cdc0;
  --accent: #9c2f1a;
  --accent-hover: #7a2414;
  --max: 72rem;
  --serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-hover);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.75rem;
}

.skip:focus {
  top: 1rem;
  z-index: 20;
}

.frame {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 0 1rem;
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  z-index: 10;
}

.wordmark {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}

.wordmark:hover {
  color: var(--accent);
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

nav a {
  color: var(--muted);
  text-decoration: none;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(16rem, 0.7fr);
  gap: 3rem;
  padding: 4.5rem 0 3.5rem;
  border-bottom: 1px solid var(--rule);
}

.kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 1.1rem;
}

.lede {
  font-size: 1.28rem;
  max-width: 40rem;
  margin: 0;
}

.hero-meta {
  align-self: end;
  border-left: 1px solid var(--rule);
  padding-left: 1.5rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--muted);
}

.hero-meta dt {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 1rem;
}

.hero-meta dt:first-child {
  margin-top: 0;
}

.hero-meta dd {
  margin: 0.2rem 0 0;
  color: var(--ink);
}

.hero-meta a {
  color: inherit;
}

section {
  padding: 3.25rem 0;
  border-bottom: 1px solid var(--rule);
}

h2 {
  font-size: 0.78rem;
  font-family: var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  margin: 0 0 1.5rem;
  color: var(--muted);
}

h3 {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
  line-height: 1.2;
}

.about-grid,
.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
}

.about-grid p,
.prose p {
  margin: 0 0 1rem;
}

.work-card {
  padding: 1.25rem 0;
  border-top: 1px solid var(--rule);
}

.work-card .meta {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

.work-card p {
  margin: 0 0 0.75rem;
  color: var(--ink);
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  font-family: var(--sans);
  font-size: 0.88rem;
}

.year {
  margin: 2rem 0 0.75rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--muted);
}

.pub {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--rule);
}

.pub .venue {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.pub h3 {
  font-size: 1.05rem;
  font-weight: 600;
}

.pub .authors {
  color: var(--muted);
  font-size: 0.98rem;
  margin: 0.15rem 0 0.4rem;
}

.me {
  font-style: normal;
  font-weight: 600;
  color: var(--ink);
}

.teaching,
.contact-block {
  max-width: 42rem;
}

.site-footer {
  padding: 1.75rem 0 2.5rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.ladder {
  display: flex;
  gap: 0.35rem;
  margin: 1.5rem 0 0;
}

.ladder span {
  display: block;
  width: 0.55rem;
  background: var(--ink);
}

.ladder span:nth-child(1) { height: 2.4rem; opacity: 0.2; }
.ladder span:nth-child(2) { height: 3.1rem; opacity: 0.35; }
.ladder span:nth-child(3) { height: 3.9rem; opacity: 0.55; }
.ladder span:nth-child(4) { height: 4.8rem; opacity: 0.8; }
.ladder span:nth-child(5) { height: 5.8rem; opacity: 1; }

.not-found {
  min-height: 70vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
}

@media (max-width: 800px) {
  .hero,
  .about-grid,
  .work-grid,
  .pub {
    grid-template-columns: 1fr;
  }

  .hero-meta {
    border-left: 0;
    border-top: 1px solid var(--rule);
    padding: 1.25rem 0 0;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    position: static;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media print {
  .site-header,
  .ladder,
  .site-footer {
    display: none;
  }

  body {
    background: white;
    font-size: 11pt;
  }

  a {
    color: inherit;
    text-decoration: none;
  }

  section {
    break-inside: avoid;
  }
}
