.home-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 2.15rem 0 2.7rem;
}

.home-profile-card,
.home-entry-card,
.home-post-card {
  background: var(--board-color);
  border: 0;
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(31, 49, 68, 0.08);
}

.home-profile-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 1.4rem;
  align-items: center;
  padding: 1.65rem;
  margin-bottom: 1.15rem;
}

.home-avatar {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid rgba(135, 162, 199, 0.2);
}

.home-kicker {
  margin: 0 0 0.35rem;
  color: var(--post-link-color);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.home-profile-copy h1,
.home-section-heading h2 {
  margin: 0;
  color: var(--post-heading-color);
  font-weight: 700;
  letter-spacing: 0;
}

.home-profile-copy h1 {
  font-size: 1.8rem;
}

.home-profile-copy p:last-child {
  margin: 0.45rem 0 0;
  color: var(--sec-text-color);
}

.home-entry-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.75rem;
}

.home-entry-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-entry-card {
  display: flex;
  position: relative;
  flex-direction: column;
  min-height: 11.75rem;
  padding: 1.12rem;
  overflow: hidden;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-entry-card:hover {
  transform: translateY(-3px);
  color: inherit;
  text-decoration: none;
  border-color: transparent;
  box-shadow: 0 14px 30px rgba(31, 49, 68, 0.13);
}

.home-entry-card--document:hover {
  transform: none;
  box-shadow: 0 10px 26px rgba(31, 49, 68, 0.08);
}

.home-entry-card--primary {
  border-color: transparent;
  box-shadow: 0 12px 30px rgba(31, 49, 68, 0.11);
}

.home-entry-card--secondary {
  box-shadow: 0 8px 22px rgba(31, 49, 68, 0.06);
}

.home-entry-icon {
  display: inline-flex;
  width: 2.05rem;
  height: 2.05rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.7rem;
  color: var(--post-link-color);
  background: rgba(92, 119, 161, 0.08);
  border: 1px solid rgba(92, 119, 161, 0.1);
  border-radius: 8px;
  opacity: 0.86;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.home-entry-icon i {
  font-size: 1.02rem;
}

.home-entry-label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--post-link-color);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0;
  opacity: 0.78;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.home-entry-card strong {
  display: block;
  color: var(--post-heading-color);
  font-size: 1.12rem;
  margin-bottom: 0.36rem;
  transition: color 0.2s ease;
}

.home-entry-card p {
  margin: 0;
  color: var(--sec-text-color);
  font-size: 0.9rem;
  line-height: 1.55;
}

.home-entry-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: auto;
  padding-top: 0.82rem;
  color: var(--post-link-color);
  font-size: 0.82rem;
  font-weight: 700;
  transition: color 0.2s ease;
}

.home-entry-meta i {
  font-size: 0.9rem;
  transition: transform 0.2s ease;
}

.home-entry-card:hover .home-entry-meta i {
  transform: translateX(3px);
}

.home-entry-card:hover .home-entry-icon,
.home-entry-card:hover .home-entry-label,
.home-entry-card:hover strong,
.home-entry-card:hover .home-entry-meta {
  color: var(--link-hover-color);
}

.home-entry-card:hover .home-entry-icon {
  background: var(--link-hover-bg-color);
  border-color: rgba(135, 162, 228, 0.32);
  opacity: 1;
}

.home-entry-links {
  display: grid;
  gap: 0.2rem;
  margin-top: auto;
  padding-top: 0.75rem;
}

.home-entry-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.36rem 0;
  color: var(--sec-text-color);
  border-top: 1px solid rgba(92, 119, 161, 0.12);
  font-size: 0.86rem;
  text-decoration: none;
}

.home-entry-links a:first-child {
  border-top: 0;
}

.home-entry-links a:hover {
  color: var(--link-hover-color);
}

.home-entry-links em {
  color: var(--post-link-color);
  font-style: normal;
  font-size: 0.76rem;
  font-weight: 700;
}

.home-entry-links a:hover em {
  color: var(--link-hover-color);
}

