:root {
  color-scheme: light;
  --paper: #f4f4e8;
  --paper-bright: #fbfbf5;
  --ink: #172921;
  --muted: #65736a;
  --green: #385c47;
  --lime: #d4e36d;
  --coral: #df7058;
  --rule: #cfd3bf;
  --sans: "DM Sans", "Trebuchet MS", sans-serif;
  --serif: "Fraunces", Georgia, serif;
  --mono: "DM Mono", "Courier New", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background-color: var(--paper);
  background-image: radial-gradient(#3347360d 0.65px, transparent 0.65px);
  background-size: 6px 6px;
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  z-index: 5;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--paper-bright);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
.site-footer {
  width: min(100% - 8rem, 1280px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header {
  min-height: 86px;
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 600;
  text-decoration: none;
}

.wordmark span,
.title-period {
  color: var(--coral);
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.75rem);
}

.site-header nav a,
.site-footer > a:last-child {
  font-size: 0.88rem;
  text-decoration: none;
}

.site-header nav a span,
.site-footer > a:last-child span {
  color: var(--green);
}

.site-header nav a:hover,
.site-footer a:hover {
  color: var(--coral);
}

.nav-resume {
  padding: 0.68rem 0.95rem;
  border: 1px solid var(--ink);
}

.hero {
  position: relative;
  width: min(100% - 8rem, 1280px);
  min-height: 660px;
  margin-inline: auto;
  padding-block: 76px 106px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}

.hero-copy {
  width: fit-content;
  max-width: 100%;
  justify-self: center;
  z-index: 1;
  padding-bottom: 0.75rem;
  animation: enter 650ms ease-out both;
}

.hero-heading {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-bottom: 1.25rem;
}

.eyebrow,
.section-label,
.article-kicker,
.hero-index {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 2rem;
  color: var(--muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 3px #df70581f;
}

.eyebrow-divider {
  color: var(--coral);
}

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

.hero h1 {
  margin-bottom: 1.25rem;
  font-family: var(--serif);
  font-size: 8rem;
  font-weight: 500;
  line-height: 0.88;
}

.hero-intro {
  max-width: 390px;
  margin-bottom: 1.7rem;
  color: #46574b;
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

.contact-link {
  min-height: 44px;
  padding: 0.7rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid var(--green);
  background: var(--green);
  color: var(--paper-bright);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.contact-link:hover {
  border-color: var(--ink);
  background: var(--ink);
}

.contact-link:focus-visible,
.footer-contact:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--green);
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.text-link span {
  transition: transform 160ms ease;
}

.text-link:hover span {
  transform: translateY(3px);
}

.portrait-wrap {
  position: relative;
  flex: 0 0 auto;
  width: min(100%, 180px);
  aspect-ratio: 1;
}

.portrait {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 48% 48% 4px 4px;
  object-fit: cover;
  object-position: center 42%;
}

.hero-index {
  position: absolute;
  right: 0;
  bottom: 2.15rem;
  color: var(--muted);
}

.section-shell {
  width: min(100% - 8rem, 1050px);
  margin-inline: auto;
}

.about {
  position: relative;
  min-height: 350px;
  padding-block: 90px;
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 2rem;
  align-items: start;
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}

.section-label {
  margin: 0;
  color: var(--muted);
}

.section-label span {
  color: var(--coral);
}

.about-content {
  max-width: 620px;
}

.about h2,
.section-heading h2,
.elsewhere h2 {
  margin-bottom: 1rem;
  font-family: var(--serif);
  font-size: 4rem;
  font-weight: 500;
  line-height: 1.05;
}

.about h2 em {
  color: var(--green);
  font-weight: 500;
}

.about-content > p {
  max-width: 500px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.8;
}

.about-mark {
  position: absolute;
  right: -0.08em;
  bottom: -0.43em;
  color: #385c470b;
  font-family: var(--serif);
  font-size: 13rem;
  font-weight: 600;
  pointer-events: none;
}

.writing {
  padding-block: 90px 82px;
  border-bottom: 1px solid var(--rule);
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2.25rem;
}

.section-heading h2,
.elsewhere h2 {
  margin-bottom: 0;
}

.article-row {
  display: grid;
  grid-template-columns: 70px 1fr 48px;
  align-items: center;
  gap: 1.2rem;
  padding: 1.65rem 1.2rem 1.65rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  transition: padding 180ms ease, background-color 180ms ease;
}

.article-row:hover {
  padding-left: 1rem;
  background: #ffffff3b;
}

.article-number {
  align-self: start;
  margin: 0.3rem 0 0;
  color: var(--coral);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.article-kicker {
  margin-bottom: 0.55rem;
  color: var(--muted);
  font-size: 0.61rem;
}

.article-copy h3 {
  max-width: 680px;
  margin-bottom: 0.5rem;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.18;
}

.article-copy h3 a {
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: text-decoration-color 150ms ease;
}

.article-copy h3 a:hover {
  text-decoration-color: var(--coral);
}

.article-copy h3 a span {
  color: var(--coral);
  font-family: var(--sans);
  font-size: 0.7em;
}

.article-copy > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.65;
}

.article-arrow {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--green);
  border-radius: 50%;
  color: var(--green);
  font-size: 1.1rem;
  text-decoration: none;
  transition: color 150ms ease, background-color 150ms ease;
}

.article-arrow:hover {
  background: var(--green);
  color: var(--paper-bright);
}

.article-footnote {
  margin: 1rem 0 0 5rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.63rem;
}

.elsewhere {
  padding-block: 80px 88px;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 2.5rem;
}

.elsewhere .section-label {
  margin-bottom: 1.15rem;
}

.social-links {
  border-top: 1px solid var(--rule);
}

.social-links a {
  min-height: 55px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--rule);
  font-size: 0.94rem;
  text-decoration: none;
}

.social-links a span:last-child {
  color: var(--green);
  transition: transform 150ms ease;
}

.social-links a:hover span:last-child {
  color: var(--coral);
  transform: translate(2px, -2px);
}

.site-footer {
  min-height: 92px;
  border-top: 1px solid var(--rule);
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.65rem;
}

.footer-contact {
  color: var(--green);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.footer-contact:hover {
  color: var(--coral);
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 1500px) {
  .hero h1 {
    font-size: 8.5rem;
  }
}

@media (max-width: 1100px) {
  .hero h1 {
    font-size: 6rem;
  }
}

@media (max-width: 900px) {
  .site-header,
  .site-footer,
  .hero {
    width: min(100% - 3rem, 1280px);
  }

  .section-shell {
    width: min(100% - 3rem, 1050px);
  }

  .hero {
    min-height: 570px;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.4rem;
  }

  .hero h1 {
    font-size: 4.5rem;
  }

}

@media (max-width: 620px) {
  html {
    scroll-padding-top: 4rem;
  }

  .site-header,
  .site-footer,
  .hero,
  .section-shell {
    width: calc(100% - 2.5rem);
  }

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

  .site-header nav {
    gap: 1rem;
  }

  .site-header nav a {
    font-size: 0.76rem;
  }

  .site-header nav a:nth-child(1) {
    display: none;
  }

  .nav-resume {
    padding: 0.55rem 0.65rem;
  }

  .hero {
    min-height: auto;
    padding-block: 66px 70px;
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .hero-copy {
    width: 100%;
    justify-self: stretch;
  }

  .hero-heading {
    justify-content: space-between;
    gap: 0.75rem;
  }

  .hero-copy {
    padding: 0;
  }

  .eyebrow {
    margin-bottom: 1.5rem;
    font-size: 0.61rem;
  }

  .hero h1 {
    font-size: 3.25rem;
  }

  .hero-intro {
    max-width: 350px;
    font-size: 0.98rem;
  }

  .portrait-wrap {
    width: min(100%, 72px);
  }

  .hero-index {
    bottom: 1.5rem;
  }

  .about {
    min-height: 0;
    padding-block: 62px;
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about h2,
  .section-heading h2,
  .elsewhere h2 {
    font-size: 2.6rem;
  }

  .article-copy h3 {
    font-size: 1.45rem;
  }

  .about-mark {
    right: -0.04em;
    bottom: -0.22em;
    font-size: 8rem;
  }

  .writing {
    padding-block: 62px;
  }

  .section-heading {
    display: block;
    margin-bottom: 1.8rem;
  }

  .section-heading .section-label {
    margin-bottom: 1.1rem;
  }

  .article-row {
    grid-template-columns: 33px minmax(0, 1fr) 38px;
    gap: 0.65rem;
    padding-right: 0;
  }

  .article-row:hover {
    padding-left: 0.35rem;
  }

  .article-copy h3 {
    font-size: 1.45rem;
  }

  .article-copy > p:last-child {
    font-size: 0.83rem;
  }

  .article-arrow {
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
  }

  .article-footnote {
    margin-left: 2.8rem;
    font-size: 0.57rem;
    line-height: 1.6;
  }

  .elsewhere {
    padding-block: 62px;
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .site-footer {
    min-height: 78px;
  }

  .site-footer p {
    font-size: 0.56rem;
  }

  .site-footer > a:last-child {
    font-size: 0.7rem;
  }
}

@media (max-width: 340px) {
  .hero h1 {
    font-size: 3.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}