/*
Theme Name: WhiteOpen Site
Version: 1.0.1
Description: A monochrome editorial Typecho theme with local typography, responsive article layouts, refined motion, and optional interface sound.
Author: WhiteOpen
License: MIT
License URI: https://opensource.org/licenses/MIT
*/

/* Fonts */
@font-face {
    font-family: "LINE Seed Sans";
    src: url("assets/fonts/line-seed-regular.woff2") format("woff2");
    font-display: swap;
    font-style: normal;
    font-weight: 400 599;
}

@font-face {
    font-family: "LINE Seed Sans";
    src: url("assets/fonts/line-seed-bold.woff2") format("woff2");
    font-display: swap;
    font-style: normal;
    font-weight: 600 900;
}

@font-face {
    font-family: "Alibaba PuHuiTi 3.0";
    src: url("assets/fonts/alibaba-puhuiti-regular-gb2312.woff2") format("woff2");
    font-display: swap;
    font-style: normal;
    font-weight: 400 599;
}

@font-face {
    font-family: "Alibaba PuHuiTi 3.0";
    src: url("assets/fonts/alibaba-puhuiti-semibold-gb2312.woff2") format("woff2");
    font-display: swap;
    font-style: normal;
    font-weight: 600 900;
}

@font-face {
    font-family: "Roboto Mono";
    src: url("assets/fonts/roboto-mono-regular.woff2") format("woff2");
    font-display: swap;
    font-style: normal;
    font-weight: 400;
}

@font-face {
    font-family: "Roboto Mono";
    src: url("assets/fonts/roboto-mono-medium.woff2") format("woff2");
    font-display: swap;
    font-style: normal;
    font-weight: 500;
}

/* Design and motion tokens */
:root {
    color-scheme: light;
    --canvas: #fdfdfd;
    --surface: #ffffff;
    --surface-soft: #f7f7f7;
    --surface-pressed: #f1f1f1;
    --text: #171717;
    --text-secondary: #707070;
    --text-muted: #989898;
    --line: #dedede;
    --line-soft: #ededed;
    --focus: rgba(0, 0, 0, 0.18);
    --header-bg: rgba(253, 253, 253, 0.94);
    --shadow-card:
        0 0 0 1px rgba(0, 0, 0, 0.07),
        0 1px 2px rgba(0, 0, 0, 0.03),
        0 8px 28px rgba(0, 0, 0, 0.035);
    --shadow-card-hover:
        0 0 0 1px rgba(0, 0, 0, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.04),
        0 16px 42px rgba(0, 0, 0, 0.07);
    --shadow-float:
        0 0 0 1px rgba(0, 0, 0, 0.08),
        0 12px 38px rgba(0, 0, 0, 0.12);
    --font-sans: "LINE Seed Sans", "Alibaba PuHuiTi 3.0", "Microsoft YaHei", sans-serif;
    --font-mono: "Roboto Mono", "SFMono-Regular", Consolas, monospace;
    --content-width: 1050px;
    --reading-width: 720px;
    --radius-card: 20px;
    --radius-inner: 14px;
    --duration-stagger: 40ms;
    --duration-micro: 80ms;
    --duration-quick: 150ms;
    --duration-fast: 250ms;
    --duration-medium: 350ms;
    --duration-slow: 400ms;
    --duration-very-slow: 500ms;
    --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-smooth-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in-out: ease-in-out;
    --ease-bob: cubic-bezier(0.34, 1.35, 0.64, 1);
    --resize-dur: 300ms;
    --resize-ease: var(--ease-smooth-out);
    --tabs-dur: var(--duration-fast);
    --tabs-ease: var(--ease-smooth-out);
    --text-swap-dur: var(--duration-quick);
    --text-swap-distance: 4px;
    --text-swap-blur: 2px;
    --digit-dur: var(--duration-very-slow);
    --digit-distance: 8px;
    --digit-stagger: 70ms;
    --digit-blur: 2px;
    --check-opacity-dur: var(--duration-very-slow);
    --check-rotate-dur: var(--duration-very-slow);
    --check-bob-dur: var(--duration-very-slow);
    --check-blur-dur: var(--duration-very-slow);
    --check-path-dur: var(--duration-very-slow);
    --check-path-delay: var(--duration-micro);
    --check-rotate-from: 80deg;
    --check-y-amount: 40px;
    --check-blur-from: 10px;
    --acc-dur: var(--duration-fast);
}

[data-theme="dark"] {
    color-scheme: dark;
    --canvas: #101010;
    --surface: #161616;
    --surface-soft: #1b1b1b;
    --surface-pressed: #242424;
    --text: #f2f2f2;
    --text-secondary: #b5b5b5;
    --text-muted: #7d7d7d;
    --line: #303030;
    --line-soft: #242424;
    --focus: rgba(255, 255, 255, 0.22);
    --header-bg: rgba(16, 16, 16, 0.94);
    --shadow-card:
        0 0 0 1px rgba(255, 255, 255, 0.09),
        0 10px 30px rgba(0, 0, 0, 0.18);
    --shadow-card-hover:
        0 0 0 1px rgba(255, 255, 255, 0.14),
        0 18px 46px rgba(0, 0, 0, 0.3);
    --shadow-float:
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 14px 44px rgba(0, 0, 0, 0.38);
}

