:root {
  --paper: #f6f1e8;
  --paper-strong: #fffaf2;
  --surface: rgba(255, 250, 242, 0.82);
  --surface-strong: rgba(255, 253, 248, 0.96);
  --ink: #1f2520;
  --muted: #58635d;
  --line: rgba(41, 55, 44, 0.12);
  --sage: #556b57;
  --clay: #b26b44;
  --lake: #4d6b73;
  --gold: #c79f5d;
  --shadow: 0 24px 64px rgba(44, 38, 26, 0.12);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC",
    "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(199, 159, 93, 0.18), transparent 28%),
    radial-gradient(circle at 90% 20%, rgba(77, 107, 115, 0.18), transparent 24%),
    radial-gradient(circle at 18% 82%, rgba(178, 107, 68, 0.12), transparent 24%),
    linear-gradient(180deg, #f7f3eb 0%, #f2ebe0 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 85%);
}

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

img {
  max-width: 100%;
  display: block;
}

.site-shell {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 24px 64px;
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  margin-bottom: 28px;
  border: 1px solid rgba(62, 70, 56, 0.12);
  border-radius: 999px;
  backdrop-filter: blur(14px);
  background: rgba(255, 248, 239, 0.72);
  box-shadow: 0 18px 40px rgba(51, 43, 29, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 18px;
  color: #fff;
  background:
    linear-gradient(135deg, var(--clay), var(--gold));
  box-shadow: 0 12px 22px rgba(178, 107, 68, 0.28);
}

.brand-copy {
  min-width: 0;
}

.brand-title {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua",
    "Songti SC", "Noto Serif SC", serif;
  font-size: 1rem;
  font-weight: 700;
}

.brand-subtitle {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.nav a {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav a:hover,
.nav a.is-active {
  color: var(--ink);
  background: rgba(85, 107, 87, 0.12);
  transform: translateY(-1px);
}

.hero,
.panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, var(--surface-strong), var(--surface));
  box-shadow: var(--shadow);
}

.hero {
  padding: 36px;
}

.hero::after,
.panel::after {
  content: "";
  position: absolute;
  inset: auto -15% -45% auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(199, 159, 93, 0.22), transparent 68%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
  gap: 28px;
  align-items: stretch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--sage);
  background: rgba(85, 107, 87, 0.1);
}

.display {
  margin: 18px 0 14px;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua",
    "Songti SC", "Noto Serif SC", serif;
  font-size: clamp(2.7rem, 6vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.lead {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.95;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--clay), #d28d5f);
  box-shadow: 0 16px 28px rgba(178, 107, 68, 0.22);
}

.btn-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(31, 37, 32, 0.08);
}

.hero-side {
  display: grid;
  gap: 14px;
  align-content: start;
}

.mini-card {
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(45, 56, 46, 0.1);
  background: rgba(255, 255, 255, 0.66);
}

.mini-card h3,
.section-head h2,
.entry-card h3,
.article-card h3,
.feature-card h3,
.moment-card h3,
.about-card h3,
.post-header h1 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua",
    "Songti SC", "Noto Serif SC", serif;
}

.mini-card p,
.entry-card p,
.article-card p,
.feature-card p,
.moment-card p,
.about-card p,
.post-body p,
.post-body li,
.timeline p {
  color: var(--muted);
  line-height: 1.9;
}

.mini-card p,
.timeline p,
.entry-card p,
.article-card p,
.feature-card p,
.moment-card p,
.about-card p {
  margin: 10px 0 0;
  font-size: 0.95rem;
}

.stat-grid,
.cards,
.feature-grid,
.moment-grid,
.about-grid,
.article-grid {
  display: grid;
  gap: 18px;
}

.stat-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.stat-card {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(45, 56, 46, 0.08);
}

.stat-label {
  color: var(--muted);
  font-size: 0.88rem;
}

.stat-value {
  margin-top: 10px;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.section {
  margin-top: 26px;
  padding: 26px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 20px;
}

.section-head p {
  margin: 10px 0 0;
  max-width: 720px;
  color: var(--muted);
  line-height: 1.85;
}

.cards,
.feature-grid,
.moment-grid,
.article-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.entry-card,
.feature-card,
.moment-card,
.article-card,
.about-card,
.timeline-item {
  position: relative;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(45, 56, 46, 0.08);
}

.entry-card::before,
.feature-card::before,
.moment-card::before,
.article-card::before,
.about-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent);
  pointer-events: none;
}

.kicker,
.meta-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.kicker,
.meta-row {
  margin-bottom: 14px;
}

.chip,
.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--sage);
  background: rgba(85, 107, 87, 0.1);
}

.tag-clay {
  color: var(--clay);
  background: rgba(178, 107, 68, 0.1);
}

.tag-lake {
  color: var(--lake);
  background: rgba(77, 107, 115, 0.12);
}

.entry-link,
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  color: var(--clay);
  font-weight: 600;
}

.feature-grid .feature-card:nth-child(2),
.moment-card:nth-child(2),
.about-card:nth-child(2) {
  transform: translateY(10px);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.photo-card {
  min-height: 170px;
  padding: 16px;
  border-radius: 22px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: var(--photo);
  box-shadow: 0 18px 30px rgba(40, 35, 26, 0.18);
}

.photo-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
}

.photo-card.wide {
  grid-column: span 3;
}

.photo-card.tall {
  min-height: 210px;
}

.photo-card:not(.wide) {
  grid-column: span 2;
}

.split-layout,
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.9fr);
  gap: 18px;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item strong {
  display: block;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.note-hero {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}

.breadcrumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--muted);
}

.post-header {
  padding: 30px;
}

.post-header h1 {
  margin-top: 12px;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.12;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.post-summary {
  margin: 0;
  max-width: 780px;
  color: var(--muted);
  line-height: 1.95;
}

.post-body {
  margin-top: 24px;
  padding: 30px;
}

.post-body h2 {
  margin: 30px 0 10px;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua",
    "Songti SC", "Noto Serif SC", serif;
  font-size: 1.5rem;
}

.post-body p,
.post-body ul {
  margin: 0 0 16px;
}

.post-body ul {
  padding-left: 18px;
}

.footer {
  margin-top: 28px;
  padding: 24px 10px 12px;
  color: var(--muted);
  text-align: center;
  line-height: 1.9;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin-top: 10px;
}

.footer-links a {
  color: var(--clay);
}

.page-fade {
  animation: fade-up 700ms ease both;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .split-layout,
  .about-layout,
  .cards,
  .feature-grid,
  .moment-grid,
  .article-grid,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .photo-grid {
    grid-template-columns: 1fr 1fr;
  }

  .photo-card,
  .photo-card.wide {
    grid-column: span 1;
  }

  .feature-grid .feature-card:nth-child(2),
  .moment-card:nth-child(2),
  .about-card:nth-child(2) {
    transform: none;
  }
}

@media (max-width: 720px) {
  .site-shell {
    padding: 16px 16px 48px;
  }

  .topbar {
    align-items: flex-start;
    border-radius: 26px;
    padding: 16px;
  }

  .brand {
    align-items: flex-start;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
  }

  .hero,
  .section,
  .post-header,
  .post-body {
    padding: 22px;
  }

  .display {
    font-size: clamp(2.2rem, 12vw, 3.4rem);
  }

  .lead,
  .section-head p,
  .post-summary {
    font-size: 0.98rem;
  }

  .photo-grid {
    grid-template-columns: 1fr;
  }
}
