:root {
  --hz-bg-soft: linear-gradient(140deg, #f7f3eb 0%, #eef4ff 45%, #f4fbf7 100%);
  --hz-card: #ffffff;
  --hz-text: #1d2433;
  --hz-muted: #5d6678;
  --hz-accent: #0f5cc0;
  --hz-border: #d9e1ef;
  --hz-border-strong: #c2cfe5;
  --hz-shadow: 0 12px 28px rgba(34, 56, 102, 0.08);
  --hz-outline: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

body {
  font-family: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  color: var(--hz-text);
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, .page__title, .archive__item-title {
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: 0.01em;
}

code, pre, .highlight {
  font-family: "JetBrains Mono", Consolas, monospace;
}

.home-page,
.cv-page {
  background: var(--hz-bg-soft);
  border: 1px solid var(--hz-border-strong);
  border-radius: 16px;
  box-shadow: var(--hz-shadow), var(--hz-outline);
  padding: 1.3rem 1.1rem;
}

.page,
.archive {
  border: 1px solid var(--hz-border);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(34, 56, 102, 0.06), var(--hz-outline);
  background: rgba(255, 255, 255, 0.94);
  padding: 0.6rem 0.9rem;
}

.page__inner-wrap,
.archive__item {
  border-top: none;
}

.home-page h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 0.45rem;
}

.home-subtitle {
  color: var(--hz-muted);
  font-weight: 500;
  margin-bottom: 1rem;
}

.home-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0 1.2rem;
}

.home-links a {
  background: #fff;
  border: 1px solid var(--hz-border-strong);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  text-decoration: none;
  font-weight: 600;
}

.home-links a:hover {
  border-color: var(--hz-accent);
  color: var(--hz-accent);
}

.cv-page h2 {
  font-size: 1.5rem;
  margin-top: 1.6rem;
  border-bottom: 2px solid #cfd9eb;
  padding-bottom: 0.35rem;
}

.cv-page > section:first-child h2 {
  margin-top: 0;
}

.cv-page ul {
  margin-bottom: 0.85rem;
}

.cv-page li {
  margin-bottom: 0.35rem;
}

.cv-page a {
  color: var(--hz-accent);
  font-weight: 600;
}

/* Blog Post Styles (single page + archive cards) */
.layout--single .page__title {
  font-size: clamp(1.9rem, 4.6vw, 2.7rem);
  line-height: 1.2;
  margin-bottom: 0.4rem;
}

.layout--single .page__meta,
.layout--single .page__date {
  color: var(--hz-muted);
}

.layout--single .page__content {
  max-width: 74ch;
}

.layout--single .page__content p,
.layout--single .page__content li {
  font-size: 1.05rem;
  line-height: 1.78;
}

.layout--single .page__content h2,
.layout--single .page__content h3 {
  margin-top: 1.55rem;
  margin-bottom: 0.45rem;
}

.layout--single .page__content blockquote {
  border-left: 4px solid #b9c9e5;
  background: #f8fbff;
  border-radius: 10px;
  padding: 0.7rem 1rem;
  color: #324056;
}

.layout--single .page__content pre,
.layout--single .page__content div.highlighter-rouge {
  border: 1px solid #d4def2;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(19, 41, 80, 0.07);
}

.layout--single .page__content hr {
  border: 0;
  border-top: 1px solid #d9e1ef;
  margin: 1.35rem 0;
}

.pagination--pager {
  border: 1px solid var(--hz-border-strong);
  border-radius: 999px;
  background: #fff;
  color: #24324a;
  box-shadow: 0 6px 16px rgba(19, 41, 80, 0.06);
}

.list__item .archive__item {
  border: 1px solid var(--hz-border);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(19, 41, 80, 0.06), var(--hz-outline);
  background: rgba(255, 255, 255, 0.95);
  padding: 1rem 1rem 0.85rem;
}

.list__item .archive__item-title {
  font-size: 1.32rem;
  line-height: 1.3;
}

.list__item .archive__item-excerpt {
  color: #384760;
}

.archive a:hover,
.page a:hover {
  text-decoration-thickness: 2px;
  text-underline-offset: 0.14em;
}

@media (min-width: 960px) {
  .sidebar {
    transform: translate3d(-26px, 0, 0);
  }

  .cv-page,
  .home-page {
    padding: 1.8rem 2rem;
  }

  .page,
  .archive {
    padding: 0.9rem 1.1rem;
  }

  .list__item .archive__item {
    padding: 1.15rem 1.2rem 0.95rem;
  }
}