/* Base */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 92px;
    background: var(--canvas);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    min-width: 320px;
    margin: 0;
    overflow-x: hidden;
    background: var(--canvas);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    letter-spacing: 0;
    transition:
        background-color var(--duration-fast) var(--ease-standard),
        color var(--duration-fast) var(--ease-standard);
}

body,
button,
input,
textarea {
    font-family: var(--font-sans);
}

button,
input,
textarea {
    font: inherit;
    letter-spacing: 0;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    border: 0;
}

a {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

svg {
    display: block;
}

h1,
h2,
h3,
h4,
p,
blockquote,
figure {
    margin-top: 0;
}

h1,
h2,
h3,
h4 {
    letter-spacing: 0;
    text-wrap: balance;
}

p,
li,
figcaption {
    text-wrap: pretty;
}

time,
.post-card__meta,
.article-meta,
.t-digit-group {
    font-variant-numeric: tabular-nums;
}

:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 3px;
}

::selection {
    background: var(--text);
    color: var(--canvas);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    top: 10px;
    left: 12px;
    z-index: 1000;
    padding: 9px 13px;
    border-radius: 8px;
    background: var(--text);
    color: var(--canvas);
    text-decoration: none;
    transform: translateY(-160%);
    transition: transform var(--duration-quick) var(--ease-smooth-out);
}

.skip-link:focus {
    transform: translateY(0);
}

.theme-image--dark {
    display: none;
}

[data-theme="dark"] .theme-image--light {
    display: none;
}

[data-theme="dark"] .theme-image--dark {
    display: block;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: 68px;
    background: var(--header-bg);
    border-bottom: 1px solid var(--line-soft);
    backdrop-filter: blur(16px) saturate(150%);
    transition:
        background-color var(--duration-fast) var(--ease-standard),
        border-color var(--duration-fast) var(--ease-standard),
        box-shadow var(--duration-fast) var(--ease-standard);
}

.site-header.is-scrolled {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.035);
}

[data-theme="dark"] .site-header.is-scrolled {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.site-header__inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 28px;
    width: min(100%, 1280px);
    min-height: 68px;
    margin: 0 auto;
    padding: 0 24px;
}

.brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 12px;
    min-height: 40px;
    color: var(--text);
    font-size: 18px;
    font-weight: 650;
    line-height: 1;
    text-decoration: none;
    transition:
        color var(--duration-quick) var(--ease-standard),
        transform var(--duration-quick) var(--ease-standard);
}

.brand:hover {
    color: var(--text-secondary);
}

.brand:active {
    transform: scale(0.96);
}

.brand-logo {
    position: relative;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
}

.brand-logo img {
    width: 28px;
    height: 28px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    min-width: 0;
}

.nav-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition:
        color var(--duration-quick) var(--ease-standard),
        background-color var(--duration-quick) var(--ease-standard),
        transform var(--duration-quick) var(--ease-standard);
}

.nav-pill:hover {
    color: var(--text);
    background: var(--surface-soft);
}

.nav-pill.is-active {
    color: var(--text);
    background: var(--surface-soft);
}

.nav-pill:active {
    transform: scale(0.96);
}

.nav-pill--placeholder,
.nav-pill--placeholder:hover,
.nav-pill--placeholder:active {
    background: transparent;
    color: var(--text-muted);
    cursor: default;
    transform: none;
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    margin-left: auto;
}

.tool-button,
.sound-toggle,
.theme-mode-button,
.header-search__trigger,
.header-search__clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 0;
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--text-secondary);
    cursor: pointer;
    text-decoration: none;
    transition:
        color var(--duration-quick) var(--ease-standard),
        background-color var(--duration-quick) var(--ease-standard),
        scale var(--duration-quick) var(--ease-standard),
        opacity var(--duration-quick) var(--ease-standard);
}

.tool-button:hover,
.sound-toggle:hover,
.theme-mode-button:hover,
.header-search__trigger:hover,
.header-search__clear:hover {
    color: var(--text);
    background: var(--surface-pressed);
}

.tool-button:active,
.sound-toggle:active,
.theme-mode-button:active,
.header-search__trigger:active,
.header-search__clear:active {
    scale: 0.96;
}

.tool-button svg,
.sound-toggle svg,
.theme-mode-button svg,
.header-search svg,
.mobile-menu-button svg,
.article-toc svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tool-button--github svg {
    fill: currentColor;
    stroke: none;
}

.header-search {
    position: relative;
    display: flex;
    align-items: center;
    width: 96px;
    height: 40px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--surface-soft);
    box-shadow: inset 0 0 0 1px transparent;
    transition:
        width var(--resize-dur) var(--resize-ease),
        background-color var(--duration-quick) var(--ease-standard),
        box-shadow var(--duration-quick) var(--ease-standard);
}

.header-search[data-expanded="true"] {
    width: 232px;
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--line);
}

.header-search__trigger {
    position: relative;
    z-index: 1;
    width: 100%;
    flex: 0 0 96px;
    gap: 8px;
    padding: 0 14px;
}

.header-search__prompt {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    opacity: 1;
    filter: blur(0);
    transform: translateX(0);
    transition:
        opacity var(--duration-quick) var(--ease-standard),
        filter var(--duration-quick) var(--ease-standard),
        transform var(--duration-quick) var(--ease-standard);
}

.header-search[data-expanded="true"] .header-search__trigger {
    width: 48px;
    flex-basis: 48px;
    padding: 0 0 0 4px;
}

