/* News. The posts: header, reading column, figures, code and the post footer. The index
   at the end shares the header and the rail with them. */

article.post,
div.news-index {
    --post-ink: #111;
    --post-text: #242424;
    --post-muted: #707070;
    --post-line: #e4e4e4;
    --post-red: #ff143f;
    --post-stage: #f5f5f3;
    --post-measure: 700px;
    --post-rail: 200px;
    --post-gap: 64px;
}

article.post ::selection,
div.news-index ::selection {
    background: rgba(255, 20, 63, 0.16);
}

/* Reading progress, drawn over the top edge of the navbar. */
div.post-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    z-index: 950;
    pointer-events: none;
}

div.post-progress span {
    display: block;
    height: 100%;
    background: #ff143f;
    transform: scaleX(0);
    transform-origin: left;
}

/* Text sits in a column of comfortable line length. Figures, videos and long code lines
   are allowed to grow past it, up to the full width of the main column. Below the
   breakpoint of the rail the column is centered instead. */
div.post-header-main > *,
div.post-body > *,
div.post-footer-main > * {
    max-width: var(--post-measure);
    margin-left: auto;
    margin-right: auto;
}

header.post-header div.post-rail {
    max-width: var(--post-measure);
    margin: 0 auto 26px;
}

@media (min-width: 1200px) {
    div.post-grid {
        display: grid;
        grid-template-columns: var(--post-rail) minmax(0, 1fr);
        column-gap: var(--post-gap);
    }

    div.post-header-main > *,
    div.post-body > *,
    div.post-footer-main > * {
        margin-left: 0;
    }

    header.post-header div.post-rail {
        max-width: none;
        margin: 0;
    }

    header.post-header h1 {
        max-width: 900px;
    }
}

/* Header */
header.post-header {
    position: relative;
    padding: 128px 0 60px;
    overflow: hidden;
}

/* The dotted mat of the figures, fading in from the top right corner. */
div.post-header-art {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 1px 1px, #cfcfca 1px, transparent 1.6px) 0 0 / 18px 18px;
    -webkit-mask-image: radial-gradient(ellipse 70% 95% at 88% 12%, #000 10%, transparent 100%);
    mask-image: radial-gradient(ellipse 70% 95% at 88% 12%, #000 10%, transparent 100%);
    pointer-events: none;
}

header.post-header div.container {
    position: relative;
}

a.post-back {
    display: inline-block;
    font-family: "Geist Mono", monospace;
    font-size: 13px;
    line-height: 21px;
    text-transform: uppercase;
    color: var(--post-muted);
}

a.post-back span {
    display: inline-block;
    transition: transform .2s ease;
}

a.post-back:hover {
    color: var(--post-red);
}

a.post-back:hover span {
    transform: translateX(-4px);
}

div.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    font-family: "Geist Mono", monospace;
    font-size: 13px;
    line-height: 21px;
    text-transform: uppercase;
    color: var(--post-muted);
    margin-bottom: 22px;
}

div.post-meta time::before {
    content: "[";
}

div.post-meta time::after {
    content: "]";
}

span.post-meta-reading::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin: 0 12px 1px 12px;
    background: var(--post-red);
}

header.post-header h1 {
    margin-bottom: 26px;
    font-size: clamp(36px, 4.6vw, 58px);
    font-weight: 680;
    line-height: 1.06;
    letter-spacing: -0.032em;
    color: var(--post-ink);
    text-wrap: balance;
}

div.post-lede p {
    margin: 0;
    font-size: 21px;
    line-height: 1.55;
    letter-spacing: -0.006em;
    color: #3b3b3b;
    text-wrap: pretty;
}

/* Rail with the table of contents */
aside.post-rail {
    display: none;
}

@media (min-width: 1200px) {
    aside.post-rail {
        display: block;
    }
}

/* The rail follows the reader. If it does not fit the window, it is the table of
   contents that gives way and scrolls. */
div.post-rail-sticky {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 130px);
}

