:root {
  --paper: #f1ede4;
  --ink: #1c1b18;
  --mute: #75705f;
  --rule: #d8d2c3;
  --red: #c42a1c;

  --sans: ui-sans-serif, -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 36rem;
  margin: 0 auto;
  padding: max(2rem, env(safe-area-inset-top)) max(1.25rem, env(safe-area-inset-right)) max(2.5rem, env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
}

a { color: inherit; }

/* header */

header {
  display: flex;
  align-items: center;
  gap: .7rem;
}

.avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 6px;
  image-rendering: pixelated;
}

.name { font-weight: 700; letter-spacing: -.01em; }

.handle {
  margin-left: auto;
  color: var(--mute);
  font-size: .9rem;
  text-decoration: none;
}

.handle:hover { color: var(--red); }

.bio {
  margin: 2.25rem 0 0;
  font-size: 1.3rem;
  line-height: 1.4;
  letter-spacing: -.01em;
  text-wrap: pretty;
}

/* lists */

section { margin-top: 2.75rem; }

h2 {
  margin: 0;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--ink);
  font-size: .8rem;
  font-weight: 600;
  color: var(--mute);
}

.list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.list li { border-bottom: 1px solid var(--rule); }

.list a, .list div {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .95rem 0;
  text-decoration: none;
}

.logo {
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 8px;
}

.logo.dark {
  display: grid;
  place-items: center;
  background: #161513;
}

.logo.dark img { width: 70%; height: 70%; }

.text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.title { font-weight: 600; }

.desc {
  color: var(--mute);
  font-size: .92rem;
  line-height: 1.4;
}

.meta {
  flex: none;
  align-self: flex-start;
  margin-top: .15rem;
  font: .75rem/1.4 var(--mono);
  color: var(--mute);
}

.list a:hover .title { color: var(--red); }
.list a:hover .meta { color: var(--ink); }
.list a:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }

/* no room for the domain on phones */
@media (max-width: 30rem) {
  .list a .meta { display: none; }
}

footer {
  margin-top: 3rem;
  font-size: .9rem;
}

footer a {
  color: var(--mute);
  text-underline-offset: 3px;
}

footer a:hover { color: var(--red); }
