/* ==========================================================================
   Page layouts.
   Shared chrome, utilities and prose live in base.css; tokens in tokens.css.
   Everything here is composition: grids, rails, plates and gutters.
   ========================================================================== */

/* ==========================================================================
   Homepage — 1a Blueprint
   ========================================================================== */

.hero {
    position: relative;
    padding: 88px var(--gutter) 72px;
    background-image:
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 64px 64px;
}

.hero__grid {
    max-width: var(--max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr .95fr;
    gap: 64px;
    align-items: start;
}

.hero__kicker {
    display: block;
    margin-bottom: 26px;
}

.hero h1 {
    font-size: clamp(48px, 5.6vw, 86px);
    font-weight: 600;
    line-height: .98;
    letter-spacing: -.015em;
    margin: 0 0 26px;
}

.hero__lede {
    font-size: 20px;
    line-height: 1.6;
    color: var(--dim);
    max-width: 34rem;
    margin: 0 0 34px;
}

.hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* The spec plate */
.spec-plate {
    padding: 26px;
}

.spec-plate__head {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--dim);
    border-bottom: 1px solid var(--line);
    padding-bottom: 12px;
    margin-bottom: 6px;
}

.spec-plate__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
}

.spec-plate__label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .10em;
    text-transform: uppercase;
    color: var(--dim);
}

.spec-plate__value {
    font-family: var(--font-heading);
    font-size: 34px;
    font-weight: 600;
    line-height: 1;
    color: var(--ink);
}

.spec-plate__note {
    font-family: var(--font-mono);
    font-size: 10px;
    line-height: 1.7;
    color: var(--dim);
    margin: 14px 0 0;
}

/* 02 — Latest */
.latest {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 52px;
    align-items: center;
    color: var(--ink);
}

.latest:hover {
    color: var(--ink);
}

.latest__figure {
    margin: 0;
    padding: 11px;
}

.latest .meta {
    display: block;
    margin-bottom: 16px;
}

.latest__title {
    font-size: clamp(34px, 3.4vw, 52px);
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -.01em;
    margin: 0 0 18px;
}

.latest__excerpt {
    font-size: 18px;
    line-height: 1.65;
    color: var(--dim);
    margin: 0 0 22px;
    max-width: 32rem;
}

/* 03 — Selected work */
.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.work-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 26px 24px 28px;
    color: var(--ink);
}

.work-card:hover {
    color: var(--ink);
    border-color: var(--acc);
}

.work-card__name {
    font-size: 30px;
    font-weight: 600;
    line-height: 1.06;
    margin: 0;
}

.work-card__blurb {
    font-size: 16px;
    line-height: 1.6;
    color: var(--dim);
    margin: 0;
    flex: 1;
}

.work-card__stack {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .08em;
    color: var(--dim);
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

/* 04 — Off the clock. The one human photograph on the site, so it gets the
   framed plate treatment rather than being a thumbnail. */
.offclock {
    display: grid;
    /* The copy holds its reading measure and the photo takes whatever is left,
       so the row always fills its container instead of trailing off. */
    grid-template-columns: minmax(0, 1fr) minmax(0, 40rem);
    gap: 44px;
    align-items: center;
}

.offclock__figure {
    margin: 0;
    padding: 11px;
}

.offclock p {
    font-size: 19px;
    line-height: 1.65;
    color: var(--dim);
    margin: 0;
}

/* ==========================================================================
   Blog listing — 2a Filter rail + framed grid
   Shared by /blog, /blog/category, /blog/tag, /blog/series and /blog/search.
   ========================================================================== */

.page-head {
    max-width: var(--max-wide);
    margin: 0 auto;
    padding: 52px var(--gutter) 0;
}

.page-head__inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    padding-bottom: 26px;
    border-bottom: 1px solid var(--line);
}

.page-head__kicker {
    display: block;
    margin-bottom: 14px;
}

.page-head h1 {
    font-size: clamp(44px, 5vw, 74px);
    font-weight: 600;
    line-height: .98;
    margin: 0;
}

