:root {
  color-scheme: light dark;
  --bg: #f7f5f0;
  --text: #22201c;
  --muted: #736e66;
  --underline: #cfcac0;
  --selection: #e6e1d6;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121110;
    --text: #e9e6df;
    --muted: #8b877f;
    --underline: #4a4741;
    --selection: #2c2a26;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--selection);
}

main {
  max-width: 560px;
  margin: 0 auto;
  padding: clamp(56px, 14vh, 128px) 20px 64px;
}

h1,
h2,
p,
ul {
  margin: 0;
}

h1 {
  font-size: inherit;
  font-weight: 600;
}

h2 {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: inherit;
  font-weight: 400;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--underline);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color 150ms ease;
}

a:hover {
  text-decoration-color: currentColor;
}

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

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

header {
  margin-bottom: 40px;
}

.intro p + p {
  margin-top: 16px;
}

section + section {
  margin-top: 56px;
}

ul {
  padding: 0;
  list-style: none;
}

li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-block: 4px;
}

.name {
  flex: none;
}

.logo {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  border-radius: 4px;
  vertical-align: -3px;
}

.desc {
  min-width: 0;
  color: var(--muted);
}

.meta {
  margin-left: auto;
  flex: none;
  color: var(--muted);
}

footer {
  margin-top: 72px;
}

@media (max-width: 520px) {
  li {
    flex-wrap: wrap;
    row-gap: 0;
  }

  .desc {
    order: 1;
    flex-basis: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  a {
    transition: none;
  }
}
