/* News & Greetings: the /news page. Linked from src/pages/news.astro. Every
   rule is scoped to a news-* class. */

.news-next a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* News & Greetings page: a journal masthead, the newest item as a feature,
   then a short guide to what the page is for. */
.news-page a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.news-masthead {
  padding-block: clamp(3.5rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 3.75rem);
  background: var(--cream);
  text-align: center;
}

.news-masthead__rule {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.news-masthead__rule::before,
.news-masthead__rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--navy);
  opacity: 0.35;
}

.news-masthead__mark {
  width: 2.75rem;
  height: auto;
}

.news-masthead h1 {
  margin-top: clamp(1.25rem, 3vw, 2rem);
  color: var(--navy);
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 8vw, 6.6rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.news-masthead__dek {
  max-width: 34rem;
  margin: 1.25rem auto 0;
  padding-bottom: clamp(1.5rem, 3vw, 2rem);
  border-bottom: 1px solid rgba(25, 59, 70, 0.35);
  color: var(--muted);
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
  line-height: 1.7;
}

.news-body {
  padding-block: clamp(2.5rem, 5vw, 4rem) clamp(3.5rem, 7vw, 5.5rem);
  background: var(--cream);
}

.news-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.news-feature__media {
  margin: 0;
  overflow: hidden;
  border-radius: 1.5rem 1.5rem 5rem;
  box-shadow: var(--shadow);
  background: var(--sage-pale);
}

.news-feature__media img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.news-feature__media--mark {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
}

.news-feature__media--mark img {
  width: 30%;
  height: auto;
  aspect-ratio: auto;
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  align-items: baseline;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.news-meta__kind {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--sage-pale);
  color: var(--navy);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.news-feature--greeting .news-meta__kind,
.news-entry--greeting .news-meta__kind {
  background: #fbefd0;
}

.news-feature__title {
  margin-top: 1rem;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.6vw, 3.2rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.news-feature__summary {
  margin-top: 1rem;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.75;
}

.news-feature__link,
.news-entry__link,
.news-next__secondary {
  display: inline-block;
  margin-top: 1.25rem;
  color: var(--navy);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--coral);
  text-underline-offset: 0.3em;
}

.news-feature__link:hover,
.news-entry__link:hover,
.news-next__secondary:hover {
  color: var(--coral-dark);
}

.news-more {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}

.news-more__title {
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.news-more__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
  gap: 2rem 3rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.news-entry__title {
  margin-top: 0.75rem;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.15;
}

.news-entry__summary {
  margin-top: 0.5rem;
  color: var(--ink);
  line-height: 1.7;
}

.news-empty {
  color: var(--muted);
  font-size: 1.1rem;
  text-align: center;
}

.news-guide {
  padding-block: clamp(3rem, 6vw, 4.5rem);
  border-top: 1px solid var(--rule);
  background: var(--paper);
}

.news-guide__title {
  color: var(--navy);
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.4vw, 2.1rem);
  font-weight: 500;
}

.news-guide__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem clamp(1.5rem, 4vw, 3.5rem);
  margin: 1.75rem 0 0;
}

.news-guide__list div {
  padding-top: 1rem;
  border-top: 2px solid var(--sage);
}

.news-guide__list div:nth-child(2) { border-top-color: var(--gold); }
.news-guide__list div:nth-child(3) { border-top-color: var(--coral); }

.news-guide__list dt {
  color: var(--navy);
  font-weight: 700;
}

.news-guide__list dd {
  margin: 0.4rem 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.news-next {
  padding-block: clamp(3rem, 6vw, 4.5rem);
  background: var(--sage-pale);
}

.news-next__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  align-items: center;
  justify-content: space-between;
}

.news-next h2 {
  max-width: 22ch;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 500;
  line-height: 1.1;
}

.news-next__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  align-items: center;
}

.news-next__primary {
  display: inline-flex;
  gap: 0.6rem;
  align-items: center;
  min-height: 3rem;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
}

.news-next__primary:hover,
.news-next__primary:focus-visible {
  background: var(--coral-dark);
}

.news-next__secondary {
  margin-top: 0;
}

@media (max-width: 860px) {
  .news-feature,
  .news-guide__list {
    grid-template-columns: minmax(0, 1fr);
  }
}
