:root {
  --bg: #f6f3ee;
  --ink: #111111;
  --mute: #6a6a6a;
  --link: #2f6b52;
  --rule: #e4dfd6;
  --card: #efebe3;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

.page {
  max-width: 40rem;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 6rem;
}

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 3.15rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.lede {
  margin: 0.7rem 0 1.1rem;
  color: var(--mute);
  font-size: 1.15rem;
}

.contacts {
  display: flex;
  gap: 1.15rem;
  margin: 0 0 2rem;
}

a {
  color: var(--link);
  text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
  color: #1d4a38;
}

.github {
  margin: 0 0 2.4rem;
  padding: 0.9rem 1rem;
  background: var(--card);
  border: 1px solid var(--rule);
}

.gh-card {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.gh-avatar {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  background: #f4e04d;
}

.gh-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.gh-login {
  font-weight: 700;
}

.gh-url,
.gh-bio {
  color: var(--mute);
  font-size: 0.92rem;
}

.gh-url {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.gh-repos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin: 0.75rem 0 0;
  padding: 0.7rem 0 0;
  border-top: 1px solid var(--rule);
  list-style: none;
  font-size: 0.95rem;
}

.gh-activity {
  margin: 0.75rem 0 0;
  padding: 0.7rem 0 0;
  border-top: 1px solid var(--rule);
}

.gh-chart-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.gh-chart {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 663 / 104;
}

.gh-feed {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--mute);
}

.gh-feed li {
  padding: 0.05rem 0;
}

.gh-feed:not([hidden]) {
  animation: sit 0.28s ease;
}

@keyframes sit {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.job,
.personal article {
  margin: 0 0 1.6rem;
}

.job h2,
.personal h3 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.role {
  margin: 0 0 0.85rem;
  color: var(--mute);
}

.personal {
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

.personal h2 {
  margin: 0 0 1.35rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.personal article + article {
  margin-top: 1.7rem;
}

.mark {
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
  transition: transform 180ms ease;
}

.mark.ampac {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #fff;
}

.mark.kit {
  width: auto;
  height: 18px;
}

.mark.scriptlens {
  width: 28px;
  height: 28px;
}

.mark.atlas {
  width: 22px;
  height: 22px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.35rem;
}

.also {
  margin: 2.2rem 0 0;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
  color: var(--ink);
}

.project {
  position: relative;
  margin-left: -0.55rem;
  margin-right: -0.55rem;
  padding-left: 0.55rem;
  padding-right: 0.55rem;
  border-radius: 3px;
  background: transparent;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.personal article.project {
  padding-top: 0.35rem;
  padding-bottom: 0.45rem;
}

.project h3 {
  position: relative;
}

.also-line {
  display: block;
  padding-top: 0.2rem;
  padding-bottom: 0.35rem;
}

.project h3::after,
.also-line::after {
  content: "";
  display: block;
  width: 0;
  height: 1px;
  background: var(--link);
  transition: width 220ms ease;
}

.project h3::after {
  position: absolute;
  left: 0;
  bottom: -0.12rem;
}

.also-line::after {
  margin-top: 0.4rem;
}

@media (hover: hover) and (pointer: fine) {
  .project:hover {
    transform: translateY(-2px);
    background: #faf7f2;
    box-shadow:
      0 1px 0 rgba(40, 32, 20, 0.05),
      0 10px 18px -12px rgba(40, 32, 20, 0.42);
  }

  .project:hover .mark {
    transform: translateY(-2px);
  }

  .project:hover h3::after,
  .also-line:hover::after {
    width: 2.6rem;
  }
}

.project:focus-within {
  transform: translateY(-2px);
  background: #faf7f2;
  box-shadow:
    0 1px 0 rgba(40, 32, 20, 0.05),
    0 10px 18px -12px rgba(40, 32, 20, 0.42);
}

.project:focus-within .mark {
  transform: translateY(-2px);
}

.project:focus-within h3::after,
.also-line:focus-within::after {
  width: 2.6rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 520px) {
  .page {
    padding: 2.4rem 1.15rem 4rem;
  }

  .job h2,
  .personal h3 {
    font-size: 1.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project,
  .project .mark,
  .project h3::after,
  .also-line::after {
    transition: none;
  }

  .gh-feed:not([hidden]) {
    animation: none;
  }

  .project:hover,
  .project:focus-within {
    transform: none;
  }

  .project:hover .mark,
  .project:focus-within .mark {
    transform: none;
  }
}
