:root {
    color-scheme: light;
    --bg-1: #f9f7fb;
    --fg-1: #171717;
    --fg-2: rgba(23, 23, 23, 0.48);
    --fg-3: rgba(23, 23, 23, 0.34);
    --card-bg: #ffffff;
    --line: rgba(23, 23, 23, 0.28);
    --panel-border: rgba(23, 23, 23, 0.08);
    --shadow: 0 6px 20px rgba(23, 23, 23, 0.01);
    --shadow-hover: 0 10px 24px rgba(23, 23, 23, 0.04);
    --panel-shadow: 0 16px 40px rgba(23, 23, 23, 0.04);
    --bg-control-hover: rgba(23, 23, 23, 0.03);
    --theme-selection: #47b2ff;
    --skeleton-base: #ece8ee;
    --skeleton-highlight: #f4f1f6;
    --content-width: 640px;
    --layout-width: min(clamp(560px, 58vw, 720px), calc(100vw - 32px));
    --weight-regular: 400;
    --weight-medium: 500;
    --weight-bold: 700;
    --font-ui: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) {
        --bg-1: #131313;
        --fg-1: #f1eef4;
        --fg-2: rgba(241, 238, 244, 0.56);
        --fg-3: rgba(241, 238, 244, 0.34);
        --card-bg: #1a1a1d;
        --line: rgba(241, 238, 244, 0.18);
        --panel-border: rgba(241, 238, 244, 0.12);
        --shadow: none;
        --shadow-hover: none;
        --panel-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
        --bg-control-hover: rgba(241, 238, 244, 0.08);
        --skeleton-base: rgba(241, 238, 244, 0.08);
        --skeleton-highlight: rgba(241, 238, 244, 0.16);
        color-scheme: dark;
    }
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --bg-1: #131313;
    --fg-1: #f1eef4;
    --fg-2: rgba(241, 238, 244, 0.56);
    --fg-3: rgba(241, 238, 244, 0.34);
    --card-bg: #1a1a1d;
    --line: rgba(241, 238, 244, 0.18);
    --panel-border: rgba(241, 238, 244, 0.12);
    --shadow: none;
    --shadow-hover: none;
    --panel-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
    --bg-control-hover: rgba(241, 238, 244, 0.08);
    --skeleton-base: rgba(241, 238, 244, 0.08);
    --skeleton-highlight: rgba(241, 238, 244, 0.16);
}

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

::-moz-selection {
    background: var(--theme-selection);
    color: #ffffff;
}

::selection {
    background: var(--theme-selection);
    color: #ffffff;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--bg-1);
    color: var(--fg-1);
    font-family: var(--font-ui);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
    text-decoration: none;
}

a,
button,
[role="button"],
input,
textarea,
select,
summary {
    -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

a:focus,
button:focus,
[role="button"]:focus,
input:focus,
textarea:focus,
select:focus,
summary:focus,
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
    outline: none;
    box-shadow: none;
}

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

.shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    min-height: 72px;
}

.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        var(--bg-1) 0%,
        color-mix(in srgb, var(--bg-1) 70%, transparent) 58%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 180ms ease;
    pointer-events: none;
}

.site-header.is-scrolled::before {
    opacity: 1;
}

.site-header__inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
    min-height: 72px;
}

.brand {
    position: absolute;
    left: 16px;
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    overflow: hidden;
    transform: translateY(-50%);
}

.brand__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: var(--fg-1);
}

.brand__icon svg {
    display: block;
    width: 24px;
    height: 24px;
}

.brand--back {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: transparent;
    transition: background-color 180ms ease, color 180ms ease;
}

.brand--back:hover {
    background: var(--bg-control-hover);
}

.brand__image {
    width: 40px;
    height: 40px;
    object-fit: cover;
}

.desktop-nav {
    display: inline-flex;
    align-items: center;
    gap: 24px;
    justify-content: flex-start;
    width: var(--layout-width);
    min-height: 72px;
}

.site-header__tools {
    position: absolute;
    right: 16px;
    top: 50%;
    display: inline-flex;
    align-items: center;
    transform: translateY(-50%);
}

.site-settings {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.site-settings__trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 4px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--fg-1);
    transition: background-color 180ms ease, color 180ms ease;
}

.site-settings__trigger:hover,
.site-settings.is-open .site-settings__trigger {
    background: var(--bg-control-hover);
}

.site-settings__trigger-icon,
.site-settings__row-icon,
.site-settings__row-chevron,
.site-settings__back-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.site-settings__trigger-icon svg {
    display: block;
    width: 24px;
    height: 24px;
}

.site-settings__row-icon svg {
    display: block;
    width: 20px;
    height: 20px;
}

