/* markuseliasson.se - this time in my monochrome theme. Conventions - Use layers in CSS (to learn) - Define variables for everything. - Keep the styling as semantic as possible. */@layer reset, tokens, base, layout, components, brands, article, syntax, decorations;/* Reset -------------------------------------------------------------------- */@layer reset {    *,    *::before,    *::after {        box-sizing: border-box;    }    * {        margin: 0;    }    html {        -webkit-text-size-adjust: none;        text-size-adjust: none;    }    body {        min-block-size: 100vh;        min-block-size: 100dvh;    }    img,    picture,    video,    canvas {        display: block;        max-inline-size: 100%;        block-size: auto;    }    svg {        display: block;        max-inline-size: 100%;    }    input,    button,    textarea,    select {        font: inherit;        color: inherit;    }    h1, h2, h3, h4, h5, h6,    p, li, dd, dt, blockquote, figcaption {        overflow-wrap: break-word;    }    h1, h2, h3, h4, h5, h6 {        text-wrap: balance;    }    p, li, dd, blockquote {        text-wrap: pretty;    }    :where(ul, ol)[role="list"] {        list-style: none;        padding: 0;    }    table {        border-collapse: collapse;    }}/* Token -------------------------------------------------------------------- */@layer tokens {    :root {        color-scheme: light dark;        --white:                                #ffffff;        --gray-25:                              #fdfdfb;        --gray-50:                              #f4f4f4;        --gray-100:                             #ececec;        --gray-150:                             #e8e8e8;        --gray-300:                             #c4c4c4;        --gray-400:                             #b5b5b5;        --gray-500:                             #8e8e8e;        --gray-600:                             #6b6b6b;        --gray-700:                             #555555;        --gray-800:                             #2e2e2e;        --gray-850:                             #262626;        --gray-900:                             #1c1c1c;        --gray-925:                             #1a1a1a;        --gray-950:                             #161616;        --gray-975:                             #121212;        --black:                                #111111;        /* Dark mode. */        --ink-100:                              #ece8e1;        --ink-300:                              #c6c1b8;        --ink-500:                              #8f8a82;        --ink-600:                              #6b665f;        --ink-800:                              #2f2c28;        --ink-900:                              #1e1c19;        --ink-925:                              #1a1816;        --ink-975:                              #131210;        /* Dark mode footer. */        --night-ground:                         #0e121a;        --night-hill:                           #141a24;        --night-sky:                            #1d2636;        --night-town:                           #4e5768;        --red:                                  #e6352b;        /* Semantic names should be used over raw colors. */        --color-bg:                             var(--white);        --color-text-strong:                    var(--black);        --color-text-inverted:                  var(--white);        --color-text:                           var(--gray-800);        --color-muted:                          var(--gray-600);        --color-line:                           var(--gray-400);        --color-fade:                           var(--gray-150);        --color-surface:                        var(--gray-50);        --color-paper:                          var(--gray-25);        --color-brand:                          var(--red);        /* Used by syntax.css for highlighted code. */        --code-background-color:                var(--color-surface);        /* Footer, always dark. */        --footer-bg:      var(--gray-950);        --footer-text:    var(--gray-300);        --footer-strong:  var(--white);        --footer-muted:   #a8a8a8;        --footer-line:    var(--gray-600);        /* Skyline — a grey day; dark mode turns it to night */        --sky:              #ededed;        --sky-top-opacity:  0;        --hill-far:         #9c9c9c;        --hill-mid:         #6e6e6e;        --hill-near:        var(--gray-900);        --stars-opacity:    0;        /* Keep typography simple and use stock fonts. */        --font-serif: Georgia, "Times New Roman", Times, serif;        --font-mono:  ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, "Liberation Mono", monospace;        /* Fluid type scale: 360px → 1240px viewport. */        --step--2: clamp(0.75rem,   0.73rem + 0.09vw, 0.8125rem); /* 12 → 13 */        --step--1: clamp(0.875rem,  0.86rem + 0.07vw, 0.9375rem); /* 14 → 15 */        --step-0:  clamp(1.0625rem, 1.01rem + 0.23vw, 1.1875rem); /* 17 → 19 */        --step-1:  clamp(1.25rem,   1.17rem + 0.34vw, 1.4375rem); /* 20 → 23 */        --step-2:  clamp(1.5rem,    1.35rem + 0.68vw, 1.875rem);  /* 24 → 30 */        --step-3:  clamp(1.75rem,   1.5rem + 1.14vw,  2.5rem);    /* 28 → 40 */        --step-4:  clamp(2.375rem,  1.87rem + 2.27vw, 4rem);      /* 38 → 64 */        --step-5:  clamp(3.25rem,   2.47rem + 3.48vw, 5.5rem);    /* 52 → 88 */        --linehight-base:  1;        --linehight-tight: 1.1;        --linehight-snug:  1.4;        --linehight-body:  1.65;        --spacing-logo:      0.02em;        --spacing-ingress:    -0.03em;        --spacing-title:    -0.015em;        --line-length:       38rem;        --line-length-ingress: 44rem;        /* Spacing. */        --space-3xs: 0.25rem;        --space-2xs: 0.5rem;        --space-xs:  0.75rem;        --space-s:   1rem;        --space-m:   clamp(1.25rem, 1.16rem + 0.45vw, 1.5rem);        --space-l:   clamp(1.75rem, 1.6rem + 0.68vw, 2rem);        --space-xl:  clamp(2.25rem, 1.97rem + 1.36vw, 3rem);        --space-2xl: clamp(3rem,    2.45rem + 2.73vw, 4.5rem);        --space-3xl: clamp(4.5rem,  3.68rem + 4.09vw, 7rem);        --gutter:   clamp(1.5rem, 0.6rem + 4.1vw, 4rem);        --page-max: 65rem;        /* Shapes. */        --line-s:       1px;        --line-strong:  1px solid var(--color-text-strong);        --line-quiet:   1px solid var(--color-fade);        --radius-s:     2px;        --radius-m:     6px;        --focus:   2px solid var(--color-text-strong);        --action-min-width: 2.75rem;    }    @media (prefers-color-scheme: dark) {        :root {            --color-bg:                         var(--ink-975);            --color-text-strong:                var(--ink-100);            --color-text-inverted:              var(--ink-975);            --color-text:                       var(--ink-300);            --color-muted:                      var(--ink-500);            --color-line:                       var(--ink-600);            --color-fade:                       var(--ink-800);            --color-surface:                    var(--ink-900);            --color-paper:                      var(--ink-925);            /* The footer. */            --footer-bg:                        var(--night-ground);            --footer-line:                      var(--night-town);            --hill-far:                         var(--night-town);            --hill-mid:                         var(--night-hill);            --hill-near:                        var(--night-ground);            --stars-opacity:                    0.85;        }    }}/* Token -------------------------------------------------------------------- */@layer base {    html {        background-color: var(--color-bg);        color: var(--color-text);        font-family: var(--font-serif);        line-height: var(--linehight-body);        scroll-padding-block-start: var(--space-l);    }    @media (prefers-reduced-motion: no-preference) {        html {            scroll-behavior: smooth;        }    }    body {        font-size: var(--step-0);        -webkit-font-smoothing: antialiased;        -moz-osx-font-smoothing: grayscale;    }    h1, h2, h3, h4 {        color: var(--color-text-strong);        font-weight: 400;        line-height: var(--linehight-tight);        letter-spacing: var(--spacing-title);    }    a {        color: var(--color-text-strong);        text-decoration-line: underline;        text-decoration-color: var(--color-line);        text-decoration-thickness: var(--line-s);        text-underline-offset: 0.25em;        transition: text-decoration-color 150ms cubic-bezier(0.2, 0, 0, 1);    }    a:hover {        text-decoration-color: currentColor;    }    :focus-visible {        outline: var(--focus);        outline-offset: 4px;        border-radius: var(--radius-s);    }    ::selection {        background-color: var(--color-text-strong);        color: var(--color-bg);    }    button {        cursor: pointer;    }}/* Layout ------------------------------------------------------------------- */@layer layout {    body {        display: grid;        grid-template-rows: auto 1fr auto;    }    /* The frame the page occupies, we do not use full width. */    .frame {        inline-size: min(100% - 2 * var(--gutter), var(--page-max));        margin-inline: auto;    }    /* There is only one type of header, the site header. */    header {        display: flex;        flex-wrap: wrap;        justify-content: space-between;        align-items: baseline;        gap: var(--space-s) var(--space-l);        padding-block: var(--space-xl);    }    .logo {        color: var(--color-text-strong);        font-size: var(--step-2);        letter-spacing: var(--spacing-logo);        line-height: var(--linehight-base);        text-decoration: none;    }    /* There is only one type of navigation, the site header navigation. */    nav ul {        display: flex;        flex-wrap: wrap;        gap: var(--space-3xs) var(--space-m);    }    nav a {        display: inline-flex;        align-items: center;        min-block-size: var(--action-min-width);    }    /* The current page, or the section the page belongs to */    nav a[aria-current],    nav a:active {        text-decoration-line: none;    }    main {        padding-block-end: var(--space-3xl);    }    /* There is only one type of footer as well. */    footer {        background-color: var(--footer-bg);        color: var(--footer-text);    }    footer a {        color: var(--footer-strong);        text-decoration-color: var(--footer-line);    }    footer :focus-visible {        outline-color: var(--footer-strong);    }    footer .inner {        display: flex;        flex-wrap: wrap;        align-items: flex-end;        gap: var(--space-xl) var(--space-3xl);        padding-block: var(--space-2xl) var(--space-3xl);    }    footer .cta {        flex: 2 1 24rem;        min-inline-size: 0;    }    .site-footer__kicker {        color: var(--footer-muted);        font-size: var(--step-0);        font-style: italic;    }    footer .hello {        display: inline-block;        margin-block-end: var(--space-2xs);        font-size: var(--step-5);        line-height: var(--linehight-base);        letter-spacing: var(--spacing-title);    }    footer .email {        margin-block-start: var(--space-m);        font-size: var(--step-0);        text-decoration-line: none;    }    /* The headed sections in the footer. */    .colophon {        flex: 1 1 20rem;        display: grid;        grid-template-columns: repeat(2, minmax(0, 1fr));        gap: var(--space-m) var(--space-xl);        font-size: var(--step--1);        line-height: 1.55;    }    .colophon dt {        color: var(--footer-strong);    }    .colophon dd {        margin: 0;    }}/* Components --------------------------------------------------------------- */@layer components {    /* The signature red dot used in logo, headers, etc. */    .dot {        color: var(--color-brand);    }    /* Ingress for pages and articles. */    .ingress {        max-inline-size: var(--line-length-ingress);        padding-block: var(--space-2xl) var(--space-2xl);    }    .ingress > * + * {        margin-block-start: var(--space-s);    }    .ingress h1 {        margin-block-end: var(--space-l);        font-size: var(--step-5);        line-height: var(--linehight-base);        letter-spacing: var(--spacing-ingress);    }    .ingress p {        font-size: var(--step-1);        line-height: 1.55;    }    /* Listing of articles */    /* Same as the month headings on the notes page. */    .archive > h2 {        margin-block-end: var(--space-2xs);        font-size: var(--step-2);    }    .archive ol {        display: grid;        gap: var(--space-2xs);        margin-block-start: var(--space-m);    }    .archive ol li a {        display: flex;        justify-content: space-between;        align-items: baseline;        font-size: var(--step-1);        line-height: var(--linehight-snug);        gap:var(--space-2xs);        text-decoration: none;    }    .archive ol li time {        flex: none;        color: var(--color-muted);        font-size: var(--step--1);        font-style: italic;    }    .archive ol li a hr {        display: flex;        flex-grow: 1;        border: 1px dashed var(--color-text);        opacity: 0.25;    }    .archive ol li a:hover hr,    .archive ol li a:hover time {        border-color:var(--color-text-strong);        color: var(--color-text-strong)    }    @media (width < 45em) {        .archive ol li a hr { display:  none }    }    /* Notes, grouped by month. */    .notes > section + section {        margin-block-start: var(--space-2xl);    }    .notes h2 {        margin-block-end: var(--space-m);        font-size: var(--step-2);    }    /* A note is a narrow date column and the content. */    .note {        display: grid;        grid-template-columns: 2.5rem minmax(0, 1fr);        gap: var(--space-m);    }    /* The date stretches the full height of the note, the line fills it. */    .note-date {        display: flex;        flex-direction: column;        align-items: center;        padding-block-start: 0.15em;    }    .note-date .day-number {        color: var(--color-text-strong);        font-size: var(--step-2);        line-height: var(--linehight-base);    }    .note-date .day-name {        margin-block-start: var(--space-3xs);        color: var(--color-muted);        font-size: var(--step--2);    }    .note-date::after {        content: "";        flex: 1;        inline-size: var(--line-s);        min-block-size: var(--space-l);        margin-block-start: var(--space-s);        background-color: var(--color-line);    }    .note-content {        max-inline-size: var(--line-length);        padding-block-end: var(--space-xl);    }    .note-content > * + * {        margin-block-start: var(--space-s);    }    /* Code in notes is styled together with articles, see the article layer. */    /* Previous / next navigation between pages of a listing. */    .pagination {        display: flex;        justify-content: space-between;        gap: var(--space-m);        margin-block-start: var(--space-xl);        padding-block-start: var(--space-s);        border-block-start: var(--line-quiet);        font-size: var(--step--1);        font-style: italic;    }    .pagination-link {        display: inline-flex;        align-items: center;        min-block-size: var(--action-min-width);    }    .pagination-link.is-disabled {        color: var(--color-muted);        opacity: 0.5;    }    /* Entries (projects, quizzes, ...), shown either as a grid of cards or as a list of rows. */    .entry-title {        font-size: var(--step-2);    }    .entry-title a {        text-decoration-color: var(--color-line);    }    .entry-description {        max-inline-size: var(--line-length);        line-height: 1.55;    }    .entry-lead {        color: var(--color-muted);        font-size: var(--step-2);        line-height: var(--linehight-tight);    }    .entry-meta {        color: var(--color-muted);        font-size: var(--step--1);        font-style: italic;    }    .entry-links {        display: flex;        flex-wrap: wrap;        gap: var(--space-3xs) var(--space-m);        font-size: var(--step--1);    }    .entries--grid {        display: grid;        grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));        gap: var(--space-m);    }    .entries--grid .entry {        --entry-surface: var(--gray-50);        display: flex;        flex-direction: column;        gap: var(--space-2xs);        min-block-size: 18rem;        padding: var(--space-l);        border: var(--line-s) solid var(--entry-border, transparent);        background-color: var(--entry-bg, transparent);        color: var(--color-text);    }    .entries--grid .entry-lead,    .entries--grid .entry-meta {        order: -1;    }    .entries--grid .entry-title {        margin-block-start: auto;        padding-block-start: var(--space-xl);        font-size: var(--step-3);    }    .entries--grid .entry-links {        margin-block-start: var(--space-s);    }    .entries--grid .entry--featured {        grid-column: 1 / -1;        min-block-size: 20rem;    }    .entries--grid .entry--featured .entry-title {        font-size: var(--step-4);    }    .entry--surface {        --entry-bg: var(--entry-surface);    }    .entry--outline {        --entry-border: var(--color-line);    }    /* Inverted cards redefine the colors. */    .entry--inverted {        --color-text-strong: var(--white);        --color-text: var(--gray-300);        --color-muted: #a8a8a8;        --color-line: var(--gray-600);        --entry-bg: var(--black);    }    @media (prefers-color-scheme: dark) {        .entries--grid .entry {            --entry-surface: var(--ink-900);        }        .entry--inverted {            --entry-bg: var(--ink-800);        }    }    @media (width < 45em) {        .entries--grid .entry,        .entries--grid .entry--featured {            min-block-size: auto;        }    }    .entries--compact {        grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));    }    .entries--compact .entry {        min-block-size: auto;        padding: var(--space-m);    }    .entries--compact .entry-title {        margin-block-start: 0;        padding-block-start: 0;        font-size: var(--step-0);        font-style: italic;    }    .entries--compact .entry-description {        font-size: var(--step--1);    }    /* The section with the latest notes on the start page. */    .latest-notes {        margin-block-start: var(--space-2xl);    }    .latest-notes > h2 {        margin-block-end: var(--space-m);        font-size: var(--step-2);    }    .latest-notes .entries-more {        margin-block-start: var(--space-m);    }    .entries--list {        border-block-start: var(--line-strong);    }    .entries--list .entry {        display: grid;        grid-template-columns: minmax(0, 1fr) auto;        grid-template-areas:            "title links"            "desc  ."            "meta  .";        column-gap: var(--space-l);        row-gap: var(--space-3xs);        padding-block: var(--space-l);        border-block-end: var(--line-quiet);    }    .entries--list .entry:has(> .entry-lead) {        grid-template-columns: 4rem minmax(0, 1fr) auto;        grid-template-areas:            "lead title links"            "lead desc  ."            "lead meta  .";    }    .entries--list .entry-lead        { grid-area: lead; }    .entries--list .entry-title       { grid-area: title; }    .entries--list .entry-description { grid-area: desc; }    .entries--list .entry-meta        { grid-area: meta; }    .entries--list .entry-links       { grid-area: links; align-self: baseline; }    @media (width < 45em) {        .entries--list .entry {            grid-template-columns: minmax(0, 1fr);            grid-template-areas: "title" "desc" "meta" "links";        }        .entries--list .entry:has(> .entry-lead) {            grid-template-columns: 2.5rem minmax(0, 1fr);            grid-template-areas:                "lead title"                "lead desc"                "lead meta"                "lead links";        }        .entries--list .entry-links {            margin-block-start: var(--space-2xs);        }    }    .entries-more {        margin-block-start: var(--space-xl);        font-size: var(--step--1);    }    .button {        display: inline-flex;        align-items: center;        gap: var(--space-2xs);        min-block-size: var(--action-min-width);        padding-inline: 1.375rem;        border: 0;        border-radius: 0;        background-color: var(--color-text-strong);        color: var(--color-text-inverted);        font-size: var(--step-0);        line-height: var(--linehight-base);        text-decoration: none;        transition: opacity  150ms cubic-bezier(0.2, 0, 0, 1);    }    .button:hover {        opacity: 0.85;    }    .button svg {        flex: none;        inline-size: 1em;        block-size: 1em;    }    .fineprint {        color: var(--color-muted);        font-size: var(--step--1);        line-height: 1.6;    }    /* Shoutbox in the form of a postcard. */    .postcard-section {        container: postcard / inline-size;        margin-block-start: var(--space-3xl);    }    .postcard {        --line-height-ruled: 2.25rem;        display: grid;        grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);        max-inline-size: 55rem;        margin-inline: auto;        border: var(--line-s) solid var(--color-line);        background-color: var(--color-paper);        box-shadow: 0 1px 0 var(--color-fade), 0 1.125rem 2.5rem -1.5rem rgb(0 0 0 / 35%);    }    .postcard__message {        padding: var(--space-xl) var(--space-xl) var(--space-l);    }    .postcard__title {        margin-block-end: var(--space-m);        font-size: var(--step-3);    }    .postcard form {        display: grid;        justify-items: start;        gap: var(--space-m);    }    .postcard textarea {        inline-size: 100%;        min-block-size: calc(5 * var(--line-height-ruled));        padding: 0;        border: 0;        background-color: transparent;        color: var(--color-text-strong);        font-size: var(--step-0);        font-style: italic;        line-height: var(--line-height-ruled);        resize: none;    }    .postcard textarea::placeholder {        color: var(--color-muted);    }    .postcard textarea:focus-visible {        outline-offset: 8px;    }    .postcard__back {        display: grid;        align-content: start;        gap: var(--space-l);        padding: var(--space-l) var(--space-l) var(--space-xl);        border-inline-start: var(--line-s) solid var(--color-line);    }    .stamp {        justify-self: end;        display: grid;        place-items: center;        align-content: center;        gap: var(--space-2xs);        inline-size: 4.75rem;        block-size: 5.75rem;        border: var(--line-s) solid var(--color-line);        outline: 2px dotted var(--color-line);        outline-offset: 4px;        padding: 4px;        background-color: var(--gray-25);    }    .stamp img {        inline-size: 100%;        block-size: 100%;        object-fit: cover;        object-position: top;    }    .postcard address {        color: var(--color-text-strong);        font-size: var(--step-0);        line-height: var(--line-height-ruled);    }    .postcard address span {        display: block;        border-block-end: var(--line-s) solid var(--color-line);    }    .postcard address span:empty::before {        content: "\00a0";    }    @container postcard (width < 44rem) {        .postcard {            grid-template-columns: minmax(0, 1fr);            rotate: none;        }        .postcard__back {            border-inline-start: 0;            border-block-start: var(--line-s) solid var(--color-line);        }        .postcard__message,        .postcard__back {            padding: var(--space-l) var(--space-m);        }    }    /*        The archipelago skyline is an illustration of the scenery where I live (southern Sweden). With a little help        from an LLM.    */    /*        Height follows width (the view box is 8:1), so wide screens see the whole view without the top being cropped.        On narrow screens the minimum height crops the sides instead of shrinking the view to a thin strip.     */    .skyline {        inline-size: 100%;        block-size: max(4rem, 12.5vw);        background-color: var(--color-bg);    }    .skyline__stars      { fill: var(--gray-100); opacity: var(--stars-opacity); }    .skyline__moon       { fill: #f0f0f0; }    .skyline__windows    { fill: #d6d6d6; opacity: var(--stars-opacity); }    .skyline__far        { fill: var(--hill-far); }    .skyline__mid        { fill: var(--hill-mid); }    .skyline__near       { fill: var(--hill-near); }    .skyline__house      { fill: #8f8f8f; }    /* The angled sides of the octagonal Godnatt tower, a shade darker than the front. */    .skyline__facet      { fill: #000; opacity: 0.18; }    .skyline__shore      { fill: var(--footer-bg); }    .skyline__ripples    { fill: none; stroke: #4a4a4a; stroke-width: 1.5; stroke-linecap: round; }    @media (prefers-color-scheme: dark) {        .skyline {            background-image: linear-gradient(var(--color-bg), var(--night-sky));        }        .skyline__house   { fill: var(--night-town); }        .skyline__ripples { stroke: var(--night-hill); }    }}/* Brands ------------------------------------------------------------------- */@layer brands {    /* Each branch can override the colours to make project entries, etc pop. */    .brand-albumklubben {        --color-text-strong: #1c1814;        --color-text: #1c1814;        --color-muted: #b3241b;        --color-line: #1c1814;        --entry-bg: #e9c63a;        --entry-border: #1c1814;    }}/* Article ------------------------------------------------------------------ */@layer article {    article {        --sidenote-width: 15rem;        --sidenote-gap: var(--space-xl);    }    article header {        max-inline-size: 48rem;        padding-block: var(--space-xl);    }    article h1 {        font-size: var(--step-4);        line-height: 1.05;        letter-spacing: -0.025em;    }    article section {        max-inline-size: var(--line-length-ingress);        padding-block-start: var(--space-xl);    }    article section > * + * {        margin-block-start: 1.25em;    }    article section > h2 {        margin-block-start: 2em;        font-size: var(--step-3);    }    article section > h2 + * {        margin-block-start: 0.75em;    }    article section ul {        padding-inline-start: 1.5em;    }    article section ul > li::marker {        content: "—  ";        color: var(--color-muted);    }    article section blockquote {        padding-inline-start: var(--space-m);        border-inline-start: 2px solid var(--color-text-strong);        color: var(--color-text-strong);        font-size: var(--step-1);        font-style: italic;        line-height: 1.5;    }    /*        Inline code is set a bit smaller, as the monospace font looks larger than the serif at the same size. When it        wraps, each line gets its own padding and background instead of one box broken in two.     */    :is(article section, .note-content) :not(pre) > code {        padding: 0.1em 0.3em;        border-radius: var(--radius-s);        background-color: var(--color-surface);        color: var(--color-text-strong);        font-size: 0.85em;        -webkit-box-decoration-break: clone;        box-decoration-break: clone;    }    /* Plain and highlighted (.chroma) code blocks share the same look. */    :is(article section, .note-content) pre {        padding: var(--space-m) var(--space-l);        overflow-x: auto;        background-color: var(--code-background-color);        color: var(--color-text);        font-size: 0.8125rem;        line-height: 1.7;        tab-size: 4;    }    :is(article section, .note-content) pre code {        font-size: inherit;    }    /* Notes sit in a narrower column, so code blocks get a little less padding. */    .note-content pre {        padding: var(--space-s) var(--space-m);    }    article section table {        min-inline-size: 60%;        font-size: var(--step--1);        font-variant-numeric: tabular-nums;    }    article section th,    article section td {        padding: var(--space-2xs) var(--space-s) var(--space-2xs) 0;        border-block-end: var(--line-quiet);        text-align: start;    }    article section th {        border-block-end: var(--line-strong);        color: var(--color-text-strong);        font-weight: 400;        font-style: italic;    }    article section td.num,    article section th.num {        text-align: end;    }    .screenshot img {        inline-size: 100%;        border: var(--line-quiet);    }    .screenshot figcaption {        margin-block-start: var(--space-2xs);        color: var(--color-muted);        font-size: var(--step--2);        font-style: italic;    }    article > .screenshot {        margin-block-end: var(--space-l);    }    .screenshot-thumbs {        display: grid;        grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));        gap: var(--space-m);    }    .screenshot-thumbs a {        display: block;    }    .screenshot-thumbs img {        aspect-ratio: 959 / 557;        object-fit: cover;        object-position: top;        transition: border-color 150ms cubic-bezier(0.2, 0, 0, 1);    }    .screenshot-thumbs a:hover img {        border-color: var(--color-line);    }    .timeline {        display: grid;        gap: var(--space-m);    }    .timeline li {        display: grid;        grid-template-columns: 6rem minmax(0, 1fr);        column-gap: var(--space-m);    }    .timeline-period {        grid-row: span 2;        padding-block-start: 0.2em;        color: var(--color-muted);        font-size: var(--step--1);        font-variant-numeric: tabular-nums;    }    .timeline-title {        color: var(--color-text-strong);    }    .timeline-note {        color: var(--color-muted);        font-size: var(--step--1);        font-style: italic;    }    @media (width < 30em) {        .timeline li {            grid-template-columns: minmax(0, 1fr);        }        .timeline-period {            grid-row: auto;            padding-block-start: 0;        }    }    /* About: the portrait next to the intro, stacked on narrow screens. */    .about-intro {        display: grid;        grid-template-columns: minmax(0, 22rem) minmax(0, 1fr);        gap: var(--space-xl) var(--space-3xl);        align-items: start;        padding-block: var(--space-2xl);    }    .about-intro .ingress {        padding-block: 0;    }    .about-intro .ingress p:not(.preamble) {        font-size: var(--step-0);        line-height: var(--linehight-body);    }    .portrait img {        inline-size: 100%;        block-size: auto;    }    @media (prefers-color-scheme: dark) {        .portrait img {            padding: var(--space-s);            background-color: var(--ink-300);            outline: var(--line-s) solid var(--color-line);            outline-offset: var(--space-3xs);        }    }    .portrait-placeholder {        inline-size: 100%;        aspect-ratio: 4 / 5;    }    .portrait-placeholder {        border: var(--line-quiet);        background-image: radial-gradient(var(--color-line) 1px, transparent 1px);        background-size: 8px 8px;    }    .portrait figcaption {        margin-block-start: var(--space-2xs);        color: var(--color-muted);        font-size: var(--step--2);        font-style: italic;    }    @media (width < 45em) {        .about-intro {            grid-template-columns: minmax(0, 1fr);        }        .portrait {            max-inline-size: 16rem;        }    }    .sidenote-ref {        padding-inline-start: 0.1em;        color: var(--color-text-strong);        font-size: 0.7em;        line-height: 0;        text-decoration: none;        vertical-align: super;    }    .sidenote {        display: block;        margin-block: var(--space-xs);        padding-inline-start: var(--space-s);        border-inline-start: var(--line-quiet);        var(--o)        color: var(--color-muted);        font-size: var(--step--1);        line-height: 1.55;    }    .note-number {        padding-inline-end: 0.4em;        color: var(--color-text-strong);        font-size: 0.8em;        vertical-align: super;        line-height: 0;    }    @media (width >= 64em) {        .sidenote {            float: inline-end;            clear: inline-end;            inline-size: var(--sidenote-width);            margin-block: 0.35em 0;            margin-inline-end: calc(-1 * (var(--sidenote-width) + var(--sidenote-gap)));            padding-inline-start: 0;            border-inline-start: 0;        }    }}/* Decorations -------------------------------------------------------------- */@layer decorations {    /* Muted text. */    .muted {        color: var(--color-muted);        font-size: var(--step--1);    }    .muted--italic {        font-style: italic;    }}