:root {
  --bg: #fafafa;
  --text: #171717;
  --muted: #6f6f6f;
  --soft: #f2f1ee;
  --rule: #dedbd5;
  --accent: #075e63;
  --page-width: 1040px;
  --reading-width: 700px;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Charter", "Iowan Old Style", "Source Serif Pro", Cambria, Georgia, serif;
}

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

html {
  color: var(--text);
  background: var(--bg);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0 28px 88px;
}

main,
.site-nav {
  width: min(100%, var(--page-width));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  left: 20px;
  top: 20px;
  z-index: 10;
  width: auto;
  height: auto;
  padding: 8px 12px;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
}

a {
  color: inherit;
  text-decoration-color: rgba(7, 94, 99, 0.38);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus {
  color: var(--accent);
  text-decoration-color: currentColor;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
  font-family: var(--sans);
  font-size: 14px;
  border-bottom: 1px solid var(--rule);
}

.brand {
  font-weight: 650;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
  color: var(--muted);
}

.nav-links a {
  text-decoration: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 72px;
  align-items: end;
  padding: 74px 0 68px;
  border-bottom: 1px solid var(--rule);
}

.hero-copy {
  max-width: 620px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

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

.hero h1 {
  margin-bottom: 18px;
  font-size: 64px;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 0.98;
}

.tagline {
  max-width: 580px;
  margin-bottom: 22px;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.22;
}

.hero-contact {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
}

.hero-contact a {
  color: var(--muted);
  font-weight: 500;
}

.portrait {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
  filter: grayscale(100%);
}

.thesis {
  display: grid;
  grid-template-columns: 240px minmax(0, var(--reading-width));
  gap: 56px;
  padding: 56px 0 60px;
  border-bottom: 1px solid var(--rule);
}

.section-body p {
  margin-bottom: 16px;
  font-size: 20px;
  line-height: 1.58;
}

.section-body p:last-child {
  margin-bottom: 0;
}

.work,
.writing {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 56px;
  padding: 58px 0;
  border-bottom: 1px solid var(--rule);
}

.section-header h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.15;
}

.project-list {
  display: grid;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.project-list > li {
  display: grid;
  grid-template-columns: minmax(160px, 0.32fr) minmax(0, 1fr);
  gap: 28px;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
}

.project-list > li:first-child {
  border-top: 0;
  padding-top: 0;
}

.project-list > li.featured-project {
  padding: 0 0 24px;
  border-top: 0;
  border-bottom: 1px solid var(--rule);
}

.project-list > li.featured-project + li {
  border-top: 0;
  padding-top: 24px;
}

.featured-project .project-name {
  font-size: 21px;
}

.featured-project .project-desc {
  max-width: 620px;
  font-size: 20px;
}

.project-link {
  align-self: start;
  color: inherit;
  text-decoration: none;
}

.project-name {
  display: block;
  margin-bottom: 2px;
  font-weight: 650;
  line-height: 1.25;
}

.project-host {
  display: block;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.35;
}

.project-desc {
  margin: 0;
  color: rgba(23, 23, 23, 0.82);
  font-size: 18px;
  line-height: 1.48;
}

.article-link {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 22px 0;
  color: inherit;
  text-decoration: none;
  border-top: 1px solid var(--rule);
}

.article-link:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.article-link strong,
.article-link span span {
  display: block;
}

.article-link strong {
  margin-bottom: 4px;
  font-size: 20px;
  font-weight: 650;
  line-height: 1.3;
}

.article-link span span {
  color: rgba(23, 23, 23, 0.78);
  font-size: 17px;
  line-height: 1.45;
}

.article-link time {
  flex: 0 0 auto;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.5;
}

article {
  max-width: var(--reading-width);
  margin: 72px auto 84px;
}

.article-header {
  margin-bottom: 42px;
}

.article-header h2 {
  margin-bottom: 12px;
  font-size: 42px;
  font-weight: 650;
  line-height: 1.08;
}

.article-header p:last-child {
  margin: 0;
  color: rgba(23, 23, 23, 0.72);
  font-size: 21px;
  line-height: 1.42;
}

article h3 {
  margin: 48px 0 18px;
  padding-top: 26px;
  border-top: 1px solid var(--rule);
  font-size: 25px;
  font-weight: 650;
  line-height: 1.22;
}

article p {
  margin-bottom: 17px;
  font-size: 20px;
  line-height: 1.62;
}

footer {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 56px;
  width: min(100%, var(--page-width));
  margin: 0 auto;
  padding-top: 34px;
  border-top: 1px solid var(--rule);
}

footer::before {
  content: "Contact";
  color: var(--muted);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

footer .bio {
  margin: 0 0 16px;
  font-size: 18px;
  line-height: 1.55;
}

footer .contact {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
}

@media (max-width: 820px) {
  body {
    padding: 0 22px 68px;
  }

  .site-nav {
    min-height: 68px;
  }

  .hero,
  .thesis,
  .work,
  .writing,
  footer {
    display: block;
  }

  .hero {
    padding: 42px 0 48px;
  }

  .hero-copy {
    max-width: none;
  }

  .hero h1 {
    font-size: 46px;
  }

  .tagline {
    font-size: 25px;
  }

  .section-body p,
  article p {
    font-size: 18px;
  }

  .portrait {
    width: min(100%, 280px);
    margin-top: 30px;
  }

  footer::before {
    display: block;
    margin-bottom: 20px;
  }

  .section-header {
    margin-bottom: 30px;
  }

  .project-list > li {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .featured-project .project-name {
    font-size: 19px;
  }

  .featured-project .project-desc {
    font-size: 18px;
  }

  .article-link {
    display: block;
  }

  .article-link time {
    display: block;
    margin-top: 10px;
  }

  article {
    margin: 56px auto 66px;
  }

  .article-header h2 {
    font-size: 34px;
  }

  article h3 {
    font-size: 23px;
  }

  footer .bio {
    font-size: 17px;
  }
}

@media (max-width: 560px) {
  .site-nav {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 16px 0;
  }

  .nav-links {
    justify-content: flex-start;
    gap: 10px 16px;
    font-size: 13px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .tagline {
    font-size: 23px;
  }

  .hero-contact {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}
