:root {
  --background: #ffffff;
  --foreground: #171717;
  --muted: #686868;
  --line: #dedede;
  --link: #1d4ed8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration-color: #b7b7b7;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

a:hover {
  color: var(--link);
  text-decoration-color: var(--link);
}

a:focus-visible {
  border-radius: 2px;
  outline: 2px solid var(--link);
  outline-offset: 4px;
}

main {
  width: min(1120px, calc(100% - 64px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.site-name {
  font-weight: 650;
  letter-spacing: -0.02em;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
}

nav a {
  color: #404040;
  text-decoration: none;
}

h2,
h3,
p {
  margin-top: 0;
}

.section {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 64px;
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

.about {
  padding-top: 96px;
  padding-bottom: 96px;
  border-top: 0;
}

.section h2 {
  margin: 3px 0 0;
  color: #555;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-content,
.publication-list,
.work-list {
  max-width: 760px;
}

.section-content p {
  margin-bottom: 24px;
}

.publication {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 24px;
  padding: 0 0 34px;
}

.publication + .publication {
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.publication-year {
  padding-top: 3px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}

.publication-venue {
  margin-bottom: 9px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.publication h3 {
  margin-bottom: 12px;
  font-size: 22px;
  font-weight: 540;
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.publication h3 a {
  text-decoration: none;
}

.inline-links,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.inline-links {
  gap: 20px;
  font-size: 14px;
  font-weight: 600;
}

.bibliography-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
}

.work-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.work-item h3 {
  margin-bottom: 16px;
  font-size: clamp(27px, 3vw, 38px);
  font-weight: 560;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.work-item h3 a {
  text-decoration: none;
}

.work-item p {
  max-width: 700px;
  margin-bottom: 22px;
  color: #484848;
}

.read-link {
  font-size: 14px;
  font-weight: 600;
}

.article-shell {
  width: min(920px, calc(100% - 64px));
}

.article-header {
  padding: 92px 0 68px;
  border-bottom: 1px solid var(--line);
}

.article-kicker {
  margin-bottom: 22px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.article-header h1 {
  max-width: 850px;
  margin: 0 0 22px;
  font-size: clamp(38px, 6vw, 62px);
  font-weight: 560;
  letter-spacing: -0.045em;
  line-height: 1.06;
}

.article-byline {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.essay {
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 0 96px;
}

.essay h2 {
  margin: 72px 0 24px;
  font-size: 30px;
  font-weight: 590;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.essay p,
.essay li {
  color: #303030;
}

.essay p {
  margin-bottom: 24px;
}

.essay ul,
.essay ol {
  margin: 0 0 28px;
  padding-left: 25px;
}

.essay li + li {
  margin-top: 9px;
}

.essay blockquote {
  margin: 34px 0;
  padding: 4px 0 4px 24px;
  border-left: 3px solid var(--foreground);
  font-size: 20px;
  line-height: 1.55;
}

.essay blockquote p {
  margin: 0;
  color: var(--foreground);
}

.essay table {
  display: block;
  width: 100%;
  margin: 32px 0 38px;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.45;
}

.essay th,
.essay td {
  min-width: 110px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.essay th {
  color: #444;
  font-weight: 650;
}

.essay strong {
  color: var(--foreground);
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 44px 0 56px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

footer p {
  margin: 0;
  font-weight: 600;
}

@media (max-width: 760px) {
  main {
    width: min(100% - 36px, 680px);
  }

  .site-header {
    min-height: 72px;
  }

  nav {
    gap: 15px;
    font-size: 13px;
  }

  nav a:nth-child(1),
  nav a:nth-child(3) {
    display: none;
  }

  .section {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 56px 0;
  }

  .about {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .article-shell {
    width: min(100% - 36px, 680px);
  }

  .article-header {
    padding: 64px 0 48px;
  }

  .article-header h1 {
    font-size: clamp(34px, 10vw, 48px);
  }

  .essay {
    padding: 48px 0 72px;
  }

  .essay h2 {
    margin-top: 56px;
    font-size: 26px;
  }

  .publication {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 14px;
  }

  .publication h3 {
    font-size: 19px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

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