:root {
  color-scheme: dark;
  --ink: #10161a;
  --paper: #fff6e6;
  --muted: rgba(255, 246, 230, 0.82);
  --gold: #ffd475;
  --teal: #60d5c8;
  --sakura: #f3a5b9;
  font-family:
    "Inter", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  overflow: hidden;
}

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

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

.hero {
  position: relative;
  display: grid;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  padding: 38px 48px;
  grid-template-rows: 1fr;
  background:
    linear-gradient(90deg, rgba(5, 13, 17, 0.46), rgba(5, 13, 17, 0.08) 54%, rgba(5, 13, 17, 0.04)),
    linear-gradient(180deg, rgba(255, 226, 170, 0.18), rgba(255, 245, 218, 0.04) 42%, rgba(5, 12, 15, 0.1)),
    url("./assets/wuhan-hero.png") center / cover no-repeat;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 28%;
  content: "";
  background: linear-gradient(180deg, rgba(7, 16, 20, 0), rgba(7, 16, 20, 0.22));
  pointer-events: none;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 24% 30%, rgba(255, 212, 117, 0.28), transparent 30%),
    radial-gradient(circle at 70% 18%, rgba(96, 213, 200, 0.14), transparent 26%);
  pointer-events: none;
}

.hero__content,
.weather-strip {
  position: relative;
  z-index: 1;
}

.hero__content {
  position: absolute;
  top: 15vh;
  left: clamp(310px, 24vw, 430px);
  max-width: min(560px, 42vw);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 15px;
  font-weight: 700;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.34);
}

h1 {
  max-width: 8em;
  margin: 0;
  text-wrap: balance;
  color: #fff8e8;
  font-family:
    "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  font-size: clamp(58px, 5.4vw, 78px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: 0;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
}

.lede {
  max-width: 500px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.68;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.36);
}

.weather-strip {
  position: absolute;
  right: 54px;
  top: 42px;
  display: grid;
  justify-items: end;
  color: var(--paper);
  text-align: right;
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.48);
}

.weather-desc,
.weather-extra {
  display: block;
}

.weather-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.weather-icon {
  color: var(--sakura);
  font-size: 30px;
  line-height: 1;
}

.weather-temp {
  font-size: 58px;
  font-weight: 800;
  line-height: 0.96;
}

.weather-desc {
  margin-top: 4px;
  color: rgba(249, 243, 231, 0.86);
  font-size: 15px;
}

.weather-extra {
  margin-top: 5px;
  color: rgba(249, 243, 231, 0.68);
  font-size: 13px;
}

@media (max-width: 920px) {
  .hero {
    padding: 24px;
    background-position: 58% center;
  }

  .hero__content {
    top: 22vh;
    left: 24px;
    max-width: min(560px, calc(100vw - 48px));
  }

  h1 {
    font-size: 56px;
  }

  .lede {
    font-size: 16px;
  }

  .weather-strip {
    right: 28px;
    top: 24px;
  }
}

@media (max-width: 620px) {
  .hero {
    padding: 18px;
    background-position: 64% center;
  }

  .hero__content {
    top: 24vh;
    left: 18px;
    max-width: min(330px, calc(100vw - 36px));
  }

  .eyebrow {
    margin-bottom: 14px;
    font-size: 14px;
  }

  h1 {
    max-width: 7em;
    font-size: 40px;
  }

  .lede {
    max-width: 21em;
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.6;
  }

  .weather-strip {
    right: 18px;
    top: 16px;
  }

  .weather-temp {
    font-size: 42px;
  }
}

@media (max-height: 650px) {
  .hero {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .hero__content {
    top: 22vh;
  }

  h1 {
    font-size: 42px;
  }

  .lede {
    display: none;
  }

  .weather-temp {
    font-size: 38px;
  }
}
