:root {
  --bg: #2e3440;
  --ink: #d8dee9;
  --mute: #9aa5b8;
  --rule: #4c566a;
  --accent: #88c0d0;
  --aurora-1: #8fbcbb;
  --aurora-2: #a3be8c;
  --aurora-3: #b48ead;
  --aurora-4: #81a1c1;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "DM Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.9375rem;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

.page {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 40px 28px;
  display: flex;
  flex-direction: column;
  gap: 44px;
}

h1,
h2,
p,
ol,
ul {
  margin: 0;
  padding: 0;
  font-size: inherit;
}
h1,
h2 {
  font-weight: 500;
}
ol,
ul {
  list-style: none;
}
.mute {
  color: var(--mute);
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--ink);
}
a:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
}

header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
header p {
  text-wrap: pretty;
}
nav {
  display: flex;
  gap: 22px;
}
.link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  transition: translate 0.15s ease-out;
  will-change: translate;
}

#plasma {
  margin: 0;
  font-size: 11px;
  line-height: 1.25;
  white-space: pre;
  overflow: hidden;
  user-select: none;
  cursor: crosshair;
  background: linear-gradient(180deg, var(--aurora-1), var(--accent), var(--aurora-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
}
.head::after {
  content: "";
  order: 1;
  flex-grow: 1;
  height: 1px;
  background: linear-gradient(
    90deg,
    var(--aurora-1),
    var(--aurora-2),
    var(--accent),
    var(--aurora-3),
    var(--aurora-4),
    var(--aurora-1)
  );
  background-size: 320% 100%;
  animation: aurora-slide 14s linear infinite;
}
@keyframes aurora-slide {
  from {
    background-position: 0% 0;
  }
  to {
    background-position: 320% 0;
  }
}
.head .link {
  order: 2;
}

.list > li + li {
  border-top: 1px dotted var(--rule);
}

.repo {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  color: var(--ink);
  text-decoration: none;
}
.repo .lang {
  width: 26px;
  flex-shrink: 0;
  margin-top: 1px;
}
.repo .lang svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.repo .body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.repo .name {
  align-self: flex-start;
  font-weight: 500;
  color: var(--accent);
  background-image: linear-gradient(var(--ink), var(--ink));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  padding-bottom: 1px;
  transition: background-size 0.28s ease, color 0.2s ease;
}
.repo:hover .name {
  color: var(--ink);
  background-size: 100% 1px;
}
.repo .desc {
  color: var(--mute);
}

@media (prefers-reduced-motion: reduce) {
  .head::after {
    animation: none;
  }
  .link,
  .repo .name {
    transition-duration: 0s;
  }
}
