@font-face {
  font-family: "Montserrat";
  src: url("assets/fonts/montserrat-300.ttf") format("truetype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("assets/fonts/montserrat-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("assets/fonts/montserrat-500.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("assets/fonts/montserrat-600.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("assets/fonts/montserrat-700.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Oswald";
  src: url("assets/fonts/oswald-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Oswald";
  src: url("assets/fonts/oswald-500.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Oswald";
  src: url("assets/fonts/oswald-600.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Oswald";
  src: url("assets/fonts/oswald-700.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --black: #000;
  --charcoal: #282828;
  --green: #123bea;
  --green-dark: #0a39ec;
  --accent-ink: #fff;
  --brand-width: 270px;
  --brand-mobile-width: 170px;
  --brand-footer-width: 225px;
  --white: #fff;
  --muted: #b9b9b9;
}

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

html {
  background: var(--black);
  scroll-behavior: smooth;
}

body {
  min-width: 280px;
  margin: 0;
  overflow-x: hidden;
  background: var(--black);
  color: var(--white);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: 0;
}

body.menu-open {
  overflow: hidden;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: var(--black);
}

.desktop-header {
  display: block;
}

.desktop-brand-row {
  display: flex;
  height: 67px;
  align-items: center;
  justify-content: center;
  background: var(--black);
}

.brand-link {
  display: block;
}

.brand-logo {
  width: var(--brand-width);
  height: auto;
}

.desktop-nav {
  height: 55px;
  background: var(--charcoal);
}

.desktop-nav-inner {
  display: flex;
  width: 96%;
  max-width: 1300px;
  height: 55px;
  margin: 0 auto;
  align-items: stretch;
  justify-content: space-between;
}

.desktop-nav-left,
.desktop-nav-right {
  display: flex;
  align-items: stretch;
}

.desktop-nav-left a {
  display: flex;
  min-width: 180px;
  padding: 0 20px;
  align-items: center;
  justify-content: center;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  color: #dedede;
  font-size: 20px;
  font-weight: 400;
  text-transform: uppercase;
}

.desktop-nav-left a:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.desktop-login,
.desktop-join {
  display: flex;
  height: 55px;
  padding: 0 30px;
  align-items: center;
  justify-content: center;
  font-family: "Oswald", Arial, sans-serif;
  font-size: 26px;
  font-weight: 700;
  text-transform: uppercase;
  text-shadow: 2px 2px rgba(0, 0, 0, 0.18);
}

.desktop-login {
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
}

.desktop-join {
  min-width: 158px;
  background: var(--green-dark);
  color: var(--accent-ink);
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible {
  filter: brightness(1.12);
}

.mobile-header,
.mobile-menu {
  display: none;
}

.media-grid {
  display: grid;
  width: calc(100% - 32px);
  max-width: 1600px;
  margin: 0 auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  background: var(--black);
}

.media-tile {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background: #111;
  isolation: isolate;
}

.tile-square {
  aspect-ratio: 1 / 1;
}

.tile-portrait {
  aspect-ratio: 1 / 2;
}

.media-tile img,
.media-tile video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-tile img {
  z-index: 1;
}

.media-tile video {
  z-index: 2;
  background: #111;
}

.media-tile:hover,
.media-tile:focus-visible {
  filter: brightness(0.72);
  outline: none;
}

.media-tile:focus-visible::after {
  position: absolute;
  z-index: 3;
  inset: 3px;
  border: 2px solid var(--white);
  content: "";
}

.conversion-section {
  display: flex;
  min-height: 240px;
  padding: 15px 20px 40px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}

.pagination {
  display: flex;
  height: 40px;
  margin: 0 auto 25px;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.pagination a {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid #777;
  background: #eee;
  color: #6c6c6c;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.pagination a.current {
  border-color: #555;
  background: #ccc;
}

.pagination a:hover,
.pagination a:focus-visible {
  background: #fff;
  color: #222;
}

.access-cta {
  display: flex;
  width: min(478px, 90vw);
  height: 76px;
  align-items: center;
  justify-content: flex-start;
  background: var(--green);
  color: var(--accent-ink);
  font-size: 35px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}

.access-icon {
  width: 74px;
  height: 76px;
  flex: 0 0 74px;
  background: var(--green) url("assets/media/lock.webp") center / auto 57px no-repeat;
}

.access-cta > span:last-child {
  flex: 1;
  padding: 0 24px 0 10px;
}

.access-cta:hover .access-icon,
.access-cta:focus-visible .access-icon {
  background-image: url("assets/media/unlocked.webp");
}

.site-footer {
  padding: 0 28px 34px;
  background: var(--black);
  color: var(--white);
  text-align: center;
}

.footer-brand {
  display: block;
  width: var(--brand-footer-width);
  margin: 0 auto 28px;
}

.footer-brand img {
  width: var(--brand-footer-width);
  height: auto;
}

.footer-links {
  display: flex;
  max-width: 1200px;
  margin: 0 auto 24px;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px 9px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  text-decoration: underline;
}

.footer-copy {
  max-width: 1040px;
  margin: 0 auto;
  color: #e5e5e5;
}

.footer-copy h2 {
  margin: 0 0 12px;
  color: var(--white);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  text-transform: uppercase;
}

.footer-copy p {
  margin: 0 auto 12px;
  font-size: 12px;
  line-height: 1.65;
}

.rta-logo {
  width: 120px;
  height: 60px;
  margin: 22px auto 0;
  object-fit: contain;
}

@media (max-width: 1100px) and (min-width: 769px) {
  .desktop-nav-left a {
    min-width: 0;
    padding: 0 16px;
    font-size: 16px;
  }

  .desktop-login,
  .desktop-join {
    padding: 0 22px;
    font-size: 23px;
  }
}

@media (max-width: 768px) {
  .desktop-header {
    display: none;
  }

  .mobile-header {
    position: relative;
    z-index: 1003;
    display: flex;
    width: 100%;
    height: 45px;
    padding: 0 10px 0 0;
    align-items: center;
    justify-content: space-between;
    background: var(--black);
  }

  .menu-toggle {
    position: relative;
    width: 60px;
    height: 45px;
    flex: 0 0 60px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .menu-toggle span {
    position: absolute;
    left: 16px;
    width: 25px;
    height: 3px;
    background: var(--white);
    transition: transform 180ms ease, opacity 150ms ease;
  }

  .menu-toggle span:nth-child(1) {
    top: 14px;
  }

  .menu-toggle span:nth-child(2) {
    top: 22px;
  }

  .menu-toggle span:nth-child(3) {
    top: 30px;
  }

  body.menu-open .menu-toggle span:nth-child(1) {
    top: 21px;
    transform: rotate(40deg);
  }

  body.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  body.menu-open .menu-toggle span:nth-child(3) {
    top: 21px;
    transform: rotate(-40deg);
  }

  .mobile-brand {
    position: absolute;
    top: 8px;
    left: calc(50% - 16px);
    width: var(--brand-mobile-width);
    transform: translateX(-50%);
  }

  .mobile-brand img {
    width: var(--brand-mobile-width);
    height: auto;
  }

  .mobile-join {
    display: flex;
    min-width: 83px;
    height: 26px;
    margin-left: auto;
    padding: 0 8px;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    background: var(--green);
    color: var(--accent-ink);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
  }

  body.menu-open .mobile-join {
    visibility: hidden;
  }

  .mobile-menu {
    position: fixed;
    z-index: 1002;
    inset: 0;
    display: flex;
    padding: 61px 40px 30px;
    flex-direction: column;
    align-items: flex-start;
    background: var(--black);
  }

  .mobile-menu[hidden] {
    display: none;
  }

  .mobile-menu a {
    width: auto;
    margin: 0;
    padding: 0;
    color: var(--white);
    font-size: 24px;
    font-weight: 400;
    line-height: 2.2;
    text-transform: uppercase;
  }

  .mobile-menu .mobile-menu-join {
    display: grid;
    width: 240px;
    height: 50px;
    margin-top: 7px;
    padding: 0;
    place-items: center;
    border-radius: 5px;
    background: var(--green);
    color: var(--accent-ink);
    line-height: 1;
  }

  .media-grid {
    width: 100%;
    max-width: none;
    margin-top: -4px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .media-tile:hover {
    filter: none;
  }

  .conversion-section {
    min-height: 155px;
    padding: 20px 10px 30px;
  }

  .pagination {
    margin-bottom: 20px;
  }

  .access-cta {
    width: 90%;
    max-width: 430px;
    height: 60px;
    font-size: 22px;
  }

  .access-icon {
    width: 20%;
    height: 60px;
    flex-basis: 20%;
    background-size: auto 44px;
  }

  .site-footer {
    padding: 0 14px 28px;
  }

  .footer-brand {
    width: var(--brand-footer-width);
    margin-bottom: 24px;
  }

  .footer-brand img {
    width: var(--brand-footer-width);
  }

  .footer-copy h2 {
    font-size: 16px;
  }

  .footer-copy p {
    font-size: 11px;
    line-height: 1.6;
  }
}

@media (max-width: 480px) {
  .pagination {
    display: none;
  }

  .conversion-section {
    min-height: 110px;
    padding-top: 25px;
  }

  .access-cta {
    font-size: 20px;
  }

  .footer-links {
    font-size: 10px;
  }
}

@media (max-width: 360px) {
  .mobile-brand,
  .mobile-brand img {
    width: 132px;
  }

  .mobile-brand {
    left: 50%;
  }

  .mobile-join {
    min-width: 76px;
    font-size: 11px;
  }

  .mobile-menu {
    padding-left: 32px;
  }

  .mobile-menu a {
    font-size: 21px;
  }

  .mobile-menu .mobile-menu-join {
    width: min(240px, calc(100vw - 64px));
  }

  .access-cta {
    font-size: 18px;
  }
}

@media (max-width: 320px) {
  .mobile-brand,
  .mobile-brand img {
    width: 108px;
  }

  .mobile-join {
    min-width: 68px;
    padding-inline: 5px;
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