.page-head__note {
    font-size: 18px;
    line-height: 1.6;
    color: var(--dim);
    max-width: 30rem;
    margin: 0 0 6px;
}

.listing {
    max-width: var(--max-wide);
    margin: 0 auto;
    padding: 36px var(--gutter) 90px;
    display: grid;
    grid-template-columns: 224px minmax(0, 1fr);
    gap: 52px;
    align-items: start;
}

.rail {
    position: sticky;
    top: calc(var(--nav-h, 78px) + 18px);
    display: flex;
    flex-direction: column;
    gap: 34px;
}

.rail__label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--dim);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 4px;
}

.rail__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 15px;
    text-align: left;
    padding: 9px 2px;
}

.rail__row:hover {
    color: var(--acc);
}

.rail__row.is-active {
    color: var(--acc);
    font-weight: 600;
}

.rail__row > span:first-child {
    min-width: 0;
}

.rail__count {
    color: var(--dim);
    font-family: var(--font-mono);
    font-size: 11px;
    white-space: nowrap;
    flex: none;
}

.rail__row.is-active .rail__count,
.rail__series .rail__count {
    color: var(--acc);
}

.rail__answer {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.6;
    color: var(--dim);
    margin: 12px 0 0;
    padding-left: 2px;
}

.rail__answer-hits {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
}

.rail__answer-hits a {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    line-height: 1.5;
    color: var(--acc);
    padding: 9px 0;
    border-top: 1px solid var(--line);
}

/* Featured plate */
.featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 26px;
    margin-bottom: 44px;
    color: var(--ink);
}

.featured:hover {
    color: var(--ink);
    border-color: var(--acc);
}

.featured .meta {
    display: block;
    margin-bottom: 14px;
}

.featured__title {
    font-size: clamp(30px, 3vw, 44px);
    font-weight: 600;
    line-height: 1.03;
    margin: 0 0 14px;
}

.featured__excerpt {
    font-size: 17px;
    line-height: 1.6;
    color: var(--dim);
    margin: 0;
}

/* The card grid — the rule is the whole frame. */
.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 34px;
}

.card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    border-top: 1px solid var(--line);
    padding-top: 20px;
    color: var(--ink);
}

.card:hover {
    color: var(--ink);
    border-top-color: var(--acc);
}

.card__title {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.06;
    margin: 0;
}

.card__excerpt {
    font-size: 16px;
    line-height: 1.6;
    color: var(--dim);
    margin: 0;
}

.card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 9;
    background: var(--acc-deep);
    border: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .2em;
    color: var(--dim);
}

.empty-state {
    border: 1px solid var(--line);
    padding: 44px 26px;
    text-align: center;
    color: var(--dim);
}

.empty-state h2 {
    font-size: 30px;
    color: var(--ink);
    margin-bottom: 10px;
}

/* Pagination */
.pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex-wrap: wrap;
    margin-top: 52px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 12px;
}

.pager > * {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    border: 1px solid var(--line);
    color: var(--ink);
}

.pager span[aria-disabled="true"] {
    color: var(--dim);
    opacity: .55;
}

.pager .is-current {
    background: var(--acc-solid);
    border-color: var(--acc-solid);
    color: #fff;
}

.pager a:hover {
    border-color: var(--acc);
    color: var(--acc);
}

/* ==========================================================================
   Blog post — 3b Terminal reading view
   ========================================================================== */

.code-block {
    max-width: 100%;
}

.ask-bar {
    position: sticky;
    top: var(--nav-h, 56px);
    z-index: 55;
    background: var(--pg2);
    border-bottom: 1px solid var(--line);
}

.ask-bar__inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 12px var(--gutter-tight);
}

.ask-bar form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ask-bar__prompt {
    font-family: var(--font-mono);
    color: var(--acc);
    font-size: 14px;
    flex: none;
}

.ask-bar input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: 0;
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 14px;
    padding: 8px 0;
}

.ask-bar input:focus {
    outline: none;
}

.ask-bar__log {
    padding-left: 22px;
}

.ask-bar__q {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--acc);
    margin-top: 8px;
}

.ask-bar__a {
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.8;
    color: var(--dim);
    margin: 8px 0 4px;
    max-width: 66rem;
}