.header-search[data-expanded="true"] .header-search__prompt {
    position: absolute;
    opacity: 0;
    filter: blur(3px);
    transform: translateX(-4px);
    pointer-events: none;
}

.header-search input {
    flex: 1 1 auto;
    width: 0;
    min-width: 0;
    height: 40px;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 14px;
    opacity: 0;
    transition: opacity var(--duration-quick) var(--ease-standard);
}

.header-search input::placeholder {
    color: var(--text-muted);
}

.header-search input::-webkit-search-cancel-button {
    display: none;
}

.header-search[data-expanded="true"] input {
    width: auto;
    padding: 0 4px;
    opacity: 1;
}

.header-search[data-expanded="true"] .header-search__trigger,
.header-search[data-expanded="true"] .header-search__trigger:hover,
.header-search[data-expanded="true"] .header-search__clear,
.header-search[data-expanded="true"] .header-search__clear:hover {
    border-radius: 0;
    background: transparent;
}

.header-search__clear {
    flex: 0 0 40px;
    opacity: 0;
    pointer-events: none;
}

.header-search.has-value .header-search__clear {
    opacity: 1;
    pointer-events: auto;
}

.sound-toggle {
    width: 40px;
    min-width: 40px;
}

.sound-icons {
    position: relative;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
}

.sound-icon {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
    transition:
        opacity var(--duration-fast) cubic-bezier(0.2, 0, 0, 1),
        filter var(--duration-fast) cubic-bezier(0.2, 0, 0, 1),
        transform var(--duration-fast) cubic-bezier(0.2, 0, 0, 1);
}

.sound-icon--on {
    opacity: 0;
    filter: blur(4px);
    transform: scale(0.25);
}

.sound-toggle[aria-pressed="true"] {
    color: var(--text);
}

.sound-toggle[aria-pressed="true"] .sound-icon--off {
    opacity: 0;
    filter: blur(4px);
    transform: scale(0.25);
}

.sound-toggle[aria-pressed="true"] .sound-icon--on {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
}

.theme-mode-button {
    width: 40px;
    min-width: 40px;
}

.tool-tip {
    position: relative;
}

.tool-tip::after {
    content: attr(data-tooltip);
    position: absolute;
    top: calc(100% + 9px);
    left: 50%;
    z-index: 10;
    padding: 7px 9px;
    border-radius: 6px;
    background: var(--text);
    color: var(--canvas);
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    opacity: 0;
    filter: blur(2px);
    transform: translate(-50%, -2px) scale(0.98);
    transform-origin: 50% 0;
    pointer-events: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transition:
        opacity 50ms ease-out,
        filter 50ms ease-out,
        transform 50ms ease-out;
}

.tool-tip:hover::after,
.tool-tip:focus-visible::after {
    opacity: 1;
    filter: blur(0);
    transform: translate(-50%, 0) scale(1);
    transition-duration: var(--duration-quick);
    transition-delay: 80ms;
}

.theme-mode-icons {
    position: relative;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
}

.theme-mode-icon {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    opacity: 0;
    filter: blur(4px);
    transform: scale(0.25);
}

.theme-ready .theme-mode-icon {
    transition:
        opacity var(--duration-fast) cubic-bezier(0.2, 0, 0, 1),
        filter var(--duration-fast) cubic-bezier(0.2, 0, 0, 1),
        transform var(--duration-fast) cubic-bezier(0.2, 0, 0, 1);
}

[data-theme-mode="system"] .theme-mode-icon[data-mode="system"],
[data-theme-mode="light"] .theme-mode-icon[data-mode="light"],
[data-theme-mode="dark"] .theme-mode-icon[data-mode="dark"] {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
}

.mobile-menu-button,
.mobile-nav {
    display: none;
}

.icon-swap {
    position: relative;
}

.icon-swap__item {
    position: absolute;
    display: grid;
    place-items: center;
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
}

.theme-ready .icon-swap__item {
    transition:
        opacity var(--duration-fast) cubic-bezier(0.2, 0, 0, 1),
        filter var(--duration-fast) cubic-bezier(0.2, 0, 0, 1),
        transform var(--duration-fast) cubic-bezier(0.2, 0, 0, 1);
}

.icon-swap__item--close {
    opacity: 0;
    filter: blur(4px);
    transform: scale(0.25);
}

.mobile-menu-button[aria-expanded="true"] .icon-swap__item--menu {
    opacity: 0;
    filter: blur(4px);
    transform: scale(0.25);
}

.mobile-menu-button[aria-expanded="true"] .icon-swap__item--close {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
}

/* Main and homepage */
.site-main {
    width: min(calc(100% - 48px), var(--content-width));
    min-height: calc(100vh - 180px);
    margin: 0 auto;
}

.hero {
    display: block;
    padding: 172px 0 126px;
}

.hero__copy {
    max-width: 820px;
}

.eyebrow {
    margin-bottom: 22px;
    color: var(--text);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.2;
    text-transform: uppercase;
}

.hero h1,
.archive-head h1,
.empty-state h1 {
    margin-bottom: 28px;
    color: var(--text);
    font-size: 64px;
    font-weight: 500;
    line-height: 1.12;
}

.hero__copy > p:last-child,
.archive-head p,
.empty-state p {
    max-width: 780px;
    margin-bottom: 0;
    color: var(--text-secondary);
    font-size: 20px;
    line-height: 1.72;
}

.hero__panel {
    display: none;
}