.site-settings__row-chevron svg,
.site-settings__back-icon svg {
    display: block;
    width: 16px;
    height: 16px;
}

.site-settings__dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 60;
    width: min(252px, calc(100vw - 32px));
    padding: 8px;
    border: 1px solid var(--panel-border);
    border-radius: 16px;
    background: var(--card-bg);
    box-shadow: var(--panel-shadow);
}

.site-settings__dropdown[hidden] {
    display: none;
}

.site-settings__panel {
    display: grid;
    gap: 0;
}

.site-settings__panel[hidden] {
    display: none;
}

.site-settings__row,
.site-settings__back,
.site-settings__option {
    width: 100%;
    min-height: 36px;
    padding: 8px 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--fg-1);
    text-align: left;
    transition: background-color 180ms ease, color 180ms ease;
}

.site-settings__row,
.site-settings__option {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-settings__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    justify-content: flex-start;
}

.site-settings__row:hover,
.site-settings__back:hover,
.site-settings__option:hover,
.site-settings__option.is-active {
    background: var(--bg-control-hover);
}

.site-settings__row-main {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1 1 auto;
}

.site-settings__row-label,
.site-settings__row-value,
.site-settings__back,
.site-settings__option {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.4;
}

.site-settings__row-meta {
    display: inline-flex;
    align-items: center;
    gap: 0;
    margin-left: 12px;
    color: var(--fg-3);
}

.site-settings__row-value {
    color: var(--fg-3);
    white-space: nowrap;
}

.site-settings__row-chevron,
.site-settings__back-icon {
    color: var(--fg-3);
}

.site-settings__back-icon {
    transform: rotate(180deg);
}

.site-settings__options {
    display: grid;
    gap: 4px;
}

.site-settings__option {
    gap: 12px;
    justify-content: flex-start;
}

.site-settings__option.is-active {
    font-weight: var(--weight-medium);
}

.site-settings__option.is-active::after {
    content: "";
    margin-left: auto;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.72;
}

.language-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
}

.language-toggle__button {
    min-width: auto;
    height: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--fg-2);
    font-size: 12px;
    font-weight: var(--weight-regular);
    line-height: 1.2;
    letter-spacing: 0.01em;
    transition: color 180ms ease;
}

.language-toggle__divider {
    color: var(--fg-3);
    font-size: 12px;
    line-height: 1;
}

.language-toggle__button.is-active {
    color: var(--fg-1);
}

.nav-link {
    padding-bottom: 3px;
    border-bottom: 1px solid transparent;
    color: var(--fg-2);
    font-size: 14px;
    font-weight: var(--weight-bold);
    line-height: 1.2;
    transition: color 180ms ease, border-color 180ms ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--fg-1);
    border-bottom-color: currentColor;
}

.page-main {
    flex: 1 0 auto;
    width: var(--layout-width);
    margin: 0 auto;
}

.title-block {
    padding-top: 18px;
    margin-bottom: 40px;
}

.page-title {
    margin: 0;
    font-family: var(--font-ui);
    font-size: 32px;
    font-weight: var(--weight-regular);
    letter-spacing: -0.04em;
    line-height: 1.02;
}

.page-tagline {
    margin: 10px 0 0;
    color: var(--fg-2);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: var(--weight-regular);
    line-height: 1.6;
}

.inline-tabs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-top: 8px;
    margin-bottom: 0;
}

.inline-tab {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--fg-2);
    font-size: 14px;
    line-height: 1.6;
    text-decoration: none;
    text-underline-offset: 3px;
}

.inline-tab.is-active {
    color: var(--fg-1);
    text-decoration: underline;
}

.content-copy {
    margin-top: 0;
}

.content-copy--stack {
    display: grid;
    gap: 12px;
}

.body-text {
    margin: 0;
    color: var(--fg-1);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.6;
}

.text-link {
    color: inherit;
    text-decoration: none;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition:
        color 180ms ease,
        text-decoration-color 180ms ease;
}

.text-link:hover {
    text-decoration: underline;
    text-decoration-color: currentColor;
}

.section-block {
    margin-top: 26px;
}

.section-heading {
    margin: 0 0 8px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: var(--weight-bold);
    line-height: 1.6;
}

.emoji-list {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 0.5px solid color-mix(in srgb, var(--line) 44%, transparent);
}

.emoji-list__item {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 10px 0;
    border-bottom: 0.5px solid color-mix(in srgb, var(--line) 44%, transparent);
}

.emoji-list__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    min-height: 20px;
    font-size: 14px;
    line-height: 1;
}

.emoji-list__body {
    margin: 0;
    color: var(--fg-1);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.6;
}

.emoji-list__title {
    font-weight: var(--weight-bold);
}

.emoji-list__separator,
.emoji-list__text {
    color: var(--fg-1);
}

