/* The blog: the index, topic hubs and posts. Loaded only on blog pages, after styles.css, and built on its tokens
   (tokens.css from brand/brand.json), so it never retypes a color. Same rules as the rest of the site: light gray
   page tops, ink and yellow as accents, Anton caps for display type, nothing that waits for scroll to appear. */

/* Reading progress: a yellow line that fills as you read. Driven by the scroll position itself where the browser
   can (no script), by blog.js elsewhere; hidden for anyone who prefers reduced motion. */

.read-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  height: 4px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .read-progress {
      animation: read-progress linear both;
      animation-timeline: scroll(root);
    }
  }
}

@keyframes read-progress {
  to {
    transform: scaleX(1);
  }
}

.preview-bar {
  margin: 0;
  padding: 0.6rem var(--gutter);
  background: var(--brand);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
}

.preview-bar b {
  margin-right: 0.5rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: var(--ink);
  color: var(--brand);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.arrow-icon {
  flex: none;
  width: 1.15em;
  height: 1.15em;
  transition: transform 220ms var(--ease-out);
}

.btn .arrow-icon {
  margin-left: 0.5rem;
}

/* Breadcrumbs and chips */

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.crumbs > a {
  color: var(--muted);
  text-decoration: none;
}

.crumbs > span[aria-hidden] {
  color: var(--line);
  font-weight: 400;
}

.crumb-chip {
  display: inline-block;
  padding: 0.32rem 0.6rem;
  border-radius: 4px;
  background: var(--ink);
  color: var(--brand);
  text-decoration: none;
}

/* Post hero: the question, the answer in one line, who wrote it */

.post-hero {
  padding-block: clamp(2rem, 1.4rem + 2.6vw, 4rem) clamp(7.5rem, 5rem + 9vw, 12.5rem);
  background: var(--panel);
}

/* The hero text, the table of contents and the reading column share one left edge; the cover photo runs wider. */
.post-hero-inner,
.post-layout {
  max-width: calc(64rem + 2 * var(--gutter));
}

.post-title {
  max-width: 19ch;
  margin: 1.25rem 0 1.15rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.7rem, 1.25rem + 4.9vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: 0.004em;
  text-transform: uppercase;
  text-wrap: balance;
}

.post-dek {
  max-width: 48ch;
  margin: 0 0 1.6rem;
  color: var(--ink-2);
  font-size: clamp(1.15rem, 1rem + 0.55vw, 1.45rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.post-meta > span + span::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 1rem;
  border-radius: 50%;
  background: currentColor;
  vertical-align: middle;
  opacity: 0.55;
}

.post-by {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  font-weight: 700;
}

.post-by img {
  border-radius: 7px;
}

.post-by a {
  color: inherit;
}

/* An author's initial in a round badge, in place of a photo (the brand shows no founder photo). */
.author-mark {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--brand);
  font-family: var(--font-display);
  font-size: 0.95rem;
  line-height: 1;
}

.author-mark-lg {
  width: 52px;
  height: 52px;
  font-size: 1.6rem;
}

.author-mark-xl {
  width: 72px;
  height: 72px;
  margin: 1.75rem 0 0.75rem;
  font-size: 2.2rem;
}

.author-hero .author-role {
  margin: 0.4rem 0 0;
  color: var(--ink);
  font-weight: 800;
}

/* On a phone the byline gets its own line, so the date line never starts with a separator dot. */
@media (max-width: 560px) {
  .post-by {
    flex-basis: 100%;
  }

  /* As specific as the dot rule above, or the dot wins and the date line starts with it. */
  .post-meta > .post-by + span::before {
    display: none;
  }
}

.post-cover-wrap {
  margin-top: calc(-1 * clamp(6rem, 4rem + 7.5vw, 10.5rem));
}

.post-cover {
  aspect-ratio: 21 / 9;
  box-shadow: var(--shadow);
}

.post-cover img {
  object-position: var(--pos, 50% 50%);
}

@media (max-width: 640px) {
  .post-cover {
    aspect-ratio: 4 / 3;
  }
}

/* Layout: the table of contents beside a reading column of about 70 characters */

.post-layout {
  display: grid;
  grid-template-columns: 14.5rem minmax(0, 44rem);
  justify-content: space-between;
  gap: clamp(2.5rem, 1rem + 4vw, 5.5rem);
  padding-block: clamp(2.5rem, 2rem + 2vw, 4rem) clamp(3.5rem, 2.5rem + 3vw, 5.5rem);
}

.post-layout-solo {
  grid-template-columns: minmax(0, 44rem);
  justify-content: start;
}

.post-toc nav {
  position: sticky;
  top: 1.75rem;
}

.toc-head {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-toc ol {
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--line);
  list-style: none;
}

.post-toc a {
  display: block;
  margin-left: -2px;
  padding: 0.5rem 0 0.5rem 1rem;
  border-left: 2px solid transparent;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  transition:
    color 200ms ease,
    border-color 200ms ease;
}

.post-toc a:hover,
.post-toc a.is-active {
  color: var(--ink);
}

.post-toc a.is-active {
  border-left-color: var(--ink);
}

.toc-mobile {
  display: none;
  margin: 0 0 2.25rem;
  border-radius: 16px;
  background: var(--panel);
}

.toc-mobile summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.2rem;
  font-weight: 800;
  list-style: none;
  cursor: pointer;
}