.archive-head {
    padding: 104px 0 62px;
}

.archive-head h1 {
    font-size: 48px;
}

.post-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    scroll-margin-top: 92px;
}

.post-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 292px;
    flex-direction: column;
    padding: 34px;
    overflow: hidden;
    border-radius: var(--radius-card);
    background: var(--surface);
    box-shadow: var(--shadow-card);
    transition:
        transform var(--duration-fast) var(--ease-smooth-out),
        box-shadow var(--duration-fast) var(--ease-standard),
        background-color var(--duration-fast) var(--ease-standard);
}

.post-card--featured {
    grid-column: 1 / -1;
    min-height: 348px;
    padding: 40px;
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover);
}

.post-card:active {
    transform: translateY(-1px) scale(0.99);
}

.post-card__link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}

.post-card__meta,
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-bottom: 46px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.4;
}

.post-card h2 {
    max-width: 24ch;
    margin-bottom: 14px;
    color: var(--text);
    font-size: 28px;
    font-weight: 500;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.post-card--featured h2 {
    max-width: 22ch;
    font-size: 44px;
    line-height: 1.2;
}

.post-card p {
    display: -webkit-box;
    max-width: 64ch;
    margin-bottom: 28px;
    overflow: hidden;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.75;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.post-card__footer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    margin-left: auto;
    color: var(--text-secondary);
    font-size: 14px;
}

.post-card__footer svg {
    fill: currentColor;
    transition: transform var(--duration-fast) var(--ease-smooth-out);
}

.post-card:hover .post-card__footer svg {
    transform: translateX(4px);
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 48px 0 20px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    text-decoration: none;
}

.pagination a:hover,
.pagination .is-current {
    background: var(--surface-pressed);
    color: var(--text);
}

.empty-state {
    grid-column: 1 / -1;
    padding: 72px 0;
}

.empty-state h1,
.empty-state h2 {
    margin-bottom: 16px;
    font-size: 42px;
    font-weight: 500;
}

.empty-state--page {
    min-height: 62vh;
    padding-top: 140px;
}

/* Interaction lab */
.interaction-lab {
    display: block;
    padding: 0 0 96px;
}

.lab-copy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.lab-copy h2 {
    margin: 0;
    font-size: 34px;
    font-weight: 500;
    line-height: 1.25;
}

.lab-card p {
    color: var(--text-secondary);
}

.lab-board {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.lab-card {
    grid-column: span 2;
    min-width: 0;
    padding: 20px;
    border-radius: var(--radius-card);
    background: var(--surface);
    box-shadow: var(--shadow-card);
}

.lab-card:nth-child(4),
.lab-card:nth-child(5) {
    grid-column: span 3;
}

.lab-card--wide {
    grid-column: 1 / -1;
}

.lab-card h3 {
    margin-bottom: 16px;
    font-size: 15px;
    font-weight: 600;
}

.lab-card__stage {
    display: grid;
    min-height: 104px;
    place-items: center;
    margin-bottom: 16px;
    border-radius: var(--radius-inner);
    background: var(--surface-soft);
}

.lab-card > .lab-card__stage:last-child {
    margin-bottom: 0;
}

.lab-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lab-button,
.comment-form button,
.search-form button,
.empty-state button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 8px;
    background: var(--text);
    color: var(--canvas);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition:
        transform var(--duration-quick) var(--ease-standard),
        opacity var(--duration-quick) var(--ease-standard),
        background-color var(--duration-quick) var(--ease-standard);
}

.lab-button:hover,
.comment-form button:hover,
.search-form button:hover {
    opacity: 0.84;
}

.lab-button:active,
.comment-form button:active,
.search-form button:active,
.empty-state button:active {
    transform: scale(0.96);
}

.lab-button--ghost {
    background: var(--surface-pressed);
    color: var(--text);
}

.t-tabs {
    position: relative;
    display: flex;
    padding: 3px;
    border-radius: 10px;
    background: var(--surface-pressed);
}

.t-tab {
    position: relative;
    z-index: 1;
    min-width: 58px;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition:
        color var(--tabs-dur) var(--tabs-ease),
        transform var(--duration-quick) var(--ease-standard);
}

.t-tab[aria-selected="true"] {
    color: var(--text);
}

.t-tab:active {
    transform: scale(0.96);
}

.t-tabs-pill {
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: 3px;
    width: 0;
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition:
        transform var(--tabs-dur) var(--tabs-ease),
        width var(--tabs-dur) var(--tabs-ease);
}

.t-text-swap {
    font-size: 26px;
    font-weight: 500;
    transition:
        transform var(--text-swap-dur) var(--ease-in-out),
        filter var(--text-swap-dur) var(--ease-in-out),
        opacity var(--text-swap-dur) var(--ease-in-out);
}

.t-text-swap.is-exit {
    opacity: 0;
    filter: blur(var(--text-swap-blur));
    transform: translateY(calc(var(--text-swap-distance) * -1));
}

.t-text-swap.is-enter-start {
    opacity: 0;
    filter: blur(var(--text-swap-blur));
    transform: translateY(var(--text-swap-distance));
}

.t-digit-group {
    display: inline-flex;
    min-width: 3.2ch;
    justify-content: center;
    font-family: var(--font-sans);
    font-size: 44px;
    font-weight: 500;
    line-height: 1;
}

.t-digit {
    display: inline-block;
}

.t-digit-group.is-animating .t-digit {
    animation: t-digit-pop-in var(--digit-dur) var(--ease-bob) both;
}

.t-digit-group.is-animating .t-digit[data-stagger="1"] {
    animation-delay: var(--digit-stagger);
}

.t-digit-group.is-animating .t-digit[data-stagger="2"] {
    animation-delay: calc(var(--digit-stagger) * 2);
}

@keyframes t-digit-pop-in {
    from {
        opacity: 0;
        filter: blur(var(--digit-blur));
        transform: translateY(var(--digit-distance));
    }
}

.t-success-check {
    display: inline-block;
    opacity: 0;
    transform-origin: center;
    will-change: transform, opacity, filter;
}

.t-success-check svg {
    display: block;
    overflow: visible;
}

.t-success-check svg path {
    stroke-dasharray: 20;
    stroke-dashoffset: 20;
}

.t-success-check[data-state="in"] {
    animation:
        t-check-fade var(--check-opacity-dur) var(--ease-smooth-out) forwards,
        t-check-rotate var(--check-rotate-dur) var(--ease-smooth-out) forwards,
        t-check-blur var(--check-blur-dur) var(--ease-smooth-out) forwards,
        t-check-bob var(--check-bob-dur) var(--ease-bob) forwards;
}

.t-success-check[data-state="in"] svg path {
    animation: t-check-draw var(--check-path-dur) var(--ease-smooth-out) var(--check-path-delay) forwards;
}

@keyframes t-check-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes t-check-rotate {
    from { transform: rotate(var(--check-rotate-from)); }
    to { transform: rotate(0); }
}

@keyframes t-check-blur {
    from { filter: blur(var(--check-blur-from)); }
    to { filter: blur(0); }
}

@keyframes t-check-bob {
    from { translate: 0 var(--check-y-amount); }
    to { translate: 0 0; }
}

@keyframes t-check-draw {
    to { stroke-dashoffset: 0; }
}

.t-input-wrap {
    width: min(100%, 230px);
}

.t-input {
    display: block;
    border-radius: 9px;
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--line);
    transition: box-shadow var(--duration-quick) var(--ease-standard);
}

