:root {
  color-scheme: light;
}

html,
body {
  background: #f7f9fc;
}

body {
  font-feature-settings: "kern";
}

.navbar {
  border-bottom: 1px solid rgba(25, 118, 210, 0.1);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08);
}

.navbar .container {
  max-width: 1180px;
}

.navbar .navbar-brand strong {
  color: #1976d2;
  font-weight: 800;
  letter-spacing: 0;
}

.navbar .nav-item .nav-link {
  border-radius: 8px;
  color: #334155;
  font-weight: 700;
  margin: 0 0.1rem;
  padding: 0.45rem 0.72rem;
}

.navbar .nav-item .nav-link:hover,
.navbar .nav-item .nav-link:focus {
  background: rgba(25, 118, 210, 0.08);
  color: #1565c0;
}

.navbar .nav-item .nav-link i {
  color: #1976d2;
}

.navbar .dropdown-collapse,
.top-nav-collapse,
.navbar-col-show {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: saturate(180%) blur(16px);
}

.navbar-toggler .animated-icon span {
  background-color: #1976d2 !important;
}

#banner .mask {
  background: linear-gradient(rgba(15, 23, 42, 0.28), rgba(15, 23, 42, 0.22)) !important;
}

.banner-text .h2,
#subtitle,
.typed-cursor {
  font-size: clamp(2.6rem, 5vw, 5rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.05;
  text-shadow: 0 4px 26px rgba(15, 23, 42, 0.45);
}

#board {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.12);
}

body:not(.home-page) #board {
  margin-top: -1.5rem;
}

body.home-page #board {
  display: none;
}

body.home-page footer {
  display: none;
}

body.home-page .header-inner {
  min-height: 100vh;
}

body.home-page #banner {
  min-height: 100vh;
}

body.home-page #banner .mask {
  align-items: center;
  justify-content: center;
  padding-top: 0;
}

.archive-timeline > .h4 {
  color: #0f172a;
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
}

.archive-timeline > .h5 {
  color: #1976d2;
  font-size: 1.1rem;
  font-weight: 800;
  margin: 2rem 0 0.75rem;
  padding-left: 1rem;
  position: relative;
}

.archive-timeline > .h5::before {
  background: #1976d2;
  border-radius: 999px;
  content: "";
  height: 0.65rem;
  left: 0;
  position: absolute;
  top: 0.45rem;
  width: 0.65rem;
}

.archive-timeline .list-group-item {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  margin: 0.18rem 0;
  padding: 0.8rem 1rem;
}

.archive-timeline .list-group-item time {
  color: #64748b;
  font-weight: 700;
}

.archive-timeline .list-group-item-title {
  color: #1f2937;
  font-weight: 700;
}

.archive-timeline .list-group-item:hover,
.archive-timeline .list-group-item:focus {
  background: #eef6ff;
  border-color: rgba(25, 118, 210, 0.16);
  box-shadow: 0 8px 24px rgba(25, 118, 210, 0.1);
}

#comments {
  border-top: 1px solid #e5eaf2;
  margin-top: 3rem;
  padding-top: 2rem;
}

#scroll-top-button {
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.16);
}

@media (max-width: 767px) {
  .navbar .nav-item .nav-link {
    margin: 0.2rem 0;
  }

  .banner-text .h2,
  #subtitle,
  .typed-cursor {
    font-size: clamp(2.1rem, 13vw, 3.3rem);
  }

  body.home-page #banner .mask {
    padding-top: 0;
  }

  #board {
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }

  .archive-timeline .list-group-item {
    padding: 0.7rem 0.8rem;
  }
}
