:root {
  color-scheme: light;
  --ink: #18211f;
  --muted: #68736f;
  --line: #dfe7e2;
  --paper: #fbfcf8;
  --wash: #eef5ef;
  --sage: #6f8f7b;
  --forest: #1f4a3d;
  --clay: #b77455;
  --blue: #486b83;
  --gold: #c3a35b;
  --white: #ffffff;
  --shadow: 0 22px 70px rgba(30, 54, 45, 0.12);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(238, 245, 239, 0.9), transparent 420px),
    var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(223, 231, 226, 0.76);
  background: rgba(251, 252, 248, 0.86);
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
  box-shadow: 0 12px 36px rgba(30, 54, 45, 0.08);
}

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

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--forest);
  border-radius: 50%;
  color: var(--forest);
  font-size: 12px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 30px);
  color: var(--muted);
  font-size: 14px;
}

.nav a {
  transition: color 160ms ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--forest);
}

main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.section-band,
.section-block {
  border-bottom: 1px solid var(--line);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(28px, 6vw, 80px);
  align-items: end;
  min-height: calc(100vh - 72px);
  padding: clamp(72px, 10vw, 132px) 0 64px;
}

.kicker {
  margin: 0 0 14px;
  color: var(--clay);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 880px;
  margin-bottom: 24px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.16;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.35;
}

.lead {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--forest);
  border-radius: 999px;
  font-weight: 700;
  transition:
    transform 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

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

.button.ghost {
  color: var(--forest);
}

.signal-panel {
  display: grid;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.signal-panel div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.signal-panel div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.metric {
  color: var(--forest);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  line-height: 1;
}

.label {
  color: var(--muted);
  font-size: 14px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: clamp(28px, 5vw, 68px);
  padding: 78px 0;
  border-bottom: 1px solid var(--line);
}

.section-block {
  padding: 78px 0;
}

.content-grid .section-block {
  padding: 0;
  border-bottom: 0;
}

.note-list {
  display: grid;
  gap: 0;
}

.note-item {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.note-item time {
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

.note-item p,
.article-card p,
.project-card p,
.profile-card p {
  color: var(--muted);
}

.profile-card {
  align-self: start;
  padding: 28px !important;
  border: 1px solid var(--line) !important;
  border-radius: 8px;
  background: var(--white);
}

.profile-facts {
  display: grid;
  gap: 18px;
  margin: 28px 0 0;
}

.profile-facts div {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.profile-facts dt {
  color: var(--clay);
  font-size: 13px;
  font-weight: 800;
}

.profile-facts dd {
  margin: 4px 0 0;
  color: var(--ink);
}

.articles {
  padding: 78px 0;
}

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

.article-card,
.project-card {
  display: flex;
  min-height: 280px;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.article-card:hover,
.project-card:hover,
.card-link:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(31, 74, 61, 0.38);
  box-shadow: var(--shadow);
}

.card-link {
  color: inherit;
  cursor: pointer;
}

.card-link:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 4px;
}

.tag {
  width: fit-content;
  margin-bottom: 22px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
}

.card-cta {
  margin-top: auto;
  color: var(--forest);
  font-weight: 800;
}

.projects {
  padding-bottom: 92px;
}

.project-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 26px;
  place-items: center;
  border: 1px solid rgba(31, 74, 61, 0.28);
  border-radius: 50%;
  color: var(--forest);
  font-size: 22px;
}

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

.project-meta span {
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.detail-main {
  padding: 72px 0 88px;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--line);
}

.detail-hero h1 {
  font-size: clamp(42px, 6vw, 72px);
}

.detail-panel {
  display: grid;
  gap: 16px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.detail-panel div {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.detail-panel div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.detail-panel span {
  display: block;
  color: var(--clay);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-panel strong {
  display: block;
  margin-top: 6px;
  font-size: 22px;
  line-height: 1.28;
}

.detail-badges,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.detail-badges span,
.detail-meta span {
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

.detail-section {
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}

.detail-section:last-child {
  border-bottom: 0;
}

.detail-section > p {
  max-width: 780px;
  color: var(--muted);
  font-size: 18px;
}

.feature-grid,
.detail-two-col,
.workflow-grid {
  display: grid;
  gap: 18px;
}

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

.detail-two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 28px;
}

.workflow-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 28px;
}

.feature-card,
.detail-card,
.workflow-card,
.figure-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.feature-card,
.detail-card,
.workflow-card {
  padding: 24px;
}

.feature-card p,
.detail-card li,
.workflow-card p {
  color: var(--muted);
}

.detail-card ul {
  margin: 14px 0 0;
  padding-left: 20px;
}

.workflow-card b {
  display: grid;
  width: 32px;
  height: 32px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: var(--white);
}

.figure-block {
  margin-top: 28px;
  overflow: hidden;
}

.figure-block figure {
  margin: 0;
}

.figure-block figcaption {
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.dashboard-mock {
  display: block;
  width: 100%;
  height: auto;
  background: var(--white);
}

.compare-mock {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 22px;
  background: #f7faf8;
}

.compare-column {
  min-height: 260px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.compare-column h3 {
  color: var(--forest);
}

.mock-line {
  height: 10px;
  margin: 12px 0;
  border-radius: 999px;
  background: #cfd9d3;
}

.mock-line.short {
  width: 68%;
}

.mock-line.mid {
  width: 84%;
}

.mock-line.diff {
  background: rgba(195, 163, 91, 0.72);
}

.mock-line.requirement {
  background: rgba(183, 116, 85, 0.72);
}

.mock-line.term {
  background: rgba(111, 143, 123, 0.76);
}

.process-table {
  width: 100%;
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-collapse: separate;
  border-radius: 8px;
  border-spacing: 0;
  background: var(--white);
}

.process-table th,
.process-table td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.process-table th {
  background: var(--wash);
  color: var(--forest);
  font-size: 14px;
}

.process-table tr:last-child td {
  border-bottom: 0;
}

.process-table td {
  color: var(--muted);
}

.post-main {
  padding: 72px 0 96px;
}

.post-header {
  max-width: 860px;
  padding: 72px 0 48px;
  border-bottom: 1px solid var(--line);
}

.post-header h1 {
  font-size: clamp(40px, 6vw, 68px);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
}

.post-body {
  max-width: 840px;
  padding-top: 48px;
  font-size: 18px;
  line-height: 1.86;
}

.post-body h2 {
  margin-top: 52px;
  font-size: clamp(28px, 4vw, 38px);
}

.post-body h3 {
  margin-top: 32px;
}

.post-body p,
.post-body li {
  color: var(--muted);
}

.post-body a {
  color: var(--forest);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-body ul,
.post-body ol {
  padding-left: 24px;
}

.post-body code {
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--wash);
  color: var(--forest);
  font-size: 0.92em;
}

.post-body pre {
  max-height: 620px;
  overflow: auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101915;
  color: #eef7ef;
  font-size: 14px;
  line-height: 1.7;
}

.post-body pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

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

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 0 34px;
  color: var(--muted);
  font-size: 14px;
}

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

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

  .hero,
  .content-grid,
  .article-row,
  .project-grid,
  .detail-hero,
  .feature-grid,
  .detail-two-col,
  .workflow-grid,
  .compare-mock {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 64px;
  }

  .signal-panel {
    box-shadow: none;
  }
}

@media (max-width: 520px) {
  main,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  h1 {
    font-size: 38px;
  }

  .nav {
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 2px;
  }

  .button {
    width: 100%;
  }

  .article-card,
  .project-card,
  .profile-card {
    padding: 22px;
  }

  .site-footer {
    flex-direction: column;
  }
}
