/* Reflex Gaming — responsive layout and visual system */

:root {
  color-scheme: dark;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #fff;
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

html {
  min-width: 280px;
  min-height: 100%;
  overflow-x: clip;
  background: #087bb8;
  overscroll-behavior-x: none;
}

body {
  display: flex;
  flex-direction: column;
  min-width: 280px;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  margin: 0;
  overflow-x: clip;
  background: linear-gradient(180deg, #087bb8 0%, #07527f 24%, #032b45 56%, #000 100%);
  color: #fff;
}

.site-header,
.site-footer {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding-right: max(1rem, env(safe-area-inset-right, 0px));
  padding-left: max(1rem, env(safe-area-inset-left, 0px));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: clamp(4.25rem, 8vw, 5.5rem);
  padding-top: calc(.65rem + env(safe-area-inset-top, 0px));
  padding-bottom: .65rem;
  border-bottom: 1px solid rgb(255 255 255 / 12%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  color: inherit;
  text-decoration: none;
}

.brand:focus-visible {
  border-radius: .25rem;
  outline: 2px solid #a9e3ff;
  outline-offset: .35rem;
}

.brand-name {
  overflow-wrap: anywhere;
  font-size: clamp(1.05rem, 3vw, 1.5rem);
  font-weight: 750;
  letter-spacing: clamp(.16em, 1vw, .28em);
  line-height: 1.15;
  text-align: center;
  text-indent: .16em;
  text-shadow: 0 1px 12px rgb(255 255 255 / 12%);
}

.page {
  display: grid;
  flex: 1 0 auto;
  place-items: center;
  width: 100%;
  padding: clamp(2rem, 5vw, 4.5rem)
    max(clamp(1rem, 4vw, 3rem), env(safe-area-inset-right, 0px))
    clamp(2rem, 5vw, 4.5rem)
    max(clamp(1rem, 4vw, 3rem), env(safe-area-inset-left, 0px));
}

.about {
  display: grid;
  grid-template-columns: minmax(280px, .88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  width: min(100%, 1180px);
  margin-inline: auto;
}

.about__portrait {
  position: relative;
  justify-self: center;
  width: min(100%, 490px);
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid #000;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 18%, rgb(255 255 255 / 24%), transparent 38%),
    radial-gradient(circle at 50% 55%, #168dcc, #06263f 72%, #020b13);
  box-shadow:
    0 24px 70px rgb(0 0 0 / 30%),
    0 0 40px rgb(45 171 255 / 18%),
    inset 0 1px 2px rgb(255 255 255 / 42%),
    inset 0 -2px 5px rgb(0 0 0 / 28%);
}

.about__portrait::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  content: "";
  background: transparent;
  cursor: default;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  touch-action: pan-y pinch-zoom;
}

.about__logo {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.about__content {
  min-width: 0;
  max-width: 650px;
  justify-self: start;
}

.about__eyebrow,
.socials__eyebrow {
  margin: 0 0 .8rem;
  color: #a9e3ff;
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: .16em;
  line-height: 1.4;
}

.about__lead {
  margin: 0 0 1.65rem;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 720;
  letter-spacing: -.045em;
  line-height: 1.12;
  text-wrap: balance;
}

.about__content > p:not(.about__eyebrow) {
  margin: 0 0 1.1rem;
  color: rgb(255 255 255 / 88%);
  font-size: clamp(1rem, 1.2vw, 1.08rem);
  font-weight: 400;
  line-height: 1.85;
  text-wrap: pretty;
}

.about__content > .about__signoff {
  margin-top: 1.35rem;
  margin-bottom: 0;
}

.socials {
  flex: 0 0 auto;
  width: 100%;
  padding: clamp(1.8rem, 4vw, 3rem)
    max(clamp(1rem, 4vw, 3rem), env(safe-area-inset-right, 0px))
    clamp(2rem, 4vw, 3.25rem)
    max(clamp(1rem, 4vw, 3rem), env(safe-area-inset-left, 0px));
  border-top: 1px solid rgb(255 255 255 / 12%);
}

.socials__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 1180px);
  margin-inline: auto;
}

.socials__eyebrow {
  margin-bottom: 1.1rem;
  text-align: center;
}

.socials__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-content: center;
  align-self: center;
  gap: clamp(.85rem, 2vw, 1.25rem);
  width: min(100%, 820px);
  margin-inline: auto;
}

.social-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 6.1rem;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  padding: 1.1rem clamp(1rem, 2vw, 1.4rem);
  border: 1px solid rgb(255 255 255 / 17%);
  border-radius: 1.25rem;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 9%), rgb(255 255 255 / 3%)),
    rgb(0 12 24 / 20%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 9%),
    0 10px 28px rgb(0 0 0 / 12%);
  color: #fff;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.social-card:active {
  transform: translateY(0);
}