.t-input input {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: 14px;
}

.t-input.is-error {
    box-shadow: inset 0 0 0 1px var(--text);
}

.t-input.is-shaking {
    animation: t-input-shake 320ms linear;
}

.t-error-msg {
    margin: 7px 0 0;
    color: var(--text-secondary);
    font-size: 12px;
    opacity: 0;
    transform: translateY(-3px);
    transition:
        opacity var(--duration-quick) var(--ease-standard),
        transform var(--duration-quick) var(--ease-smooth-out);
}

.t-input-wrap.is-error .t-error-msg {
    opacity: 1;
    transform: translateY(0);
}

@keyframes t-input-shake {
    0%, 100% { transform: translateX(0); }
    18% { transform: translateX(-8px); }
    38% { transform: translateX(6px); }
    58% { transform: translateX(-4px); }
    78% { transform: translateX(2px); }
}

.t-acc {
    overflow: hidden;
    border-radius: var(--radius-inner);
    background: var(--surface-soft);
}

.t-acc-head {
    display: flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    background: transparent;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.t-acc-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows var(--acc-dur) var(--ease-smooth-out);
}

.t-acc[data-open="true"] .t-acc-panel {
    grid-template-rows: 1fr;
}

.t-acc-panel-inner {
    min-height: 0;
    padding: 0 14px;
    overflow: hidden;
    opacity: 0;
    filter: blur(2px);
    transition:
        opacity var(--acc-dur) var(--ease-smooth-out),
        filter var(--acc-dur) var(--ease-smooth-out),
        padding var(--acc-dur) var(--ease-smooth-out);
}

.t-acc[data-open="true"] .t-acc-panel-inner {
    padding-bottom: 14px;
    opacity: 1;
    filter: blur(0);
}

.t-acc-panel-inner p {
    margin: 0;
}

.t-acc-chevron {
    transition: transform var(--acc-dur) var(--ease-smooth-out);
}

.t-acc-chevron path {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    vector-effect: non-scaling-stroke;
}

.t-acc[data-open="true"] .t-acc-chevron {
    transform: scaleY(-1);
}

/* Article */
.article-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, var(--reading-width));
    gap: 48px;
    width: min(calc(100vw - 48px), 988px);
    margin: 0 auto;
    padding: 76px 0 32px;
}

.article-column {
    grid-column: 2;
    min-width: 0;
}

.article {
    min-width: 0;
}

.article--page {
    width: min(calc(100% - 48px), var(--reading-width));
    margin: 0 auto;
    padding: 92px 0 48px;
}

.article-header {
    padding-bottom: 50px;
    border-bottom: 1px solid var(--line-soft);
}

.article-header .article-meta {
    margin-bottom: 20px;
}

.article-header h1 {
    margin-bottom: 0;
    font-size: 50px;
    font-weight: 500;
    line-height: 1.18;
    overflow-wrap: anywhere;
}

.article-summary {
    margin: 24px 0 0;
    color: var(--text-secondary);
    font-size: 18px;
    line-height: 1.75;
}