/* The entries line up with the label and the back link above. The marker of the section
   being read hangs to the left of them, inside the padding so it is not clipped. */
nav.post-toc {
    position: relative;
    flex: 0 1 auto;
    min-height: 0;
    margin-left: -16px;
    padding-left: 16px;
    overflow-y: auto;
    scrollbar-width: none;
}

nav.post-toc::-webkit-scrollbar {
    display: none;
}

span.post-rail-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    line-height: 21px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--post-muted);
}

nav.post-toc ol {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
}

nav.post-toc li a {
    position: relative;
    display: block;
    padding: 5px 0;
    font-size: 13.5px;
    line-height: 1.38;
    color: #7b7b7b;
    transition: color .15s ease;
}

nav.post-toc li.post-toc-sub a {
    padding-left: 14px;
}

nav.post-toc li a:hover,
nav.post-toc li a.active {
    color: var(--post-ink);
}

/* The section being read is marked with the red square of the footer links. */
nav.post-toc li a::before {
    content: "";
    position: absolute;
    left: -14px;
    top: 11px;
    width: 6px;
    height: 6px;
    background: var(--post-red);
    opacity: 0;
    transform: scale(0.3);
    transition: opacity .2s ease, transform .2s ease;
}

nav.post-toc li a.active::before {
    opacity: 1;
    transform: none;
}

div.post-about,
div.post-rail-follow {
    flex: none;
}

nav.post-toc:not([hidden]) + div.post-about,
div.post-rail-follow {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid var(--post-line);
}

div.post-about p {
    margin: 12px 0 10px;
    font-size: 13.5px;
    line-height: 1.45;
    color: #5d5d5d;
}

a.post-about-link {
    font-family: "Geist Mono", monospace;
    font-size: 13px;
    text-transform: uppercase;
    color: var(--post-ink);
}

a.post-about-link span {
    display: inline-block;
    transition: transform .2s ease;
}

a.post-about-link:hover {
    color: var(--post-red);
}

a.post-about-link:hover span {
    transform: translateX(4px);
}

div.post-socials {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 20px;
    line-height: 1;
}

/* The icons come from two fonts with different baselines. As boxes of their own they
   are centered on each other instead of sitting on a line of text. */
div.post-socials a {
    display: flex;
    color: var(--post-ink);
    transition: color .15s ease;
}

div.post-socials i {
    display: block;
}

div.post-socials a.socials-rss:hover {
    color: var(--post-red);
}

div.post-rail-follow div.post-socials {
    gap: 13px;
    margin-top: 14px;
    font-size: 17px;
}

/* Body typography */
div.post-body {
    font-size: 18px;
    line-height: 1.72;
    color: var(--post-text);
    font-kerning: normal;
}

div.post-body p,
div.post-body ul,
div.post-body ol {
    margin-top: 0;
    margin-bottom: 1.4em;
}

div.post-body p {
    text-wrap: pretty;
}

div.post-body strong {
    font-weight: 620;
    color: var(--post-ink);
}

div.post-body p a,
div.post-body li a,
div.post-body figcaption a,
div.post-lede a,
div.post-follow p a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: var(--post-red);
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
    transition: color .15s ease;
}

div.post-body p a:hover,
div.post-body li a:hover,
div.post-body figcaption a:hover,
div.post-lede a:hover,
div.post-follow p a:hover {
    color: var(--post-red);
}

/* The !important declarations undo the global style of h2, which is a small bracketed
   label everywhere else on the site. */
div.post-body h2,
div.post-body h3,
div.post-body h4 {
    position: relative;
    font-family: "Geist", sans-serif;
    text-transform: none;
    color: var(--post-ink);
    text-wrap: balance;
    scroll-margin-top: 92px;
}

div.post-body h2 {
    margin-top: 2.5em;
    margin-bottom: 0.55em !important;
    font-size: 30px !important;
    font-weight: 650;
    line-height: 1.16;
    letter-spacing: -0.024em;
}

div.post-body h2::before,
div.post-body h2::after {
    content: none;
}

