:root {
  color-scheme: light;
  --ink: #1f2a2e;
  --muted: #59666b;
  --paper: #fbfaf7;
  --surface: #ffffff;
  --line: #d9ddd7;
  --teal: #126d62;
  --teal-dark: #0d4d46;
  --amber: #c47b22;
  --rose: #8b4052;
  --shadow: 0 18px 45px rgba(31, 42, 46, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
}

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

a:hover {
  color: var(--teal);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 6vw;
  background: rgba(251, 250, 247, 0.92);
  border-bottom: 1px solid rgba(217, 221, 215, 0.8);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #ffffff;
  background: var(--teal);
  border-radius: 8px;
  font-weight: 900;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 15px;
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(680px, 78vh);
  overflow: hidden;
  isolation: isolate;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(14, 24, 27, 0.76), rgba(14, 24, 27, 0.38) 48%, rgba(14, 24, 27, 0.08)),
    linear-gradient(0deg, rgba(31, 42, 46, 0.42), rgba(31, 42, 46, 0.08));
}

.hero-content {
  width: min(760px, 88vw);
  margin: 0 0 8vh 6vw;
  color: #ffffff;
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--amber);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 2vw, 21px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 750;
  border: 1px solid transparent;
}

.button.primary {
  color: #ffffff;
  background: var(--teal);
}

.button.primary:hover {
  color: #ffffff;
  background: var(--teal-dark);
}

.button.secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.08);
}

.button.secondary:hover {
  color: #ffffff;
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.section {
  width: min(1120px, 88vw);
  margin: 0 auto;
  padding: 82px 0;
}

.intro,
.about {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1.2fr);
  gap: 56px;
  align-items: start;
}

.section h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.18;
  letter-spacing: 0;
}

.section-heading {
  margin-bottom: 30px;
}

.section p {
  color: var(--muted);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.post-card {
  min-height: 270px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(31, 42, 46, 0.06);
}

.post-card:nth-child(2) {
  border-top: 4px solid var(--amber);
}

.post-card:nth-child(3) {
  border-top: 4px solid var(--rose);
}

.post-card:first-child {
  border-top: 4px solid var(--teal);
}

.post-meta {
  margin: 0 0 18px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 750;
}

.post-card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: 0;
}

.post-card p:last-child {
  margin: 18px 0 0;
}

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

.topic-list {
  display: grid;
  gap: 18px;
}

.topic-item {
  display: grid;
  grid-template-columns: 72px minmax(180px, 0.5fr) minmax(260px, 1fr);
  gap: 24px;
  align-items: baseline;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.topic-item span {
  color: var(--amber);
  font-weight: 900;
}

.topic-item h3 {
  margin: 0;
  font-size: 21px;
}

.topic-item p {
  margin: 0;
}

.timeline-list {
  display: grid;
  gap: 16px;
}

.timeline-list div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

time {
  color: var(--rose);
  font-weight: 800;
}

.timeline-list p,
.about-copy p {
  margin: 0;
}

.about-copy {
  display: grid;
  gap: 18px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 6vw;
  color: #ffffff;
  background: #1f2a2e;
}

.site-footer p {
  margin: 0;
}

.footer-records {
  display: grid;
  gap: 6px;
  color: rgba(255, 255, 255, 0.78);
  text-align: right;
}


.article-shell {
  width: min(860px, 88vw);
  margin: 0 auto;
  padding: 68px 0 92px;
}

.article-shell .post-meta {
  color: var(--rose);
}

.article-shell h1 {
  margin: 0 0 22px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.12;
  letter-spacing: 0;
}

.article-shell h2 {
  margin-top: 44px;
  font-size: 28px;
}

.article-shell p,
.article-shell li {
  color: var(--muted);
}

.article-shell code {
  padding: 2px 6px;
  color: var(--teal-dark);
  background: #e7f1ef;
  border-radius: 5px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 36px;
  color: var(--teal);
  font-weight: 800;
}

@media (max-width: 860px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-records {
    text-align: left;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .hero {
    min-height: 72vh;
  }

  .hero-content {
    margin: 0 auto 7vh;
  }

  .intro,
  .about,
  .post-grid,
  .topic-item,
  .timeline-list div {
    grid-template-columns: 1fr;
  }

  .topic-item {
    gap: 10px;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: auto;
    padding: 18px 6vw;
  }

  .brand {
    font-size: 15px;
  }

  .footer-records {
    text-align: left;
  }

  .nav {
    flex-wrap: wrap;
    font-size: 14px;
  }

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

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

  .section {
    width: min(92vw, 1120px);
    padding: 56px 0;
  }

  .post-card {
    min-height: 0;
  }
}


.footer-records a {
  color: inherit;
  text-decoration: none;
}

.footer-records a:hover,
.footer-records a:focus-visible {
  color: #ffffff;
  text-decoration: underline;
}