.ask-bar__hits {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin: 8px 0 4px;
}

.ask-bar__hits a {
    display: grid;
    grid-template-columns: 96px 1fr 62px;
    gap: 14px;
    align-items: center;
    padding: 9px 12px;
    background: var(--acc-tint);
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 12px;
}

.ask-bar__hits a:hover {
    color: var(--acc);
}

.ask-bar__chips {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    padding: 10px 0 2px 22px;
}

.ask-bar__chips .chip {
    font-size: 10.5px;
    padding: 6px 9px;
}

/* Collapse control. The bar is pinned, so on a phone it has to be dismissable —
   collapsed it is one row instead of a third of the viewport. Desktop has the
   room, so the control is hidden there and the class is inert. */
.ask-bar__toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: none;
    margin-right: -10px;
    border: 0;
    background: transparent;
    color: var(--acc);
    font-family: var(--font-mono);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.post > *,
.project-detail > *,
.listing > * {
    min-width: 0;
}

.post {
    max-width: 1080px;
    margin: 0 auto;
    padding: 44px var(--gutter-tight) 110px;
    display: grid;
    grid-template-columns: 172px minmax(0, 1fr);
    gap: 44px;
    align-items: start;
}

.post__gutter {
    position: sticky;
    top: calc(var(--nav-h, 56px) + var(--askbar-h, 96px) + 16px);
    font-family: var(--font-mono);
    font-size: 11px;
    line-height: 1.9;
    color: var(--dim);
}

/* The gutter is a <details> so it can collapse below the design width. */
.post__gutter > summary {
    display: none;
    list-style: none;
}

.post__gutter > summary::-webkit-details-marker {
    display: none;
}

.post__gutter-label {
    letter-spacing: .16em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--line);
    padding-bottom: 9px;
    margin-bottom: 12px;
}

.post__toc-label {
    margin-top: 20px;
}

.post__meta-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 3px 0;
}

.post__meta-row span:last-child,
.post__meta-row a {
    color: var(--ink);
    text-align: right;
}

.post__meta-row a {
    color: var(--acc);
}

.post__toc a {
    display: block;
    padding: 5px 0;
    font-size: 11px;
    line-height: 1.5;
    color: var(--dim);
}

.post__toc a:hover,
.post__toc a.is-active {
    color: var(--acc);
}

/* The article fills its grid column; the *text* is what holds the reading
   measure. Figures, code, tables and diagrams break out to the full column so
   the right-hand space carries content instead of sitting empty. */
.post__article,
.project-detail__body {
    max-width: none;
}

.post__kicker,
.post__article > h1,
.project-detail__body > h1,
.post__lede,
.post__tags,
.post__series,
.next-writing,
.project-links,
.prose > p,
.prose > ul,
.prose > ol,
.prose > dl,
.prose > h2,
.prose > h3,
.prose > h4,
.prose > blockquote,
.prose > hr {
    max-width: var(--measure-article);
}

/* Markdown wraps a standalone image in its own paragraph. */
.prose > p:has(> img:only-child) {
    max-width: none;
}

.prose > figure,
.prose > pre,
.prose > .code-block,
.prose > table,
.prose > .mermaid,
.post__hero {
    max-width: none;
}

.post__kicker {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--acc);
    margin-bottom: 16px;
}

.post__article h1 {
    font-size: clamp(38px, 4.4vw, 60px);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -.01em;
    margin: 0 0 20px;
}

.post__lede {
    font-family: var(--font-body);
    font-size: 20px;
    line-height: 1.6;
    color: var(--dim);
    margin: 0 0 34px;
}

.post__hero {
    margin: 0 0 34px;
    padding: 11px;
}

.post__tags {
    margin: 34px 0 0;
}

.post__series {
    margin-top: 40px;
    border: 1px solid var(--line);
    padding: 18px 20px;
}

.post__series-label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--dim);
    margin-bottom: 12px;
}

.post__series-part {
    display: grid;
    grid-template-columns: 26px 1fr;
    gap: 10px;
    align-items: baseline;
    padding: 10px 0;
    border-top: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ink);
}

