/* Archive index — modern editorial card grid. Layered on top of post.css
   so wordmark, masthead, and footer match the post pages exactly. */

body.archive-page {
  background: var(--post-paper);
  color: var(--post-ink);
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
}

body.archive-page .archive-main {
  display: block;
  padding: 4em 1.6em 4em;
  max-width: 1200px;
  margin: 0 auto;
}

/* Hero */
body.archive-page .archive-hero {
  text-align: center;
  margin-bottom: 3em;
  padding-bottom: 2.5em;
  border-bottom: 1px solid var(--post-hairline);
}

body.archive-page .archive-title {
  font-family: 'Bentham', Georgia, serif !important;
  font-size: clamp(48px, 6vw, 76px);
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 1.05;
  margin: 0 0 0.4em 0;
  color: var(--post-ink);
}

body.archive-page .archive-subtitle {
  font-family: 'Bentham', Georgia, serif !important;
  font-size: 18px;
  color: var(--post-stone);
  margin: 0;
  letter-spacing: 0.01em;
}

/* Filter bar */
body.archive-page .archive-filter-bar {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: 1.4em;
  margin-bottom: 1.6em;
  padding: 1.2em 1.4em;
  background: var(--post-bone);
  border-radius: 12px;
  border: 1px solid var(--post-hairline);
}

@media (max-width: 720px) {
  body.archive-page .archive-filter-bar {
    grid-template-columns: 1fr;
    gap: 0.9em;
    padding: 1em;
  }
}

body.archive-page .archive-filter {
  display: flex;
  flex-direction: column;
  gap: 0.4em;
}

body.archive-page .archive-filter-label {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--post-stone);
  font-family: 'Bentham', Georgia, serif !important;
}

body.archive-page .archive-filter-select,
body.archive-page .archive-filter-input {
  font-family: 'Bentham', Georgia, serif !important;
  font-size: 16px;
  padding: 0.55em 0.9em;
  border: 1px solid var(--post-hairline);
  background: var(--post-paper);
  color: var(--post-ink);
  border-radius: 6px;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 220ms ease, box-shadow 220ms ease;
}

body.archive-page .archive-filter-select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' width='12' height='8'%3E%3Cpath fill='%235a5a56' d='M0 0h12L6 8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85em center;
  background-size: 10px;
  padding-right: 2.2em;
}

body.archive-page .archive-filter--search {
  align-self: end;
}

body.archive-page .archive-filter-input {
  cursor: text;
}

body.archive-page .archive-filter-select:focus,
body.archive-page .archive-filter-input:focus {
  outline: 0;
  border-color: var(--post-ink);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

/* Status line */
body.archive-page .archive-status {
  font-family: 'Bentham', Georgia, serif !important;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--post-stone);
  text-align: right;
  margin: 0 0 1.6em 0;
  padding-right: 0.4em;
}

/* Card grid */
body.archive-page .archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2em 1.8em;
}

body.archive-page .archive-card {
  display: flex;
  flex-direction: column;
  background: var(--post-paper);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 220ms ease;
}

body.archive-page .archive-card:hover {
  transform: translateY(-2px);
}

body.archive-page .archive-card.is-hidden {
  display: none;
}

body.archive-page .archive-card-thumb {
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--post-bone);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1em;
}

body.archive-page .archive-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms ease;
}

body.archive-page .archive-card:hover .archive-card-thumb img {
  transform: scale(1.04);
}

body.archive-page .archive-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.6em;
}

body.archive-page .archive-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6em;
  align-items: center;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--post-stone);
}

body.archive-page .archive-card-date {
  font-family: 'Bentham', Georgia, serif !important;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  color: var(--post-stone);
}

body.archive-page .archive-card-cat {
  font-family: 'Bentham', Georgia, serif !important;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--post-amber);
  padding: 0.18em 0.6em;
  border: 1px solid var(--post-amber);
  border-radius: 999px;
  background: transparent;
}

body.archive-page .archive-card-title {
  font-family: 'Bentham', Georgia, serif !important;
  font-size: 22px;
  line-height: 1.22;
  letter-spacing: -0.005em;
  margin: 0;
  font-weight: 400;
}

body.archive-page .archive-card-title a {
  color: var(--post-ink);
  text-decoration: none;
  transition: color 220ms ease;
}

body.archive-page .archive-card-title a:hover {
  color: var(--post-ember);
}

body.archive-page .archive-card-excerpt {
  font-family: 'Bentham', Georgia, serif !important;
  font-size: 16px;
  line-height: 1.5;
  color: var(--post-stone);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.archive-page .archive-empty {
  font-family: 'Bentham', Georgia, serif !important;
  font-size: 18px;
  color: var(--post-stone);
  text-align: center;
  margin: 4em 0;
}

@media (max-width: 540px) {
  body.archive-page .archive-grid {
    grid-template-columns: 1fr;
    gap: 1.6em;
  }
}
