:root {
  --bg: #f7f3ec;
  --bg-soft: #fbf8f3;
  --surface: rgba(255, 255, 255, 0.6);
  --ink: #2f2c28;
  --muted: #726b63;
  --line: rgba(73, 62, 51, 0.16);
  --shadow: 0 24px 60px rgba(97, 84, 70, 0.08);
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.95), transparent 34%),
    linear-gradient(180deg, #f9f6f1 0%, var(--bg) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.42), transparent 35%),
    radial-gradient(circle at 80% 20%, rgba(233, 222, 210, 0.45), transparent 26%);
  z-index: 0;
}

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

p,
h1,
h2,
h3 {
  margin: 0;
}

.site-shell {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding-bottom: 72px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0 18px;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-family: "Iowan Old Style", "Baskerville", "Palatino Linotype", "Songti SC", "STSong", serif;
  font-size: 2rem;
  letter-spacing: 0.04em;
}

.topnav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.96rem;
}

.topnav a {
  position: relative;
  padding-bottom: 2px;
}

.topnav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

.topnav a:hover::after {
  transform: scaleX(1);
}

main {
  display: grid;
  gap: 42px;
  padding-top: 26px;
}

.hero {
  min-height: 64svh;
  display: grid;
  align-items: end;
  padding: 42px 0 18px;
}

.hero-home {
  max-width: 820px;
}

.eyebrow {
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--muted);
}

h1,
h2,
h3 {
  font-family: "Iowan Old Style", "Baskerville", "Palatino Linotype", "Songti SC", "STSong", serif;
  font-weight: 600;
  line-height: 1.02;
}

h1 {
  font-size: clamp(3rem, 8vw, 5.4rem);
  max-width: 8.5ch;
}

.hero-copy {
  max-width: 34rem;
  margin-top: 22px;
  font-size: 1.02rem;
  line-height: 1.9;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  padding: 13px 18px;
  border-radius: 999px;
  transition:
    transform 220ms ease,
    background-color 220ms ease,
    border-color 220ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--ink);
  color: #fdfaf7;
}

.button.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.48);
}

.overview,
.highlight,
.closing {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.section-head {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  max-width: 12ch;
}

.essay-list,
.highlight {
  display: grid;
  gap: 20px;
}

.highlight {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: start;
}

.essay-list article,
.topic-row {
  padding: 20px 0;
  border-top: 1px solid var(--line);
  transition: transform 220ms ease, border-color 220ms ease;
}

.essay-list article:first-child,
.topic-row:first-child {
  border-top: none;
}

.essay-list article:hover,
.topic-row:hover {
  transform: translateX(6px);
  border-color: rgba(47, 44, 40, 0.28);
}

.essay-list article {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 20px;
}

.essay-list time {
  color: rgba(28, 23, 18, 0.52);
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.essay-list h3 {
  font-size: 1.45rem;
  margin-bottom: 10px;
}

.essay-list p,
.topic-row span,
.closing p {
  color: var(--muted);
  line-height: 1.85;
}

.topic-stack {
  display: grid;
  gap: 12px;
}

.topic-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.topic-row strong {
  font-size: 1.45rem;
  font-weight: 600;
}

.reveal,
.reveal-delay,
.reveal-delay-2 {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 700ms ease,
    transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-delay {
  transition-delay: 120ms;
}

.reveal-delay-2 {
  transition-delay: 220ms;
}

.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .highlight,
  .essay-list article {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(calc(100% - 28px), var(--max));
    padding-bottom: 52px;
  }

  .topbar {
    align-items: flex-start;
    gap: 18px;
    flex-direction: column;
  }

  .topnav {
    gap: 14px;
  }

  .hero {
    min-height: auto;
    padding: 24px 0 8px;
  }

  h1 {
    font-size: clamp(2.2rem, 11vw, 3.8rem);
    max-width: 8ch;
  }

  h2 {
    font-size: clamp(1.8rem, 9vw, 2.6rem);
  }
}
