/* PSKC presentation layer on top of LittleLink v3.11.0. */
:root {
  --pskc-bg: #121820;
  --pskc-panel: rgba(37, 42, 52, 0.82);
  --pskc-teal: #00adb5;
  --pskc-teal-light: #a9dde0;
  --pskc-copy: #eaeaea;
  --pskc-muted: #b2ccd6;
}

html {
  min-height: 100%;
  background: var(--pskc-bg);
}

:root.theme-dark body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 8%, rgba(0, 173, 181, 0.18), transparent 30rem),
    radial-gradient(circle at 92% 26%, rgba(199, 146, 234, 0.12), transparent 24rem),
    linear-gradient(160deg, #121820 0%, #1b222c 52%, #121820 100%);
  color: var(--pskc-copy);
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10;
  padding: 0.65rem 1rem;
  border-radius: 0.5rem;
  background: #fff;
  color: #121820;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  max-width: 42rem;
  padding-top: clamp(2rem, 7vw, 4rem);
}

.profile {
  margin-inline: auto;
  max-width: 39rem;
}

.avatar {
  width: 8.5rem;
  height: 8.5rem;
  margin-bottom: 1.25rem;
  padding: 0.3rem;
  border: 1px solid rgba(169, 221, 224, 0.5);
  background: rgba(0, 0, 0, 0.22);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.3);
}

.eyebrow,
.container .eyebrow {
  margin-bottom: 0.7rem;
  color: var(--pskc-teal-light);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 8vw, 3.05rem);
}

.container .intro {
  margin-bottom: 2rem;
  color: var(--pskc-muted);
  font-size: 1.05rem;
}

.button-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.link-section {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
}

.link-section__title {
  width: 100%;
  max-width: 35rem;
  margin: 2rem 0 1rem;
  color: #ffffff;
  font-size: clamp(1.35rem, 5vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-align: center;
}

.button,
button {
  width: 100%;
  max-width: 35rem;
  min-height: 3.65rem;
  margin-bottom: 0.85rem;
  border-radius: 0.75rem;
  box-shadow: 0 0.4rem 1rem rgba(0, 0, 0, 0.16);
  transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
}

.button:hover {
  filter: brightness(1.07);
  transform: translateY(-2px);
  box-shadow: 0 0.75rem 1.4rem rgba(0, 0, 0, 0.24);
}

.button:active {
  transform: translateY(0);
}

.button:focus-visible,
:root.theme-dark .button:focus-visible {
  outline: 3px solid var(--pskc-teal-light);
  outline-offset: 3px;
}

.button.button-pskc,
.button.button-pskc-outline {
  --button-text: #ffffff;
}

.button.button-pskc {
  --button-background: #007f86;
  --button-border: 1px solid #18c5cc;
}

.button.button-pskc-outline {
  --button-background: var(--pskc-panel);
  --button-border: 1px solid rgba(169, 221, 224, 0.45);
}

/* Nostr button from LittleLink Extended. */
.button.button-nostr {
  --button-text: #ffffff;
  --button-background: #a915ff;
}

/* Zeffy is not part of LittleLink's upstream button catalog. */
.button.button-zeffy {
  --button-text: #ffffff;
  --button-background: #00006d;
  --button-border: 1px solid #05d4b7;
}

.button-pskc .icon,
.button-pskc-outline .icon {
  filter: brightness(0) invert(1);
}

footer {
  margin-top: 3rem;
  color: var(--pskc-muted);
}

footer .footer-note,
footer .footer-meta {
  margin-bottom: 0.65rem;
}

footer .footer-note {
  color: var(--pskc-teal-light);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

footer .footer-meta {
  font-size: 0.75rem;
  line-height: 1.55;
}

:root.theme-dark footer a {
  color: var(--pskc-teal-light);
}

@media (max-width: 34.375rem) {
  .container {
    width: 100%;
    padding-inline: 1rem;
  }

  .avatar {
    width: 7.25rem;
    height: 7.25rem;
  }

  .container .intro {
    font-size: 0.98rem;
  }

  .button,
  button {
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button,
  button,
  .skip-link {
    transition: none;
  }
}
