html {
  scroll-behavior: smooth;
}

body {
  color: var(--spectre-ink);
  background:
    radial-gradient(circle at 0% 0%, rgba(192, 223, 214, 0.72), transparent 34%),
    radial-gradient(circle at 100% 8%, rgba(237, 199, 145, 0.44), transparent 26%),
    linear-gradient(180deg, #ebe5d8 0%, #f5f1e9 42%, #efe8dc 100%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 18%, rgba(255, 255, 255, 0.38), transparent 36%),
    radial-gradient(circle at 84% 12%, rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
  opacity: 0.9;
}

body h1,
body h2,
body h3,
body h4,
body h5,
body h6,
body .site-wordmark__title {
  font-family: "Avenir Next", "Segoe UI", "Trebuchet MS", sans-serif;
  color: var(--spectre-ink);
  letter-spacing: -0.04em;
}

body a {
  color: #2d4c47;
}

body a:hover,
body a:focus {
  color: #1f241f;
}

#page-wrapper,
#footer {
  position: relative;
  z-index: 1;
}

.card-body,
.e-content,
.content-item p,
.content-item li {
  color: var(--spectre-muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.content-title {
  margin-bottom: 1.4rem;
}

.content-title h2 {
  font-size: clamp(2.1rem, 3vw, 3.3rem);
  line-height: 1;
}

.content-title h3 {
  color: var(--spectre-muted);
}

.mobile-menu {
  position: absolute;
  top: 1.2rem;
  right: max(0.9rem, calc((100vw - var(--spectre-site-width)) / 2 + 0.9rem));
  z-index: 1200;
}

.button_container {
  width: 50px;
  height: 50px;
  border: 1px solid var(--spectre-line);
  border-radius: 18px;
  background: rgba(255, 252, 247, 0.88);
  box-shadow: var(--spectre-shadow-soft);
  backdrop-filter: blur(12px);
}

.button_container span {
  background: var(--spectre-ink);
}

.overlay {
  background:
    radial-gradient(circle at 0% 0%, rgba(192, 223, 214, 0.68), transparent 34%),
    radial-gradient(circle at 100% 8%, rgba(237, 199, 145, 0.4), transparent 26%),
    rgba(243, 239, 231, 0.96);
  backdrop-filter: blur(16px);
}

.overlay-menu {
  width: min(92vw, 400px);
  margin: 7.2rem auto 0;
  padding: 0.9rem;
  border: 1px solid var(--spectre-line);
  border-radius: var(--spectre-radius-xl);
  background: rgba(255, 252, 247, 0.82);
  box-shadow: var(--spectre-shadow);
}

.overlay-menu ul {
  display: grid;
  gap: 0.55rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.overlay-menu li {
  margin: 0;
}

.overlay-menu a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0.75rem 0.95rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--spectre-ink);
  font-weight: 700;
  text-decoration: none;
}

.overlay-menu a.active {
  background: #1f241f;
  color: #fff9f0;
}

.mobile-logo {
  display: flex;
  justify-content: center;
  padding-top: 1.5rem;
}

.form-input,
.searchbox input {
  border: 1px solid var(--spectre-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.btn:hover,
.btn:focus,
button:hover,
button:focus,
input[type="submit"]:hover,
input[type="submit"]:focus,
input[type="button"]:hover,
input[type="button"]:focus {
  background: #2a302a;
  border-color: #2a302a;
  color: #fff9f0;
}

.prev-next {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
}

.prev-next .btn,
ul.pagination .page-item .page-link,
.syndicate .btn {
  background: rgba(255, 255, 255, 0.72);
  color: var(--spectre-ink);
  border-color: var(--spectre-line);
}

ul.pagination .page-item .page-link {
  border-radius: 999px;
}

ul.pagination .page-item.active .page-link,
ul.pagination .page-item .page-link:hover,
ul.pagination .page-item .page-link:focus {
  background: #1f241f;
  color: #fff9f0;
  border-color: #1f241f;
}

blockquote {
  margin: 1.6rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid rgba(31, 36, 31, 0.18);
  border-radius: 0 var(--spectre-radius-md) var(--spectre-radius-md) 0;
  background: rgba(255, 255, 255, 0.5);
}

@media (max-width: 900px) {
  .content-item,
  .blog-listing .card-header,
  .blog-listing .card-body,
  .blog-listing .card-footer {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }

  .site-wordmark__meta {
    display: none;
  }
}