.social-card:focus-visible {
  outline: 2px solid #a9e3ff;
  outline-offset: 3px;
}

.social-card__icon {
  display: block;
  flex: 0 0 2.35rem;
  width: 2.35rem;
  height: 2.35rem;
}

.social-card__copy {
  display: grid;
  min-width: 0;
  gap: .28rem;
}

.social-card__name {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
}

.social-card__note {
  color: rgb(255 255 255 / 68%);
  font-size: .76rem;
  font-weight: 400;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.social-card__arrow {
  position: absolute;
  top: 50%;
  right: clamp(1rem, 2vw, 1.4rem);
  translate: 0 -50%;
  flex: 0 0 1.1rem;
  width: 1.1rem;
  height: 1.1rem;
  color: rgb(255 255 255 / 58%);
  transition: color 180ms ease, transform 180ms ease;
}

.site-footer {
  min-height: clamp(4.5rem, 9vw, 5.25rem);
  padding-top: 1rem;
  padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgb(255 255 255 / 12%);
  text-align: center;
}

.site-footer__text {
  max-width: 100%;
  margin: 0;
  color: inherit;
  font-size: clamp(.85rem, 1.8vw, 1.05rem);
  font-weight: 550;
  letter-spacing: .025em;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

@media (hover: hover) and (pointer: fine) {
  .social-card:hover {
    transform: translateY(-2px);
    border-color: rgb(169 227 255 / 48%);
    background-color: rgb(255 255 255 / 4%);
    box-shadow:
      inset 0 1px 0 rgb(255 255 255 / 12%),
      0 14px 32px rgb(0 0 0 / 20%);
  }

  .social-card:hover .social-card__arrow {
    transform: translate(2px, -2px);
    color: #a9e3ff;
  }

}

@media (max-width: 760px) {
  .page {
    padding-top: clamp(1.5rem, 5vw, 2.5rem);
    padding-bottom: clamp(1.5rem, 5vw, 2.5rem);
  }

  .about {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(1.5rem, 5vw, 2.25rem);
    justify-items: center;
  }

  .about__portrait {
    width: min(82vw, 430px);
  }

  .about__content {
    width: min(100%, 650px);
    justify-self: center;
    text-align: center;
  }

  .about__lead {
    margin-bottom: 1.35rem;
    font-size: clamp(2rem, 7.5vw, 2.8rem);
  }

  .about__content > p:not(.about__eyebrow) {
    line-height: 1.8;
  }

  .socials {
    padding-top: 1.7rem;
    padding-bottom: 2rem;
  }

  .socials__inner {
    width: min(100%, 650px);
  }

  .socials__grid {
    grid-template-columns: minmax(0, 1fr);
    width: min(100%, 480px);
  }

  .social-card {
    min-height: 5.65rem;
    justify-content: flex-start;
  }

  .social-card__arrow {
    position: static;
    top: auto;
    translate: none;
    flex: 0 0 1.1rem;
    margin-left: auto;
  }
}

@media (max-width: 360px) {
  .site-header {
    min-height: 4rem;
    padding-bottom: .5rem;
  }

  .brand-name {
    font-size: 1rem;
    letter-spacing: .14em;
    text-indent: .14em;
  }

  .page {
    padding-right: max(.85rem, env(safe-area-inset-right, 0px));
    padding-left: max(.85rem, env(safe-area-inset-left, 0px));
  }

  .about__portrait {
    width: min(82vw, 300px);
  }

  .about__lead {
    font-size: clamp(1.8rem, 8vw, 2.2rem);
  }
}

@media (max-height: 480px) and (orientation: landscape) {
  .site-header {
    position: relative;
    min-height: 3.5rem;
    padding-bottom: .4rem;
  }

  .page {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
  }

  .about {
    grid-template-columns: minmax(180px, .7fr) minmax(0, 1.3fr);
    gap: 1.5rem;
  }

  .about__portrait {
    width: min(100%, 300px);
  }

  .site-footer {
    min-height: 3.5rem;
    padding-top: .65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .social-card:hover,
  .social-card:active,
  .social-card:hover .social-card__arrow {
    transform: none;
  }
}
