body.home-page {
  --home-hero-height: clamp(520px, 62vh, 760px);
  --home-image-edge-color: rgb(226, 240, 254);
  --home-weather-start-color: #78b9e7;
  position: relative;
  background: transparent;
}

.home-page > .site-shell-spacer { display: none; }

.home-hero {
  position: relative;
  z-index: 2;
  width: 100%;
  height: var(--home-hero-height);
  overflow: hidden;
  color: #17375f;
  background: transparent;
}

.home-hero__background {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url("/static/images/polar-bear-home-composite-v3.webp?v=1") center top / cover no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, #000 0 76%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0 76%, transparent 100%);
}

.home-hero__welcome,
.home-hero__quote {
  position: absolute;
  z-index: 3;
  left: max(6.5vw, 28px);
  font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
}

.home-hero__welcome {
  top: clamp(36px, 5vh, 54px);
  margin: 0;
  color: #294867;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .16em;
}

.home-hero__quote {
  top: clamp(148px, 18vh, 210px);
  width: min(48vw, 680px);
}

.home-hero__quote-text {
  margin: 0;
  color: #15375f;
  font-size: clamp(26px, 2.45vw, 39px);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: .025em;
  text-wrap: balance;
}

.home-hero__quote-from {
  margin: 8px 0 0;
  color: #567493;
  font-size: 15px;
  letter-spacing: .12em;
}

.home-hero__wish {
  margin: 10px 0 0;
  color: #7189a3;
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: .14em;
}

.home-page .page {
  position: relative;
  z-index: 3;
  padding: 0 16px 24px;
}

.home-page .container { max-width: 1240px; }

.home-tools {
  margin: -32px auto 20px;
  border-color: rgba(255, 255, 255, .74);
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 14px 42px rgba(57, 84, 111, .12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.home-tools__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.home-tools__heading .card-title {
  margin: 0;
  color: #15375f;
  font-size: 24px;
}

.home-tools__tagline {
  color: #6f89a6;
  font-size: 13px;
  letter-spacing: .06em;
}

.home-tools .tool-group {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(148, 163, 184, .20);
}

.home-tools .tool-group:last-child { border-bottom: 0; }

.home-tools .tool-group-title {
  margin: 0;
  color: #587493;
  font-size: 15px;
}

.home-tools .tool-group-title::after { display: none; }

.home-tools .tool-buttons { margin-top: 0; }

@media (min-aspect-ratio: 16/9) {
  .home-hero__background { background-position: center top; }
}

@media (max-aspect-ratio: 16/9) {
  .home-hero__background { background-position: 58% top; }
}

@media (max-width: 768px) {
  body.home-page { --home-hero-height: 440px; }
  .home-hero__background { background-position: 80% top; }
  .home-hero__welcome {
    top: 42px;
    left: 22px;
    font-size: 13px;
  }
  .home-hero__quote {
    top: 126px;
    left: 22px;
    width: calc(100% - 44px);
  }
  .home-hero__quote-text {
    max-width: 350px;
    font-size: clamp(19px, 5.2vw, 22px);
    line-height: 1.5;
  }
  .home-hero__quote-from,
  .home-hero__wish {
    max-width: 270px;
    font-size: 12px;
  }
  .home-page .page { padding-inline: 12px; }
  .home-tools { margin-top: -20px; }
  .home-tools__tagline { display: none; }
  .home-tools .tool-group {
    grid-template-columns: 1fr;
    gap: 7px;
  }
}

@media (max-width: 420px) {
  .home-hero__quote-text { font-size: 20px; }
  .home-hero__wish { display: none; }
}

@media (orientation: portrait) {
  body.home-page { --home-hero-height: clamp(340px, 44vh, 390px); }
  .home-hero__background {
    -webkit-mask-image: linear-gradient(to bottom, #000 0 56%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0 56%, transparent 100%);
  }
  .home-hero__quote { display: none; }
  .home-tools { margin-top: -90px; }
}
