:root {
  --page-bg: #fbfaf7;
  --panel-bg: #fffefa;
  --ink: #22201d;
  --muted: #7a756d;
  --line: #e8e1d6;
  --accent: #4c6b58;
  --accent-soft: #eef3ed;
}

html {
  background: var(--page-bg);
}

body {
  background:
    linear-gradient(90deg, rgba(76, 107, 88, 0.035) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--page-bg);
  color: var(--ink);
  font-family: "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

a {
  color: var(--ink);
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

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

body > .navbar.navbar-main {
  background: rgba(251, 250, 247, 0.92);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
  backdrop-filter: blur(12px);
}

.navbar-main .navbar-container {
  min-height: 58px;
}

.navbar-main .navbar-logo {
  color: var(--ink);
  font-family: Georgia, "Songti SC", serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0;
}

.navbar-main .navbar-item {
  color: var(--muted);
  font-size: 0.92rem;
  padding: 1.05rem 0.75rem;
}

.navbar-main .navbar-item.is-active,
.navbar-main .navbar-item:hover {
  background: transparent;
  color: var(--ink);
}

.navbar-main .navbar-item.is-active {
  box-shadow: inset 0 -2px 0 var(--accent);
}

body > .section {
  padding-top: 2.4rem;
}

.section > .container {
  max-width: 1120px;
}

.columns {
  column-gap: 0.5rem;
}

.column-main {
  max-width: 760px;
}

.card {
  background: var(--panel-bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: none;
}

.card + .card,
.card + .column-right-shadow {
  margin-top: 1rem;
}

.card-content {
  padding: 1.35rem;
}

article.article {
  padding: 1.65rem 1.8rem;
}

article.article .article-meta {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0;
  margin-bottom: 0.9rem;
  text-transform: none;
}

article.article > .title {
  font-family: Georgia, "Songti SC", serif;
  font-size: 1.65rem !important;
  font-weight: 600;
  line-height: 1.38;
  margin-bottom: 1rem;
}

article.article > .title a {
  color: var(--ink);
}

article.article .content {
  color: #38342f;
  font-size: 1.02rem;
  line-height: 1.9;
}

article.article .content p {
  margin-bottom: 1em;
}

article.article .content code {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #f6f1ea;
  color: #57463a;
  padding: 0.08rem 0.28rem;
}

article.article .content figure.highlight {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.widget .menu-label,
.widget h3 {
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0;
  margin-bottom: 0.8rem;
  text-transform: none;
}

.widget[data-type="profile"] {
  background: linear-gradient(180deg, #fffefa 0%, #f8f5ef 100%);
}

.widget[data-type="profile"] .image.is-128x128 {
  height: 82px;
  width: 82px;
}

.widget[data-type="profile"] .title {
  font-family: Georgia, "Songti SC", serif;
  font-size: 1.25rem !important;
  font-weight: 600;
}

.widget[data-type="profile"] .heading {
  color: var(--muted);
  letter-spacing: 0;
}

.widget[data-type="profile"] .button.is-primary {
  background: var(--accent);
}

.widget article.media {
  padding: 0.45rem 0;
}

.widget article.media + article.media {
  border-top: 1px solid var(--line);
}

.widget article.media .date,
.widget article.media .title {
  color: var(--muted);
  letter-spacing: 0;
  text-transform: none;
}

.widget article.media .title a {
  color: var(--ink);
}

.widget .tag,
.article-tags .tag {
  background: var(--accent-soft);
  border-radius: 4px;
  color: var(--accent);
}

.footer {
  background: transparent;
  border-top: 1px solid var(--line);
  color: var(--muted);
  margin-top: 1rem;
  padding: 1.6rem 1.5rem;
}

.footer-logo {
  color: var(--ink);
  font-family: Georgia, "Songti SC", serif;
}

#back-to-top {
  background: var(--panel-bg);
  border: 1px solid var(--line);
  box-shadow: none;
  color: var(--accent);
}

@media screen and (max-width: 768px) {
  body > .section {
    padding: 1.2rem 0.9rem;
  }

  .navbar-main .navbar-container {
    justify-content: flex-start;
  }

  .navbar-main .navbar-menu {
    justify-content: flex-start;
  }

  article.article {
    padding: 1.25rem;
  }

  article.article > .title {
    font-size: 1.38rem !important;
  }
}
