/* Winnowing Fan archive landing page.
   This file supplements styles.css; it does not alter the homepage styles. */

.wf-page {
  padding-top: 1.5rem;
  padding-bottom: 1rem;
}

.wf-masthead {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto 1.5rem;
  padding: clamp(0.75rem, 2vw, 1.25rem);
  background-image: url("/wp-content/uploads/2016/06/wheat2.jpg");
  background-size: cover;
  background-position: center;
  border-radius: 5px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.16);
}

.wf-masthead-image {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 110px;
}

.wf-masthead-image img {
  display: block;
  width: min(100%, 900px);
  max-height: 190px;
  height: auto;
  object-fit: contain;
}

.wf-intro {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 1.75rem;
  padding: 1.5rem clamp(1rem, 3vw, 2rem);
  text-align: center;
  background: #ffffff;
  border-radius: 5px;
  box-shadow: 0 2px 9px rgba(0, 0, 0, 0.08);
}

.wf-eyebrow {
  margin: 0 0 0.35rem;
  color: #65735e;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.wf-intro h1 {
  margin: 0 0 0.65rem;
  color: #293c2c;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.2;
}

.wf-lead {
  max-width: 690px;
  margin: 0 auto;
  color: #4c4c45;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
}

.wf-years {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto 1.75rem;
}

.wf-year-card {
  display: flex;
  min-width: 0;
  min-height: 145px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  padding: 1.1rem 0.8rem;
  color: #293c2c;
  text-align: center;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid rgba(48, 69, 48, 0.16);
  border-top: 4px solid #647c55;
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.09);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.wf-year-card:hover,
.wf-year-card:focus-visible {
  transform: translateY(-3px);
  background: #fbfcf8;
  box-shadow: 0 7px 16px rgba(0, 0, 0, 0.15);
  outline: none;
}

.wf-year {
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  font-weight: 700;
  line-height: 1.1;
}

.wf-issue-count {
  color: #65675f;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.86rem;
}

.wf-year-action {
  margin-top: 0.35rem;
  color: #526b45;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
}

.wf-archive-note {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 1.2rem 1.5rem;
  background: #edf0e8;
  border-left: 4px solid #71845e;
  border-radius: 3px;
}

.wf-archive-note h2 {
  margin: 0 0 0.35rem;
  color: #354a32;
  font-size: 1.15rem;
}

.wf-archive-note p {
  margin: 0;
  color: #4d5148;
}

@media (max-width: 900px) {
  .wf-years {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .wf-page {
    padding: 1rem 0.8rem 0;
  }

  .wf-masthead {
    margin-bottom: 1rem;
    padding: 0.6rem;
  }

  .wf-masthead-image {
    min-height: 75px;
  }

  .wf-masthead-image img {
    max-height: 125px;
  }

  .wf-intro {
    margin-bottom: 1rem;
    padding: 1.1rem;
  }

  .wf-years {
    gap: 0.75rem;
    margin-bottom: 1rem;
  }

  .wf-year-card {
    min-height: 125px;
    padding: 0.85rem 0.5rem;
  }

  .wf-archive-note {
    padding: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wf-year-card {
    transition: none;
  }

  .wf-year-card:hover,
  .wf-year-card:focus-visible {
    transform: none;
  }
}

/* Warm wheat-gold accent for the active page and archive arrow */
.menu-inner a.current-page {
  color: #e4c36a;
}

.menu-down {
  color: #e4c36a;
}

.menu-down:hover,
.menu-down:focus-visible {
  color: #f2d98f;
}

.wf-page .site-footer {
  background: transparent;
}
