:root {
  color-scheme: light;
  background: #ffffff;
  color: #111111;
  font-family: "IBM Plex Mono", monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ffffff;
  color: #111111;
  font-family: "IBM Plex Mono", monospace;
}

.site-header,
.page {
  width: min(100%, 760px);
  margin: 0 auto;
  padding-inline: 2rem;
}

.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  padding-bottom: 1.5rem;
}

h1 {
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.4;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem 1rem;
  font-size: 0.85rem;
}

.site-nav a {
  color: #333333;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #111111;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.page {
  border-top: 1px solid #111111;
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.about,
.section {
  width: 100%;
}

.section {
  border-top: 1px solid #111111;
  margin-top: 2rem;
  padding-top: 2rem;
}

.about h2,
.section h2 {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
}

.subsection + .subsection {
  margin-top: 1.5rem;
}

.subsection h3 {
  margin: 0 0 0.5rem;
  color: #333333;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
}

.about p,
.section p {
  margin: 0;
  color: #333333;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  line-height: 1.7;
}

.subsection ul,
.section ul {
  margin: 0;
  padding-left: 1.25rem;
  color: #333333;
  font-size: 0.95rem;
  line-height: 1.7;
}

.project-list {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
  color: #333333;
  font-size: 0.95rem;
  line-height: 1.7;
}

.contact-list {
  margin: 0;
  padding-left: 1.25rem;
  color: #333333;
  font-size: 0.95rem;
  line-height: 1.7;
}

.projects-intro {
  font-size: 0.95rem;
}

.project-list a,
.contact-list a,
.subsection a,
.section a {
  color: #111111;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  overflow-wrap: anywhere;
}

.project-list span {
  display: block;
  color: #333333;
}

@media (max-width: 560px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    justify-content: flex-start;
  }
}
