:root {
  --spectre-surface: rgba(255, 252, 247, 0.82);
  --spectre-surface-strong: rgba(255, 252, 247, 0.94);
  --spectre-ink: #1f241f;
  --spectre-muted: #5d655d;
  --spectre-line: rgba(31, 36, 31, 0.1);
  --spectre-shadow: 0 24px 56px rgba(37, 42, 37, 0.14);
  --spectre-shadow-soft: 0 16px 36px rgba(31, 36, 31, 0.08);
  --spectre-radius-xl: 28px;
  --spectre-radius-lg: 22px;
  --spectre-radius-md: 16px;
  --spectre-site-width: min(1240px, calc(100% - 2rem));
}

#header,
.hero,
#body-wrapper > .container,
#footer > .container,
.spectre-footer-note {
  width: var(--spectre-site-width);
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

#header {
  position: relative;
  margin-top: 0.9rem;
  margin-bottom: 1.9rem;
  padding: 0.45rem 1rem;
  border: 1px solid var(--spectre-line);
  border-radius: 999px;
  background: rgba(255, 252, 247, 0.9);
  box-shadow: var(--spectre-shadow-soft);
  backdrop-filter: blur(12px);
  isolation: isolate;
  overflow: clip;
  z-index: 1100;
}

#header .navbar {
  height: 100%;
  min-height: 4.65rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

#header .navbar-section {
  height: 100%;
  display: flex;
  align-items: stretch;
}

#header .logo {
  min-width: 0;
  flex: 0 1 auto;
  align-items: center;
}

#header .navbar-brand {
  display: inline-flex;
  align-items: center;
  align-self: center;
  height: 100%;
  margin-right: 0;
}

#header .desktop-menu {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

#header .dropmenu {
  width: 100%;
  overflow: hidden;
}

#header .dropmenu.animated {
  overflow: visible;
}

.site-wordmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  height: 100%;
  min-height: 48px;
  padding: 0.5rem 0.9rem;
  text-decoration: none;
  text-align: center;
  align-self: center;
}

.site-wordmark__title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 700;
  text-align: center;
}

.site-wordmark__meta,
.spectre-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(31, 36, 31, 0.07);
  color: var(--spectre-muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.header-fixed #body-wrapper {
  padding-top: 0;
}

.dropmenu ul li a:before {
  display: none;
}

.hero {
  min-height: auto;
  margin-top: 0;
  padding: 2.4rem 2rem;
  border: 1px solid var(--spectre-line);
  border-radius: var(--spectre-radius-xl);
  background: linear-gradient(135deg, rgba(255, 252, 247, 0.92), rgba(250, 245, 237, 0.76)), var(--spectre-surface-strong);
  box-shadow: var(--spectre-shadow);
  backdrop-filter: blur(10px);
}

.hero:empty,
.hero .container:empty {
  display: none;
}

.hero .image-overlay,
.hero #to-start {
  display: none !important;
}

.hero .container {
  width: 100%;
  max-width: none;
  padding: 0;
}

.hero h1 {
  font-size: clamp(2.8rem, 5vw, 5.8rem);
  line-height: 0.94;
  margin-bottom: 0.75rem;
}

.hero h2,
.hero p,
.hero .blog-date {
  color: var(--spectre-muted);
}

#body-wrapper .container {
  padding: 2rem 0 3rem;
}

#body-wrapper.blog-listing > .container {
  padding-top: 3rem;
}

.blog-listing .columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  margin: 0;
}

.blog-listing #item.column,
.blog-listing #sidebar.column {
  width: auto;
  max-width: none;
  flex: none;
  padding: 0;
  margin: 0;
}

.blog-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem;
  align-items: start;
  width: 100%;
  grid-auto-rows: 1fr;
}

#breadcrumbs {
  margin-top: 0;
  margin-bottom: 1.4rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--spectre-line);
  border-radius: 999px;
  background: rgba(255, 252, 247, 0.72);
  box-shadow: var(--spectre-shadow-soft);
}

#breadcrumbs a,
#breadcrumbs span,
.blog-date,
.label,
.taxonomy-wrapper {
  color: var(--spectre-muted);
}