.emoji-list__text--strong {
    font-weight: var(--weight-bold);
}

.skill-list {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 0.5px solid color-mix(in srgb, var(--line) 44%, transparent);
}

.skill-list__item {
    display: grid;
    grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
    gap: 2px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 0.5px solid color-mix(in srgb, var(--line) 44%, transparent);
}

.skill-list__lead {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.skill-list__icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    min-height: 20px;
    font-size: 14px;
    line-height: 1;
}

.skill-list__label {
    min-width: 0;
    color: var(--fg-1);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: var(--weight-bold);
    line-height: 1.45;
}

.skill-list__label--strong {
    font-weight: var(--weight-bold);
}

.skill-list__details {
    margin: 0;
    color: var(--fg-1);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.55;
    text-align: right;
}

.skill-list__details.is-empty {
    display: block;
    min-height: 1px;
}

.social-topic-list {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 0.5px solid color-mix(in srgb, var(--line) 44%, transparent);
}

.social-topic-list__item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 0.5px solid color-mix(in srgb, var(--line) 44%, transparent);
}

.social-topic-list__icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    min-height: 16px;
    font-size: 14px;
    line-height: 1;
}

.social-topic-list__copy {
    flex: 1 1 auto;
    min-width: 0;
}

.social-topic-list__title {
    color: var(--fg-1);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: var(--weight-regular);
    line-height: 1.6;
}

.social-topic-list__title--mobile {
    display: none;
}

.social-topic-list__platforms {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: var(--weight-regular);
}

.social-topic-list__body {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    margin: 0;
    color: var(--fg-2);
    line-height: 1.6;
    white-space: nowrap;
}

.social-topic__platform,
.social-topic__separator {
    color: var(--fg-2);
}

.social-topic__separator {
    font-size: 14px;
    line-height: 1.6;
}

.social-topic__platform {
    display: inline-flex;
    align-items: center;
    color: var(--fg-1);
    line-height: 1.3;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: inset 0 -0.5px 0 color-mix(in srgb, var(--line) 44%, transparent);
    transition:
        box-shadow 180ms ease,
        color 180ms ease;
}

.social-topic__platform:hover {
    color: var(--fg-1);
    box-shadow: inset 0 -1px 0 var(--fg-1);
}

.social-topic-list__platforms {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    line-height: 1.3;
}

.social-topic-list__description {
    color: var(--fg-2);
    font-size: 14px;
    line-height: 1.6;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-stack {
    display: grid;
    gap: 24px;
    margin-top: 18px;
}

.list-stack--compact {
    margin-top: 14px;
}

.reading-list {
    margin-top: 8px;
}

.reading-block .section-heading {
    margin-bottom: 0;
    font-size: 13px;
    font-weight: var(--weight-bold);
    line-height: 1.6;
}

.reading-list__item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    text-decoration: none;
}

.reading-list__index {
    flex: 0 0 14px;
    width: 14px;
    color: var(--fg-2);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: var(--weight-regular);
    line-height: 1.6;
}

.reading-list__title {
    flex: 0 1 auto;
    min-width: 0;
    color: var(--fg-1);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: var(--weight-regular);
    line-height: 1.6;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reading-list__content {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.reading-list__line {
    flex: 1 1 auto;
    min-width: 24px;
    height: 0.5px;
    background: color-mix(in srgb, var(--line) 44%, transparent);
}

.reading-list__meta {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 2px;
    color: var(--fg-3);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: var(--weight-regular);
    line-height: 1.6;
    white-space: nowrap;
}

.reading-list__meta-label,
.reading-list__meta-arrow {
    display: inline-block;
}

.reading-list__item:hover .reading-list__title {
    text-decoration: underline;
    text-decoration-color: var(--fg-1);
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.reading-list__meta-arrow {
    transition: transform 180ms ease;
}

.reading-list__item:hover .reading-list__meta-arrow {
    transform: translateX(3px);
}

.blog-year,
.project-year {
    margin: 42px 0 10px;
    color: var(--fg-2);
    font-size: 28px;
    font-weight: var(--weight-regular);
    letter-spacing: -0.04em;
    line-height: 1;
}

.blog-item {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    transition: color 180ms ease;
}

.blog-filter-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-top: 12px;
}

.blog-filter {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 0 2px;
    border: 0;
    border-bottom: 1px solid transparent;
    background: transparent;
    color: var(--fg-2);
    font-size: 14px;
    line-height: 1.4;
    transition: color 180ms ease, border-color 180ms ease;
}

.blog-filter__count {
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}

.blog-filter:hover,
.blog-filter.is-active {
    color: var(--fg-1);
    border-bottom-color: currentColor;
}

.blog-filter:hover .blog-filter__count,
.blog-filter.is-active .blog-filter__count {
    color: inherit;
}

.blog-item__title {
    display: block;
    max-width: 100%;
    margin-bottom: 4px;
    color: var(--fg-1);
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: var(--weight-medium);
    line-height: 1.35;
    text-decoration: none;
    text-underline-offset: 2px;
}

.blog-item__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
    min-height: 20px;
}

.blog-item__summary {
    flex: 1 1 auto;
    display: block;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    overflow: hidden;
    align-self: center;
    color: var(--fg-2);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: var(--weight-regular);
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.blog-item__date,
.blog-item__reading-time {
    flex-shrink: 0;
    align-self: center;
    color: var(--fg-2);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: var(--weight-regular);
    line-height: 1.45;
}

.blog-item__divider {
    flex-shrink: 0;
    align-self: center;
    color: var(--fg-2);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: var(--weight-regular);
    line-height: 1.45;
}

.blog-item:hover .blog-item__title {
    text-decoration: underline;
}

.project-filter-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-top: 12px;
    margin-bottom: 0;
}

.project-filter {
    padding: 0 0 2px;
    border: 0;
    border-bottom: 1px solid transparent;
    background: transparent;
    color: var(--fg-2);
    font-size: 14px;
    line-height: 1.4;
    transition: color 180ms ease, border-color 180ms ease;
}

.project-filter:hover,
.project-filter.is-active {
    color: var(--fg-1);
    border-bottom-color: currentColor;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 12px;
    margin-top: 14px;
}

.project-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px;
    border-radius: 12px;
    background: var(--card-bg);
    box-shadow: var(--shadow);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.project-card__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    object-fit: cover;
}

