/* Streal blog, on top of riso.css (loaded first): same paper, inks, rules and header as the
   homepage. This file only adds what articles need and the homepage doesn't.

   The rule from riso.css holds here too: PINK IS RESERVED FOR NOTIONS. Blue carries links and
   accents, yellow carries highlights and actions. */

.nav a[aria-current='page']:not(.btn) {
  border-color: var(--ink);
}

/* ---------- Blog index ---------- */

.section-title {
  font-size: clamp(38px, 6.2vw, 72px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.section-sub {
  margin-top: 18px;
  max-width: 680px;
  font-size: clamp(17px, 1.8vw, 20px);
  color: var(--ink-2);
}
.blog-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px 22px;
  margin-top: clamp(32px, 5vw, 56px);
}
.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 2px solid var(--ink);
  box-shadow: var(--hard-ink);
  text-decoration: none;
  transition: transform 0.08s, box-shadow 0.08s;
}
.blog-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--blue);
}
.blog-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 2px solid var(--ink);
}
.blog-card .body {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 16px 18px 20px;
}
.blog-card .cat {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
}
.blog-card h2 {
  font-size: 21px;
  font-weight: 800;
  line-height: 1.14;
}
.blog-card p {
  font-size: 15.5px;
  color: var(--ink-2);
}
@media (max-width: 980px) {
  .blog-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .blog-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Article header ---------- */

.article-wrap {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(56px, 8vw, 88px);
}
.crumbs {
  padding-top: clamp(22px, 4vw, 36px);
  font-family: var(--f-mono);
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--ink-3);
}
.crumbs a {
  color: var(--ink-2);
  text-decoration: none;
}
.crumbs a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.blog-hero {
  display: grid;
  gap: 16px;
  justify-items: start;
  padding: 22px 0 28px;
}
.eyebrow {
  font-family: var(--f-mono);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--card);
  border: 1.5px solid var(--ink);
  padding: 5px 10px;
}
.blog-hero h1 {
  font-size: clamp(34px, 5.6vw, 58px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--ink-3);
}
.post-meta span + span::before {
  content: '/';
  margin-right: 12px;
  color: var(--ink-3);
}
.article-lead {
  font-size: clamp(18px, 2.1vw, 21px);
  line-height: 1.5;
  color: var(--ink-2);
}
.post-cover {
  display: block;
  width: 100%;
  height: auto;
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--blue);
  margin-bottom: 36px;
}

/* ---------- Article prose ---------- */

.prose {
  font-size: 18px;
  line-height: 1.62;
}
.prose h2 {
  font-size: clamp(27px, 3.6vw, 36px);
  font-weight: 800;
  line-height: 1.08;
  margin: 52px 0 14px;
}
.prose h3 {
  font-size: 21px;
  font-weight: 800;
  line-height: 1.2;
  margin: 30px 0 8px;
}
.prose p {
  color: var(--ink-2);
  margin: 0 0 18px;
}
.prose ul,
.prose ol {
  color: var(--ink-2);
  margin: 0 0 20px;
  padding-left: 24px;
}
.prose li {
  margin: 8px 0;
}
.prose li::marker {
  color: var(--blue);
  font-weight: 700;
}
.prose strong {
  color: var(--ink);
}
.prose a:not(.btn) {
  color: var(--blue);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}
.prose a:not(.btn):hover {
  color: var(--ink);
  background: var(--hl);
}
.facts-note {
  border-top: 1.5px dashed var(--line);
  padding-top: 12px;
  margin-top: 22px;
}
.prose .facts-note {
  font-size: 14px;
  color: var(--ink-3);
}

/* ---------- Article components ---------- */

/* Shows */
.show-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin: 26px 0 12px;
}
.show-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 2px solid var(--ink);
  box-shadow: var(--hard-ink);
}
.show-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 2px solid var(--ink);
}
.show-card .body {
  padding: 16px 18px 20px;
}
.show-card h3 {
  margin: 0 0 8px;
}
.show-card p {
  font-size: 15.5px;
  line-height: 1.5;
  margin: 0 0 12px;
}
.prose .show-card .scene {
  margin: 0;
  padding-left: 12px;
  border-left: 3px solid var(--blue);
  font-size: 14.5px;
  color: var(--ink-3);
}
.lvl {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 8px;
  border: 1.5px solid var(--ink);
  font-family: var(--f-mono);
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.lvl-beg {
  background: var(--blue-soft);
}
.lvl-int {
  background: var(--hl);
}
.lvl-adv {
  background: var(--ink);
  color: var(--pap);
}

/* Callout */
.callout {
  background: var(--card);
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--blue);
  padding: 22px 24px 24px;
  margin: 32px 0;
}
.prose .callout h3 {
  margin: 0 0 8px;
}
.prose .callout p {
  font-size: 16.5px;
  margin: 0 0 14px;
}
.callout > :last-child {
  margin-bottom: 0;
}
.prose .callout p:last-child {
  margin-bottom: 0;
}