.spectre-nav-list,
.spectre-nav-list.tree {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.spectre-nav-list.tree {
  display: grid;
  gap: 0.55rem;
}

.spectre-nav-list a,
.spectre-nav-list.tree a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
  color: var(--spectre-muted);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.spectre-nav-list a.active,
.spectre-nav-list a:hover,
.spectre-nav-list a:focus,
.spectre-nav-list.tree a.active,
.spectre-nav-list.tree a:hover,
.spectre-nav-list.tree a:focus {
  background: rgba(255, 255, 255, 0.72);
  color: var(--spectre-ink);
}

.post-card,
.spectre-page-card,
.spectre-footer-note,
#sidebar .sidebar-content,
.prev-next .btn,
ul.pagination .page-item .page-link,
.syndicate .btn {
  border: 1px solid var(--spectre-line);
  border-radius: var(--spectre-radius-lg);
  background: var(--spectre-surface);
  box-shadow: var(--spectre-shadow-soft);
}

.post-card {
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  min-height: 100%;
  height: 100%;
  margin: 0;
  align-content: start;
}

.post-card .card-image {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, rgba(216, 229, 223, 0.8), rgba(244, 230, 207, 0.65));
}

.post-card .card-image img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

.post-card .card-header,
.post-card .card-body,
.post-card .card-footer {
  padding-left: 1.35rem;
  padding-right: 1.35rem;
}

.post-card .card-header {
  padding-top: 1.2rem;
  padding-bottom: 0.35rem;
}

.post-card .card-body {
  padding-bottom: 1.35rem;
  font-size: 1.05rem;
  line-height: 1.8;
  max-height: 19rem;
  overflow: hidden;
  position: relative;
}

.post-card .card-body > :first-child {
  margin-top: 0;
}

.post-card .card-body::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4.4rem;
  background: linear-gradient(180deg, rgba(255, 252, 247, 0), rgba(255, 252, 247, 0.96));
  pointer-events: none;
}

.post-card .card-footer {
  padding-bottom: 1.2rem;
  text-align: left;
  align-self: end;
}

.post-card .card-title h4,
.post-card .card-title h4 a,
.post-card .card-title a {
  color: var(--spectre-ink);
  font-size: clamp(1.9rem, 2.2vw, 2.35rem);
  line-height: 1.02;
  text-decoration: none;
}

.post-card .card-subtitle,
.post-card .card-body,
.spectre-page-card .card-body,
.spectre-page-card p,
.spectre-page-card li,
.spectre-footer-note,
.label,
.taxonomy-wrapper,
.blog-date {
  color: var(--spectre-muted);
}

.site-page {
  margin-top: 1.9rem;
}

.site-page > .container {
  padding-top: 4.5rem;
  padding-bottom: 3.5rem;
}

.spectre-page-card {
  width: min(940px, 100%);
  margin: 0 auto;
}

.spectre-page-card .card-header,
.spectre-page-card .card-body {
  padding: 2.6rem 2.8rem;
}

.spectre-page-card .card-title {
  font-size: clamp(3rem, 5vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.spectre-page-card .e-content {
  max-width: 70ch;
  margin: 0 auto;
  font-size: 1.08rem;
  line-height: 1.85;
}

.spectre-page-card .e-content p + p,
.spectre-page-card .e-content ul + p,
.spectre-page-card .e-content p + ul,
.spectre-page-card .e-content p + ol {
  margin-top: 1rem;
}

.spectre-page-card .e-content > :first-child {
  margin-top: 0;
}

.spectre-page-card .e-content > :last-child {
  margin-bottom: 0;
}

.spectre-page-card .e-content h2,
.spectre-page-card .e-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  text-align: left;
}

.spectre-page-card .e-content ul,
.spectre-page-card .e-content ol {
  padding-left: 1.4rem;
}

.spectre-page-card .e-content strong {
  color: var(--spectre-ink);
}

.spectre-page-card .e-content hr {
  margin: 2rem 0;
  border: 0;
  border-top: 1px solid var(--spectre-line);
}

.spectre-page-card .e-content #link {
  margin-top: 2rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--spectre-line);
  font-size: 0.94rem;
  color: var(--spectre-muted);
}

.label,
.taxonomy-wrapper a,
.tags a,
.categories a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 32px;
  padding: 0.3rem 0.7rem;
  margin: 0.15rem 0.35rem 0.15rem 0;
  border-radius: 999px;
  background: rgba(31, 36, 31, 0.07);
  color: var(--spectre-muted) !important;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.74rem;
  font-weight: 700;
}

#sidebar {
  position: static;
  top: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

#sidebar .sidebar-content {
  padding: 1.25rem;
  margin-bottom: 0;
}

#sidebar h4 {
  margin-top: 0;
  margin-bottom: 0.9rem;
  color: var(--spectre-ink);
  font-size: 1rem;
  letter-spacing: -0.03em;
}

#sidebar ul {
  margin-left: 0;
  list-style: none;
}

.spectre-filter-panel {
  overflow: hidden;
}

.spectre-filter-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: var(--spectre-ink);
}

.spectre-filter-panel summary::-webkit-details-marker {
  display: none;
}