div.post-body h3 {
    margin-top: 2.1em;
    margin-bottom: 0.5em;
    font-size: 22px;
    font-weight: 630;
    line-height: 1.25;
    letter-spacing: -0.014em;
}

div.post-body h4 {
    margin-top: 2em;
    margin-bottom: 0.45em;
    font-size: 18px;
    font-weight: 650;
    line-height: 1.3;
}

div.post-body > :first-child {
    margin-top: 0;
}

/* "New Feature: Name" headings: post.js lifts the part before the colon into a label
   above the heading. */
span.post-kicker {
    display: block;
    margin-bottom: 9px;
    font-family: "Geist Mono", monospace;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--post-muted);
}

span.post-heading-text {
    position: relative;
    display: block;
}

a.post-anchor {
    position: absolute;
    top: 0;
    left: -1em;
    width: 1em;
    font-weight: 400;
    color: #c4c4c4;
    opacity: 0;
    transition: opacity .15s ease, color .15s ease;
}

div.post-body h2:hover a.post-anchor,
div.post-body h3:hover a.post-anchor,
a.post-anchor:focus-visible {
    opacity: 1;
}

a.post-anchor:hover {
    color: var(--post-red);
}

/* Lists */
div.post-body ul,
div.post-body ol {
    list-style: none;
    padding-left: 1.5em;
}

div.post-body li {
    position: relative;
    margin-bottom: 0.45em;
}

div.post-body li > ul,
div.post-body li > ol {
    margin-top: 0.45em;
    margin-bottom: 0;
}

div.post-body ul > li::before {
    content: "";
    position: absolute;
    left: -1.25em;
    top: 0.68em;
    top: calc(0.5lh - 4px);
    width: 6px;
    height: 6px;
    background: var(--post-red);
}

div.post-body ol {
    counter-reset: post-ol;
    padding-left: 2em;
}

div.post-body ol > li {
    counter-increment: post-ol;
}

/* Kept in the line of the entry, pulled out into the padding of the list, so the number
   shares the baseline of the text at any font size. */
div.post-body ol > li::before {
    content: counter(post-ol, decimal-leading-zero);
    display: inline-block;
    width: 2.25em;
    margin-left: -2.25em;
    font-family: "Geist Mono", monospace;
    font-size: 0.78em;
    font-weight: 500;
    line-height: 1;
    color: var(--post-red);
}

/* Changelog: a list whose entries read "Type: Change" becomes an index of the post. Rows
   that have a section further down link to it. Set up by post.js. */
div.post-body ul.post-changelog {
    padding-left: 0;
    border-top: 1px solid var(--post-line);
    font-size: 16.5px;
    line-height: 1.45;
}

div.post-body ul.post-changelog > li {
    margin: 0;
    border-bottom: 1px solid var(--post-line);
}

div.post-body ul.post-changelog > li::before {
    content: none;
}

/* Entries below an entry are set off by their indentation alone. */
div.post-body ul.post-changelog ul {
    margin-top: 4px;
    padding-left: 1.1em;
    color: #5d5d5d;
}

div.post-body ul.post-changelog ul li {
    margin-bottom: 3px;
}

div.post-body ul.post-changelog ul li::before {
    content: none;
}

div.post-body ul.post-changelog .post-changelog-row {
    position: relative;
    display: grid;
    grid-template-columns: 124px minmax(0, 1fr) 16px;
    align-items: baseline;
    column-gap: 16px;
    padding: 10px 0;
    color: inherit;
    text-decoration: none;
}

/* A linked row is tinted on hover. The tint reaches a little past the rules on both
   sides, the text stays where it is. */
div.post-body ul.post-changelog a.post-changelog-row {
    margin: 0 -12px;
    padding: 10px 12px;
    transition: background-color .15s ease, color .15s ease;
}

span.post-changelog-type {
    font-family: "Geist Mono", monospace;
    font-size: 11.5px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--post-muted);
}

span.post-changelog-type.post-changelog-type-security {
    color: var(--post-red);
}

