:root {
  font-family: "Fustat", "Trebuchet MS", Arial, sans-serif;
  color: #1a1b1d;
  background: #fdfdfc;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

html { scroll-behavior: smooth; }
body { margin: 0; }
* { box-sizing: border-box; }

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}
a:hover { color: #175c85; }
a:focus-visible { outline: 2px solid #175c85; outline-offset: 4px; border-radius: 2px; }

.page {
  width: min(100% - 44px, 690px);
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 38px 0 0;
  font-size: 15px;
}
.site-name { font-weight: 700; text-decoration: none; }
.site-header nav { display: flex; gap: 23px; white-space: nowrap; }

main { padding-top: 94px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(31px, 6vw, 39px); line-height: 1.17; letter-spacing: -0.035em; margin-bottom: 28px; }
h2 { font-size: 19px; line-height: 1.35; letter-spacing: -0.012em; }
h3 { font-size: 17px; line-height: 1.45; }
p { font-size: 18px; line-height: 1.66; margin-bottom: 21px; }
.intro p:last-child { margin-bottom: 0; }

.content-section { padding-top: 92px; scroll-margin-top: 35px; }
.section-heading { border-top: 1px solid #d8dcde; padding-top: 20px; margin-bottom: 25px; }
.section-heading h2 { margin-bottom: 0; }
.work-item { padding: 0 0 22px; }
.work-item + .work-item { padding-top: 18px; border-top: 1px solid #eceeed; }
.work-item h3 { margin-bottom: 4px; font-weight: 700; }
.work-item h3 a { text-decoration: none; }
.work-item h3 a:hover { text-decoration: underline; }
.work-item p { color: #4b5054; font-size: 16px; line-height: 1.62; margin: 0; }
.muted { color: #777e82; font-size: 14px; font-weight: 500; }
.writing-section { padding-top: 66px; }
.writing-section p { margin-bottom: 15px; }
.writing-section .quiet-note { color: #72797c; font-size: 15px; }

.site-footer { border-top: 1px solid #d8dcde; margin: 75px 0 36px; padding-top: 23px; }
.footer-links { display: flex; gap: 23px; flex-wrap: wrap; font-size: 15px; }
.site-footer p { color: #777e82; font-size: 13px; line-height: 1.5; margin: 24px 0 0; }

@media (max-width: 600px) {
  .page { width: min(100% - 36px, 690px); }
  .site-header { align-items: flex-start; flex-direction: column; gap: 13px; padding-top: 25px; }
  main { padding-top: 78px; }
  p { font-size: 17px; line-height: 1.65; }
  .content-section { padding-top: 74px; }
  .writing-section { padding-top: 53px; }
}

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