body {
  border-top: 8px solid var(--color-topbar);
  font-variant-numeric: tabular-nums;
  --shadow: 0 2px 4px 0 oklch(0.1 0.01 269 / 0.04), 0 4px 8px 0 oklch(0.15 0.01 269 / 0.01);
}

body > header {
  padding: 1rem;
  text-align: center;
}

.logo {
  text-align: center;
  display:inline-flex;
  flex-direction: column;
  color: var(--color-text);
  text-decoration: none;
  align-items: center;
  font-size: 0.694rem;
  font-weight: 700;
}

.logo svg {
  display: block;
  width: 32px;
  height: 32px;
  position: relative;
  overflow: visible;
  animation: logo 1.42857143s linear infinite;
}

.logo svg polygon {
  fill: var(--color-topbar);
  transition: all 0.1s ease-in-out;
}

.logo svg polygon.poly-1 { animation: logo-poly-1 1.42857143s alternate infinite; }
.logo svg polygon.poly-2 { animation: logo-poly-2 1.42857143s alternate infinite; }
.logo svg polygon.poly-3 { animation: logo-poly-3 1.42857143s alternate infinite; }
.logo svg polygon.poly-4 { animation: logo-poly-4 1.42857143s alternate infinite; }

.logo:hover svg polygon.poly-1 { 
  animation: none;
  transform: translateY(-1px);
}
.logo:hover svg polygon.poly-2 { 
  animation: none;
  transform: translateY(1px);
}
.logo:hover svg polygon.poly-3 { 
  animation: none;
  transform: translateX(1px);
}
.logo:hover svg polygon.poly-4 { 
  animation: none;
  transform: translateX(-1px);
}

@keyframes logo-poly-1 {
  0% { transform: translateY(0); }
  95% { transform: translateY(0); }
  100% { transform: translateY(-1px); }
}

@keyframes logo-poly-2 {
  0% { transform: translateY(0); }
  95% { transform: translateY(0); }
  100% { transform: translateY(1px); }
}

@keyframes logo-poly-3 {
  0% { transform: translateX(0); }
  95% { transform: translateX(0); }
  100% { transform: translateX(1px); }
}

@keyframes logo-poly-4 {
  0% { transform: translateX(0); }
  95% { transform: translateX(0); }
  100% { transform: translateX(-1px); }
}

.logo span {
  display: block;
  margin-top: 0.25rem;
}

header h1 { 
  margin: 2rem 0 0;
  font-size: 2.074rem;
  letter-spacing: -0.02em;
}

p { color: var(--color-text-light); }

header p {
  margin: 0;
  font-size: 1rem;
}

body > main {
  padding: 1rem;
  width: calc(100% - 2rem);
  display: block;
  max-width: 800px;
  margin: 1rem auto;
}

.gems-list {
  display: block;
  background-color: oklch(from var(--color-background) calc(l + 0.02) c h);
  box-shadow: 0 0 0 1px var(--color-border) inset, var(--shadow);
  border-radius: 0.5rem;
  margin: 0;
}

.gem { padding: 1rem; }

.gem a { font-weight: 700; }

.gem + .gem { border-top: 1px solid var(--color-border); }

.gem .version {
  display: inline-block;
  box-shadow: 0 0 0 1px var(--color-border) inset;
  background-color: var(--color-background);
  color: var(--color-text-light);
  text-decoration: none;
  padding: 0 0.5rem;
  border-radius: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.833rem;
  font-weight: 400;
}

.gem a:hover .version { color: inherit; }

details > summary { padding: 0; }

details > summary:hover { cursor: pointer; }

details > summary::after {
  top: 0;
  background-color: var(--color-background);
}

.gem__title {
  font-size: 1rem;
  line-height: 1.5;
  box-shadow: none;
  margin: 0;
  padding: 0;
}

.gem__about {
  display: block;
  color: var(--color-text-light);
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
          line-clamp: 2; 
  -webkit-box-orient: vertical;
}

.gem ul { margin-top: 0.5rem; }

section.contact {
  padding: 3rem;
  background-color: var(--color-topbar);
  color: var(--color-topbar-text);
  border-radius: 0.5rem;
  text-align: center;
  margin-top: 3rem;
}

section.contact h2 {
  color: inherit;
  font-size: 1rem;
  line-height: 1.5;
  margin: 0 auto;
  box-shadow: none;
}

section.contact p { color: oklch(from var(--color-topbar-text) l c h / 0.7); }
section.contact p a { color: inherit; }
section.contact p a:hover { color: var(--color-topbar-text); }

section.contact .button {
  display: inline-block;
  background-color: transparent;
  color: var(--color-topbar-text);
  box-shadow: 0 0 0 1px oklch(from var(--color-topbar-text) l c h / 0.3) inset,
             var(--shadow);
  margin-top: 1rem;
  text-decoration: none;
  font-weight: 700;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

section.contact .button:hover {
  color: oklch(from var(--color-topbar-text) calc(l + 0.1) c h);
  box-shadow: 0 0 0 1px oklch(from var(--color-topbar-text) l c h / 0.6) inset;
}

section.contact .button svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

section.support {
  width: auto;
  margin-top: 4rem;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 0 0 1px var(--color-border) inset;
  border-radius: 0.5rem;
  position: relative;
}

section.support .badge {
  background-color: var(--color-background);
  box-shadow: 0 0 0 1px var(--color-border) inset;
  border-radius: 0.5rem;
  font-size: 0.694rem;
  line-height: 1rem;
  padding: 0.25rem 0.5rem;
  top: -2.85rem;
  position: relative;
  display: inline-block;
}

section.support h2 {
  color: inherit;
  font-size: 1rem;
  line-height: 1.2;
  margin: 0 auto;
  box-shadow: none;
}

section.support .rorvswild-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: inherit;
  text-decoration: none;
  text-align: center;
  margin-bottom: 2rem;
  font-family: var(--font-mono);
}

section.support span {
  display: block;
  top: 0.5em;
  font-size: 0.833rem;
  padding: 0;
}

section.support .rorvswild {
  width: 32px;
  height: 32px;
  fill: currentColor;
  display: inline-block;
  margin: 0 auto;
}

body > footer {
  display: block;
  padding: 1rem;
  text-align: center;
  font-size: 0.694rem;
  color: var(--color-text-light);
}