.project-card__icon-frame {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--project-icon-bg, var(--card-bg));
    overflow: hidden;
}

.project-card__icon--glyph {
    width: 26px;
    height: 26px;
    border-radius: 0;
    object-fit: contain;
}

.project-card__body {
    min-width: 0;
}

.project-card__title {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: var(--weight-bold);
    line-height: 1.4;
}

.project-card__summary {
    display: -webkit-box;
    margin: 1px 0 0;
    overflow: hidden;
    color: var(--fg-2);
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1.35;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.project-card__period {
    margin-top: 7px;
    color: var(--fg-2);
    font-size: 13px;
    line-height: 1.2;
}

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

.ui-page {
    --ui-page-width: min(1920px, calc(100vw - 32px));
    width: var(--ui-page-width);
    margin-left: calc((100% - var(--ui-page-width)) / 2);
}

.ui-page__title {
    margin-bottom: 26px;
}

.ui-filter-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-top: 12px;
}

.ui-filter {
    padding: 0 0 2px;
    border: 0;
    border-bottom: 1px solid transparent;
    background: transparent;
    color: var(--fg-2);
    font-size: 14px;
    line-height: 1.4;
    transition: color 180ms ease, border-color 180ms ease;
}

.ui-filter:hover,
.ui-filter.is-active {
    color: var(--fg-1);
    border-bottom-color: currentColor;
}

.ui-gallery {
    --ui-gallery-column-min: 280px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--ui-gallery-column-min), 1fr));
    align-items: start;
    column-gap: 16px;
    row-gap: 24px;
    padding: 0;
}

.ui-gallery-item {
    display: block;
    width: 100%;
    max-width: none;
    min-width: 0;
    padding: 0;
}

.ui-gallery-item__cover-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
    background: var(--skeleton-base);
}

.ui-gallery-item__cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 220ms ease, opacity 180ms ease;
}

.ui-gallery-item__cover--static {
    opacity: 1;
}

.ui-gallery-item__cover--animated {
    opacity: 0;
    pointer-events: none;
}

.ui-gallery-item__cover--animated:not([src]) {
    visibility: hidden;
}

.ui-gallery-item__badge {
    position: absolute;
    right: 8px;
    bottom: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    transition: opacity 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.ui-gallery-item__badge-icon {
    width: 14px;
    height: 14px;
    stroke-width: 1.8;
}

.ui-gallery-item__badge-icon--loader {
    display: none;
    animation: ui-gallery-spinner 0.9s linear infinite;
}

.ui-gallery-item__text {
    display: grid;
    gap: 2px;
    padding: 8px 0 0;
}

.ui-gallery-item__text--loading {
    gap: 8px;
}

.ui-gallery-item__title {
    color: var(--fg-1);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.45;
}

.ui-gallery-item__date {
    color: var(--fg-3);
    font-family: var(--font-body);
    font-size: 12px;
    line-height: 1.4;
}

.ui-gallery-item:hover .ui-gallery-item__cover {
    transform: scale(1.015);
}

.ui-gallery-item.is-playing-cover .ui-gallery-item__cover--animated {
    opacity: 1;
}

.ui-gallery-item.is-playing-cover .ui-gallery-item__cover--static {
    opacity: 0;
}

.ui-gallery-item.is-loading-cover .ui-gallery-item__badge-icon--play {
    display: none;
}

.ui-gallery-item.is-loading-cover .ui-gallery-item__badge-icon--loader {
    display: block;
}

.ui-gallery-item.is-playing-cover .ui-gallery-item__badge {
    opacity: 0;
    transform: scale(0.88);
}

.ui-page--loading .ui-filter-row,
.ui-gallery--loading {
    pointer-events: none;
}

.ui-gallery-item__loading-cover,
.ui-gallery-item__loading-line {
    display: block;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        var(--skeleton-base) 0%,
        var(--skeleton-highlight) 46%,
        var(--skeleton-base) 100%
    );
    background-size: 220% 100%;
    animation: article-skeleton 1.4s ease infinite;
}

