:root {
  --leige-pitch-950: #03271d;
  --leige-pitch-900: #063b2c;
  --leige-pitch-800: #07533c;
  --leige-emerald: #10b981;
  --leige-lime: #84cc16;
  --leige-data: #0ea5e9;
  --leige-ink: #10231c;
  --leige-muted: #5f716a;
  --leige-line: #dbe8e2;
  --leige-surface: #ffffff;
}

body {
  color: var(--leige-ink);
  background:
    radial-gradient(circle at 8% 2%, rgba(16, 185, 129, 0.08), transparent 24rem),
    linear-gradient(180deg, #f6faf8 0, #f8fafc 22rem, #f4f8f6 100%) !important;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

#header-menu {
  height: 3.75rem !important;
  border-bottom: 1px solid rgba(132, 204, 22, 0.22);
  background: rgba(3, 39, 29, 0.96) !important;
  box-shadow: 0 8px 28px rgba(3, 39, 29, 0.18) !important;
  backdrop-filter: blur(14px);
}

#header-menu #site-title,
#header-menu > div:first-child > div:first-child > ul > li > a,
#header-menu > div:first-child > div:last-child a,
#header-menu > div:first-child > div:last-child li > div {
  color: #edfdf5 !important;
}

#header-menu > div:first-child > div:first-child > ul > li > a:hover,
#header-menu > div:first-child > div:last-child a:hover {
  color: #a3e635 !important;
}

#header-menu img[alt="Logo"] {
  border-radius: 0.6rem;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.16);
}

.leige-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 3px solid var(--leige-lime);
  background-position: center 70% !important;
}

.leige-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(2, 30, 22, 0.82), rgba(3, 39, 29, 0.45) 48%, rgba(2, 30, 22, 0.75)),
    linear-gradient(180deg, rgba(2, 30, 22, 0.08), rgba(2, 30, 22, 0.48));
}

.leige-hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.25) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, transparent, #000 24%, #000 76%, transparent);
}

.leige-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(163, 230, 53, 0.45);
  border-radius: 999px;
  background: rgba(3, 39, 29, 0.68);
  padding: 0.28rem 0.75rem;
  color: #d9f99d;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.leige-hero-title {
  font-weight: 750 !important;
  letter-spacing: 0.01em;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

.leige-hero-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
}

.leige-hero-features span {
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.12);
  padding: 0.2rem 0.55rem;
  color: #ecfdf5;
  font-size: 0.72rem;
  backdrop-filter: blur(6px);
}

.leige-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
  padding-left: 0.75rem;
  border-left: 4px solid var(--leige-emerald);
}

.leige-section-head h2 {
  color: var(--leige-pitch-950);
  font-size: 1.2rem;
  font-weight: 750;
}

.leige-section-head p {
  color: var(--leige-muted);
  font-size: 0.75rem;
}

#filters {
  gap: 0.5rem !important;
  padding: 0.4rem;
  border: 1px solid var(--leige-line);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 5px 22px rgba(12, 74, 52, 0.06);
}

#filters a,
#filters > li > div {
  height: 2rem !important;
  border-radius: 0.55rem !important;
  color: #47645a !important;
  font-size: 0.84rem;
}

#filters a:hover,
#filters > li > div:hover,
#filters .\!bg-gray-100 {
  background: #e5f7ee !important;
  color: var(--leige-pitch-800) !important;
}

.leige-post-card {
  border: 1px solid var(--leige-line);
  border-left: 3px solid var(--leige-emerald);
  border-radius: 0.85rem !important;
  box-shadow: 0 6px 22px rgba(3, 39, 29, 0.08) !important;
}

.leige-post-card:hover {
  border-color: rgba(16, 185, 129, 0.58);
  box-shadow: 0 12px 30px rgba(3, 39, 29, 0.14) !important;
}

.leige-post-card--single {
  display: grid !important;
  grid-template-columns: minmax(5.5rem, 20%) minmax(0, 1fr) !important;
  height: var(--leige-card-height, 88px) !important;
}

.leige-card-cover--single {
  grid-column: 1 !important;
  width: 100% !important;
  height: var(--leige-card-height, 88px) !important;
  border-right: 1px solid rgba(16, 185, 129, 0.22);
}

.leige-card-content--single {
  grid-column: 2 !important;
  min-width: 0;
  height: var(--leige-card-height, 88px) !important;
  min-height: 0 !important;
}

.leige-card-content--full {
  grid-column: 1 / -1 !important;
}

.leige-post-card h1 a {
  color: #102a20;
}

.leige-card-title {
  font-size: var(--leige-card-title-size, 14px) !important;
}

.leige-card-excerpt {
  font-size: var(--leige-card-excerpt-size, 12px) !important;
}

.leige-post-card h1 a:hover {
  color: var(--leige-pitch-800);
}

.leige-card-taxonomy {
  white-space: nowrap;
}

.leige-category {
  border-radius: 0.25rem;
  background: #e5f7ee;
  padding: 0.1rem 0.35rem;
  color: #08734f !important;
  font-style: normal !important;
}

.leige-tag {
  color: #2580a8 !important;
}

.leige-sidebar {
  position: sticky;
  top: 5rem;
  align-self: start;
}

.leige-sidebar > div {
  border: 1px solid var(--leige-line);
  border-top: 3px solid var(--leige-emerald);
  box-shadow: 0 6px 22px rgba(3, 39, 29, 0.07) !important;
}

.leige-sidebar h2 {
  color: var(--leige-pitch-900) !important;
  font-weight: 700;
}

.leige-sidebar h2 > span:first-child {
  color: var(--leige-emerald) !important;
}

footer {
  border-top: 3px solid var(--leige-emerald);
  background: var(--leige-pitch-950) !important;
}

footer,
footer a,
footer span,
footer p {
  color: #cfe8dd !important;
}

footer a:hover {
  color: #a3e635 !important;
}

#btn-scroll-to-top {
  border: 1px solid rgba(163, 230, 53, 0.5);
  background: var(--leige-pitch-900) !important;
}

#btn-scroll-to-top span {
  color: #d9f99d !important;
}

@media (max-width: 639px) {
  #header-menu {
    height: 3.5rem !important;
  }

  .leige-hero {
    height: 10rem !important;
    background-position: 62% 70% !important;
  }

  .leige-hero-kicker {
    font-size: 0.6rem;
  }

  .leige-hero-title {
    font-size: 1.45rem !important;
  }

  .leige-section-head {
    display: block;
  }

  .leige-section-head p {
    margin-top: 0.2rem;
  }

  #filters {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    scrollbar-width: none;
  }

  #filters::-webkit-scrollbar {
    display: none;
  }

  #filters > li {
    flex: 0 0 auto;
  }

  .leige-post-card--single {
    grid-template-columns: 5.5rem minmax(0, 1fr) !important;
  }
}

.dark body {
  background: #071a14 !important;
}

.dark .leige-post-card,
.dark #filters,
.dark .leige-sidebar > div {
  border-color: #164b38;
  background: #0a2a20 !important;
}

.dark .leige-post-card h1 a,
.dark .leige-sidebar h2 {
  color: #ecfdf5 !important;
}
