:root {
  color-scheme: dark;
  font-family: Inter, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  color: #f7f8f7;
  background: #101719;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  min-height: 100svh;
}

a {
  color: inherit;
}

.portal {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  background: #101719 url("./assets/maligne-lake.jpg") center 48% / cover no-repeat;
}

.portal::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(8, 14, 16, 0.54);
}

.portal-header,
.portal-footer {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 40px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.wordmark-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 6px;
  background: rgba(16, 23, 25, 0.54);
  font-size: 12px;
  font-weight: 850;
}

.portal-main {
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 44px 9vw 72px;
}

.portal-copy {
  width: min(700px, 100%);
  animation: portal-in 520ms ease-out both;
}

.portal-copy p {
  margin: 0 0 14px;
  color: #d8e9e0;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.portal-copy h1 {
  margin: 0;
  color: #fff;
  font-size: 76px;
  font-weight: 780;
  line-height: 1.04;
  text-shadow: 0 3px 22px rgba(0, 0, 0, 0.34);
}

.portal-action {
  width: max-content;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 6px;
  color: #111719;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.portal-action:hover,
.portal-action:focus-visible {
  color: #052d27;
  background: #fff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  transform: translateY(-2px);
}

.portal-action:focus-visible,
.wordmark:focus-visible,
.portal-footer a:focus-visible {
  outline: 2px solid #bfe5d4;
  outline-offset: 4px;
}

.portal-footer {
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
}

.photo-credit {
  text-align: right;
}

.portal-footer a {
  text-underline-offset: 2px;
}

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

@media (max-width: 700px) {
  .portal {
    background-position: 59% center;
  }

  .portal::before {
    background: rgba(8, 14, 16, 0.58);
  }

  .portal-header,
  .portal-footer {
    padding: 20px;
  }

  .portal-main {
    align-items: end;
    padding: 40px 20px 62px;
  }

  .portal-copy h1 {
    font-size: 48px;
  }

  .portal-action {
    margin-top: 26px;
  }

  .portal-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .photo-credit {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portal-copy {
    animation: none;
  }

  .portal-action {
    transition: none;
  }
}