.ui-gallery-item__loading-cover {
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

.ui-gallery-item__loading-line--title {
    width: 72%;
    height: 14px;
}

.ui-gallery-item__loading-line--date {
    width: 32%;
    height: 12px;
}

.ui-gallery-item:hover .ui-gallery-item__title {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.project-gallery-page {
    display: grid;
    gap: 48px;
    padding-bottom: 4px;
}

.project-gallery-page__title {
    margin-bottom: 28px;
}

.project-gallery-page__summary {
    max-width: 720px;
}

.project-gallery-page__summary-link {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.project-gallery-page__summary-link:hover {
    text-decoration-color: currentColor;
}

.project-gallery-page__intro {
    display: grid;
    gap: 10px;
    max-width: 720px;
    margin-top: 14px;
}

.project-gallery-page__intro p {
    margin: 0;
    color: var(--fg-2);
    font-size: 14px;
    line-height: 1.7;
}

.project-gallery-page__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-top: 16px;
}

.project-gallery-section {
    display: grid;
    gap: 16px;
    content-visibility: auto;
    contain-intrinsic-size: 720px;
}

.project-gallery-section__header {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px 10px;
}

.project-gallery-section__title {
    margin: 0;
    color: var(--fg-1);
    font-size: 20px;
    line-height: 1.25;
}

.project-gallery-section__caption {
    color: var(--fg-3);
    font-size: 13px;
    line-height: 1.45;
}

.project-gallery-grid {
    display: grid;
    align-items: start;
}

.project-gallery-grid--image-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.project-gallery-grid--appicon-grid {
    grid-template-columns: repeat(auto-fill, minmax(184px, 1fr));
    gap: 0;
}

.project-gallery-grid--icon-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
}

.project-gallery-card {
    display: grid;
    gap: 10px;
    margin: 0;
}

.project-gallery-card__media-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--card-bg) 96%, #ffffff 4%) 0%,
        color-mix(in srgb, var(--card-bg) 88%, var(--bg-1) 12%) 100%
    );
}

.project-gallery-card__media {
    display: block;
    width: 100%;
    height: 100%;
}

.project-gallery-card--image-grid .project-gallery-card__media-wrap {
    aspect-ratio: 7 / 10;
}

.project-gallery-card--image-grid .project-gallery-card__media {
    object-fit: cover;
}

