/* ==========================================================================
   FALLBACK TEMPLATES — generic pages, archives, search, 404

   The six designed pages carry their own stylesheets. This covers everything
   else WordPress can route to, which the Astro site had no equivalent of:
   a blog archive, a search results list, a 404. It is built from the same
   tokens so an added post looks like it belongs, without designing a blog
   nobody has asked for yet.
   ========================================================================== */

.entry-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-l);
}

.entry {
  padding-bottom: var(--space-l);
  border-bottom: 1px solid var(--rule);
}

.entry:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.entry h2 {
  font-size: var(--step-2);
}

.entry h2 a {
  text-decoration: none;
}

.entry h2 a:hover {
  color: var(--brand-700);
}

.entry__meta {
  margin-top: 0.375rem;
  font-size: var(--step--4);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--graphite-500);
}

.entry__excerpt {
  margin-top: var(--space-s);
  color: var(--graphite-600);
  font-size: var(--step--1);
  line-height: 1.6;
  max-width: var(--measure);
}

.entry__thumb {
  margin-bottom: var(--space-m);
  border-radius: var(--radius-m);
  overflow: hidden;
}

.entry__thumb img {
  width: 100%;
  height: auto;
}

/* --- Pagination --- */
.pagination {
  margin-top: var(--space-xl);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0 0.75rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius-s);
  background: var(--stone-000);
  font-size: var(--step--1);
  font-weight: 700;
  text-decoration: none;
  color: var(--graphite-700);
}

.pagination .page-numbers:hover {
  border-color: var(--brand-500);
  color: var(--graphite-900);
}

.pagination .page-numbers.current {
  background: var(--graphite-900);
  border-color: var(--graphite-900);
  color: #fff;
}

/* --- Search form --- */
.search-form {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
  margin-top: var(--space-m);
  max-width: 34rem;
}

.search-form label {
  flex: 1 1 14rem;
}

.search-form .search-field {
  width: 100%;
  padding: 0.75rem 0.875rem;
  min-height: 3rem;
  background: var(--stone-050);
  border: 1.5px solid var(--rule-strong);
  border-radius: var(--radius-s);
  font-size: var(--step-0);
  color: var(--graphite-900);
}

.search-form .search-field:focus {
  background: #fff;
  border-color: var(--brand-600);
}

/* --- WordPress content oddments inside .prose --- */
.prose h2,
.prose h3 {
  margin-top: var(--space-l);
}

.prose ul,
.prose ol {
  margin-top: var(--space-s);
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: 0.375rem;
}

.prose img {
  height: auto;
  border-radius: var(--radius-m);
  margin-block: var(--space-m);
}

.prose blockquote {
  margin: var(--space-m) 0;
  padding-left: var(--space-m);
  border-left: 3px solid var(--brand-500);
  color: var(--graphite-600);
}

.prose a {
  color: var(--brand-700);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}

.prose a:hover {
  color: var(--graphite-900);
}