.toc-mobile summary::-webkit-details-marker {
  display: none;
}

.toc-mobile summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--brand);
  font-weight: 800;
}

.toc-mobile[open] summary::after {
  content: "\2212";
}

.toc-mobile ol {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0 1.2rem 1.2rem 2.5rem;
  font-weight: 600;
  line-height: 1.35;
}

.toc-mobile a {
  color: var(--ink);
}

@media (max-width: 1060px) {
  .post-layout {
    grid-template-columns: minmax(0, 44rem);
    justify-content: start;
  }

  .post-toc {
    display: none;
  }

  .toc-mobile {
    display: block;
  }
}

/* The short version */

.takeaways {
  margin: 0 0 2.5rem;
  padding: 1.6rem 1.6rem 1.5rem;
  border-radius: 22px;
  background: var(--ink);
  color: var(--on-ink);
}

.takeaways-tag {
  display: inline-block;
  margin: 0 0 1.1rem;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  background: var(--brand);
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.takeaways ul {
  display: grid;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.takeaways li {
  display: grid;
  grid-template-columns: 1.45rem minmax(0, 1fr);
  gap: 0.8rem;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.45;
}

.takeaways li svg {
  width: 1.45rem;
  height: 1.45rem;
  margin-top: 0.05rem;
  padding: 0.22rem;
  border-radius: 50%;
  background: var(--brand);
  color: var(--ink);
}

.takeaways a {
  color: var(--brand);
}

/* The article text */

.prose {
  color: var(--text);
  font-size: clamp(1.06rem, 1rem + 0.25vw, 1.15rem);
  line-height: 1.72;
}

.prose > * {
  margin: 0;
}

.prose > * + * {
  margin-top: 1.25em;
}

.prose > p:first-child {
  color: var(--ink);
  font-size: 1.16em;
  font-weight: 550;
  line-height: 1.6;
  letter-spacing: -0.01em;
}

.prose h2 {
  margin-top: clamp(3rem, 2.4rem + 2vw, 4.25rem);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.05rem, 1.5rem + 1.9vw, 3.1rem);
  line-height: 0.98;
  letter-spacing: 0.004em;
  text-transform: uppercase;
  text-wrap: balance;
  scroll-margin-top: 1.5rem;
}

.prose h2 + * {
  margin-top: 0.85em;
}

.prose h3 {
  margin-top: 2.2rem;
  font-size: 1.28em;
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -0.02em;
  scroll-margin-top: 1.5rem;
}

.prose h3 + * {
  margin-top: 0.5em;
}

.prose a {
  font-weight: 600;
  text-decoration-thickness: 2px;
  text-decoration-color: color-mix(in oklch, var(--ink) 35%, transparent);
  text-underline-offset: 4px;
  transition:
    background-color 150ms ease,
    text-decoration-color 150ms ease;
}

.prose a:hover {
  background: color-mix(in oklch, var(--brand) 60%, transparent);
  text-decoration-color: var(--ink);
}

.prose strong {
  color: var(--ink);
  font-weight: 700;
}

.prose ul,
.prose ol {
  padding-left: 1.35em;
}

.prose li + li {
  margin-top: 0.5em;
}

.prose li::marker {
  color: var(--ink);
  font-weight: 700;
}

.prose blockquote {
  padding: 0.15em 0 0.15em 1.2em;
  border-left: 4px solid var(--brand);
  color: var(--ink-2);
  font-weight: 600;
}

.prose blockquote > * {
  margin: 0;
}

.prose hr {
  height: 2px;
  margin-block: 3em;
  border: 0;
  background: var(--line);
}

.prose code {
  padding: 0.1em 0.35em;
  border-radius: 5px;
  background: var(--panel);
  font-size: 0.9em;
}

/* Tables scroll inside their own frame on a phone */

.table-scroll {
  overflow-x: auto;
  border-radius: 16px;
  box-shadow: 0 0 0 1px var(--line);
  background: var(--bg);
}

.table-scroll:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.prose table {
  width: 100%;
  min-width: 30rem;
  border-collapse: collapse;
  font-size: 0.92em;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}

.prose th {
  padding: 0.85rem 1rem;
  background: var(--ink);
  color: var(--on-ink);
  font-size: 0.92em;
  font-weight: 700;
  text-align: left;
  vertical-align: bottom;
}

.prose td {
  padding: 0.8rem 1rem;
  border-top: 1px solid var(--line);
  vertical-align: top;
}

.prose tbody tr:nth-child(even) td {
  background: color-mix(in oklch, var(--panel) 55%, var(--bg));
}

.prose td:first-child {
  color: var(--ink);
  font-weight: 650;
}

/* Components */

.stat-card {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 1.5rem 1.6rem 1.35rem;
  border-radius: 22px;
  background: var(--ink);
  color: var(--on-ink);
}

.prose > .stat-card {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.5rem 1.6rem;
  margin-block: 2em;
}

.stat-card-value {
  margin: 0;
  color: var(--brand);
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 2.6rem + 3.6vw, 5.4rem);
  line-height: 0.85;
  letter-spacing: 0.01em;
}