span.post-changelog-arrow {
    font-family: "Geist Mono", monospace;
    font-size: 13px;
    color: var(--post-red);
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity .2s ease, transform .2s ease;
}

div.post-body ul.post-changelog a.post-changelog-row:hover {
    background-color: var(--post-stage);
    color: var(--post-ink);
}

div.post-body ul.post-changelog a.post-changelog-row:hover span.post-changelog-arrow {
    opacity: 1;
    transform: none;
}

/* Quotes */
div.post-body blockquote {
    margin-top: 2em;
    margin-bottom: 2em;
    padding: 2px 0 2px 26px;
    border-left: 2px solid var(--post-ink);
    font-size: 17px;
    font-style: normal;
    line-height: 1.68;
    color: #474747;
}

div.post-body blockquote p:last-child {
    margin-bottom: 0;
}

div.post-body hr {
    width: 64px;
    margin-top: 3em;
    margin-bottom: 3em;
    border: 0;
    border-top: 2px solid var(--post-ink);
    opacity: 1;
}

/* A red square closes the post. */
div.post-body > p:last-child::after {
    content: "";
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-left: 9px;
    background: var(--post-red);
}

/* Code */
article.post code {
    font-family: "Geist Mono", monospace;
    font-size: 0.86em;
    color: var(--post-ink);
    padding: 0.12em 0.36em;
    border: 1px solid #e6e6e2;
    border-radius: 4px;
    background: #f4f4f1;
    white-space: nowrap;
}

/* In a heading the chip is drawn without its outline, which is too much at that size. */
div.post-body h2 code,
div.post-body h3 code,
div.post-body h4 code {
    padding: 0.04em 0.26em;
    border: 0;
    border-radius: 5px;
    background: #efefec;
    font-size: 0.86em;
    font-weight: 600;
}

/* A code block is as wide as the text, and grows with its longest line before it scrolls. */
div.post-body div.highlighter-rouge {
    position: relative;
    width: fit-content;
    min-width: min(100%, var(--post-measure));
    max-width: 100%;
    margin-top: 2em;
    margin-bottom: 2em;
    background: #111;
    color: #e8e8e8;
}

div.post-body pre.highlight {
    margin: 0;
    padding: 22px 26px;
    overflow-x: auto;
    font-family: "Geist Mono", monospace;
    font-size: 14px;
    line-height: 1.7;
    color: inherit;
}

div.post-body pre code {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    font-size: inherit;
    color: inherit;
    white-space: inherit;
}

/* code.css is written for a light background. */
div.post-body .highlight .c,
div.post-body .highlight .cm,
div.post-body .highlight .c1,
div.post-body .highlight .cs,
div.post-body .highlight .cp {
    color: #858585;
    font-weight: 400;
}

div.post-body .highlight .k,
div.post-body .highlight .kc,
div.post-body .highlight .kd,
div.post-body .highlight .kn,
div.post-body .highlight .kp,
div.post-body .highlight .kr,
div.post-body .highlight .o,
div.post-body .highlight .ow,
div.post-body .highlight .ge,
div.post-body .highlight .gd,
div.post-body .highlight .gi {
    color: #fff;
    background: none;
}

div.post-body .highlight .err {
    color: inherit;
    background: none;
}

div.post-body .highlight .s,
div.post-body .highlight .sb,
div.post-body .highlight .sc,
div.post-body .highlight .sd,
div.post-body .highlight .s2,
div.post-body .highlight .se,
div.post-body .highlight .sh,
div.post-body .highlight .si,
div.post-body .highlight .sx,
div.post-body .highlight .s1,
div.post-body .highlight .sr,
div.post-body .highlight .ss,
div.post-body .highlight .ne,
div.post-body .highlight .nf,
div.post-body .highlight .nl {
    color: #ff8fa5;
}

