:root {
  color-scheme: light;
  --ink: #253833;
  --muted: #657b74;
  --paper: #f0faf6;
  --paper-deep: #e2f4ed;
  --accent: #4f8a78;
  --line: rgba(56, 116, 96, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "LXGW WenKai", "Kaiti SC", "Noto Serif SC", serif;
  line-height: 1.95;
}

button {
  font: inherit;
}

.reading-progress {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
}

.reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: #d7a097;
  transition: width 80ms linear;
}

.hero {
  position: relative;
  display: flex;
  min-height: min(88vh, 850px);
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
}

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

.hero-image {
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(18, 39, 29, 0.78) 0%, rgba(31, 64, 47, 0.38) 55%, rgba(34, 69, 51, 0.16) 100%),
    linear-gradient(0deg, rgba(20, 43, 32, 0.68) 0%, transparent 65%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 48px));
  margin: 0 auto;
  padding: 110px 0 92px;
}

.eyebrow,
.chapter-number {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.7);
  font-family: "Source Sans 3", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  letter-spacing: 0;
}

h1 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(36px, 6vw, 58px);
  font-weight: 500;
  line-height: 1.3;
}

.hero-copy {
  max-width: 570px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  line-height: 1.9;
}

.read-button {
  display: inline-flex;
  width: 112px;
  min-height: 44px;
  margin-top: 36px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 4px;
  color: #fff;
  background: rgba(8, 17, 16, 0.22);
  cursor: pointer;
  font-family: "Source Sans 3", sans-serif;
  font-size: 14px;
  transition: background 180ms ease, border-color 180ms ease;
}

.read-button:hover {
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(8, 17, 16, 0.48);
}

.read-button svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.letter {
  padding: 108px 24px 84px;
  background:
    linear-gradient(rgba(58, 135, 110, 0.04) 1px, transparent 1px);
  background-size: 100% 32px;
}

article {
  width: min(680px, 100%);
  margin: 0 auto;
}

.chapter {
  padding: 68px 0;
  border-top: 1px solid var(--line);
}

.chapter.opening {
  padding-top: 0;
  border-top: 0;
}

.chapter-number {
  margin-bottom: 12px;
  color: var(--accent);
}

h2 {
  margin: 0 0 38px;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 500;
  line-height: 1.5;
}

.chapter p {
  margin: 0 0 25px;
  font-size: 17px;
}

.chapter p:last-child {
  margin-bottom: 0;
}

.chapter .lead {
  margin-bottom: 34px;
  color: #31463a;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.85;
}

blockquote {
  margin: 20px 0 42px;
  padding: 18px 0 18px 25px;
  border-left: 2px solid var(--accent);
  color: #4f6558;
  font-size: 20px;
  line-height: 1.8;
}

blockquote p {
  margin: 0;
}

.confession-line {
  margin: 40px 0 !important;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 21px !important;
}

.confession-line strong {
  color: var(--accent);
  font-weight: 600;
}

.letter-footer {
  padding: 48px 0 72px;
  color: var(--muted);
  text-align: center;
}

.letter-footer span {
  display: block;
  width: 28px;
  height: 1px;
  margin: 0 auto 18px;
  background: var(--accent);
}

.letter-footer p {
  margin: 0;
  font-size: 14px;
}

@media (max-width: 640px) {
  .hero {
    min-height: 82vh;
  }

  .hero-image {
    object-position: 58% center;
  }

  .hero-shade {
    background:
      linear-gradient(0deg, rgba(11, 19, 18, 0.78) 0%, rgba(11, 19, 18, 0.3) 75%),
      linear-gradient(90deg, rgba(11, 19, 18, 0.4), transparent);
  }

  .hero-content {
    width: calc(100% - 40px);
    padding: 84px 0 50px;
  }

  h1 {
    font-size: 35px;
  }

  .hero-copy {
    font-size: 15px;
  }

  .letter {
    padding: 72px 21px 48px;
  }

  .chapter {
    padding: 52px 0;
  }

  .chapter p {
    margin-bottom: 22px;
    font-size: 16px;
    line-height: 1.95;
  }

  .chapter .lead,
  blockquote,
  .confession-line {
    font-size: 18px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reading-progress span,
  .read-button {
    transition: none;
  }
}