/* Comparison tables, as on the homepage */
.cmp-wrap {
  overflow-x: auto;
  margin: 26px 0 14px;
  border: 2px solid var(--ink);
  background: var(--card);
}
.cmp {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
  font-size: 15.5px;
  line-height: 1.4;
}
.cmp.cmp-wide {
  min-width: 720px;
}
.cmp th,
.cmp td {
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1.5px dashed var(--line);
}
.cmp thead th {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--ink);
}
.cmp tbody tr:last-child td {
  border-bottom: 0;
}
.cmp th.col-streal {
  color: var(--blue);
}
.cmp td {
  color: var(--ink-2);
}
.cmp td.feat {
  color: var(--ink);
  font-weight: 700;
}
.cmp td.yes {
  color: var(--blue);
  font-weight: 700;
}
.cmp td.no {
  color: var(--ink-3);
}
.cmp td.partial {
  color: var(--ink);
}

/* Steps: same round numbers as the homepage, one per row, because the text is long here.
   riso.css numbers them with a counter, so the digit in the markup stays out of the way. */
.prose .steps {
  grid-template-columns: minmax(0, 1fr);
  gap: 38px;
  margin: 44px 0 28px;
}
.step-num {
  display: none;
}
.prose .step h3 {
  margin: 0 0 8px;
}
.prose .step p {
  font-size: 16.5px;
  line-height: 1.5;
  margin: 0;
}

/* Text and picture side by side */
.showcase-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  background: var(--card);
  border: 2px solid var(--ink);
  padding: 22px;
  margin: 26px 0;
}
.prose .showcase-split h3 {
  margin: 0 0 10px;
}
.prose .showcase-split p {
  font-size: 16.5px;
  line-height: 1.5;
  margin: 0;
}
.showcase-split img {
  display: block;
  width: 100%;
  height: auto;
  border: 1.5px solid var(--ink);
}
.showcase-split.reverse > img {
  order: -1;
}
@media (max-width: 680px) {
  .show-grid,
  .showcase-split {
    grid-template-columns: minmax(0, 1fr);
  }
  .showcase-split.reverse > img {
    order: 0;
  }
}

/* ---------- Figures: screenshots and charts ---------- */

.prose figure {
  margin: 28px 0;
}
.prose figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--blue);
}
.prose figcaption {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-3);
}
.prose .chart {
  padding: 18px 18px 16px;
  background: var(--card);
  border: 2px solid var(--ink);
  box-shadow: var(--hard-ink);
}
.prose .chart svg {
  display: block;
  width: 100%;
  height: auto;
}
.prose .chart-title {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}
.hist-pair {
  display: grid;
  gap: 8px;
}

/* One series everywhere: blue marks, ink text. Pink stays reserved for notions. */
.prose .bars {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.prose .bars li {
  display: grid;
  grid-template-columns: minmax(0, 188px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 14px;
  line-height: 1.2;
}
.prose .bars li::marker {
  content: none;
}
.bar-label {
  color: var(--ink-2);
}
.bar-label small {
  color: var(--ink-3);
  font-size: 12px;
}
.bar-track {
  display: block;
  height: 14px;
}
.bar {
  display: block;
  height: 100%;
  min-width: 3px;
  background: var(--blue);
  border-radius: 0 4px 4px 0;
}
.bar-val {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink);
  white-space: nowrap;
}
.c-mark {
  fill: var(--blue);
}
.c-mark:hover,
.c-dot-on:hover,
.c-dot:hover {
  opacity: 0.7;
}
.c-base {
  stroke: var(--ink);
  stroke-width: 1.5;
}
.c-grid {
  stroke: var(--line);
  stroke-width: 1;
}
.c-median {
  stroke: var(--ink);
  stroke-width: 1.25;
  stroke-dasharray: 3 4;
}
.c-dot {
  fill: var(--ink-3);
  fill-opacity: 0.4;
  stroke: var(--card);
  stroke-width: 1.5;
}
.c-dot-on {
  fill: var(--blue);
  stroke: var(--card);
  stroke-width: 2;
}
.chart text {
  fill: var(--ink-2);
  font-family: var(--f-body);
}
.chart .c-tick {
  font-family: var(--f-mono);
  font-size: 11.5px;
  fill: var(--ink-3);
}
.chart .c-title {
  font-size: 15px;
  font-weight: 700;
  fill: var(--ink);
}
.chart .c-note {
  font-family: var(--f-mono);
  font-size: 12px;
  fill: var(--ink);
}
.chart .c-axis {
  font-size: 13px;
  fill: var(--ink-2);
}
.chart .c-label {
  font-size: 13px;
  font-weight: 600;
  fill: var(--ink);
  paint-order: stroke;
  stroke: var(--card);
  stroke-width: 3px;
  stroke-linejoin: round;
}
.chart .c-quad {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  fill: var(--ink-3);
}
.prose .measure {
  margin: -4px 0 8px;
  font-family: var(--f-mono);
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-3);
}
@media (max-width: 560px) {
  .prose .bars li {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 3px;
  }
  .bar-label {
    grid-column: 1 / -1;
  }
}

/* ---------- Final band ---------- */

/* riso.css draws the band; here it follows an <article>, not a <section>, so the rule that
   separates sections has to be drawn by hand. */
.article-wrap + .band {
  border-top: 2px solid var(--ink);
}
.band h2 + .btn {
  margin-top: 24px;
}
.band-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}
/* The band stays yellow in dark mode, so its ghost button keeps dark ink. */
.band-cta .btn-ghost {
  color: #1d1d1b;
  border-color: #1d1d1b;
}