.project-gallery-card--appicon-grid .project-gallery-card__media-wrap {
    aspect-ratio: 1 / 1;
    padding: 0;
    width: min(100%, 160px);
    border: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.project-gallery-card--appicon-grid .project-gallery-card__media,
.project-gallery-card--icon-grid .project-gallery-card__media {
    object-fit: contain;
    transition: transform 180ms ease;
}

.project-gallery-card--icon-grid .project-gallery-card__media-wrap {
    aspect-ratio: 1 / 1;
    padding: 18px;
}

.project-gallery-card--appicon-grid {
    justify-items: center;
    gap: 8px;
    padding: 12px;
    border-radius: 16px;
    transition: background-color 180ms ease;
}

.project-gallery-card__caption {
    margin: 0;
    color: var(--fg-2);
    display: grid;
    min-width: 100%;
    min-height: 21px;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

.project-gallery-card__caption-default,
.project-gallery-card__caption-hover {
    grid-area: 1 / 1;
    transition: opacity 180ms ease, transform 180ms ease;
}

.project-gallery-card__caption-hover {
    opacity: 0;
    transform: translateY(2px);
}

.project-gallery-page--mac-appicon .project-gallery-card[href] {
    color: inherit;
}

.project-gallery-page--mac-appicon .project-gallery-card[href]:is(:hover, :focus-visible) {
    background: var(--bg-control-hover);
}

.project-gallery-page--mac-appicon .project-gallery-card[href]:is(:hover, :focus-visible) .project-gallery-card__media {
    transform: scale(1.02);
}

.project-gallery-page--mac-appicon .project-gallery-card[href]:is(:hover, :focus-visible) .project-gallery-card__caption-default {
    opacity: 0;
    transform: translateY(-2px);
}

.project-gallery-page--mac-appicon .project-gallery-card[href]:is(:hover, :focus-visible) .project-gallery-card__caption-hover {
    opacity: 1;
    transform: translateY(0);
}

@keyframes ui-gallery-spinner {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.ui-detail-page__figure {
    margin: 0;
}

.article-page__hero {
    padding-top: 20px;
    margin-bottom: 40px;
}

.page-loading {
    display: grid;
    gap: 26px;
    width: 100%;
    padding-top: 18px;
}

.page-loading__hero,
.page-loading__stack {
    display: grid;
    width: 100%;
    gap: 14px;
}

.page-loading__stack--sections {
    gap: 18px;
}

.page-loading__stack--cards {
    gap: 12px;
}

.page-loading__tabs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.article-loading {
    width: 100%;
    padding-top: 38px;
}

.article-loading__hero,
.article-loading__body {
    display: grid;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

.article-loading__hero {
    gap: 14px;
}

.article-loading__body {
    gap: 18px;
    margin-top: 40px;
}

.page-loading__line,
.page-loading__pill,
.page-loading__card,
.article-loading__line {
    display: block;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        var(--skeleton-base) 0%,
        var(--skeleton-highlight) 46%,
        var(--skeleton-base) 100%
    );
    background-size: 220% 100%;
    animation: article-skeleton 1.4s ease infinite;
}

.page-loading__line--title {
    width: min(84%, 620px);
    height: 42px;
}

.page-loading__line--copy {
    width: 100%;
    height: 16px;
}

.page-loading__line--copy-short {
    width: 74%;
}

.page-loading__line--section {
    width: 156px;
    height: 14px;
}

.page-loading__line--section-short {
    width: 120px;
}

.page-loading__line--row {
    width: 88%;
    height: 18px;
}

.page-loading__line--row-wide {
    width: 100%;
}

.page-loading__line--row-short {
    width: 76%;
}

.page-loading__pill {
    width: 92px;
    height: 14px;
}

.page-loading__pill--short {
    width: 64px;
}

.page-loading__pill--tiny {
    width: 42px;
}

.page-loading__card {
    width: 100%;
    border-radius: 16px;
}

.page-loading__card--list {
    height: 128px;
}

.page-loading__card--project {
    height: 112px;
}

.article-loading__line--title {
    width: min(84%, 620px);
    height: 42px;
}

.article-loading__line--meta {
    width: 240px;
    height: 14px;
}

.article-loading__line--body {
    width: 100%;
    height: 16px;
}

.article-loading__line--body-short {
    width: 76%;
}

.article-page--ready .article-page__hero,
.article-page--ready .article-body {
    opacity: 0;
    transform: translateY(10px);
    animation: article-enter 420ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.page-panel--ready {
    opacity: 0;
    transform: translateY(10px);
    animation: page-panel-enter 360ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.page-panel--soft {
    opacity: 0;
    animation: page-panel-fade 220ms ease forwards;
}

.page-content--soft {
    opacity: 0;
    animation: page-panel-fade 180ms ease forwards;
}

.article-page--ready .article-body {
    animation-delay: 40ms;
}

.article-page--soft .article-page__hero,
.article-page--soft .article-body {
    opacity: 0;
    animation: page-panel-fade 220ms ease forwards;
}

.article-page--soft .article-body {
    animation-delay: 28ms;
}

.article-page__title {
    font-size: 36px;
    font-weight: var(--weight-regular);
    line-height: 1.06;
}

.article-meta {
    margin: 12px 0 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 8px;
    color: var(--fg-2);
    font-size: 13px;
    line-height: 1.5;
}

.article-meta__tags {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0 10px;
    align-items: center;
}

.article-meta__divider {
    color: var(--fg-2);
}

.article-tag {
    color: var(--fg-2);
    font-size: 13px;
    line-height: 1.5;
    text-decoration: none;
    text-underline-offset: 2px;
    transition:
        color 180ms ease,
        text-decoration-color 180ms ease;
}

.article-tag:hover {
    color: var(--fg-1);
    text-decoration: underline;
    text-decoration-color: var(--fg-1);
}

.article-body {
    margin-top: 0;
    color: var(--fg-1);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.9;
}

.article-body > * {
    width: 100%;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.article-body > * + * {
    margin-top: 20px;
}

.article-body h2 {
    margin-top: 56px;
    margin-bottom: 0;
    font-family: var(--font-ui);
    font-size: 28px;
    font-weight: var(--weight-bold);
    line-height: 1.2;
}

.article-body h3 {
    margin-top: 36px;
    margin-bottom: 0;
    font-family: var(--font-ui);
    font-size: 20px;
    font-weight: var(--weight-bold);
    line-height: 1.35;
}

.article-body img,
.article-body video {
    display: block;
    max-width: 100%;
    width: auto;
    border-radius: 16px;
    box-shadow: none;
}

.article-body video:not(.article-media-block) {
    width: 100%;
    height: auto;
}

.article-body a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: var(--fg-3);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition:
        color 180ms ease,
        text-decoration-color 180ms ease;
}

.article-body a:hover {
    color: var(--fg-1);
    text-decoration-color: var(--fg-1);
}

.article-body blockquote {
    padding: 16px 18px;
    border-left: 2px solid var(--line);
    border-radius: 12px;
    background: color-mix(in srgb, var(--card-bg) 92%, var(--bg-1));
}

.article-body hr {
    border: 0;
    border-top: 1px solid color-mix(in srgb, var(--line) 68%, transparent);
}

.article-body pre,
.article-body code {
    font-family: "SFMono-Regular", "SF Mono", "Menlo", "Consolas", monospace;
}

.article-body pre {
    padding: 16px 18px;
    overflow-x: auto;
    border: 1px solid color-mix(in srgb, var(--line) 44%, transparent);
    border-radius: 16px;
    background: color-mix(in srgb, var(--card-bg) 94%, var(--bg-1));
    font-size: 13px;
    line-height: 1.7;
}

.article-body code {
    padding: 0.1em 0.38em;
    border-radius: 6px;
    background: color-mix(in srgb, var(--card-bg) 94%, var(--bg-1));
    font-size: 0.88em;
}

.article-body pre code {
    padding: 0;
    background: transparent;
}

.article-body table {
    border-collapse: collapse;
    width: 100%;
    max-width: 720px;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid color-mix(in srgb, var(--line) 44%, transparent);
}

.article-body th,
.article-body td {
    padding: 12px 14px;
    border-bottom: 1px solid color-mix(in srgb, var(--line) 36%, transparent);
    text-align: left;
    font-size: 14px;
    line-height: 1.6;
}

.article-body th {
    font-family: var(--font-ui);
    font-weight: var(--weight-bold);
    background: color-mix(in srgb, var(--card-bg) 94%, var(--bg-1));
}

.article-body ul,
.article-body ol {
    padding-left: 22px;
}

.article-body li + li {
    margin-top: 8px;
}

.article-media-block {
    width: min(100%, var(--article-media-width, 720px));
    max-width: none;
}

.article-media-block--paragraph {
    display: block;
}

.article-media-block--full {
    position: relative;
    left: 50%;
    width: min(var(--article-media-width), calc(100vw - 32px));
    transform: translateX(-50%);
}

.article-media-frame {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    isolation: isolate;
}

.article-media-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        var(--skeleton-base) 0%,
        var(--skeleton-highlight) 46%,
        var(--skeleton-base) 100%
    );
    background-size: 220% 100%;
    transition: opacity 180ms ease;
}

.article-media-frame--pending {
    background: var(--skeleton-base);
}

.article-media-frame--pending::before {
    opacity: 1;
    animation: article-skeleton 1.4s ease infinite;
}

.article-media-frame > :is(a, picture, img, video) {
    width: 100%;
    display: block;
}

.article-media-frame img,
.article-media-frame picture > img,
.article-media-frame video,
.article-media-block > video,
video.article-media-block {
    width: 100%;
    height: auto;
}

.article-media-frame img,
.article-media-frame video {
    opacity: 1;
    transition: opacity 240ms ease;
}

.article-media-frame--pending img,
.article-media-frame--pending video {
    opacity: 0;
}

.article-media-asset--ready {
    opacity: 1;
}

@keyframes article-enter {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes page-panel-enter {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes page-panel-fade {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes article-skeleton {
    0% {
        background-position: 100% 50%;
    }

    100% {
        background-position: -100% 50%;
    }
}

.empty-state {
    margin-top: 22px;
    color: var(--fg-2);
    font-size: 13px;
    line-height: 1.6;
}

.site-footer {
    display: block;
    height: auto;
    max-width: none;
    width: var(--layout-width);
    margin: 40px auto 0;
    padding: 24px 0 32px;
    border-top: 0.5px solid var(--line);
}

.site-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: var(--fg-1);
    font-size: 12px;
    line-height: 1.4;
}

.site-footer__links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.page-main > .title-block + .section-block {
    margin-top: 0;
}

.page-main > .title-block + .section-block .list-stack,
.page-main > .title-block + .section-block .project-grid {
    margin-top: 0;
}

.mobile-nav {
    display: none;
}

@media (max-width: 767px) {
    .site-header {
        min-height: 68px;
    }

    .site-header__inner {
        width: calc(100vw - 32px);
        min-height: 68px;
    }

    .desktop-nav {
        display: none;
    }

    .site-header__tools {
        right: 0;
    }

    .brand {
        left: 0;
    }

    .language-toggle__button {
        font-size: 12px;
    }

    .site-settings__dropdown {
        width: min(252px, calc(100vw - 32px));
    }

    .page-main,
    .site-footer {
        width: calc(100vw - 32px);
    }

    .page-title {
        font-size: 28px;
    }

    .content-copy {
        margin-top: 0;
    }

    .skill-list__item {
        grid-template-columns: 1fr;
        gap: 2px;
        align-items: start;
    }

    .skill-list__details {
        padding-left: 32px;
        text-align: left;
    }

    .social-topic-list__platforms {
        gap: 12px;
    }

    .reading-list__item {
        gap: 10px;
    }

    .reading-list__content {
        gap: 10px;
    }

    .reading-list__meta,
    .reading-list__line {
        display: none;
    }

    .social-topic-list__title--desktop {
        display: none;
    }

    .social-topic-list__title--mobile {
        display: inline;
    }

    .social-topic__separator,
    .social-topic-list__description {
        display: none;
    }

    .social-topic-list__body {
        gap: 0;
    }

    .blog-year,
    .project-year {
        margin-top: 44px;
        font-size: 28px;
    }

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

    .blog-item__title {
        font-size: 16px;
    }

    .blog-filter-row {
        gap: 6px 12px;
    }

    .project-filter {
        font-size: 14px;
    }

    .ui-page__title {
        margin-bottom: 20px;
    }

    .project-gallery-page {
        gap: 36px;
    }

    .project-gallery-page__title {
        margin-bottom: 24px;
    }

    .project-gallery-page__summary {
        max-width: 100%;
    }

    .project-gallery-grid--image-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .project-gallery-grid--appicon-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0;
    }

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

    .project-gallery-card--appicon-grid .project-gallery-card__media-wrap {
        width: min(100%, 144px);
    }

    .project-gallery-card--icon-grid .project-gallery-card__media-wrap {
        padding: 16px;
    }

    .project-gallery-card__caption {
        font-size: 12px;
        line-height: 1.45;
    }

    .ui-gallery {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
        padding: 0;
    }

    .ui-gallery-item {
        max-width: none;
        min-width: 0;
        padding: 0;
    }

    .article-page__hero {
        padding-top: 16px;
    }

    .page-loading {
        gap: 22px;
        padding-top: 14px;
    }

    .page-loading__line--title {
        width: 92%;
        height: 40px;
    }

    .page-loading__card--project {
        height: 148px;
    }

    .article-loading {
        padding-top: 30px;
    }

    .article-loading__line--title {
        width: 92%;
        height: 40px;
    }

    .article-loading__line--meta {
        width: 180px;
    }

    .article-page__title {
        font-size: 36px;
    }

    .ui-detail-page .article-page__title {
        font-size: 28px;
        line-height: 1.12;
    }

    .article-body {
        font-size: 15px;
        line-height: 1.8;
    }

    .article-body h2 {
        margin-top: 40px;
        font-size: 24px;
    }

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

    .site-footer {
        padding-bottom: 136px;
        border-top-color: color-mix(in srgb, var(--line) 50%, transparent);
    }

    .site-footer__inner {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 8px;
        color: var(--fg-3);
        text-align: center;
    }

    .site-footer__links {
        justify-content: center;
        gap: 20px;
        flex-wrap: wrap;
        color: var(--fg-3);
    }

    .mobile-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 20;
        display: flex;
        justify-content: center;
        padding: 30px 16px calc(env(safe-area-inset-bottom, 0px) + 26px);
        pointer-events: none;
    }

    .mobile-nav::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 104px;
        background: linear-gradient(
            to top,
            var(--bg-1) 0%,
            color-mix(in srgb, var(--bg-1) 70%, transparent) 48%,
            transparent 100%
        );
        pointer-events: none;
    }

    .mobile-nav__rail {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 18px;
        height: 48px;
        padding: 0 22px;
        border-radius: 999px;
        background: color-mix(in srgb, var(--card-bg) 94%, transparent);
        box-shadow: 0 10px 24px rgba(23, 23, 23, 0.035);
        backdrop-filter: blur(12px);
        pointer-events: auto;
    }

    .mobile-nav__link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 48px;
        min-height: 32px;
        padding: 0 2px;
        color: var(--fg-3);
        font-size: 14px;
        font-weight: var(--weight-bold);
        line-height: 1;
    }

    .mobile-nav__link.is-active {
        color: var(--fg-1);
    }
}
