/* News (/news, /news/{slug}) and the roadmap (/roadmap). The site's own
   black and orange; each kind of post has its colour: announcements
   orange, update logs green, blog posts blue. */
.nw-head { padding-bottom: 36px; }
.nw-head h1 em, .nw-more h2 em, .rm-shipped h2 em { font-style: normal; color: var(--acc); }
.nw-lede { max-width: 640px; margin: 14px 0 0; color: var(--tx2); font-size: 1.05rem; line-height: 1.6; }
.nw-lede a { color: var(--acc); font-weight: 800; text-decoration: none; }
.nw-lede a:hover { text-decoration: underline; }
.nw-wrap { padding-top: 34px; padding-bottom: 96px; }

.nw-card { --k: var(--acc); }
.nw-card.is-update, .nw-post.is-update { --k: var(--grn); }
.nw-card.is-blog, .nw-post.is-blog { --k: #6FA8FF; }
.nw-post { --k: var(--acc); }

/* The filter: one row of chips; RSS at the far end. */
.nw-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 30px; }
.nw-filter a, .nw-filter button { padding: 8px 15px; border: 2px solid var(--line2); background: transparent; color: var(--tx2); font: inherit; font-size: .78rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: border-color .2s, color .2s, background .2s; }
.nw-filter a:hover, .nw-filter button:hover { border-color: var(--tx3); color: var(--tx); }
.nw-filter a[aria-current="true"], .nw-filter button[aria-pressed="true"] { border-color: var(--acc); background: var(--acc); color: #0A0A0A; }
.nw-filter .nw-rss { margin-left: auto; border-color: transparent; color: var(--tx3); }
.nw-filter a:focus-visible, .nw-filter button:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }

