@font-face {
  font-family: "Stapel Medium Italic";
  src: url("assets/fonts/stapel/stapel-mediumitalic.otf") format("opentype");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #050505;
  --fg: #f4f1ea;
  --muted: #9d9a93;
  --button: #ffffff;
  --button-fg: #111111;
  --line: rgba(244, 241, 234, 0.24);
  --soft: #101010;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
  --max: 680px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Stapel Medium Italic", sans-serif;
  font-weight: 500;
  font-style: italic;
  font-synthesis: none;
  font-size: 16px;
  line-height: 1.45;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
iframe {
  display: block;
  max-width: 100%;
}

.hub {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 44px 0 32px;
  text-align: center;
}

.page {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 44px 0 32px;
  text-align: center;
}

.brand-header {
  display: grid;
  justify-items: center;
  margin-bottom: 30px;
}

.brand-header img {
  width: clamp(83px, 24.4vw, 173px);
  height: auto;
}

.link-list a:hover,
.socials a:hover,
.row:hover,
.footer a:hover {
  transform: translateY(-2px);
}

.socials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 20px 0 10px;
}

.socials a {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  transition: transform 160ms ease, background-color 160ms ease;
}

.socials img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: invert(1);
  opacity: 0.92;
}

.footer-socials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-socials a {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.footer-socials img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: invert(1);
  opacity: 0.82;
}

.featured-links,
.link-list {
  margin-top: 16px;
}

.image-link {
  display: grid;
  width: 100%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 2px solid var(--fg);
  border-radius: 28px;
  background: var(--button);
  color: var(--button-fg);
  box-shadow: none;
  animation: alienzone-pulse 2.8s ease-in-out infinite both;
}

.image-link:focus-visible {
  outline: 3px solid var(--fg);
  outline-offset: 4px;
}

.image-link > img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

@keyframes alienzone-pulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.01);
  }
}

@media (prefers-reduced-motion: reduce) {
  .image-link {
    animation: none;
  }
}

.link-list {
  display: grid;
  gap: 14px;
}

.link-list a,
.row {
  display: grid;
  min-height: 64px;
  place-items: center;
  padding: 16px 22px;
  border: 2px solid var(--fg);
  border-radius: 999px;
  background: var(--button);
  color: var(--button-fg);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.15;
  text-transform: lowercase;
  box-shadow: 0 8px 0 rgba(244, 241, 234, 0.12);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.link-list a img {
  width: auto;
  height: 34px;
  max-width: 52px;
  object-fit: contain;
}

.link-list a:hover,
.row:hover {
  box-shadow: 0 10px 0 rgba(244, 241, 234, 0.16);
}

.footer {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding-top: 30px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.footer a {
  display: inline-block;
  transition: transform 160ms ease;
}

.section {
  padding: 34px 0;
}

.section h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.section-title-visible h2 {
  position: static;
  width: auto;
  height: auto;
  margin: 0 0 18px;
  overflow: visible;
  clip: auto;
  white-space: normal;
  color: var(--muted);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
}

.stack {
  display: grid;
  gap: 14px;
}

.row > span {
  display: grid;
  gap: 10px;
  justify-items: center;
}

strong {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.15;
}

.thumbnail {
  width: min(100%, 360px);
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  background: var(--soft);
}

@media (min-width: 768px) {
  :root {
    --max: 720px;
  }

  .hub,
  .page {
    padding-top: 64px;
  }
}

@media (min-width: 1180px) {
  :root {
    --max: 760px;
  }
}
