:root {
  --bg: #f6f7f4;
  --surface: #ffffff;
  --ink: #17201c;
  --muted: #5f6f66;
  --soft: #8b9a91;
  --line: #dfe5df;
  --accent: #1f6f5c;
  --accent-strong: #145445;
  --accent-soft: #e4f1ec;
  --code-bg: #15221d;
  --code-ink: #dbe9e2;
  --shadow: 0 18px 50px rgba(27, 51, 42, 0.08);
  --radius: 18px;
  --max: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(31, 111, 92, 0.08), transparent 32rem),
    var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-strong);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 20;
}

.skip:focus {
  left: 12px;
  top: 12px;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(246, 247, 244, 0.88);
  border-bottom: 1px solid rgba(223, 229, 223, 0.8);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: -0.05em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 15px;
}

.nav a:hover,
.nav a.active {
  color: var(--accent-strong);
  background: var(--accent-soft);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  gap: 56px;
  align-items: center;
  padding: 84px 0 72px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.hero h1 {
  margin: 0;
  max-width: 13em;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.16;
  letter-spacing: -0.035em;
}

.lead {
  max-width: 38em;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.15s ease, background 0.15s ease;
}

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

.button.primary {
  background: var(--accent);
  color: #fff;
}

.button.primary:hover {
  background: var(--accent-strong);
  color: #fff;
}

.button.ghost {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.hero-code {
  position: relative;
  padding: 22px;
  border-radius: 24px;
  background: var(--code-bg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-code::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 12%, rgba(104, 213, 178, 0.16), transparent 18rem),
    linear-gradient(140deg, transparent 55%, rgba(255, 255, 255, 0.035));
  pointer-events: none;
}

.hero-code pre {
  position: relative;
  margin: 0;
  overflow-x: auto;
  color: var(--code-ink);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.9;
}

.hero-code .c {
  color: #7da397;
}

.hero-code .k {
  color: #8fd6bd;
}

.hero-code .s {
  color: #f0c987;
}

.section {
  padding: 34px 0 58px;
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

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

.card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(27, 51, 42, 0.045);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 14px 0 10px;
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.card h3 a {
  color: var(--ink);
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--soft);
  font-family: var(--mono);
  font-size: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 600;
}

.card-arrow {
  margin-top: auto;
  padding-top: 20px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

.topics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.topic {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
}

.topic strong {
  color: var(--ink);
  font-weight: 600;
}

.about-band {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 28px;
  align-items: center;
  padding: 32px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.about-band h2 {
  margin: 0 0 10px;
  font-size: 26px;
  letter-spacing: -0.02em;
}

.about-band p {
  margin: 0;
  color: var(--muted);
}

.about-facts {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
}

.about-facts li {
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.about-facts li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: 0 0 6px;
}

.page-head {
  padding: 62px 0 26px;
}

.page-head h1 {
  margin: 0;
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.page-head p {
  max-width: 42em;
  margin: 14px 0 0;
  color: var(--muted);
}

.article-list {
  display: grid;
  gap: 14px;
  padding-bottom: 64px;
}

.article-row {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.article-row time {
  color: var(--soft);
  font-family: var(--mono);
  font-size: 12px;
}

.article-row h2 {
  margin: 0 0 4px;
  font-size: 20px;
  line-height: 1.4;
}

.article-row h2 a {
  color: var(--ink);
}

.article-row p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.article-row .tag {
  white-space: nowrap;
}

.article-shell {
  max-width: 760px;
  margin: 0 auto;
  padding: 58px 0 72px;
}

.article-shell h1 {
  margin: 12px 0 14px;
  font-size: clamp(30px, 4.5vw, 44px);
  line-height: 1.24;
  letter-spacing: -0.03em;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: var(--soft);
  font-family: var(--mono);
  font-size: 12px;
}

.prose {
  margin-top: 30px;
  color: #33433b;
}

.prose h2 {
  margin: 38px 0 12px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.prose h3 {
  margin: 28px 0 10px;
  color: var(--ink);
  font-size: 19px;
}

.prose p {
  margin: 0 0 16px;
}

.prose ul,
.prose ol {
  margin: 0 0 18px;
  padding-left: 1.3em;
}

.prose li {
  margin-bottom: 6px;
}

.prose code {
  padding: 0.12em 0.38em;
  border-radius: 6px;
  background: #e9efeb;
  color: #1d5d4e;
  font-family: var(--mono);
  font-size: 0.9em;
}

.prose pre {
  margin: 20px 0;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--code-bg);
  color: var(--code-ink);
  overflow-x: auto;
}

.prose pre code {
  padding: 0;
  background: transparent;
  color: inherit;
  font-size: 13px;
  line-height: 1.75;
}

.prose blockquote {
  margin: 22px 0;
  padding: 14px 18px;
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background: var(--accent-soft);
  color: #315a4d;
}

.article-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.article-foot a {
  font-weight: 600;
}

.site-footer {
  margin-top: 40px;
  padding: 38px 0 44px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  color: var(--muted);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-inner strong {
  color: var(--ink);
}

.footer-meta {
  color: var(--soft);
  font-size: 12px;
}

.footer-meta a {
  color: var(--muted);
}

.not-found {
  min-height: 58vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 60px 0;
}

.not-found .code {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.not-found h1 {
  margin: 12px 0 10px;
  font-size: clamp(34px, 5vw, 54px);
  letter-spacing: -0.03em;
}

.not-found p {
  max-width: 34em;
  margin: 0 0 24px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 58px 0 48px;
  }

  .hero-code {
    max-width: 560px;
  }

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

  .about-band {
    grid-template-columns: 1fr;
  }

  .article-row {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .article-row .tag {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(var(--max), calc(100% - 28px));
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 14px 0;
    min-height: 0;
  }

  .nav {
    gap: 2px;
  }

  .nav a {
    padding: 7px 10px;
    font-size: 14px;
  }

  .hero {
    padding-top: 42px;
  }

  .lead {
    font-size: 16px;
  }

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

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .article-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px;
  }

  .article-row .tag {
    grid-column: 1;
  }

  .article-shell {
    padding-top: 40px;
  }

  .article-foot {
    align-items: flex-start;
    flex-direction: column;
  }
}
