/* The news (news.py): the list of posts and a post, in the terms pages' column (assets/legal.css) under the nav
   (assets/nav.css), with the home page's Pricing button and the contrail's colours. */
:root { --crimson: #C72C41; --maroon: #801336; --plum: #510A32; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 0 20px; border-radius: 10px; font: 600 15px/1 var(--sans); text-decoration: none; }

.news .lede { margin: 0 0 8px; font-size: 19px; line-height: 1.55; color: #D9D4D2; text-wrap: pretty; }
.news .lede a { color: var(--brand-ink); }

/* the list: each post's day, title and summary, newest first */
.news-list { list-style: none; margin: 40px 0 0; padding: 0; }
.news-list li { position: relative; padding: 28px 0 30px; border-top: 1px solid var(--line); }
.news-list li:last-child { border-bottom: 1px solid var(--line); }
.news-list time, .post .back, .post-nav span { font: 400 12px/16px var(--pixel); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.news-list h2 { margin: 10px 0 8px; font-size: 26px; line-height: 1.2; }
.news-list h2 a { color: var(--ink); text-decoration: none; }
.news-list h2 a::after { content: ""; position: absolute; inset: 0; }  /* the whole item opens the post */
.news-list li:hover h2 a { color: var(--brand-ink); }
.news-list p { margin: 0; }

/* a post */
.post .back { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--muted); }
.post .back::before { content: ""; width: 0; height: 0; border-block: 4px solid transparent; border-right: 5px solid currentColor; }
.post .back:hover { color: var(--ink); }
.post .lede { margin-bottom: 36px; }
.shots { display: flex; justify-content: center; gap: 16px; margin: 0 0 40px; }
.shots img { display: block; width: 100%; height: auto; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--raised); }
.shots img.phone { width: min(260px, calc(50% - 8px)); border-radius: 30px; }
/* an alert, as it shows on a phone */
.doc blockquote { margin: 0 0 18px; padding: 14px 18px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--raised); font-size: 15px; line-height: 1.5; color: var(--ink); }
.doc blockquote::before { content: "Wingman"; display: block; margin-bottom: 4px; font: 400 11px/14px var(--pixel); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* the posts before and after */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; }
.post-nav a { display: grid; gap: 6px; padding: 16px 18px; border: 1px solid var(--line-strong); border-radius: 14px; color: var(--ink); text-decoration: none; font-weight: 550; line-height: 1.35; }
.post-nav a:hover { border-color: var(--muted); }
.post-nav .newer { grid-column: 2; text-align: right; }

@media (max-width: 600px) {
  .news .lede { font-size: 17px; }
  .news-list h2 { font-size: 22px; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .newer { grid-column: auto; text-align: left; }
  .shots img.phone { border-radius: 22px; }
}
