/* OLD_Gamers v1 */

@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-variable.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-variable.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0c0e10;
  --bg-elevated: #15181b;
  --bg-elevated-2: #1b1f23;
  --line: rgba(236, 233, 226, 0.09);
  --line-strong: rgba(236, 233, 226, 0.16);
  --text: #ece9e2;
  --text-dim: #a8a197;
  --text-faint: #716c63;
  --accent: #cf8a42;
  --accent-strong: #e3a35e;
  --accent-ink: #1a1207;
  --sage: #8ea07d;
  --radius: 10px;
  --measure: 68ch;
  --container: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--accent-strong);
  text-decoration: underline;
  text-decoration-color: rgba(227, 163, 94, 0.45);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-color: currentColor;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

*:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Scrollbar */
html {
  scrollbar-color: var(--line-strong) var(--bg);
  scrollbar-width: thin;
}
::-webkit-scrollbar {
  width: 11px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-elevated-2);
  border-radius: 8px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--line-strong);
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  padding: 0.85em 1.4em;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.15s ease, box-shadow 0.15s ease;
}

.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn--primary:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -8px rgba(207, 138, 66, 0.55);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
}

.btn--ghost:hover {
  border-color: var(--accent-strong);
  color: var(--accent-strong);
  transform: translateY(-1px);
}

.icon {
  width: 1em;
  height: 1em;
  flex: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: rgba(12, 14, 16, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__mark {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

.site-header__mark span {
  color: var(--accent-strong);
}

.site-header .btn {
  padding: 0.55em 1.1em;
  font-size: 0.85rem;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 72px 24px 88px;
  overflow: hidden;
  background-image: radial-gradient(
      ellipse 70% 60% at 50% -10%,
      rgba(207, 138, 66, 0.16),
      transparent 60%
    ),
    repeating-linear-gradient(
      0deg,
      rgba(236, 233, 226, 0.035) 0px,
      rgba(236, 233, 226, 0.035) 1px,
      transparent 1px,
      transparent 72px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(236, 233, 226, 0.035) 0px,
      rgba(236, 233, 226, 0.035) 1px,
      transparent 1px,
      transparent 72px
    );
}

.hero__inner {
  max-width: var(--container);
  margin: 0 auto;
}

.hero__eyebrow {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 0 0 18px;
  opacity: 0;
  animation: rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.05s forwards;
}

.hero h1 {
  font-size: clamp(2.6rem, 11vw, 5.2rem);
  line-height: 0.98;
  color: var(--text);
  opacity: 0;
  animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.12s forwards;
}

.hero__tagline {
  margin: 22px 0 0;
  max-width: 34ch;
  font-size: clamp(1.05rem, 2.6vw, 1.3rem);
  color: var(--text-dim);
  opacity: 0;
  animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.hero__actions {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.28s forwards;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__eyebrow,
  .hero h1,
  .hero__tagline,
  .hero__actions {
    animation: none;
    opacity: 1;
  }
}

/* ---------- Sections ---------- */

section {
  padding: 64px 24px;
  border-top: 1px solid var(--line);
}

.section__head {
  max-width: var(--container);
  margin: 0 auto 32px;
}

.section__head h2 {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
}

.section__body {
  max-width: var(--container);
  margin: 0 auto;
}

/* About */

.about__lines {
  display: grid;
  gap: 18px;
  max-width: var(--measure);
}

.about__lines p {
  margin: 0;
  color: var(--text-dim);
  font-size: 1.05rem;
}

.about__lines p:first-child {
  color: var(--text);
}

/* Roster */

.roster__intro {
  margin: -8px 0 28px;
  color: var(--text-dim);
  max-width: var(--measure);
}

.roster-list {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.roster-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: var(--bg-elevated);
}

.roster-row__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex: none;
  object-fit: cover;
  background: var(--bg-elevated-2);
  border: 1px solid var(--line-strong);
}

.roster-row__avatar--initials {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent-strong);
  background: linear-gradient(160deg, var(--bg-elevated-2), var(--bg-elevated));
}

.roster-row__main {
  flex: 1 1 auto;
  min-width: 0;
}

.roster-row__tag {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
}

.roster-row__role {
  display: inline-block;
  margin-top: 2px;
  font-size: 0.82rem;
  color: var(--sage);
  font-weight: 500;
}

.roster-row__steam {
  flex: none;
  color: var(--text-faint);
  padding: 6px;
  border-radius: 6px;
}

.roster-row__steam:hover {
  color: var(--accent-strong);
  background: var(--bg-elevated-2);
}

.roster-empty {
  padding: 28px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--text-dim);
  text-align: center;
}

/* Tools */

.tool-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  max-width: var(--measure);
}

.tool-panel__name {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
}

.tool-panel__desc {
  margin: 0;
  color: var(--text-dim);
}

/* Footer */

.site-footer {
  padding: 32px 24px 48px;
  border-top: 1px solid var(--line);
}

.site-footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--text-faint);
  font-size: 0.85rem;
}

.site-footer a {
  color: var(--text-faint);
  text-decoration-color: var(--line-strong);
}

.site-footer a:hover {
  color: var(--accent-strong);
}

/* ---------- Breakpoints ---------- */

@media (min-width: 640px) {
  .roster-row {
    padding: 18px 22px;
  }
  .tool-panel {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .tool-panel__text {
    max-width: 60ch;
  }
}

@media (min-width: 860px) {
  .hero {
    padding: 108px 24px 120px;
  }
  section {
    padding: 88px 24px;
  }
}

[hidden] { display: none !important; }
