@font-face {
  font-family: "Birthstone Bounce";
  src: url("../fonts/birthstone-bounce/Birthstone-Bounce-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #142d44;
  --muted: #71808b;
  --paper: #f8f7f3;
  --line: #dce1e2;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--navy);
  background:
    radial-gradient(circle at 50% 0%, #fff 0, rgba(255, 255, 255, 0) 42rem),
    var(--paper);
  font-family: "Montserrat", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page-shell {
  width: min(1180px, calc(100% - 64px));
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.site-header {
  min-height: 154px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 17px;
  flex: 0 1 auto;
}

.brand__bear {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.brand__logo {
  width: min(220px, 28vw);
  height: 68px;
  object-fit: contain;
  object-position: left center;
}

.welcome {
  text-align: right;
}

.welcome p {
  margin: 0;
}

.welcome__motto {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .28em;
}

.welcome__note {
  padding-top: 5px;
  font-family: "Birthstone Bounce", cursive;
  font-size: 27px;
  font-weight: 400;
  line-height: 1;
}

main {
  flex: 1;
}

.intro {
  padding: 47px 0 42px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 13px;
  color: #879199;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .31em;
}

.intro h1 {
  margin: 0;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.1;
}

.intro__lead {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: .02em;
}

.destinations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.destination {
  position: relative;
  min-height: 350px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 43px 45px;
  color: #fff;
  background-position: center;
  background-size: cover;
  text-decoration: none;
  isolation: isolate;
}

.destination::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(7, 22, 33, .04) 18%, rgba(7, 22, 33, .72) 100%);
}

.destination--forum {
  background-image: url("../images/forum-background.png");
}

.destination--moga {
  background-image: url("../images/moga-background.png");
}

.destination__content,
.destination__content > span {
  display: block;
}

.destination__eyebrow {
  margin-bottom: 9px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .3em;
}

.destination__title {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: 45px;
  font-weight: 600;
  line-height: 1.1;
}

.destination__description {
  min-height: 55px;
  margin-top: 10px;
  max-width: 350px;
  font-size: 14px;
  line-height: 1.65;
}

.destination__cta {
  width: fit-content;
  margin-top: 23px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, .72);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
}

.destination__cta span {
  display: inline-block;
  margin-left: 6px;
  transition: transform .2s ease;
}

.destination:hover .destination__cta span,
.destination:focus-visible .destination__cta span {
  transform: translateX(4px);
}

.destination:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 4px;
}

.worlds {
  margin: 45px 0 53px;
  text-align: center;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
}

.worlds em {
  margin-left: 4px;
  font-family: "Caveat", cursive;
  font-size: 25px;
  font-weight: 500;
}

.site-footer {
  min-height: 87px;
  padding: 27px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 30px;
  color: #75818a;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .14em;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 700px) {
  .page-shell {
    width: min(100% - 36px, 560px);
  }

  .site-header {
    min-height: 140px;
    align-items: center;
    gap: 18px;
  }

  .brand {
    gap: 9px;
  }

  .brand__bear {
    width: 50px;
    height: 50px;
  }

  .brand__logo {
    width: min(150px, 37vw);
    height: 50px;
  }

  .welcome__motto {
    max-width: 170px;
    font-size: 8px;
    line-height: 1.6;
  }

  .welcome__note {
    font-size: 22px;
  }

  .intro {
    padding: 30px 0 35px;
  }

  .destinations {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .destination {
    min-height: 330px;
    padding: 35px 31px;
  }

  .worlds {
    margin: 38px 0 42px;
  }

  .site-footer {
    min-height: 0;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    line-height: 1.5;
  }
}

@media (max-width: 450px) {
  .site-header {
    padding: 24px 0;
    flex-direction: column;
  }

  .brand__logo {
    width: 164px;
  }

  .welcome {
    text-align: center;
  }

  .welcome__motto {
    max-width: none;
  }

  .intro {
    padding-top: 25px;
  }

  .worlds {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