.home-section {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.home-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 0.95rem;
}

.home-section-heading h2 {
  font-size: 1.45rem;
}

.home-text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.34rem 0.62rem;
  color: var(--post-link-color);
  border: 1px solid rgba(92, 119, 161, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.42);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.home-text-link::after {
  content: "›";
  font-size: 1rem;
  line-height: 1;
}

.home-text-link:hover {
  color: var(--link-hover-color);
  border-color: rgba(135, 162, 228, 0.32);
  text-decoration: none;
}

.home-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.home-post-card {
  overflow: hidden;
}

.home-post-cover {
  display: block;
  overflow: hidden;
}

.home-post-cover img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.home-post-card:hover .home-post-cover img {
  transform: scale(1.04);
}

.home-post-body {
  padding: 1rem;
}

.home-post-body time {
  color: var(--post-link-color);
  font-size: 0.82rem;
  font-weight: 700;
}

.home-post-body h3 {
  margin: 0.4rem 0 0.45rem;
  color: var(--post-heading-color);
  font-size: 1.08rem;
  line-height: 1.45;
}

.home-post-body h3 a {
  color: inherit;
  transition: color 0.2s ease;
}

.home-post-body h3 a:hover {
  color: var(--link-hover-color);
  text-decoration: none;
}

.home-post-body p {
  margin: 0;
  color: var(--sec-text-color);
  font-size: 0.92rem;
  line-height: 1.55;
}

[data-user-color-scheme="dark"] .home-kicker,
[data-user-color-scheme="dark"] .home-entry-label,
[data-user-color-scheme="dark"] .home-entry-icon,
[data-user-color-scheme="dark"] .home-entry-meta,
[data-user-color-scheme="dark"] .home-entry-links em,
[data-user-color-scheme="dark"] .home-text-link,
[data-user-color-scheme="dark"] .home-text-link:hover,
[data-user-color-scheme="dark"] .home-post-body time {
  color: var(--post-heading-color);
}

[data-user-color-scheme="dark"] .home-entry-links a:hover {
  color: var(--link-hover-color);
}

[data-user-color-scheme="dark"] .home-entry-card:hover .home-entry-icon,
[data-user-color-scheme="dark"] .home-entry-card:hover .home-entry-label,
[data-user-color-scheme="dark"] .home-entry-card:hover strong,
[data-user-color-scheme="dark"] .home-entry-card:hover .home-entry-meta {
  color: var(--link-hover-color);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-user-color-scheme]) .home-kicker,
  :root:not([data-user-color-scheme]) .home-entry-label,
  :root:not([data-user-color-scheme]) .home-entry-icon,
  :root:not([data-user-color-scheme]) .home-entry-meta,
  :root:not([data-user-color-scheme]) .home-entry-links em,
  :root:not([data-user-color-scheme]) .home-text-link,
  :root:not([data-user-color-scheme]) .home-text-link:hover,
  :root:not([data-user-color-scheme]) .home-post-body time {
    color: var(--post-heading-color);
  }

  :root:not([data-user-color-scheme]) .home-entry-links a:hover {
    color: var(--link-hover-color);
  }

  :root:not([data-user-color-scheme]) .home-entry-card:hover .home-entry-icon,
  :root:not([data-user-color-scheme]) .home-entry-card:hover .home-entry-label,
  :root:not([data-user-color-scheme]) .home-entry-card:hover strong,
  :root:not([data-user-color-scheme]) .home-entry-card:hover .home-entry-meta {
    color: var(--link-hover-color);
  }
}

@media (max-width: 991px) {
  .home-entry-grid,
  .home-entry-grid--three,
  .home-post-grid {
    grid-template-columns: 1fr;
  }

  .home-entry-card {
    min-height: auto;
  }
}

@media (max-width: 575px) {
  .home-shell {
    width: min(100% - 20px, 1120px);
    padding-top: 1.4rem;
  }

  .home-profile-card {
    grid-template-columns: 1fr;
    padding: 1.35rem;
  }

  .home-section {
    padding: 0;
  }

  .home-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}