.stat-card figcaption {
  display: grid;
  gap: 0.55rem;
}

.stat-card-label {
  font-size: 1.08rem;
  font-weight: 650;
  line-height: 1.35;
  text-wrap: pretty;
}

.stat-card-source {
  color: var(--on-ink-muted);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.4;
  text-decoration-color: color-mix(in oklch, var(--on-ink-muted) 50%, transparent);
  text-underline-offset: 3px;
}

.stat-card-source:hover {
  color: var(--on-ink);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr));
  gap: 0.9rem;
  margin-block: 2em;
}

@media (max-width: 560px) {
  .prose > .stat-card {
    grid-template-columns: minmax(0, 1fr);
  }
}

.tpl {
  margin-block: 2em;
  overflow: hidden;
  border-radius: 20px;
  background: var(--panel);
  box-shadow: 0 0 0 1px var(--line);
}

.tpl-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.8rem;
  padding: 0.8rem 0.85rem 0.8rem 1.15rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.tpl-kind {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.55rem;
  border-radius: 4px;
  background: var(--ink);
  color: var(--brand);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.tpl-kind svg {
  width: 0.95rem;
  height: 0.95rem;
}

.tpl-title {
  flex: 1 1 12rem;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 750;
  line-height: 1.3;
}

.tpl-copy {
  min-height: 38px;
  margin-left: auto;
  padding: 0.45rem 0.95rem;
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: var(--ink);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 160ms var(--ease-out),
    background-color 160ms ease,
    color 160ms ease;
}

.tpl-copy:active {
  transform: scale(0.96);
}

.tpl-copy.is-copied {
  background: var(--ink);
  color: var(--brand);
}

.tpl-body {
  padding: 1.2rem 1.3rem 1.35rem;
  font-size: 1rem;
  line-height: 1.6;
}

.tpl-body > * {
  margin: 0;
}

.tpl-body > * + * {
  margin-top: 0.8em;
}

.tpl-text .tpl-body p {
  width: fit-content;
  max-width: 34rem;
  padding: 0.75rem 1rem;
  border-radius: 18px 18px 18px 6px;
  background: var(--bg);
  box-shadow: 0 1px 2px hsl(var(--shadow-color) / 0.12);
}

.steps-block {
  margin-block: 2em;
}

.steps-block ol {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps-block li {
  position: relative;
  margin: 0;
  padding: 1.1rem 1.25rem 1.15rem 4.5rem;
  border-radius: 18px;
  background: var(--panel);
  counter-increment: step;
}

.steps-block li::before {
  content: counter(step);
  position: absolute;
  top: 1.05rem;
  left: 1.1rem;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: var(--ink);
  color: var(--brand);
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1;
}

.steps-block li > strong:first-child,
.steps-block li > p:first-child > strong:first-child {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 1.06em;
}

.steps-block li p {
  margin: 0;
}

.checklist {
  margin-block: 2em;
  padding: 1.4rem 1.5rem 1.5rem;
  border-radius: 20px;
  box-shadow: inset 0 0 0 2px var(--ink);
}

.checklist-title {
  margin: 0 0 1rem;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.3;
}

.checklist ul {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  margin: 0;
  padding-left: 2.15rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  top: 0.22em;
  left: 0;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 6px;
  background: var(--brand);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}

.checklist li::after {
  content: "";
  position: absolute;
  top: calc(0.22em + 0.24rem);
  left: 0.47rem;
  width: 0.36rem;
  height: 0.66rem;
  border: solid var(--ink);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.example {
  margin-block: 2em;
  padding: 1.35rem 1.5rem 1.45rem;
  border-radius: 20px;
  background: var(--panel);
  font-variant-numeric: tabular-nums;
}

.example-tag {
  display: inline-block;
  margin: 0 0 0.85rem;
  padding: 0.28rem 0.55rem;
  border-radius: 4px;
  background: var(--brand);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.example > :not(.example-tag) {
  margin: 0;
}

.example > * + :not(.example-tag) {
  margin-top: 0.75em;
}

.callout {
  margin-block: 2em;
  padding: 1.2rem 1.4rem;
  border-left: 6px solid var(--line);
  border-radius: 6px 18px 18px 6px;
  background: var(--panel);
}

.callout-tip {
  border-left-color: var(--brand);
  background: color-mix(in oklch, var(--brand) 13%, var(--bg));
}

.callout-warning {
  border-left-color: var(--ink);
}

.callout-title {
  margin: 0 0 0.35rem;
  color: var(--ink);
  font-weight: 800;
}

.callout > :not(.callout-title) {
  margin: 0;
}

.callout > * + :not(.callout-title) {
  margin-top: 0.7em;
}

.prose > .bigline {
  margin-block: clamp(2.25rem, 1.8rem + 1.5vw, 3rem);
  padding-left: 1.2rem;
  border-left: 8px solid var(--brand);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.4rem);
  line-height: 0.98;
  letter-spacing: 0.004em;
  text-transform: uppercase;
  text-wrap: balance;
}

.prose > .post-cta {
  display: grid;
  justify-items: start;
  gap: 0.8rem;
  margin-block: 2.5em;
  padding: clamp(1.5rem, 1rem + 2vw, 2.3rem);
  border-radius: 24px;
  background: var(--brand);
  color: var(--ink);
}

.post-cta-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.95rem, 1.4rem + 1.9vw, 2.8rem);
  line-height: 0.96;
  letter-spacing: 0.004em;
  text-transform: uppercase;
  text-wrap: balance;
}

.post-cta-text {
  max-width: 48ch;
  margin: 0;
  font-weight: 600;
  line-height: 1.45;
}

.post-cta .btn {
  margin-top: 0.35rem;
}

.prose > .post-figure {
  margin-block: 2.2em;
}

.post-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: var(--ratio, 16 / 9);
  object-fit: cover;
  border-radius: 20px;
}

