:root {
  color-scheme: light;
  --depth: #172d21;
  --canvas: #eef3e6;
  --ink: #263d30;
  --light: #fffbe9;
  --link-light: #e3edbc;
  --line: #bdccb4;
  --serif: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", SimSun, serif;
  --sans: "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", system-ui, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 1rem / 1.75 var(--sans);
}

a {
  color: inherit;
  text-underline-offset: 0.3em;
}

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 0.35rem;
}

.frame {
  width: min(100% - clamp(2.5rem, 10vw, 10rem), 77rem);
  margin-inline: auto;
}

.cover {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-block-size: max(36rem, min(53rem, 90vh));
  min-block-size: max(36rem, min(53rem, 90svh));
  background: var(--depth);
  color: var(--light);
}

.cover-image,
.cover::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cover-image {
  z-index: -2;
  object-fit: cover;
  object-position: 58% 49%;
}

.cover::after {
  z-index: -1;
  content: "";
  background: linear-gradient(90deg, #172d21e6 0%, #172d21a6 32%, #172d2142 56%, transparent 81%);
}

.cover-content {
  padding-block: 5rem;
}

.cover h1 {
  margin: 0;
  font: 700 clamp(5.75rem, 12vw, 10rem) / 1.04 var(--serif);
  letter-spacing: 0.105em;
}

.cover p {
  margin: clamp(1.5rem, 3vw, 2.6rem) 0 0;
  font: 400 clamp(1.1rem, 2.1vw, 1.55rem) / 1.8 var(--serif);
  letter-spacing: 0.1em;
}

.cover-link {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 44px;
  margin-top: clamp(1.3rem, 2.5vw, 2.3rem);
  color: var(--link-light);
  text-decoration-thickness: 1px;
}

.cover-link:hover {
  color: var(--light);
}

.cover-link span {
  width: 0.45em;
  height: 0.45em;
  margin-top: -0.23em;
  transform: rotate(45deg);
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
}

.summer {
  scroll-margin-top: 1rem;
}

.summer-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 0.75rem clamp(2rem, 7vw, 7rem);
  padding-block: clamp(2.9rem, 8vw, 7.5rem);
}

.summer h2 {
  margin: 0;
  font: 700 clamp(2.1rem, 4vw, 3.3rem) / 1.25 var(--serif);
  letter-spacing: 0.06em;
}

.summer p {
  max-width: 29em;
  margin: 0;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.95;
}

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 5rem;
  padding-block: 0.6rem;
  font-size: 0.875rem;
}

.footer-content a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

@media (max-width: 44rem) {
  .cover {
    align-items: end;
    min-block-size: max(33rem, 79vh);
    min-block-size: max(33rem, 79svh);
  }

  .cover-image {
    object-position: 66% center;
  }

  .cover::after {
    background: linear-gradient(0deg, #172d21f2 0%, #172d21c2 28%, #172d2130 65%, transparent 92%);
  }

  .cover-content {
    padding-block: 4.25rem 2.45rem;
  }

  .cover h1 {
    font-size: clamp(4.4rem, 17vw, 6.7rem);
  }

  .summer-content {
    grid-template-columns: 1fr;
  }
}
