:root {
  color-scheme: dark;
  --bg: #050505;
  --fg: #f7f7ef;
  --muted: #b6b6aa;
  --line: #34342e;
  --hot: #d6ff3f;
  --ink: #111;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: radial-gradient(circle at 50% -10%, #1d1d18 0, var(--bg) 34rem);
  color: var(--fg);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  text-rendering: optimizeSpeed;
}

.wrap {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.card {
  width: 100%;
  max-width: 640px;
  contain: layout paint style;
}

.pfp {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
  background: #191915;
}

.title {
  margin: 0 0 10px 0;
  font-size: 3.25rem;
  line-height: 1;
  letter-spacing: 0;
}

.type-line {
  margin: 0 0 8px 0;
  font-size: 1rem;
  opacity: 0.95;
  min-height: 1.6em;
}

.project-line {
  min-height: 3.1em;
  margin: 0 0 18px 0;
  color: var(--hot);
  font-size: 0.95rem;
  line-height: 1.55;
}

.project-line.is-swapping {
  animation: line-swap 260ms ease;
}

.body {
  margin: 0 0 24px 0;
  font-size: 1rem;
  line-height: 1.55;
  opacity: 0.85;
}

.builds {
  width: 100%;
  margin: 0 0 22px 0;
  border-block: 1px solid var(--line);
}

.builds-head,
.build-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.builds-head {
  min-height: 34px;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.build-row {
  min-height: 48px;
  color: var(--fg);
  text-decoration: none;
  border-top: 1px solid var(--line);
  transition: background-color 110ms ease, color 110ms ease;
}

.build-row[href]:hover {
  background: var(--hot);
  color: var(--ink);
}

.build-name {
  overflow-wrap: anywhere;
}

.build-meta {
  color: currentColor;
  font-size: 0.8rem;
  opacity: 0.7;
  text-transform: uppercase;
}

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

.links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--fg);
  border-radius: 50%;
  color: var(--fg);
  text-decoration: none;
  transition: transform 120ms ease, opacity 120ms ease;
  will-change: transform;
}

.btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0px);
  opacity: 0.8;
}

.cursor {
  display: inline-block;
  margin-left: 2px;
  animation: blink 1s steps(1) infinite;
  opacity: 0.9;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes line-swap {
  0% {
    opacity: 0;
    transform: translateY(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.foot {
  margin: 18px 0 0 0;
  font-size: 12px;
  opacity: 0.6;
}

@media (max-width: 420px) {
  .wrap {
    padding: 20px;
  }

  .title {
    font-size: 2.5rem;
  }

  .builds-head,
  .build-row {
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cursor {
    animation: none;
  }
  .project-line.is-swapping {
    animation: none;
  }
  .btn,
  .build-row {
    transition: none;
  }
}
