:root {
  --ink: #142724;
  --ink-soft: #53615e;
  --paper: #f5f4ef;
  --paper-deep: #ebe9e1;
  --forest: #18332f;
  --moss: #8ba28e;
  --coral: #e36f58;
  --white: #fffdf8;
  --line: rgba(20, 39, 36, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", STSong, serif;
  text-rendering: optimizeLegibility;
}

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

.skip-link {
  position: fixed;
  z-index: 20;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  background: var(--white);
  color: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  height: 88px;
  align-items: center;
  justify-content: space-between;
  padding: 0 5.5%;
  color: var(--white);
  transition: background-color 220ms ease, color 220ms ease, height 220ms ease;
}

.site-header.is-scrolled {
  height: 68px;
  background: rgba(245, 244, 239, 0.94);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  font-weight: 600;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: "Songti SC", STSong, serif;
  font-size: 19px;
}

nav {
  display: flex;
  gap: 38px;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
}

nav a {
  position: relative;
  padding: 8px 0;
}

nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

nav a:hover::after,
nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero {
  position: relative;
  display: flex;
  min-height: 88svh;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(4, 18, 24, 0.78), rgba(4, 18, 24, 0.08) 70%),
    url("assets/hero.webp") center center / cover no-repeat;
  color: var(--white);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), transparent 45%, rgba(0, 0, 0, 0.28));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1120px, 89%);
  margin: 80px auto 0;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--coral);
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 13px;
  font-weight: 600;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: 92px;
  font-weight: 500;
  line-height: 1.04;
}

.hero-copy {
  margin: 28px 0 30px;
  font-size: 21px;
  line-height: 1.8;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid rgba(255, 253, 248, 0.7);
  padding: 10px 0;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
}

.text-link span {
  transition: transform 180ms ease;
}

.text-link:hover span,
.text-link:focus-visible span {
  transform: translateY(4px);
}

.hero-caption {
  position: absolute;
  z-index: 1;
  right: 5.5%;
  bottom: 34px;
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 12px;
  opacity: 0.78;
  writing-mode: vertical-rl;
}

.hero-rise {
  opacity: 0;
  transform: translateY(22px);
  animation: hero-rise 700ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.hero-rise:nth-child(2) {
  animation-delay: 90ms;
}

.hero-rise:nth-child(3) {
  animation-delay: 180ms;
}

.hero-rise:nth-child(4) {
  animation-delay: 270ms;
}

@keyframes hero-rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section {
  display: grid;
  width: min(1180px, 89%);
  margin: 0 auto;
  grid-template-columns: 100px minmax(0, 1.4fr) minmax(280px, 0.72fr);
  gap: 32px;
  padding: 150px 0 130px;
}

.section-index {
  color: var(--coral);
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
}

.section-heading h2 {
  margin: 0;
  font-size: 48px;
  font-weight: 500;
  line-height: 1.35;
}

.section-lead,
.about-copy {
  align-self: end;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 2;
}

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

.journal-entry {
  display: grid;
  min-height: 210px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  grid-template-columns: minmax(110px, 1fr) minmax(360px, 3fr) 80px;
  gap: 40px;
  padding: 46px max(5.5%, calc((100% - 1180px) / 2));
  transition: background-color 220ms ease, color 220ms ease;
}

.journal-entry time {
  align-self: start;
  padding-top: 8px;
  color: var(--ink-soft);
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 13px;
}

.journal-entry h3 {
  margin: 0 0 14px;
  font-size: 31px;
  font-weight: 500;
}

.journal-entry p {
  max-width: 680px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.9;
}

.journal-entry > span {
  justify-self: end;
  color: var(--coral);
  font-size: 20px;
}

.journal-entry:hover {
  background: var(--forest);
  color: var(--white);
}

.journal-entry:hover time,
.journal-entry:hover p {
  color: rgba(255, 253, 248, 0.68);
}

.belief {
  background: var(--forest);
  color: var(--white);
}

.belief-inner {
  width: min(1180px, 89%);
  margin: 0 auto;
  padding: 155px 0;
}

.belief blockquote {
  max-width: 960px;
  margin: 38px 0 74px;
  font-size: 51px;
  font-weight: 400;
  line-height: 1.5;
}

.belief-note {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-left: 56%;
  color: rgba(255, 253, 248, 0.68);
  font-size: 15px;
  line-height: 1.9;
}

.belief-note span {
  width: 52px;
  height: 1px;
  margin-top: 14px;
  background: var(--coral);
}

.belief-note p {
  margin: 0;
}

.about {
  padding-bottom: 160px;
}

.about-copy p {
  margin: 0 0 18px;
}

footer {
  display: flex;
  min-height: 250px;
  align-items: flex-end;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 58px 5.5%;
}

.footer-brand {
  margin-bottom: 18px;
}

footer p,
.footer-meta {
  color: var(--ink-soft);
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 13px;
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-meta a {
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 800px) {
  .site-header {
    height: 70px;
    padding: 0 22px;
  }

  .site-header.is-scrolled {
    height: 62px;
  }

  nav {
    display: none;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .hero {
    min-height: 82svh;
    background-position: 58% center;
  }

  .hero-content {
    width: calc(100% - 44px);
    margin-top: 52px;
  }

  .hero h1 {
    font-size: 56px;
  }

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

  .hero-caption {
    display: none;
  }

  .section {
    width: calc(100% - 44px);
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 92px 0 82px;
  }

  .section-heading h2 {
    font-size: 34px;
  }

  .section-lead,
  .about-copy {
    grid-column: 2;
    font-size: 16px;
  }

  .journal-entry {
    min-height: 0;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 20px;
    padding: 38px 22px;
  }

  .journal-entry h3 {
    font-size: 24px;
  }

  .journal-entry > span {
    display: none;
  }

  .belief-inner {
    width: calc(100% - 44px);
    padding: 96px 0;
  }

  .belief blockquote {
    margin: 30px 0 56px;
    font-size: 34px;
  }

  .belief-note {
    margin-left: 18%;
  }

  footer {
    min-height: 290px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: space-between;
    padding: 52px 22px 38px;
  }

  .footer-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }

  .hero-rise,
  .reveal {
    opacity: 1;
    transform: none;
  }
}