.article-body {
    padding-top: 48px;
    color: var(--text);
    font-size: 17px;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

.article-body > * {
    margin-bottom: 1.55em;
}

.article-body h2,
.article-body h3,
.article-body h4 {
    scroll-margin-top: 96px;
    color: var(--text);
    font-family: var(--font-sans);
    font-weight: 600;
}

.article-body h2 {
    margin-top: 2.7em;
    margin-bottom: 0.85em;
    font-size: 30px;
    line-height: 1.35;
}

.article-body h3 {
    margin-top: 2.2em;
    margin-bottom: 0.75em;
    font-size: 23px;
    line-height: 1.4;
}

.article-body h4 {
    margin-top: 2em;
    font-size: 18px;
}

.article-body a {
    color: var(--text);
    text-decoration-color: rgba(0, 0, 0, 0.34);
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

[data-theme="dark"] .article-body a {
    text-decoration-color: rgba(255, 255, 255, 0.38);
}

.article-body blockquote {
    margin-left: 0;
    padding: 2px 0 2px 22px;
    border-left: 2px solid var(--text);
    color: var(--text-secondary);
}

.article-body blockquote > :last-child {
    margin-bottom: 0;
}

.article-body ul,
.article-body ol {
    padding-left: 1.4em;
}

.article-body li + li {
    margin-top: 0.35em;
}

.article-body hr {
    height: 1px;
    margin: 3em 0;
    border: 0;
    background: var(--line);
}

.article-body figure {
    margin: 2.5em 0;
}

.article-body img {
    width: auto;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    outline: 1px solid rgba(0, 0, 0, 0.1);
    outline-offset: -1px;
}

[data-theme="dark"] .article-body img {
    outline-color: rgba(255, 255, 255, 0.1);
}

.article-body figcaption {
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 13px;
    text-align: center;
}

.article-body table {
    display: block;
    width: 100%;
    margin: 2em 0;
    overflow-x: auto;
    border-collapse: collapse;
    font-size: 14px;
}

.article-body th,
.article-body td {
    min-width: 120px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.article-body th {
    font-weight: 600;
}

.article-body code {
    font-family: var(--font-mono);
    font-size: 0.88em;
}

.article-body :not(pre) > code {
    padding: 0.16em 0.38em;
    border-radius: 5px;
    background: var(--surface-pressed);
}

.article-body pre {
    position: relative;
    margin: 2em 0;
    padding: 22px;
    overflow: auto;
    border-radius: 10px;
    background: var(--surface-soft);
    box-shadow: inset 0 0 0 1px var(--line-soft);
    line-height: 1.75;
    tab-size: 4;
}

.article-body pre code {
    display: block;
    width: max-content;
    min-width: 100%;
    padding-right: 70px;
    background: transparent;
    color: var(--text);
    font-size: 14px;
}

.code-copy {
    position: absolute;
    top: 10px;
    right: 10px;
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    overflow: hidden;
    border-radius: 8px;
    background: var(--surface);
    color: var(--text-secondary);
    cursor: pointer;
    box-shadow: 0 0 0 1px var(--line);
    transition:
        color var(--duration-quick) var(--ease-standard),
        background-color var(--duration-quick) var(--ease-standard),
        transform var(--duration-quick) var(--ease-standard);
}

.code-copy:hover,
.code-copy.is-copied {
    color: var(--text);
    background: var(--surface-pressed);
}

.code-copy:active {
    transform: scale(0.96);
}

.code-copy__icon,
.code-copy__check {
    grid-area: 1 / 1;
    transition:
        opacity var(--duration-quick) var(--ease-standard),
        filter var(--duration-quick) var(--ease-standard),
        transform var(--duration-quick) var(--ease-standard);
}

.code-copy__icon {
    display: grid;
    place-items: center;
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
}

.code-copy svg {
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.code-copy__icon svg {
    width: 18px;
    height: 18px;
}

.code-copy__check {
    --check-y-amount: 14px;
    --check-blur-from: 8px;
    color: var(--text);
}

.code-copy__check svg {
    width: 18px;
    height: 18px;
}

.code-copy.is-copied .code-copy__icon {
    opacity: 0;
    filter: blur(4px);
    transform: scale(0.25);
}

.code-copy.is-copy-error {
    animation: copy-error-shake 320ms var(--ease-standard);
}

@keyframes copy-error-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    50% { transform: translateX(3px); }
    75% { transform: translateX(-1px); }
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 50px;
    padding-top: 24px;
    border-top: 1px solid var(--line-soft);
}

.article-tags a {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 0 11px;
    border-radius: 7px;
    background: var(--surface-soft);
    color: var(--text-secondary);
    font-size: 13px;
    text-decoration: none;
}

.article-near {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 52px;
    padding-top: 32px;
    border-top: 1px solid var(--line-soft);
}

.article-near > div:last-child {
    text-align: right;
}

.article-near span {
    display: block;
    margin-bottom: 6px;
    color: var(--text-muted);
    font-size: 12px;
}

.article-near a {
    color: var(--text);
    font-size: 14px;
    text-decoration: none;
}

.article-toc {
    min-width: 0;
}

.article-toc[hidden] {
    display: none;
}

.article-toc__inner {
    position: sticky;
    top: 98px;
}

.article-toc__toggle {
    display: none;
}

.article-toc__list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.article-toc__link {
    display: grid;
    grid-template-columns: 14px minmax(0, 1fr);
    gap: 9px;
    align-items: start;
    padding: 6px 0;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.45;
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-smooth-out);
}

.article-toc__line {
    width: 7px;
    height: 1px;
    margin-top: 8px;
    background: var(--line);
    transition:
        width var(--duration-fast) var(--ease-smooth-out),
        background-color var(--duration-fast) var(--ease-smooth-out);
}

.article-toc__link:hover,
.article-toc__link.is-active {
    color: var(--text);
}

.article-toc__link.is-active .article-toc__line {
    width: 14px;
    background: var(--text);
}

.article-toc__link[data-level="3"] .article-toc__label {
    padding-left: 8px;
}

/* Comments and forms */
.comments {
    margin-top: 72px;
    padding-top: 42px;
    border-top: 1px solid var(--line-soft);
}

.comments h2,
.respond h3 {
    margin-bottom: 24px;
    font-size: 22px;
    font-weight: 600;
}

.comment-list,
.comment-list ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.comment-list > .comment-body,
.comment-list > li {
    margin-bottom: 14px;
}

.comment-body {
    position: relative;
    min-width: 0;
    padding: 18px;
    border-radius: var(--radius-inner);
    background: var(--surface-soft);
    overflow-wrap: anywhere;
}

.comment-children {
    margin: 14px 0 0 24px;
}

.comment-author {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 9px;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
}

.comment-author .avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    filter: grayscale(1);
    outline: 1px solid rgba(0, 0, 0, 0.1);
}

.comment-author cite {
    min-width: 0;
    overflow-wrap: anywhere;
    font-style: normal;
}

.comment-author a,
.comment-meta a,
.comment-reply a {
    color: inherit;
    text-decoration: none;
}

.comment-meta {
    margin: 8px 0 12px 39px;
    color: var(--text-muted);
    font-size: 11px;
}

.comment-content {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.75;
}

.comment-content > :last-child {
    margin-bottom: 0;
}

.comment-reply {
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 12px;
}

.comment-reply a:hover {
    color: var(--text);
}

.comment-pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin: 24px 0 44px;
}

