@font-face {
  font-family: "Mona Sans";
  src: url("fonts/mona-sans-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: light-dark(#ffffff, #0e0f0f);
  --text: light-dark(#131718, #ebecec);
  --muted: light-dark(#6a6f71, #979c9e);
  --line: light-dark(#e7e8e8, #232627);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  max-width: 68rem;
  margin-inline: auto;
  padding: clamp(4rem, 12vw, 8rem) clamp(1.25rem, 5vw, 3rem) 2.5rem;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.55 "Mona Sans", system-ui, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 2px;
}

ul {
  list-style: none;
}

.section {
  display: grid;
  grid-template-columns: 12rem minmax(0, 1fr);
  gap: 0.75rem 2rem;
  margin-top: 4.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

header.section {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.label,
h1 {
  font-size: 1rem;
  font-weight: 500;
}

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

h1 {
  color: var(--text);
}

.avatar {
  display: block;
  margin-bottom: 1rem;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line);
}

.lead {
  max-width: 30em;
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

.intro {
  max-width: 38em;
  margin-bottom: 1rem;
  text-wrap: pretty;
}

.rows {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr) auto;
  column-gap: 1.5rem;
}

.rows > li,
.rows > li > * {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
}

.rows > li > * {
  padding-block: 0.4rem;
}

.name {
  font-weight: 500;
}

.desc,
.meta,
.repos,
footer {
  color: var(--muted);
}

.meta {
  text-align: right;
}

.rows a:hover .desc,
.repos a:hover {
  color: var(--text);
}

.rows a:hover .name,
.repos a:hover,
.link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.repos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: 0.4rem 1.5rem;
}

.more {
  margin-top: 1rem;
}

.link {
  text-decoration-color: var(--line);
}

.link:hover {
  text-decoration-color: currentColor;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 6rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
}

@media (max-width: 52rem) {
  .section {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 36rem) {
  .rows {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 1rem;
  }

  .rows > li > * {
    padding-block: 0.5rem;
  }

  .desc {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}
