:root {
  color-scheme: dark;
  font-family: "DM Sans", "Segoe UI", sans-serif;
  color: #edfcb7;
  background: #202a2a;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  isolation: isolate;
}

.backdrop {
  position: fixed;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  background: #202a2a url("./speed-nase-poster.jpg") center / cover no-repeat;
  pointer-events: none;
}

.backdrop video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.backdrop::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(#17262966, #17262985);
  content: "";
}

.topbar {
  position: sticky;
  z-index: 1;
  top: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding: clamp(14px, 4vw, 32px);
}

.topbar > a { margin-inline-start: auto; }

.top-control {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid #dfeec943;
  border-radius: 999px;
  background: #202a28e8;
  color: #edf5de;
  font: inherit;
  font-size: .875rem;
  text-decoration: none;
  cursor: pointer;
}

.top-control:hover { background: #37443b; }
:focus-visible { outline: 2px solid #e7f6a9; outline-offset: 4px; }

.profile {
  display: grid;
  justify-items: center;
  align-content: center;
  flex: 1 0 auto;
  width: min(100% - 32px, 430px);
  margin-inline: auto;
  padding-block: 14px clamp(28px, 7vh, 76px);
  text-align: center;
}

.profile-mark {
  display: block;
  width: clamp(96px, 17vw, 120px);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: 50% 76%;
  border-radius: 50%;
  box-shadow: 0 10px 30px #141a2066;
}

h1 {
  position: relative;
  margin: 12px 0 10px;
  color: #edffb1;
  font-family: "Space Mono", Consolas, monospace;
  font-size: clamp(30px, 6vw, 44px);
  font-weight: 800;
  letter-spacing: -.09em;
  line-height: 1.05;
  text-transform: lowercase;
  text-shadow: 0 2px 8px #242d25;
}

h1::before, h1::after {
  position: absolute;
  inset: 0;
  content: attr(data-text) / "";
  pointer-events: none;
}

h1::before {
  transform: translateX(-2px);
  clip-path: polygon(0 16%, 100% 16%, 100% 26%, 0 26%, 0 47%, 100% 47%, 100% 53%, 0 53%, 0 72%, 100% 72%, 100% 79%, 0 79%);
}

h1::after {
  transform: translateX(2px);
  clip-path: polygon(0 33%, 100% 33%, 100% 40%, 0 40%, 0 58%, 100% 58%, 100% 66%, 0 66%, 0 84%, 100% 84%, 100% 89%, 0 89%);
}

.role {
  margin: 0 0 20px;
  color: #edf8c3;
  font-size: clamp(.95rem, 2.5vw, 1.1rem);
  text-shadow: 0 2px 8px #182421;
}

.discord-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: min(100%, 300px);
  padding: 11px;
  border: 1px solid #d6e4b740;
  border-radius: 23px;
  background: #354238c9;
  box-shadow: 0 8px 24px #16221e55;
  backdrop-filter: blur(10px);
  color: #efffba;
  text-align: left;
  text-decoration: none;
}

.discord-card:hover {
  background: #455445eb;
  border-color: #d6e4b780;
}

.discord-portrait {
  position: relative;
}

.discord-portrait img {
  display: block;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 76%;
}

.discord-icon {
  position: absolute;
  right: -1px;
  bottom: -1px;
  display: grid;
  place-items: center;
  width: 21px;
  aspect-ratio: 1;
  border: 2px solid #465446;
  border-radius: 50%;
  background: #b6c68a;
  color: #263026;
}

.discord-copy {
  display: grid;
  gap: 4px;
}

.discord-copy small {
  color: #d9e5bc;
  font-size: .8rem;
}

.external { padding-inline: 5px; color: #d9e5bc; }
.media-error {
  max-width: 36ch;
  margin: 14px 0 0;
  padding: 8px 12px;
  border-radius: 9px;
  background: #101c32;
  color: #edf5ff;
  font-size: .875rem;
}
