:root {
  --hero-image: none;
  --hero-color: #242c28;
  --paper: #f6efe3;
  --ink: #f8f1e6;
  --muted: rgb(248 241 230 / 0.68);
  --veil: rgb(12 18 15 / 0.42);
  color-scheme: dark;
  font-family: "MiSans", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--hero-color);
  color: var(--ink);
}

a {
  color: inherit;
}

.page-shell,
.hero {
  min-height: 100svh;
}

.page-shell {
  overflow: hidden;
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  padding: clamp(24px, 4vw, 56px);
  isolation: isolate;
}

.hero::before,
.hero::after {
  position: absolute;
  inset: 0;
  content: "";
}

.hero::before {
  z-index: -2;
  background:
    var(--hero-image),
    linear-gradient(135deg, #2a342f, #131917);
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
  filter: saturate(0.94) contrast(1.04);
}

.hero::after {
  z-index: -1;
  background:
    linear-gradient(90deg, rgb(8 13 11 / 0.78) 0%, rgb(8 13 11 / 0.46) 38%, rgb(8 13 11 / 0.1) 74%),
    linear-gradient(180deg, rgb(0 0 0 / 0.08) 0%, rgb(0 0 0 / 0.45) 100%);
}

.topbar {
  position: absolute;
  top: clamp(22px, 3vw, 42px);
  left: clamp(24px, 4vw, 56px);
  right: clamp(24px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand,
.primary-action {
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-text {
  color: var(--paper);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 760;
  letter-spacing: 0;
}

.login-stage {
  width: min(100%, 680px);
  padding-bottom: clamp(48px, 9vh, 116px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: clamp(13px, 1.3vw, 16px);
  font-weight: 650;
  letter-spacing: 0.08em;
}

h1 {
  margin: 0 0 clamp(24px, 4vh, 44px);
  color: var(--paper);
  font-size: clamp(86px, 16vw, 210px);
  line-height: 0.82;
  font-weight: 820;
  letter-spacing: 0;
}

.primary-action {
  display: inline-flex;
  min-width: 168px;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--paper);
  color: #121a16;
  padding: 0 21px 0 26px;
  font-size: 18px;
  font-weight: 760;
  box-shadow: 0 24px 64px rgb(0 0 0 / 0.28);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.primary-action:hover {
  transform: translateY(-2px);
  background: #fff7ea;
  box-shadow: 0 30px 78px rgb(0 0 0 / 0.34);
}

.primary-action:focus-visible {
  outline: 3px solid rgb(246 239 227 / 0.7);
  outline-offset: 4px;
}

.primary-action svg {
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
}

.photo-credit {
  position: absolute;
  right: clamp(20px, 4vw, 56px);
  bottom: clamp(18px, 3vw, 32px);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: min(42vw, 360px);
  color: rgb(246 239 227 / 0.56);
  font-size: 12px;
}

.photo-credit a {
  min-width: 0;
  overflow: hidden;
  color: rgb(246 239 227 / 0.78);
  text-overflow: ellipsis;
  text-decoration-color: rgb(246 239 227 / 0.32);
  text-underline-offset: 3px;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .hero {
    align-items: center;
    padding-inline: 22px;
  }

  .hero::after {
    background:
      linear-gradient(180deg, rgb(8 13 11 / 0.68) 0%, rgb(8 13 11 / 0.48) 46%, rgb(8 13 11 / 0.7) 100%);
  }

  .topbar {
    left: 22px;
    right: 22px;
  }

  .login-stage {
    padding-bottom: 0;
  }

  h1 {
    font-size: clamp(74px, 28vw, 132px);
  }

  .photo-credit {
    left: 22px;
    right: 22px;
  }
}

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