:root {
  color-scheme: dark;
  --header-bg: #421012;
  --forum-blue: #8ec9ef;
  --forum-green: #77ee57;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-width: 320px;
  height: 100%;
  overflow: clip;
}

body {
  position: fixed;
  inset: 0;
  width: 100%;
  background: #e2dfdf;
}

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

#main {
  position: fixed;
  inset: 0;
  display: none;
  width: min(100%, 960px);
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  margin-inline: auto;
  overflow: hidden;
  background: var(--header-bg);
  flex-direction: column;
  contain: layout paint;
}

.ra-jumbotron {
  flex: 0 0 auto;
  width: 100%;
  margin: 0;
  padding: 15px;
  color: white;
  background: var(--header-bg);
}

.hero-layout {
  display: grid;
  grid-template-columns: clamp(96px, 15vw, 140px) minmax(0, 1fr);
  gap: clamp(18px, 4vw, 44px);
  align-items: start;
}

.hero-logo {
  min-width: 0;
}

.hero-content {
  min-width: 0;
}

.ra-img-width {
  width: 100%;
  margin: 0;
}

.title-header,
.title-header2 {
  font-family: "PT Serif", serif;
  font-weight: 500;
  line-height: 1.08;
  text-align: center;
}

.title-header {
  margin: 0 0 14px;
  color: #62b4ea;
  font-size: clamp(2rem, 5.2vw, 3.5rem);
}

.title-header2 {
  margin: 0;
  color: #ff9800;
  font-size: clamp(1.35rem, 3.3vw, 2.25rem);
}

.sponsor {
  display: grid;
  gap: 4px;
  margin-top: clamp(22px, 4vw, 38px);
  text-align: right;
}

.title-line {
  min-width: 0;
  font-family: "Open Sans Condensed", sans-serif;
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.title-line:empty {
  display: none;
}

.row-forum-list {
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
  padding: clamp(24px, 5vh, 52px) clamp(28px, 8vw, 78px) 20px 48%;
  background: #c70918 url("../img/bg.jpg") left top / 100% 100% no-repeat;
}

.forum-list {
  display: grid;
  gap: clamp(4px, 1.2vh, 12px);
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: fantasy;
  font-size: clamp(1.8rem, min(5vw, 6.2vh), 3.5rem);
  font-weight: 700;
  line-height: 1.05;
  text-align: left;
}

.forum-list a {
  display: inline-block;
  color: var(--forum-blue);
  text-decoration: none;
  transition: color 160ms ease, transform 160ms ease;
}

.forum-list a:hover,
.forum-list a:focus-visible {
  color: var(--forum-green);
  transform: translateX(6px);
}

.forum-list a:focus-visible {
  outline: 3px solid white;
  outline-offset: 4px;
}

#loading {
  color: white;
  font-family: sans-serif;
}

@media (max-width: 620px) {
  .ra-jumbotron {
    padding: 15px;
  }

  .hero-layout {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 14px;
  }

  .title-header {
    margin-top: 3px;
    font-size: clamp(1.6rem, 8.5vw, 2.4rem);
  }

  .title-header2 {
    font-size: clamp(1.05rem, 5.8vw, 1.6rem);
  }

  .sponsor {
    margin-top: 18px;
    text-align: left;
  }

  .row-forum-list {
    min-height: 0;
    padding: clamp(20px, 4vh, 36px) 18px 18px 43%;
    background-position: 30% top;
  }

  .forum-list {
    gap: clamp(5px, 1.2vh, 10px);
    font-size: clamp(1.35rem, min(7.5vw, 4.8vh), 2.35rem);
  }
}

@media (max-width: 390px) {
  .row-forum-list {
    padding-left: 38%;
  }

  .forum-list {
    font-size: clamp(1.25rem, min(7.2vw, 4.6vh), 1.7rem);
  }
}

@media (max-height: 520px) {
  .ra-jumbotron {
    padding: 15px;
  }

  .hero-layout {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 14px;
  }

  .title-header {
    margin: 0 0 4px;
    font-size: clamp(1.35rem, 6vh, 1.9rem);
  }

  .title-header2 {
    font-size: clamp(1rem, 4.5vh, 1.35rem);
  }

  .sponsor {
    gap: 1px;
    margin-top: 6px;
  }

  .title-line {
    font-size: clamp(0.75rem, 3.4vh, 1rem);
    line-height: 1.05;
  }

  .row-forum-list {
    padding-top: 10px;
    padding-bottom: 8px;
  }

  .forum-list {
    gap: 2px;
    font-size: clamp(1.05rem, min(4vw, 4.8vh), 1.55rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .forum-list a {
    transition: none;
  }
}