.comment-pagination a,
.comment-pagination span {
    display: inline-flex;
    min-width: 38px;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    text-decoration: none;
}

.comment-pagination a:hover,
.comment-pagination .current {
    background: var(--surface-pressed);
    color: var(--text);
}

.respond {
    margin-top: 44px;
}

.comment-empty,
.comment-user {
    color: var(--text-secondary);
    font-size: 14px;
}

.comment-form,
.search-form {
    display: grid;
    gap: 16px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.comment-form label,
.search-form label {
    display: grid;
    gap: 7px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
}

.comment-form input,
.comment-form textarea,
.search-form input {
    width: 100%;
    border: 0;
    outline: 0;
    border-radius: 8px;
    background: var(--surface-soft);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 14px;
    box-shadow: inset 0 0 0 1px var(--line);
    transition:
        background-color var(--duration-quick) var(--ease-standard),
        box-shadow var(--duration-quick) var(--ease-standard);
}

.comment-form input,
.search-form input {
    height: 44px;
    padding: 0 12px;
}

.comment-form textarea {
    min-height: 150px;
    padding: 12px;
    resize: vertical;
}

.comment-form input:focus,
.comment-form textarea:focus,
.search-form input:focus {
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--text);
}

.comment-form button,
.search-form button {
    justify-self: start;
}

.respond > #cancel-comment-reply-link {
    display: inline-block;
    margin: -12px 0 20px;
    color: var(--text-secondary);
    font-size: 13px;
}

.respond > #cancel-comment-reply-link:hover {
    color: var(--text);
}

/* Footer */
.site-footer {
    margin-top: 92px;
    border-top: 1px solid var(--line-soft);
}

.site-footer__inner {
    display: flex;
    width: min(calc(100% - 48px), var(--content-width));
    min-height: 116px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 13px;
}

.site-footer__theme-link {
    color: inherit;
    text-decoration-color: transparent;
    text-underline-offset: 3px;
    transition:
        color var(--duration-quick) var(--ease-standard),
        text-decoration-color var(--duration-quick) var(--ease-standard);
}

.site-footer__theme-link:hover {
    color: var(--text-secondary);
    text-decoration-color: currentColor;
}

/* Entry motion */
.reveal {
    opacity: 0;
    animation: reveal-in 620ms var(--ease-smooth-out) forwards;
    animation-delay: var(--reveal-delay, 0ms);
}