.post__series-part span:last-child {
    font-family: var(--font-body);
    font-size: 16px;
}

.post__series-part.is-current {
    color: var(--acc);
}

.next-writing {
    margin-top: 52px;
    border-top: 1px solid var(--line);
    padding-top: 22px;
}

.next-writing__label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--dim);
    margin-bottom: 14px;
}

.next-writing a {
    display: grid;
    grid-template-columns: 96px 1fr 58px;
    gap: 14px;
    align-items: baseline;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 13px;
}

.next-writing a:hover {
    color: var(--acc);
}

.next-writing__date { color: var(--dim); }
.next-writing__title { font-family: var(--font-body); font-size: 16px; }
.next-writing__read { color: var(--dim); text-align: right; }

/* The share bar, restyled as a mono gutter strip. */
.share-strip {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
    display: flex;
    flex-direction: column;
    background: var(--pg);
    border: 1px solid var(--line);
    border-left: 0;
}

.share-strip__label {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--dim);
    text-align: center;
    padding: 8px 4px 4px;
}

.share-strip button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 0;
    background: transparent;
    color: var(--dim);
    cursor: pointer;
}

.share-strip button:hover {
    color: var(--acc);
    background: var(--acc-tint);
}

.share-strip svg {
    width: 15px;
    height: 15px;
}

@media (max-width: 1339px) {
    .share-strip {
        position: static;
        transform: none;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        border-left: 1px solid var(--line);
        margin-top: 44px;
    }

    .share-strip__label {
        padding: 0 14px;
    }
}

/* ==========================================================================
   Projects
   ========================================================================== */

.project-grid {
    max-width: var(--max-wide);
    margin: 0 auto;
    padding: 44px var(--gutter) 90px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 34px;
}

.project-grid .empty-state {
    grid-column: 1 / -1;
}

.project-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 24px;
    color: var(--ink);
}

.project-card:hover {
    color: var(--ink);
    border-color: var(--acc);
}

.project-card__title {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.05;
    margin: 0;
}

.project-card__blurb {
    font-size: 16px;
    line-height: 1.6;
    color: var(--dim);
    margin: 0;
    flex: 1;
}

.project-card__stack {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .08em;
    color: var(--dim);
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.project-detail {
    max-width: 1080px;
    margin: 0 auto;
    padding: 44px var(--gutter-tight) 110px;
    display: grid;
    grid-template-columns: 172px minmax(0, 1fr);
    gap: 44px;
    align-items: start;
}

.project-detail h1 {
    font-size: clamp(38px, 4.4vw, 60px);
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -.01em;
    margin: 0 0 20px;
}

.project-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 28px 0 8px;
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact {
    max-width: var(--max);
    margin: 0 auto;
    padding: 44px var(--gutter) 100px;
    display: grid;
    grid-template-columns: 1.3fr .8fr;
    gap: 52px;
    align-items: start;
}

.contact__panel {
    padding: 30px;
}

.contact__field {
    margin-bottom: 22px;
}

.contact__aside p {
    font-size: 17px;
    line-height: 1.65;
    color: var(--dim);
}

.form-note {
    font-family: var(--font-mono);
    font-size: 11px;
    line-height: 1.7;
    color: var(--dim);
    margin-top: 16px;
}

.alert {
    border: 1px solid var(--line);
    border-left: 2px solid var(--acc);
    background: var(--acc-tint);
    padding: 14px 18px;
    font-size: 16px;
    margin-bottom: 26px;
}

.alert--error {
    border-left-color: #d97b7b;
}

/* ==========================================================================
   Error page
   ========================================================================== */

.error-page {
    max-width: var(--max);
    margin: 0 auto;
    padding: 120px var(--gutter);
    text-align: center;
}

.error-page__code {
    font-family: var(--font-heading);
    font-size: clamp(80px, 14vw, 180px);
    font-weight: 600;
    line-height: .9;
    color: var(--acc);
    margin: 0 0 18px;
}

.error-page__title {
    font-size: 34px;
    font-weight: 600;
    margin: 0 0 14px;
}

.error-page__message {
    font-size: 18px;
    color: var(--dim);
    max-width: 34rem;
    margin: 0 auto 34px;
}

.error-page__links {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1199px) {
    /* Hero collapses to one column; the spec plate drops full width. */
    .hero__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 44px;
    }

    .latest {
        gap: 34px;
    }

    /* The rail becomes a horizontal filter bar above the grid. */
    .listing {
        grid-template-columns: minmax(0, 1fr);
        gap: 34px;
    }

    .rail {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 26px 34px;
        border-bottom: 1px solid var(--line);
        padding-bottom: 28px;
    }

    .rail__search,
    .rail__tags {
        grid-column: 1 / -1;
    }

    /* The meta gutter moves above the article as a collapsible block. */
    .post,
    .project-detail {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .post__gutter {
        position: static;
        border: 1px solid var(--line);
        padding: 16px 18px;
    }

    .post__gutter > summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        font-family: var(--font-mono);
        font-size: 10px;
        letter-spacing: .18em;
        text-transform: uppercase;
        color: var(--dim);
        cursor: pointer;
        min-height: 44px;
    }

    .post__gutter > summary::after {
        content: "+";
        color: var(--acc);
        font-size: 14px;
    }

    .post__gutter[open] > summary::after {
        content: "–";
    }

    .post__gutter[open] > summary {
        border-bottom: 1px solid var(--line);
        margin-bottom: 14px;
    }

    .post__toc {
        columns: 2;
        column-gap: 24px;
    }

    .post__toc a {
        padding: 10px 0;
    }
}

