.news-page {
  width: min(1100px, calc(100% - 2rem));
  min-height: 75vh;
  margin: 9rem auto 5rem;
}
.news-header h1 {
  margin: 0.45rem 0;
  font:
    700 clamp(2.8rem, 6vw, 4.8rem) Cinzel,
    serif;
}
.news-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}
.news-header p {
  color: var(--mist);
}
.news-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.news-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgb(from var(--line) r g b / 16%);
  background: linear-gradient(145deg, #11231f, #091314);
  transition: 0.2s ease;
}
.news-card.has-image {
  display: grid;
  grid-template-columns: minmax(220px, 36%) minmax(0, 1fr);
  grid-template-areas: "media body";
  min-height: 190px;
}
.news-card.has-image:nth-child(even) {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 36%);
  grid-template-areas: "body media";
}
.news-card-body {
  grid-area: body;
  align-self: center;
  padding: 1.6rem;
}
.news-card-media {
  grid-area: media;
  min-height: 190px;
  background: #071011;
}
.news-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-card:hover {
  border-color: #5e796f;
  transform: translateY(-2px);
}
.news-card-link {
  position: absolute;
  z-index: 2;
  inset: 0;
}
.news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #81928d;
  font-size: 0.72rem;
}
.news-card h2 {
  margin: 1.1rem 0 0.7rem;
  font:
    700 1.45rem Cinzel,
    serif;
}
.news-card p {
  color: #9caea7;
  line-height: 1.7;
}
.news-detail-page {
  width: min(850px, calc(100% - 2rem));
  min-height: 75vh;
  margin: 9rem auto 5rem;
  padding: 2rem;
  border: 1px solid rgb(from var(--line) r g b / 16%);
  background: #091314;
}
.news-back {
  display: block;
  margin-bottom: 2rem;
  color: var(--ember);
  font-size: 0.82rem;
  font-weight: 700;
}
.news-detail-page time {
  color: #81928d;
  font-size: 0.76rem;
}
.news-detail-page h1 {
  margin: 0.8rem 0 1rem;
  font:
    700 clamp(2rem, 5vw, 3.5rem) Cinzel,
    serif;
}
.news-lead {
  color: #c1ccc7;
  font-size: 1.08rem;
  line-height: 1.7;
}
.news-content {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgb(from var(--line) r g b / 16%);
  color: #aab9b2;
  line-height: 1.85;
}
.news-content a {
  color: var(--ember);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}
.news-content img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 1.6rem;
  border: 1px solid rgb(from var(--line) r g b / 20%);
  border-radius: 0.35rem;
}
.news-content p,
.news-content ul,
.news-content ol,
.news-content blockquote {
  margin: 0 0 1rem;
}
.news-message-actions {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  margin-top: 1rem;
}
.news-message-actions form {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}
.news-message-actions a,
.news-message-actions button {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #869a92;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 400;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}
.news-message-actions a:hover,
.news-message-actions button:hover {
  color: var(--ember);
  text-decoration: underline;
}
.news-editor-page {
  width: min(850px, calc(100% - 2rem));
  min-height: 75vh;
  margin: 9rem auto 5rem;
}
.news-editor-page h1 {
  margin: 0.45rem 0;
  font: 700 clamp(2.5rem, 5vw, 4rem) Cinzel, serif;
}
.news-editor-page > p {
  color: var(--mist);
}
.news-editor-form {
  display: grid;
  gap: 1.2rem;
  margin-top: 2rem;
  padding: 1.6rem;
  border: 1px solid rgb(from var(--line) r g b / 16%);
  background: #091314;
}
.news-editor-form input,
.news-editor-form textarea {
  width: 100%;
  background: var(--field-background);
}
.news-editor-form textarea {
  resize: vertical;
}
.news-editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.7rem;
}
@media (max-width: 767px) {
  .news-page {
    margin-top: 8rem;
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
  .news-header {
    align-items: stretch;
    flex-direction: column;
  }
  .news-card.has-image,
  .news-card.has-image:nth-child(even) {
    grid-template-columns: 1fr;
    grid-template-areas:
      "media"
      "body";
  }
  .news-card-media {
    min-height: auto;
    aspect-ratio: 16 / 9;
  }
}