div.post-body .highlight .m,
div.post-body .highlight .mf,
div.post-body .highlight .mh,
div.post-body .highlight .mi,
div.post-body .highlight .mo,
div.post-body .highlight .il,
div.post-body .highlight .na,
div.post-body .highlight .nb,
div.post-body .highlight .no,
div.post-body .highlight .nv,
div.post-body .highlight .vc,
div.post-body .highlight .vg,
div.post-body .highlight .vi,
div.post-body .highlight .kt,
div.post-body .highlight .nc,
div.post-body .highlight .nt,
div.post-body .highlight .nd,
div.post-body .highlight .ni {
    color: #86d3d0;
}

div.post-body .highlight .nn,
div.post-body .highlight .gp,
div.post-body .highlight .go,
div.post-body .highlight .bp,
div.post-body .highlight .w {
    color: #a9a9a9;
}

button.post-copy {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 3px 9px;
    border: 1px solid #444;
    background: #111;
    font-family: "Geist Mono", monospace;
    font-size: 11px;
    line-height: 18px;
    text-transform: uppercase;
    color: #a9a9a9;
    opacity: 0;
    transition: opacity .15s ease, color .15s ease, border-color .15s ease;
}

div.highlighter-rouge:hover button.post-copy,
button.post-copy:focus-visible,
button.post-copy.post-copied {
    opacity: 1;
}

button.post-copy:hover {
    border-color: #fff;
    color: #fff;
}

button.post-copy.post-copied {
    border-color: var(--post-red);
    color: var(--post-red);
}

@media (hover: none) {
    button.post-copy {
        opacity: 1;
    }
}

/* Tables */
div.post-body table {
    width: 100%;
    margin-top: 2em;
    margin-bottom: 2em;
    font-size: 16px;
    line-height: 1.5;
}

div.post-body th {
    padding: 8px 14px 8px 0;
    border-bottom: 2px solid var(--post-ink);
    font-family: "Geist Mono", monospace;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--post-muted);
}

div.post-body td {
    padding: 10px 14px 10px 0;
    border-bottom: 1px solid var(--post-line);
    vertical-align: top;
}

/* Figures. The screenshot sits on a stage: a dotted mat with a bracket mark in every
   corner. Images are never scaled up, a small one is centered on the stage instead. */
div.post-body {
    counter-reset: post-figure;
}

div.post-body figure,
div.post-body > iframe {
    max-width: none;
    margin-top: 2.7rem;
    margin-bottom: 2.9rem;
}

div.post-body figure > a,
div.post-body figure > div.row,
a.news-latest {
    --post-mark: #1f1f1f;
    position: relative;
    display: block;
    margin: 0;
    padding: 40px;
    background:
        linear-gradient(var(--post-mark), var(--post-mark)) left 12px top 12px / 13px 1px no-repeat,
        linear-gradient(var(--post-mark), var(--post-mark)) left 12px top 12px / 1px 13px no-repeat,
        linear-gradient(var(--post-mark), var(--post-mark)) right 12px top 12px / 13px 1px no-repeat,
        linear-gradient(var(--post-mark), var(--post-mark)) right 12px top 12px / 1px 13px no-repeat,
        linear-gradient(var(--post-mark), var(--post-mark)) left 12px bottom 12px / 13px 1px no-repeat,
        linear-gradient(var(--post-mark), var(--post-mark)) left 12px bottom 12px / 1px 13px no-repeat,
        linear-gradient(var(--post-mark), var(--post-mark)) right 12px bottom 12px / 13px 1px no-repeat,
        linear-gradient(var(--post-mark), var(--post-mark)) right 12px bottom 12px / 1px 13px no-repeat,
        radial-gradient(circle at 1px 1px, #dcdcd7 1px, transparent 1.6px) 4px 4px / 18px 18px,
        var(--post-stage);
}

div.post-body figure a {
    cursor: zoom-in;
}

div.post-body figure a:hover,
a.news-latest:hover {
    --post-mark: var(--post-red);
}

div.post-body figure a:focus-visible {
    outline: 2px solid var(--post-red);
    outline-offset: 2px;
}

div.post-body figure img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 0 auto !important;
    border-radius: 4px;
    background: #fff;
    box-shadow:
        0 0 0 1px rgba(17, 17, 17, 0.1),
        0 2px 4px rgba(17, 17, 17, 0.05),
        0 22px 44px -22px rgba(17, 17, 17, 0.34);
    transition: transform .28s cubic-bezier(.2, .7, .2, 1), box-shadow .28s ease;
}

