/* 404 Page Styles */
.np-404-wrapper {
  padding: clamp(2rem, 6vw, 5rem) 1rem;
}
.np-404 {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.np-404-logo {
  margin-bottom: 1rem;
}
.np-404-logo img {
  height: auto;
  filter: grayscale(100%) contrast(85%);
  opacity: 0.9;
  transition: filter 0.3s ease, opacity 0.3s ease;
}
.np-404-logo a:hover img,
.np-404-logo a:focus img {
  filter: grayscale(0%) contrast(100%);
  opacity: 1;
}
.np-404-title {
  font-family: 'Oswald', var(--heading-font, sans-serif);
  font-weight: 500;
  letter-spacing: 0.5px;
  font-size: clamp(2.1rem, 4.5vw, 3.2rem);
  margin: 0 0 0.75rem;
  color: var(--np-red-light, #b40500);
}
.np-404-lede {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.5;
  margin: 0 0 1.25rem;
  color: var(--text-secondary, #555);
}
.np-404-funny {
  font-size: 1rem;
  font-style: italic;
  color: var(--text-muted, #6a6a6a);
  margin: 0 0 1.75rem;
}
.np-404-actions {
  font-size: 0.95rem;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.np-404-actions a {
  text-decoration: none;
  color: var(--np-red, #b40500);
  font-weight: 500;
}
.np-404-actions a:hover,
.np-404-actions a:focus {
  text-decoration: underline;
}
.np-404-search {
  margin: 0 auto 2.5rem;
  max-width: 560px;
}
.np-404-search-label {
  font-weight: 600;
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary, #555);
}
.np-404-sitemap {
  margin-bottom: 2rem;
}
.np-404-alt-links {
  font-weight: 600;
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary, #555);
}
.np-404-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  justify-content: center;
}
@media (prefers-color-scheme: dark) {
  /* remove dark variant previously targeting .np-404-links a */
}
/* Search form adjustments scoped */
.np-404-search form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.np-404-search input[type='search'] {
  flex: 1 1 320px;
  max-width: 420px;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border-color, #d1d1d1);
  border-radius: 6px;
  font-size: 0.95rem;
  text-align: left;
}
.np-404-search input[type='submit'],
.np-404-search button {
  padding: 0.65rem 1.1rem;
  border-radius: 6px;
  border: none;
  background: var(--np-red, #b40500);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
}
.np-404-search input[type='submit']:hover,
.np-404-search button:hover {
  background: #8c0400;
}