.spectre-filter-panel__body {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

.spectre-filter-panel__body--compact {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.spectre-filter-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  min-height: 42px;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--spectre-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--spectre-ink);
  text-decoration: none;
  font-weight: 600;
}

.spectre-filter-link:hover,
.spectre-filter-link:focus,
.spectre-filter-link.is-active {
  background: #1f241f;
  border-color: #1f241f;
  color: #fff9f0;
}

.spectre-filter-link--chip {
  min-height: 38px;
  border-radius: 999px;
}

.spectre-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.9rem;
  min-height: 1.9rem;
  padding: 0 0.45rem;
  border-radius: 999px;
  background: rgba(31, 36, 31, 0.08);
  font-size: 0.76rem;
}

.spectre-filter-link.is-active .spectre-filter-count,
.spectre-filter-link:hover .spectre-filter-count,
.spectre-filter-link:focus .spectre-filter-count {
  background: rgba(255, 249, 240, 0.16);
}

.spectre-pagination {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--spectre-line);
  border-radius: var(--spectre-radius-lg);
  background: var(--spectre-surface);
  box-shadow: var(--spectre-shadow-soft);
}

.spectre-pagination__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  color: var(--spectre-muted);
  font-size: 0.92rem;
}

.spectre-pagination__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.spectre-page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.8rem;
  min-height: 2.8rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--spectre-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--spectre-ink);
  text-decoration: none;
  font-weight: 700;
}

.spectre-page-link:hover,
.spectre-page-link:focus,
.spectre-page-link.is-active {
  background: #1f241f;
  border-color: #1f241f;
  color: #fff9f0;
}

.spectre-page-link.is-disabled {
  pointer-events: none;
  opacity: 0.55;
}

.spectre-page-link--nav,
.spectre-page-link--edge {
  min-width: auto;
}

.spectre-footer-note {
  margin: 0 auto;
  padding: 0.9rem 1.2rem;
  text-align: center;
}

.spectre-footer-note p {
  margin: 0;
}

@media (max-width: 1100px) {
  #sidebar {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 1080px) {
  #header {
    margin-bottom: 1.2rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  #header .navbar {
    min-height: 4.85rem;
    gap: 0.7rem;
  }

  .site-wordmark {
    min-height: 48px;
    padding: 0.6rem 0.75rem 0.6rem 0.35rem;
  }

  .site-wordmark__title {
    font-size: 1.05rem;
  }

  .site-wordmark__meta {
    padding-left: 0.55rem;
    padding-right: 0.55rem;
  }

  .spectre-nav-list {
    gap: 0.2rem;
  }

  .spectre-nav-list a {
    min-height: 40px;
    padding: 0.6rem 0.72rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 960px) {
  #header {
    padding-right: 5rem;
    border-radius: 30px;
  }

  #header .navbar {
    min-height: 4.2rem;
  }

  #header .desktop-menu {
    display: none;
  }

  .site-wordmark {
    min-height: 44px;
  }

}

@media (max-width: 900px) {
  #header,
  .hero,
  #body-wrapper > .container,
  #footer > .container,
  .spectre-footer-note {
    width: calc(100% - 1.2rem);
  }

  .hero {
    margin-top: 0;
    padding: 2rem 1.2rem;
  }

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

  #body-wrapper.blog-listing > .container {
    padding-top: 2.3rem;
  }

  #sidebar {
    grid-template-columns: 1fr;
  }

  .site-page > .container {
    padding-top: 2.2rem;
  }

  .spectre-page-card .card-header,
  .spectre-page-card .card-body {
    padding: 2rem 1.4rem;
  }

  .spectre-pagination__links {
    gap: 0.45rem;
  }
}

@media (max-width: 840px) {
  #header {
    margin-top: 0.7rem;
    margin-bottom: 1.35rem;
    padding: 0.5rem 5rem 0.5rem 0.95rem;
    border-radius: 26px;
  }

  #header .navbar {
    min-height: 3.9rem;
  }

  .site-wordmark {
    min-height: 42px;
    padding: 0.45rem 0.35rem;
  }

  .site-wordmark__meta {
    display: none;
  }

  .mobile-menu {
    top: 1rem;
    right: 0.75rem;
  }

  .button_container {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 600px) {
  #header {
    width: calc(100% - 1.2rem);
    margin-top: 0.55rem;
    margin-bottom: 1.1rem;
    padding: 0.5rem 4.6rem 0.5rem 0.85rem;
  }

  #header .navbar {
    min-height: 3.8rem;
  }

  .hero h1 {
    padding-top: 3.2rem;
  }

  .spectre-filter-panel__body--compact {
    grid-template-columns: 1fr;
  }
}