/* Cards. */
.nw-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.nw-card { position: relative; display: flex; flex-direction: column; border: 2px solid var(--line); background: var(--panel); transition: border-color .25s, transform .25s; }
.nw-card:hover { border-color: var(--k); transform: translateY(-4px); }
.nw-card:focus-within { border-color: var(--k); }
.nw-card-pic { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--k) 30%, transparent), transparent 60%), var(--panel2); text-decoration: none; }
.nw-card-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.nw-card:hover .nw-card-pic img { transform: scale(1.04); }
.nw-card-word { font-family: var(--head); font-size: clamp(1.6rem, 3.4vw, 2.4rem); text-transform: uppercase; color: var(--k); opacity: .85; letter-spacing: .02em; padding: 0 16px; text-align: center; line-height: 1.05; }
.nw-card-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 18px 20px 20px; }
.nw-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--tx3); }
.nw-kind { color: var(--k); }
.nw-pin { padding: 2px 8px; background: var(--acc); color: #0A0A0A; }
.nw-card-title { margin: 0; font-family: var(--head); font-weight: 400; font-size: 1.45rem; line-height: 1.15; text-transform: uppercase; text-wrap: balance; }
.nw-card-title a { color: var(--tx); text-decoration: none; }
.nw-card-title a::after { content: ''; position: absolute; inset: 0; }
.nw-card-title a:focus-visible { outline: none; }
.nw-card-sum { margin: 0; color: var(--tx2); font-size: .94rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nw-read { margin-top: auto; padding-top: 6px; color: var(--k); font-weight: 800; font-size: .86rem; }

/* The pinned post: wide, picture beside the words. */
.nw-card.is-big { flex-direction: row; margin-bottom: 26px; }
.nw-card.is-big .nw-card-pic { flex: 0 0 56%; aspect-ratio: auto; min-height: 300px; }
.nw-card.is-big .nw-card-body { justify-content: center; padding: 30px 34px; }
.nw-card.is-big .nw-card-title { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.nw-card.is-big .nw-card-sum { -webkit-line-clamp: 5; font-size: 1.02rem; }

.nw-empty { padding: 50px 26px; border: 2px dashed var(--line2); text-align: center; color: var(--tx2); }
.nw-empty p { margin: 0 0 6px; }
.nw-empty a { color: var(--acc); font-weight: 800; }
.nw-pages { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-top: 36px; color: var(--tx3); font-size: .86rem; }
.nw-pages a { color: var(--acc); font-weight: 800; text-decoration: none; }
.nw-pages a[rel="next"] { justify-self: end; }

/* One post. */
.nw-post-head { padding: 148px 0 30px; border-bottom: 2px solid var(--line); background: radial-gradient(80% 120% at 0% 0%, color-mix(in srgb, var(--k) 14%, transparent), transparent 60%); }
.nw-post-head h1 { max-width: 900px; margin: 10px 0 0; font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.02; text-wrap: balance; }
.nw-back { display: inline-block; margin-bottom: 18px; color: var(--tx3); font-size: .86rem; font-weight: 800; text-decoration: none; }
.nw-back:hover { color: var(--acc); }
.nw-cover { max-width: 960px; margin: 34px 0 0; border: 2px solid var(--line); }
.nw-cover img { display: block; width: 100%; height: auto; }

.nw-prose { max-width: 720px; padding: 40px 0 10px; color: var(--tx); font-size: 1.06rem; line-height: 1.75; }
.nw-prose > * + * { margin-top: 1em; }
.nw-prose p { margin: 0; }
.nw-prose h2 { margin-top: 2em; padding-bottom: 8px; border-bottom: 2px solid var(--line); font-family: var(--head); font-weight: 400; font-size: 1.9rem; line-height: 1.1; text-transform: uppercase; scroll-margin-top: 110px; }
.nw-prose h3 { margin-top: 1.6em; font-size: 1.15rem; font-weight: 900; }
.nw-prose a { color: var(--acc); font-weight: 700; }
.nw-prose strong { color: var(--tx); font-weight: 900; }
.nw-prose code { padding: 1px 6px; background: var(--panel2); border: 1px solid var(--line2); font-size: .9em; }
.nw-prose ul, .nw-prose ol { padding-left: 1.3em; }
.nw-prose ul { list-style: none; padding-left: 0; }
.nw-prose ul li { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 14px; padding: 12px 0 12px 22px; border-bottom: 1px solid var(--line); }
.nw-prose ul li::before { content: ''; position: absolute; left: 2px; top: 1.15em; width: 8px; height: 8px; background: var(--k); }
.nw-prose ul li .nw-li { flex: 1 1 320px; min-width: 0; }
.nw-prose ol li { padding: 4px 0; }
.nw-prose ol li::marker { color: var(--k); font-weight: 900; }
.nw-prose blockquote { margin-left: 0; padding: 14px 20px; border-left: 4px solid var(--k); background: var(--panel); color: var(--tx2); }
.nw-prose hr { border: 0; border-top: 2px dashed var(--line2); margin: 2em 0; }
.nw-prose figure { margin: 1.6em 0; }
.nw-prose figure img { display: block; max-width: 100%; height: auto; border: 2px solid var(--line); }
.nw-prose figcaption { margin-top: 8px; color: var(--tx3); font-size: .86rem; }
.nw-tag { flex: none; padding: 2px 9px; border: 1px solid currentColor; border-radius: 99px; font-size: .66rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; line-height: 1.6; white-space: nowrap; }
.nw-tag.is-clients { color: #6FA8FF; }
.nw-tag.is-artists { color: #C996EC; }
.nw-tag.is-partners { color: #FF8A4C; }
.nw-tag.is-everyone { color: var(--grn); }
.nw-share { display: flex; flex-wrap: wrap; gap: 10px; max-width: 720px; margin-top: 34px; padding-top: 22px; border-top: 2px solid var(--line); }
.nw-more { margin: 70px 0 96px; }
.nw-more h2 { margin: 0 0 22px; font-size: clamp(1.8rem, 4vw, 2.6rem); }

/* The roadmap. */
.rm-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.rm-col { --s: var(--acc); padding: 18px; border: 2px solid var(--line); background: var(--panel); }
.rm-col.is-next { --s: #6FA8FF; }
.rm-col.is-later { --s: var(--tx3); }
.rm-col h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-family: var(--head); font-weight: 400; font-size: 1.5rem; text-transform: uppercase; }
.rm-col h2 small { margin-left: auto; font-family: var(--body); font-size: .8rem; font-weight: 900; color: var(--tx3); }
.rm-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--s); box-shadow: 0 0 0 4px color-mix(in srgb, var(--s) 22%, transparent); }
.rm-col.is-now .rm-dot { animation: rm-pulse 2.2s ease-in-out infinite; }
@keyframes rm-pulse { 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--s) 8%, transparent); } }
.rm-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.rm-list .rm-item { padding: 14px 15px; border: 1px solid var(--line2); border-left: 4px solid var(--s); background: var(--bg2); }
.rm-item[hidden] { display: none; }
.rm-item b { display: block; font-size: 1rem; line-height: 1.35; }
.rm-item p { margin: 6px 0 0; color: var(--tx2); font-size: .9rem; line-height: 1.5; }
.rm-area { display: inline-block; margin-bottom: 6px; font-size: .66rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--tx3); }
.rm-none { margin: 0; color: var(--tx3); font-size: .9rem; }
.rm-none[hidden] { display: none; }
.rm-shipped { margin-top: 64px; }
.rm-shipped h2 { margin: 0 0 18px; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.rm-done { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--line); }
.rm-done .rm-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.rm-check { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: color-mix(in srgb, var(--grn) 18%, transparent); color: var(--grn); font-weight: 900; }
.rm-done-t small { display: block; color: var(--tx2); font-size: .88rem; margin-top: 2px; }
.rm-done-side { display: grid; justify-items: end; gap: 2px; font-size: .82rem; color: var(--tx3); white-space: nowrap; }
.rm-done-side a { color: var(--acc); font-weight: 800; text-decoration: none; }
.rm-done-side a:hover { text-decoration: underline; }

@media (max-width: 960px) {
  .nw-grid { grid-template-columns: 1fr 1fr; }
  .nw-card.is-big { flex-direction: column; }
  .nw-card.is-big .nw-card-pic { flex: none; aspect-ratio: 16 / 9; min-height: 0; }
  .rm-board { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .nw-grid { grid-template-columns: 1fr; }
  .nw-card.is-big .nw-card-body { padding: 20px; }
  .nw-filter .nw-rss { margin-left: 0; }
  .rm-done .rm-item { grid-template-columns: auto minmax(0, 1fr); }
  .rm-done-side { grid-column: 2; justify-items: start; }
  .nw-post-head { padding-top: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  .nw-card, .nw-card-pic img { transition: none; }
  .rm-col.is-now .rm-dot { animation: none; }
}
