.sl-home {
  /* Keep the palette local to the welcome panel, not the Forgejo theme. */
  --sl-ground: #161e2b;
  --sl-ink: #f4f3ee;
  --sl-muted: #bdc7d4;
  --sl-line: #394659;
  --sl-warp: #86d1bb;
  --sl-weft: #f3b788;
  color: var(--sl-ink);
  padding: clamp(1rem, 5vw, 5rem) clamp(1rem, 4vw, 3rem);
}

.sl-home .sl-home__welcome {
  max-width: 72rem;
  margin-inline: auto;
  padding: clamp(1.5rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  background: var(--sl-ground);
  border: 1px solid var(--sl-line);
  border-radius: 0.75rem;
}

.sl-home .sl-home__name {
  margin: 0 0 1.25rem;
  color: var(--sl-warp);
  font: 600 0.875rem/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.sl-home #sl-home-title {
  max-width: 16ch;
  margin: 0;
  color: var(--sl-ink);
  font: 400 clamp(2.375rem, 5vw, 4.75rem)/1.04 Georgia, serif;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.sl-home .sl-home__summary {
  max-width: 38ch;
  margin: 1.125rem 0 1.75rem;
  color: var(--sl-muted);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.6;
}

.sl-home a.sl-home__sign-in {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 1rem;
  border-radius: 0.375rem;
  background: var(--sl-warp);
  color: var(--sl-ground);
  font-weight: 700;
  text-decoration: none;
}

.sl-home a.sl-home__sign-in:hover { background: var(--sl-ink); }
.sl-home a.sl-home__sign-in:focus-visible { outline: 2px solid var(--sl-ink); outline-offset: 4px; }

.sl-home .sl-home__art svg { display: block; width: 100%; max-width: 24rem; height: auto; margin-inline: auto; }
.sl-home .sl-home__frame, .sl-home .sl-home__grid { stroke: var(--sl-line); }
.sl-home .sl-home__grid { stroke-dasharray: 1 5; }
.sl-home .sl-home__warp { stroke: var(--sl-warp); }
.sl-home .sl-home__weft { stroke: var(--sl-weft); }
.sl-home .sl-home__cut { stroke: var(--sl-ground); stroke-width: 20; }

@media (max-width: 700px) {
  .sl-home .sl-home__welcome { grid-template-columns: minmax(0, 1fr); }
  .sl-home .sl-home__art svg { max-width: 15rem; margin-inline: 0 auto; }
}