div.post-body figure a:hover img {
    transform: translateY(-3px);
    box-shadow:
        0 0 0 1px rgba(17, 17, 17, 0.14),
        0 3px 6px rgba(17, 17, 17, 0.06),
        0 32px 54px -24px rgba(17, 17, 17, 0.42);
}

/* Several images in one figure share a stage, side by side. Posts mark these up with a
   Bootstrap row, which is turned into a plain grid here. */
div.post-body figure > div.row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    align-items: start;
    gap: 24px;
}

div.post-body figure > div.row > * {
    width: auto;
    max-width: none;
    padding: 0;
}

div.post-body figure > div.row a {
    display: block;
}

/* A screenshot that is much taller than a screen is cut off and fades into the stage.
   The full image is one click away. Set by post.js, which knows the image dimensions. */
div.post-body figure a.post-cropped img {
    width: 100%;
    height: 620px;
    object-fit: cover;
    object-position: top center;
    border-radius: 4px 4px 0 0;
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 170px), transparent);
    mask-image: linear-gradient(to bottom, #000 calc(100% - 170px), transparent);
}

div.post-body figure a.post-cropped::after {
    content: "Full screenshot  +";
    position: absolute;
    left: 50%;
    bottom: 34px;
    transform: translateX(-50%);
    padding: 6px 14px;
    background: var(--post-ink);
    font-family: "Geist Mono", monospace;
    font-size: 12px;
    line-height: 18px;
    text-transform: uppercase;
    white-space: pre;
    color: #fff;
    transition: background-color .15s ease;
}

div.post-body figure a.post-cropped:hover::after {
    background: var(--post-red);
}

/* A tall photo is scaled down as a whole instead. */
div.post-body figure a.post-contained img {
    max-height: 720px;
}

div.post-body figcaption {
    counter-increment: post-figure;
    position: relative;
    max-width: var(--post-measure);
    min-height: 21px;
    margin-top: 14px;
    padding-left: 74px;
    font-size: 14.5px;
    line-height: 21px;
    color: #5d5d5d;
    text-wrap: pretty;
}

div.post-body figcaption::before {
    content: "Fig. " counter(post-figure, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 0;
    font-family: "Geist Mono", monospace;
    font-size: 12px;
    line-height: 21px;
    text-transform: uppercase;
    color: var(--post-red);
}

/* Videos */
div.post-body > iframe {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border: 0;
    background: #111;
}

/* Post footer */
div.post-footer {
    margin-top: 76px;
    padding-bottom: 96px;
}

div.post-footer-main > nav.post-siblings,
div.post-footer-main > div.post-follow {
    max-width: none;
}

nav.post-siblings {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 2px solid var(--post-ink);
    border-bottom: 1px solid var(--post-line);
}

nav.post-siblings .post-sibling {
    display: block;
    padding: 24px 28px 28px 0;
}

nav.post-siblings .post-sibling-newer {
    padding: 24px 0 28px 28px;
    border-left: 1px solid var(--post-line);
    text-align: right;
}

span.post-sibling-label {
    display: block;
    margin-bottom: 8px;
    font-family: "Geist Mono", monospace;
    font-size: 13px;
    text-transform: uppercase;
    color: var(--post-muted);
    transition: color .15s ease;
}

span.post-sibling-arrow {
    display: inline-block;
    transition: transform .2s ease;
}

span.post-sibling-title {
    display: block;
    font-size: 21px;
    font-weight: 630;
    line-height: 1.25;
    letter-spacing: -0.014em;
    color: var(--post-ink);
    text-wrap: balance;
    transition: color .15s ease;
}

a.post-sibling:hover span.post-sibling-label,
a.post-sibling:hover span.post-sibling-title {
    color: var(--post-red);
}

a.post-sibling-older:hover span.post-sibling-arrow {
    transform: translateX(-4px);
}

a.post-sibling-newer:hover span.post-sibling-arrow {
    transform: translateX(4px);
}

div.post-follow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 32px;
    padding-top: 24px;
}