@keyframes reveal-in {
    from {
        opacity: 0;
        filter: blur(3px);
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1100px) {
    .article-layout {
        display: block;
        width: min(calc(100% - 48px), var(--reading-width));
        padding-top: 28px;
    }

    .article-toc {
        margin-bottom: 28px;
    }

    .article-toc__inner {
        position: static;
        border-radius: 10px;
        background: var(--surface-soft);
    }

    .article-toc__toggle {
        display: flex;
        width: 100%;
        min-height: 46px;
        align-items: center;
        gap: 9px;
        padding: 0 14px;
        background: transparent;
        color: var(--text-secondary);
        cursor: pointer;
    }

    .article-toc__panel {
        display: grid;
        grid-template-rows: 0fr;
        transition: grid-template-rows var(--duration-fast) var(--ease-smooth-out);
    }

    .article-toc__list {
        min-height: 0;
        padding: 0 14px;
        overflow: hidden;
        opacity: 0;
        transition:
            opacity var(--duration-quick) var(--ease-standard),
            padding var(--duration-fast) var(--ease-smooth-out);
    }

    .article-toc[data-open="true"] .article-toc__panel {
        grid-template-rows: 1fr;
    }

    .article-toc[data-open="true"] .article-toc__list {
        padding-bottom: 14px;
        opacity: 1;
    }
}

@media (max-width: 880px) {
    .site-header__inner {
        gap: 10px;
        padding: 0 16px;
    }

    .site-nav {
        display: none;
    }

    .mobile-menu-button {
        display: inline-flex;
    }

    .mobile-nav {
        display: grid;
        grid-template-rows: 0fr;
        width: 100%;
        padding: 0 16px;
        overflow: hidden;
        border-top: 1px solid transparent;
        background: var(--header-bg);
        opacity: 0;
        transition:
            grid-template-rows var(--duration-fast) var(--ease-smooth-out),
            padding var(--duration-fast) var(--ease-smooth-out),
            opacity var(--duration-quick) var(--ease-standard),
            border-color var(--duration-fast) var(--ease-standard);
    }

    .mobile-nav::before {
        content: "";
        min-height: 0;
    }

    .mobile-nav a,
    .mobile-nav__placeholder {
        display: none;
    }

    .mobile-nav[data-open="true"] {
        grid-template-rows: 1fr;
        padding-top: 10px;
        padding-bottom: 12px;
        border-color: var(--line-soft);
        opacity: 1;
    }

    .mobile-nav[data-open="true"]::before {
        display: none;
    }

    .mobile-nav[data-open="true"] a,
    .mobile-nav[data-open="true"] .mobile-nav__placeholder {
        display: flex;
        min-height: 44px;
        align-items: center;
        padding: 0 10px;
        border-radius: 8px;
        color: var(--text-secondary);
        text-decoration: none;
    }

    .mobile-nav__placeholder {
        color: var(--text-muted);
        cursor: default;
    }

    .mobile-nav a:hover {
        background: var(--surface-soft);
        color: var(--text);
    }

    .hero {
        padding: 122px 0 90px;
    }

    .hero h1 {
        font-size: 52px;
    }

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

    .post-card--featured {
        grid-column: auto;
    }

    .lab-board {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lab-card,
    .lab-card:nth-child(4),
    .lab-card:nth-child(5) {
        grid-column: auto;
    }

    .lab-card--wide {
        grid-column: 1 / -1;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .site-header,
    .site-header__inner {
        min-height: 62px;
    }

    .site-header__inner {
        padding: 0 12px;
    }

    .brand {
        gap: 0;
    }

    .brand > span:last-child {
        display: none;
    }

    .header-tools {
        gap: 2px;
    }

    .header-search {
        width: 40px;
    }

    .header-search__trigger {
        flex-basis: 40px;
        padding: 0;
    }

    .header-search__prompt,
    .tool-tip::after {
        display: none;
    }

    .header-tools > .tool-button:not(.mobile-menu-button) {
        display: none;
    }

    .header-search[data-expanded="true"] {
        position: absolute;
        top: 11px;
        right: 12px;
        left: 12px;
        z-index: 6;
        width: auto;
    }

    .site-main {
        width: min(calc(100% - 28px), var(--content-width));
    }

    .hero {
        padding: 98px 0 72px;
    }

    .eyebrow {
        margin-bottom: 16px;
        font-size: 12px;
    }

    .hero h1,
    .archive-head h1,
    .empty-state h1 {
        margin-bottom: 20px;
        font-size: 40px;
        line-height: 1.16;
    }

    .hero__copy > p:last-child,
    .archive-head p,
    .empty-state p {
        font-size: 17px;
    }

    .archive-head {
        padding: 72px 0 42px;
    }

    .post-list {
        gap: 14px;
    }

    .post-card,
    .post-card--featured {
        min-height: 264px;
        padding: 24px;
        border-radius: 16px;
    }

    .post-card__meta {
        margin-bottom: 32px;
    }

    .post-card h2,
    .post-card--featured h2 {
        font-size: 26px;
        line-height: 1.3;
    }

    .post-card p {
        font-size: 14px;
        -webkit-line-clamp: 2;
    }

    .lab-board {
        grid-template-columns: 1fr;
    }

    .lab-copy {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
        margin-bottom: 20px;
    }

    .lab-card--wide {
        grid-column: auto;
    }

    .article-layout,
    .article--page {
        width: min(calc(100% - 28px), var(--reading-width));
    }

    .article-layout {
        padding-top: 20px;
    }

    .article--page {
        padding-top: 64px;
    }

    .article-header {
        padding-bottom: 34px;
    }

    .article-header h1 {
        font-size: 36px;
        line-height: 1.22;
    }

    .article-summary {
        font-size: 16px;
    }

    .article-body {
        padding-top: 34px;
        font-size: 16px;
        line-height: 1.82;
    }

    .article-body h2 {
        font-size: 26px;
    }

    .article-body h3 {
        font-size: 21px;
    }

    .article-body pre {
        margin-right: -2px;
        margin-left: -2px;
        padding: 18px;
    }

    .article-near {
        grid-template-columns: 1fr;
    }

    .article-near > div:last-child {
        text-align: left;
    }

    .comment-children {
        margin-left: 12px;
    }

    .site-footer__inner {
        width: calc(100% - 28px);
        min-height: 104px;
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .reveal,
    .t-success-check {
        opacity: 1;
        filter: none;
        transform: none;
        translate: none;
    }

    .t-success-check svg path {
        stroke-dashoffset: 0 !important;
    }
}