.post-figure figcaption {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 550;
  line-height: 1.45;
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover .arrow-icon {
    transform: translateX(3px);
  }
}

/* After the article: questions, sources, who wrote it */

.post-faq {
  margin-top: clamp(3rem, 2rem + 3vw, 4.5rem);
}

.post-section-title {
  margin: 0 0 1.4rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.05rem, 1.5rem + 1.9vw, 3.1rem);
  line-height: 0.98;
  letter-spacing: 0.004em;
  text-transform: uppercase;
}

.post-faq .answer {
  font-size: 1rem;
  line-height: 1.6;
}

.post-faq .answer > * {
  margin: 0;
}

.post-faq .answer > * + * {
  margin-top: 0.7em;
}

.post-sources {
  margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.post-sources-title {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-sources ol {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding-left: 1.3rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.post-sources a {
  color: var(--ink-2);
  font-weight: 600;
  text-underline-offset: 3px;
}

.post-sources li span {
  display: block;
  font-size: 0.8rem;
}

.post-about {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 1.1rem;
  margin-top: 2.5rem;
  padding: 1.5rem;
  border-radius: 22px;
  background: var(--panel);
}

.post-about img {
  border-radius: 12px;
}

.post-about p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.97rem;
  font-weight: 550;
  line-height: 1.5;
}

.post-about .post-about-name {
  margin-bottom: 0.3rem;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 800;
}

/* Cards: related posts, the index and the topic hubs */

.related {
  padding-block: clamp(3.5rem, 2.5rem + 3vw, 5.5rem);
  background: var(--panel);
}

.related-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.related-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 1.6rem + 3vw, 4.2rem);
  line-height: 0.92;
  letter-spacing: 0.004em;
  text-transform: uppercase;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20.5rem), 1fr));
  gap: clamp(1rem, 0.6rem + 1.4vw, 1.75rem);
}