div.post-follow p {
    margin: 0;
    font-size: 15px;
    color: #5d5d5d;
}

/* News index */
div.news-index {
    padding-bottom: 104px;
}

div.news-index div.post-header-main > * {
    margin-left: 0;
}

div.news-index header.post-header div.post-rail {
    margin: 0;
}

div.news-index header.post-header {
    padding-bottom: 52px;
}

/* The !important declarations undo the global style of h2, as in the posts. */
div.news-main .news-title {
    margin: 0 !important;
    font-family: "Geist", sans-serif;
    font-weight: 650;
    letter-spacing: -0.022em;
    text-transform: none;
    color: var(--post-ink);
    text-wrap: balance;
}

div.news-main .news-title::before,
div.news-main .news-title::after {
    content: none;
}

/* The latest post, on the stage the posts keep for their figures. */
a.news-latest {
    padding: 44px 48px 46px;
    color: var(--post-text);
}

a.news-latest div.post-meta {
    margin-bottom: 18px;
}

a.news-latest h2.news-title {
    max-width: 820px;
    font-size: clamp(28px, 3.2vw, 40px) !important;
    font-weight: 680;
    line-height: 1.1;
    letter-spacing: -0.028em;
}

a.news-latest p {
    max-width: var(--post-measure);
    margin: 16px 0 0;
    font-size: 18px;
    line-height: 1.6;
    color: #3b3b3b;
    text-wrap: pretty;
}

span.news-latest-more {
    display: inline-block;
    margin-top: 24px;
    font-family: "Geist Mono", monospace;
    font-size: 13px;
    text-transform: uppercase;
    color: var(--post-ink);
    transition: color .15s ease;
}

span.news-latest-more span,
span.news-row-arrow {
    display: inline-block;
    transition: transform .2s ease, opacity .2s ease;
}

a.news-latest:hover span.news-latest-more {
    color: var(--post-red);
}

a.news-latest:hover span.news-latest-more span {
    transform: translateX(4px);
}

/* The archive, a year at a time. */
div.news-year {
    margin-top: 64px;
}

div.news-year:first-child {
    margin-top: 0;
}

div.news-main h2.news-year-title {
    margin: 0 !important;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--post-ink);
    font-family: "Geist", sans-serif;
    font-size: 22px !important;
    font-weight: 680;
    line-height: 1.2;
    letter-spacing: -0.014em;
    color: var(--post-ink);
    scroll-margin-top: 92px;
}

div.news-main h2.news-year-title::before,
div.news-main h2.news-year-title::after {
    content: none;
}

/* A row is tinted on hover, like the rows of a changelog. The tint reaches a little past
   the rules on both sides, which is why the rule below a row is drawn inside it. */
a.news-row {
    position: relative;
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr) auto;
    align-items: baseline;
    column-gap: 20px;
    margin: 0 -12px;
    padding: 24px 12px 26px;
    color: var(--post-text);
    transition: background-color .15s ease;
}

a.news-row::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 0;
    height: 1px;
    background: var(--post-line);
}

a.news-row:hover {
    background-color: var(--post-stage);
}

a.news-row time,
span.news-row-meta {
    font-family: "Geist Mono", monospace;
    font-size: 13px;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--post-muted);
}

a.news-row h3.news-title {
    font-size: 23px;
    line-height: 1.22;
}

div.news-row-main p {
    max-width: var(--post-measure);
    margin: 7px 0 0;
    font-size: 16.5px;
    line-height: 1.55;
    color: #5d5d5d;
    text-wrap: pretty;
}

/* Pages */
nav.news-pager {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin-top: 56px;
    font-family: "Geist Mono", monospace;
    font-size: 13px;
    text-transform: uppercase;
}

