/* Dev log: the list of updates and a page for each (website/news/, written
   by tools/dev/web/build_news.py), plus the "latest update" link on the
   homepage. On top of style.css and docs.css, whose hero these pages share. */

#site-nav a[aria-current=page] {
  color:var(--accent)
}

.manual-edition a {
  color:var(--accent);
  text-decoration:none
}

/* The list */
.news-list {
  padding-block:60px 100px
}

.news-list ol {
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:56px
}

.news-card {
  display:grid;
  grid-template-columns:minmax(0,5fr) minmax(0,7fr);
  gap:44px;
  align-items:center;
  text-decoration:none
}

.news-poster {
  display:block;
  aspect-ratio:16/9;
  background:var(--deep);
  border:1px solid var(--line);
  overflow:hidden
}

.news-poster img {
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:.85;
  transition:opacity .2s
}

.news-card:hover .news-poster,.news-card:focus-visible .news-poster {
  border-color:var(--accent)
}

.news-card:hover .news-poster img,.news-card:focus-visible .news-poster img {
  opacity:1
}

.news-card time {
  display:block;
  color:var(--accent);
  margin-bottom:14px
}

.news-card h2 {
  font:clamp(32px,3.4vw,48px)/1 var(--display);
  text-transform:uppercase;
  margin-bottom:16px
}

.news-card p {
  color:var(--muted);
  font-size:18px;
  max-width:620px;
  margin-bottom:22px
}

/* A post */
.news-post {
  padding-block:56px 90px
}

.news-post>.eyebrow {
  color:var(--muted);
  margin-bottom:18px
}

.news-post>.eyebrow a {
  color:var(--accent);
  text-decoration:none
}

.news-post h1 {
  font:clamp(44px,6vw,84px)/.95 var(--display);
  text-transform:uppercase;
  margin-bottom:22px;
  max-width:1000px
}

.news-lede {
  font-size:21px;
  color:var(--muted);
  max-width:720px;
  margin-bottom:48px
}

.news-body {
  max-width:720px
}

.news-body p,.news-body li {
  font-size:18px;
  line-height:1.65
}

.news-body p+p {
  margin-top:20px
}

.news-body h2 {
  font:34px/1.05 var(--display);
  text-transform:uppercase;
  margin:56px 0 18px
}

.news-body h3 {
  font:24px/1.1 var(--display);
  text-transform:uppercase;
  margin:36px 0 12px
}

.news-body ul {
  margin:20px 0;
  padding-left:22px
}

.news-body li+li {
  margin-top:10px
}

.news-body li::marker {
  color:var(--accent)
}

.news-body .text-link {
  font-size:inherit;
  padding-bottom:1px
}

.news-body figure {
  margin:40px 0
}

.news-body figure img {
  display:block;
  width:100%;
  height:auto;
  border:1px solid var(--line)
}

.news-body figcaption {
  font:11px/1.6 var(--mono);
  letter-spacing:.06em;
  color:var(--muted);
  margin-top:10px
}

.news-steps {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  gap:24px;
  align-items:center;
  margin-top:72px;
  padding-top:28px;
  border-top:1px solid var(--line)
}

.news-step {
  text-decoration:none;
  font:24px/1.15 var(--display);
  text-transform:uppercase
}

.news-step .eyebrow {
  display:block;
  font-family:var(--mono);
  color:var(--muted);
  margin-bottom:6px
}

.news-step.newer {
  text-align:right
}

a.news-step:hover,.news-all:hover {
  color:var(--accent)
}

.news-all {
  font:11px var(--mono);
  letter-spacing:.13em;
  text-transform:uppercase;
  text-decoration:none;
  color:var(--muted)
}

/* The homepage link to the newest post */
.news-latest {
  display:grid;
  gap:8px;
  margin-top:48px;
  padding:28px 32px;
  border:1px solid var(--line);
  border-left:3px solid var(--accent);
  background:var(--panel);
  text-decoration:none
}

.news-latest .eyebrow {
  color:var(--accent)
}

.news-latest strong {
  font:30px/1.05 var(--display);
  text-transform:uppercase;
  font-weight:600
}

.news-latest>span:not(.eyebrow):not(.text-link) {
  color:var(--muted);
  max-width:760px
}

.news-latest .text-link {
  justify-self:start;
  margin-top:8px
}

.news-latest:hover {
  border-color:var(--accent)
}

@media(max-width:800px) {
  .news-card {
    grid-template-columns:minmax(0,1fr);
    gap:22px
  }
  .news-body p,.news-body li {
    font-size:17px
  }
  .news-steps {
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)
  }
  .news-all {
    grid-column:1/-1;
    grid-row:2;
    text-align:center
  }
  .news-step {
    font-size:19px
  }
  .news-latest {
    padding:22px 20px
  }
}