.post-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 22px;
  background: var(--bg);
  box-shadow: 0 0 0 1px var(--line);
  color: inherit;
  text-decoration: none;
  transition:
    transform 350ms var(--ease-out),
    box-shadow 350ms var(--ease-out);
}

.post-card-img {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ink-2);
}

.post-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease-out);
}

.post-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.3rem 1.35rem 1.4rem;
}

.post-card-cat {
  align-self: flex-start;
  padding: 0.26rem 0.5rem;
  border-radius: 4px;
  background: var(--brand);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.post-card-title {
  margin: 0;
  font-size: 1.28rem;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.post-card-desc {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 550;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.post-card-meta {
  margin-top: auto;
  padding-top: 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

@media (hover: hover) and (pointer: fine) {
  .post-card-link:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
  }

  .post-card-link:hover .post-card-img img {
    transform: scale(1.045);
  }

  .feature-link:hover .feature-go .arrow-icon {
    transform: translateX(4px);
  }
}

/* The blog's front page */

.blog-hero {
  padding-block: clamp(2.5rem, 1.8rem + 3vw, 5rem) clamp(2.5rem, 2rem + 2.5vw, 4rem);
  background: var(--panel);
}

.blog-title {
  max-width: 13ch;
  margin: 1.15rem 0 1.15rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.1rem, 1.2rem + 7.4vw, 8.4rem);
  line-height: 0.88;
  letter-spacing: 0.004em;
  text-transform: uppercase;
  text-wrap: balance;
}

.blog-sub {
  max-width: 50ch;
  margin: 0 0 1.25rem;
  color: var(--ink-2);
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  font-weight: 600;
  line-height: 1.4;
  text-wrap: pretty;
}

.blog-hero .crumbs + .blog-title {
  margin-top: 1.25rem;
}

.topic-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.topic-chips a {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: var(--bg);
  box-shadow: 0 0 0 1px var(--line);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.topic-chips a:hover {
  box-shadow: 0 0 0 2px var(--ink);
}

.blog-featured {
  padding-block: 0 clamp(3rem, 2rem + 3vw, 5rem);
  background: linear-gradient(var(--panel) 38%, var(--bg) 38%);
}

.feature-link {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  overflow: hidden;
  border-radius: 28px;
  background: var(--ink);
  box-shadow: var(--shadow);
  color: var(--on-ink);
  text-decoration: none;
}

.feature-img.plx {
  display: block;
  min-height: 24rem;
  border-radius: 0;
}

.feature-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  padding: clamp(1.6rem, 1rem + 3vw, 3.4rem);
}

.feature-title {
  margin: 0;
  color: var(--on-ink);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 1.4rem + 2.3vw, 3.4rem);
  line-height: 0.94;
  letter-spacing: 0.004em;
  text-transform: uppercase;
  text-wrap: balance;
}

.feature-desc {
  max-width: 44ch;
  color: var(--on-ink-muted);
  font-size: 1.05rem;
  font-weight: 550;
  line-height: 1.5;
}

.feature-go {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.5rem;
  margin-top: 0.4rem;
  padding: 0.85rem 1.3rem;
  border-radius: 10px;
  background: var(--brand);
  color: var(--ink);
  font-weight: 800;
}

.feature-body .post-card-meta {
  margin-top: 0;
  color: var(--on-ink-muted);
}

@media (max-width: 900px) {
  .feature-link {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-img.plx {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
}

.blog-list {
  padding-block: 0 clamp(3.5rem, 2.5rem + 3vw, 6rem);
}

.blog-list .related-title {
  margin-bottom: 2rem;
}

/* The index's list runs two wide cards to a row: bigger photos, and no lone card on a three-column row. */
.blog-list .post-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 30rem), 1fr));
}

.blog-list .post-card-title {
  font-size: clamp(1.3rem, 1.15rem + 0.5vw, 1.55rem);
}

.blog-hero + .blog-list {
  padding-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
}

@media print {
  .read-progress,
  .post-toc,
  .toc-mobile,
  .tpl-copy,
  .post-cta,
  .related,
  .cta-band,
  .site-header,
  .site-footer {
    display: none;
  }

  .post-hero {
    padding-bottom: 1.5rem;
  }

  .post-cover-wrap {
    margin-top: 0;
  }
}