nav.news-pager ol {
    display: flex;
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

nav.news-pager ol a {
    position: relative;
    color: var(--post-muted);
    transition: color .15s ease;
}

nav.news-pager ol a:hover,
nav.news-pager ol a[aria-current] {
    color: var(--post-ink);
}

/* The page being shown carries the red square, like the section being read in the rail. */
nav.news-pager ol a[aria-current]::before {
    content: "";
    position: absolute;
    left: -11px;
    top: 50%;
    width: 6px;
    height: 6px;
    margin-top: -3px;
    background: var(--post-red);
}

a.news-pager-step {
    color: var(--post-ink);
    transition: color .15s ease;
}

a.news-pager-older {
    justify-self: end;
}

a.news-pager-step span {
    display: inline-block;
    transition: transform .2s ease;
}

a.news-pager-step:hover {
    color: var(--post-red);
}

a.news-pager-newer:hover span {
    transform: translateX(-4px);
}

a.news-pager-older:hover span {
    transform: translateX(4px);
}

/* On hover the reading time makes room for an arrow. */
span.news-row-meta {
    position: relative;
}

span.news-row-reading {
    display: inline-block;
    transition: transform .2s ease;
}

span.news-row-arrow {
    position: absolute;
    right: 0;
    color: var(--post-red);
    opacity: 0;
    transform: translateX(-6px);
}

a.news-row:hover span.news-row-reading {
    transform: translateX(-22px);
}

a.news-row:hover span.news-row-arrow {
    opacity: 1;
    transform: none;
}

@media (max-width: 767.98px) {
    header.post-header {
        padding: 96px 0 40px;
    }

    div.post-lede p {
        font-size: 19px;
    }

    div.post-body {
        font-size: 17px;
        line-height: 1.68;
    }

    div.post-body h2 {
        font-size: 26px !important;
    }

    div.post-body h3 {
        font-size: 20px;
    }

    div.post-body blockquote {
        padding-left: 18px;
    }

    a.post-anchor {
        display: none;
    }

    article.post code {
        white-space: normal;
        overflow-wrap: anywhere;
        -webkit-box-decoration-break: clone;
        box-decoration-break: clone;
    }

    div.post-body figure > a,
    div.post-body figure > div.row {
        padding: 14px;
        background: var(--post-stage);
    }

    div.post-body figure > div.row {
        gap: 10px;
    }

    div.post-body figure a.post-cropped img {
        height: 420px;
    }

    div.post-body figure a.post-cropped::after {
        bottom: 12px;
    }

    div.post-body figure a.post-contained img {
        max-height: 520px;
    }

    div.post-body ul.post-changelog .post-changelog-row {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 1px;
    }

    span.post-changelog-arrow {
        display: none;
    }

    div.post-body pre.highlight {
        padding: 18px;
        font-size: 13px;
    }

    nav.post-siblings {
        grid-template-columns: 1fr;
    }

    nav.post-siblings .post-sibling-newer {
        padding-left: 0;
        border-left: 0;
        border-top: 1px solid var(--post-line);
        text-align: left;
    }

    nav.post-siblings .post-sibling-empty {
        display: none;
    }

    div.news-index {
        padding-bottom: 72px;
    }

    a.news-latest {
        padding: 26px 20px 28px;
        background: var(--post-stage);
    }

    a.news-latest p {
        font-size: 17px;
    }

    div.news-year {
        margin-top: 48px;
    }

    a.news-row {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 6px;
        padding: 20px 12px 22px;
    }

    a.news-row h3.news-title {
        font-size: 21px;
    }

    span.news-row-meta {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    div.post-body figure img,
    div.post-body ul.post-changelog a.post-changelog-row,
    span.post-changelog-arrow,
    span.post-sibling-arrow,
    a.post-back span,
    a.post-about-link span,
    span.news-latest-more span,
    span.news-row-reading,
    span.news-row-arrow,
    a.news-pager-step span,
    nav.post-toc li a::before {
        transition: none;
    }

    div.post-body figure a:hover img {
        transform: none;
    }
}