@media (max-width: 991px) {
    .work-grid,
    .card-grid,
    .project-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .latest,
    .featured {
        grid-template-columns: minmax(0, 1fr);
    }

    .contact {
        grid-template-columns: minmax(0, 1fr);
        gap: 34px;
    }

    .offclock {
        grid-template-columns: 260px minmax(0, 1fr);
        gap: 30px;
    }

    .page-head__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    /* Stacked under the headline it no longer shares the row, so it takes the
       article measure rather than the narrow beside-the-title one. */
    .page-head__note {
        margin-bottom: 0;
        max-width: var(--measure-article);
    }
}

@media (max-width: 991px) {
    /* The ask bar stays pinned but can be collapsed to just its input row. */
    .ask-bar__toggle {
        display: inline-flex;
    }

    .ask-bar .console-caret {
        display: none;
    }

    .ask-bar.is-collapsed .ask-bar__panel {
        display: none;
    }

    /* A pinned bar must never outgrow the screen it is pinned to: a long answer
       scrolls inside the panel instead of burying the article. */
    .ask-bar__panel {
        max-height: 40vh;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .ask-bar__chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .ask-bar__chips::-webkit-scrollbar {
        display: none;
    }

    .ask-bar__chips .chip {
        white-space: nowrap;
        flex: none;
    }
}

@media (max-width: 767px) {
    .rail {
        grid-template-columns: minmax(0, 1fr);
    }

    .post__toc {
        columns: 1;
    }
}

@media (max-width: 575px) {
    .hero {
        padding: 56px var(--gutter) 48px;
    }

    .hero h1 {
        font-size: clamp(40px, 11vw, 56px);
    }

    .hero__lede {
        font-size: 18px;
    }

    .hero__actions .btn {
        width: 100%;
    }

    .spec-plate {
        padding: 20px;
    }

    .spec-plate__value {
        font-size: 28px;
    }

    .offclock {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
    }

    /* Stacked on a phone the photo leads at full width — it is the point of
       the section, not a decoration beside it. */
    .offclock__figure {
        max-width: 420px;
    }

    .featured {
        padding: 20px;
    }

    .post {
        padding: 28px var(--gutter-tight) 80px;
    }

    .post__lede {
        font-size: 18px;
    }

    .next-writing a,
    .ask-bar__hits a,
    .console-hit {
        grid-template-columns: minmax(0, 1fr);
        gap: 4px;
    }

    .next-writing__read,
    .console-hit__read {
        text-align: left;
    }

    .contact__panel {
        padding: 20px;
    }
}
