:root {
  --ink: #f6eef8;
  --muted: #c9b3d4;
  --base: #0a0610;
  --plum: #16081c;
  --magenta: #e11d74;
  --magenta-deep: #c2185b;
  --violet: #5b21b6;
  --violet-deep: #3b0764;
  --hairline: linear-gradient(90deg, var(--magenta), var(--violet));
  --serif: "Source Serif 4", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--base);
  line-height: 1.5;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 55% at 18% 12%, rgba(225, 29, 116, 0.28), transparent 55%),
    radial-gradient(ellipse 70% 50% at 88% 8%, rgba(91, 33, 182, 0.34), transparent 50%),
    radial-gradient(ellipse 60% 40% at 70% 88%, rgba(194, 24, 91, 0.16), transparent 55%),
    radial-gradient(ellipse 50% 35% at 12% 78%, rgba(59, 7, 100, 0.45), transparent 50%),
    var(--base);
  animation: iridescence 18s ease-in-out infinite alternate;
}

@keyframes iridescence {
  from {
    filter: hue-rotate(0deg) saturate(1);
  }
  to {
    filter: hue-rotate(12deg) saturate(1.12);
  }
}

.page {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 3rem;
}

.masthead {
  text-align: center;
  margin-bottom: 3.25rem;
}

.wordmark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(3.2rem, 8vw, 5.4rem);
  min-height: 1.35em;
  padding: 0.12em 0.35em;
}

.wordmark-knife {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 108%;
  height: 1.2em;
  transform: translate(-50%, -50%);
  object-fit: contain;
  pointer-events: none;
  z-index: 0;
}

.masthead h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0.08em 0.06em 0.14em;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1em;
  letter-spacing: 0.04em;
  line-height: 1.2;
  overflow: visible;
  color: #f4d7ff;
  text-shadow: 0 1px 12px rgba(10, 6, 16, 0.55);
}

.roles {
  margin: 0.35rem auto 0;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.tagline {
  margin: 0.55rem auto 0;
  max-width: 28rem;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 400;
}

.layout {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 860px) {
  .layout {
    grid-template-columns: 1.05fr 1fr;
    align-items: stretch;
  }
}

.steam-card,
.directory-item {
  position: relative;
  background: rgba(22, 8, 28, 0.72);
  backdrop-filter: blur(10px);
  border: 1px solid transparent;
  background-clip: padding-box;
}

.steam-card::before,
.directory-item::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: var(--hairline);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.steam-card {
  border-radius: 2px;
  padding: 2rem 1.85rem 1.85rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.steam-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(91, 33, 182, 0.18);
}

.eyebrow {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  max-width: 22rem;
}

.steam-card h2 {
  margin: 0.65rem 0 0.85rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 2.15rem;
}

.cta-group {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  padding: 0.72rem 1.2rem;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  background: linear-gradient(120deg, var(--magenta-deep), var(--violet));
  border-radius: 1px;
  transition: filter 0.25s ease, transform 0.25s ease;
}

.cta-secondary {
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(225, 29, 116, 0.65);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.55rem;
  height: 2.55rem;
  padding: 0;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.icon-btn img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.icon-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.icon-btn:focus-visible {
  outline: 2px solid #ff7ab8;
  outline-offset: 3px;
}

.cta:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.cta:focus-visible,
.directory-item:focus-visible {
  outline: 2px solid #ff7ab8;
  outline-offset: 3px;
}

.directory {
  margin: 0;
}

.directory-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  height: 100%;
}

button.directory-item {
  width: 100%;
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
  border: 0;
}

.directory-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-radius: 2px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, background 0.3s ease;
}

.directory-item:hover {
  transform: translateY(-2px);
  background: rgba(40, 12, 48, 0.82);
}

.item-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.item-name {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
}

.item-role {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.item-role.item-handle {
  text-transform: none;
  letter-spacing: 0.04em;
}

.item-action {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #ff8fc4;
  font-weight: 600;
}

.colophon {
  margin-top: 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.mark {
  width: 42px;
  height: 2px;
  background: var(--hairline);
  border-radius: 1px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  .page {
    padding-top: 3rem;
  }

  .steam-card {
    padding: 1.5rem 1.25rem;
  }
}

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

  .steam-card,
  .directory-item,
  .cta {
    transition: none;
  }
}
