:root {
  --paper: #ffffff;
  --ink: #0b0b0b;
  --muted: #5d5d5d;
  --green: #68cb6f;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.1;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  width: min(100% - 40px, 390px);
  margin: 0 auto;
  padding: 51px 0 72px;
}

.header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.wordmark {
  display: block;
  width: 119px;
  height: 30px;
}

.wordmark img {
  display: block;
  width: 119px;
  height: 30px;
}

.contact-links {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 2px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  transition: opacity 120ms ease;
}

.contact-link:last-child {
  width: 31px;
  border-radius: 0;
}

.contact-icon {
  display: block;
  width: 28px;
  height: 28px;
}

.contact-link:hover,
.contact-link:focus-visible,
.github-link:hover,
.github-link:focus-visible {
  opacity: 0.55;
  outline: none;
}

.tagline {
  margin: 11px 0 0;
  font-size: 16px;
  line-height: 1.2;
}

.projects {
  margin-top: 28px;
}

.project {
  margin: 0 0 39px;
}

.project-title-row {
  display: flex;
  align-items: center;
  min-height: 49px;
}

.project-logo {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  margin-right: 15px;
}

.logo-io {
  width: 43px;
  height: 40px;
  object-fit: contain;
}

.logo-gate {
  width: 59px;
  height: 36px;
  object-fit: contain;
}

.project h2 {
  margin: 0;
  font-size: 31px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
}

.github-link {
  display: inline-flex;
  width: 21px;
  height: 21px;
  margin-left: 7px;
  transition: opacity 120ms ease;
}

.github-icon {
  display: block;
  width: 21px;
  height: 21px;
}

.project p {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.04;
  text-align: justify;
  text-justify: inter-word;
}

.closing {
  margin-top: 19px;
  text-align: center;
}

.closing p {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
}

.closing-links {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 9px !important;
  color: var(--muted);
  font-size: 14px !important;
  white-space: nowrap;
}

.closing a {
  border-bottom: 1px solid transparent;
}

.closing a:hover,
.closing a:focus-visible {
  border-bottom-color: currentColor;
  outline: none;
}

@media (max-width: 550px) {
  .page {
    width: min(100% - 32px, 390px);
    padding-top: 34px;
  }

  .wordmark {
    width: 106px;
    height: 27px;
  }

  .wordmark img {
    width: 106px;
    height: 27px;
  }

  .tagline {
    max-width: 330px;
    font-size: 15px;
  }

  .projects {
    margin-top: 25px;
  }

  .project {
    margin-bottom: 34px;
  }

  .project-title-row {
    min-height: 43px;
  }

  .project-logo {
    width: 42px;
    height: 42px;
    margin-right: 12px;
  }

  .logo-io {
    width: 38px;
    height: 35px;
  }

  .logo-gate {
    width: 50px;
    height: 30px;
  }

  .project h2 {
    font-size: 27px;
  }

  .github-link,
  .github-icon {
    width: 18px;
    height: 18px;
  }

  .project p {
    font-size: 15px;
    line-height: 1.06;
    text-align: left;
  }

  .closing-links {
    flex-wrap: wrap;
    white-space: normal;
  }
}
