/* The site's public pages other than home (news and blog), in the home page's design: home_v1.css supplies the
   type, the header, the footer and the colour variables (--ink, --line, --blue…); this file adds only what these
   pages need. */

.site-page main { padding-top: 76px; }
.site-page .menu a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }

/* the news editor's preview of a post (/marketing/news/:id/preview) */
.preview-banner { position: sticky; top: 76px; z-index: 5; margin: 0; padding: 12px var(--gutter); background: var(--ink); color: var(--paper); font-size: 14.5px; text-align: center; }
.preview-banner a { color: inherit; margin-left: 12px; text-underline-offset: 3px; }

/* ── the list ── */
.news-head { padding-top: 96px; padding-bottom: 48px; }
.news-head h1 { margin-top: 8px; font-size: clamp(40px, 5vw, 64px); line-height: 1.04; }
.news-filter { display: flex; gap: 8px; margin-top: 40px; border-bottom: 1px solid var(--line); }
.news-filter a { padding: 12px 4px; margin-right: 20px; margin-bottom: -1px; text-decoration: none; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; }
.news-filter a:hover { color: var(--ink); }
.news-filter a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 32px; padding-bottom: 144px; }
.news-card-link { display: flex; flex-direction: column; gap: 12px; text-decoration: none; }
.news-card-img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--mist); margin-bottom: 8px; }
.news-card h3 { font-size: 22px; line-height: 1.25; }
.news-card-link:hover h3 { color: var(--blue-d); }
.news-excerpt { color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }
.news-meta { font-size: 13.5px; color: var(--muted); letter-spacing: .02em; }
.news-cat { color: var(--blue-d); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: 12px; }

/* ── one article ── */
.article-head { padding-top: 88px; padding-bottom: 40px; max-width: calc(720px + 2 * var(--gutter)); }
.article-back { display: inline-block; margin-bottom: 32px; color: var(--muted); text-decoration: none; font-size: 14.5px; }
.article-back:hover { color: var(--ink); }
.article-head h1 { font-size: clamp(34px, 4vw, 52px); line-height: 1.08; margin-bottom: 20px; }
.article-img { max-width: calc(1040px + 2 * var(--gutter)); margin-bottom: 64px; }
.article-img img { width: 100%; height: auto; max-height: 620px; object-fit: cover; }

.prose { max-width: 720px; margin: 0 auto; padding-bottom: 120px; font-size: 18px; line-height: 1.75; color: var(--ink); }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose figure, .prose table { margin: 0 0 24px; }
.prose h2, .prose h3, .prose h4, .prose h5 { font-family: var(--display); font-weight: 500; letter-spacing: -.01em; line-height: 1.25; margin: 48px 0 16px; }
.prose h2 { font-size: 30px; } .prose h3 { font-size: 26px; } .prose h4 { font-size: 22px; } .prose h5 { font-size: 19px; }
.prose a { color: var(--blue-d); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li { margin-bottom: 8px; }
.prose img { height: auto; margin: 8px 0; }
.prose figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.prose blockquote { border-left: 2px solid var(--blue); padding-left: 24px; color: var(--ink-2); font-style: italic; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th p, .prose td p { margin: 0; }

.news-more { border-top: 1px solid var(--line); padding-top: 72px; }
.news-more h2 { margin-bottom: 40px; }

@media (max-width: 960px) {
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .news-head { padding-top: 56px; }
  .news-grid { grid-template-columns: 1fr; gap: 48px; padding-bottom: 96px; }
  .article-head { padding-top: 48px; }
  .article-img { margin-bottom: 40px; padding: 0; }
  .prose { font-size: 17px; padding-bottom: 80px; }
}
