/*
Theme Name: Pen in Bygone Days
Theme URI: https://typecho.org
Author: Codex
Description: A quiet, image-first Typecho theme inspired by restrained editorial photography blogs.
Version: 1.7.1
*/

@font-face {
    font-family: "Bygone Noto Sans SC";
    font-style: normal;
    font-display: swap;
    font-weight: 400;
    src: url("assets/fonts/noto-sans-sc-latin-400-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Bygone Noto Sans SC";
    font-style: normal;
    font-display: swap;
    font-weight: 400;
    src: url("assets/fonts/noto-sans-sc-chinese-simplified-400-normal.woff2") format("woff2");
    unicode-range: U+2E80-2EFF, U+3000-303F, U+31C0-31EF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FE10-FE1F, U+FE30-FE4F, U+FF00-FFEF;
}

@font-face {
    font-family: "Bygone Noto Sans SC";
    font-style: normal;
    font-display: swap;
    font-weight: 600;
    src: url("assets/fonts/noto-sans-sc-latin-600-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Bygone Noto Sans SC";
    font-style: normal;
    font-display: swap;
    font-weight: 600;
    src: url("assets/fonts/noto-sans-sc-chinese-simplified-600-normal.woff2") format("woff2");
    unicode-range: U+2E80-2EFF, U+3000-303F, U+31C0-31EF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FE10-FE1F, U+FE30-FE4F, U+FF00-FFEF;
}

:root {
    --bg: #f8f8f6;
    --surface: #f1f1ee;
    --text: #565653;
    --strong: #3f3f3c;
    --heading: #62625d;
    --muted: #9b9b96;
    --faint: #cecec8;
    --line: #e3e3de;
    --accent: #bb2222;
    --hover: #dd1144;
    --accent-soft: rgba(187, 34, 34, .1);
    --code-bg: #efefeb;
    --selection: rgba(162, 75, 75, .2);
    --content-width: 750px;
    --font-sans: "Avenir Next", "Segoe UI", "Hiragino Sans GB", "PingFang SC", "Microsoft YaHei", sans-serif;
    --font-reading: "Bygone Noto Sans SC", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    --font-serif: Iowan Old Style, "Noto Serif CJK SC", "Songti SC", Georgia, serif;
    color-scheme: light;
}

html[data-theme="dark"] {
    --bg: #1c1c1b;
    --surface: #252523;
    --text: #c8c8c1;
    --strong: #e2e2dc;
    --heading: #bebeb7;
    --muted: #85857f;
    --faint: #5e5e59;
    --line: #353532;
    --accent: #d76a7f;
    --hover: #f08098;
    --accent-soft: rgba(215, 106, 127, .12);
    --code-bg: #252523;
    --selection: rgba(207, 119, 119, .28);
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.9;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    transition: background-color .25s ease, color .25s ease;
}

::selection {
    background: var(--selection);
}

a {
    color: inherit;
    text-decoration: none;
    text-underline-offset: .2em;
}

a:hover {
    color: var(--hover);
}

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

button {
    cursor: pointer;
}

img,
video,
iframe {
    max-width: 100%;
}

img {
    height: auto;
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: 12px;
    left: 12px;
    padding: 8px 12px;
    transform: translateY(-150%);
    background: var(--strong);
    color: var(--bg);
}

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

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

.site-shell {
    width: min(calc(100% - 40px), var(--content-width));
    margin: 0 auto;
}

.site-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    padding: 54px 0 40px;
}

.site-branding {
    min-width: 0;
}

.site-title {
    display: inline-block;
    color: var(--muted);
    font-size: 1.38rem;
    font-weight: 650;
    letter-spacing: -.035em;
    line-height: 1.2;
}

.site-title:hover {
    color: var(--hover);
}

.site-description {
    overflow: hidden;
    max-width: 420px;
    margin: 7px 0 0;
    color: var(--muted);
    font-size: .78rem;
    line-height: 1.5;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-nav {
    display: flex;
    flex: none;
    align-items: center;
    gap: 14px;
    padding-top: 3px;
}

.nav-icon {
    position: relative;
    display: grid;
    width: 18px;
    height: 22px;
    padding: 0;
    place-items: center;
    border: 0;
    background: transparent;
    color: var(--faint);
}

.nav-icon::after {
    position: absolute;
    right: 1px;
    bottom: -4px;
    left: 1px;
    height: 1px;
    content: "";
    transform: scaleX(0);
    background: currentColor;
    transition: transform .18s ease;
}

.nav-icon:hover,
.nav-icon:focus-visible {
    color: var(--hover);
    outline: none;
}

.nav-icon.is-current {
    color: var(--muted);
}

.nav-icon:hover::after,
.nav-icon:focus-visible::after,
.nav-icon.is-current::after {
    transform: scaleX(1);
}

.nav-icon svg,
.search-close svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
}

.theme-toggle .icon-moon,
html[data-theme="dark"] .theme-toggle .icon-sun {
    display: none;
}

html[data-theme="dark"] .theme-toggle .icon-moon {
    display: inline-grid;
}

.ambient-toggle {
    overflow: visible;
}

.ambient-toggle.is-playing,
.site-header.is-playing .ambient-toggle {
    color: var(--accent);
}

.ambient-note {
    display: inline-grid;
}

.ambient-equalizer {
    display: none;
    align-items: flex-end;
    justify-content: center;
    width: 14px;
    height: 13px;
    gap: 2px;
}

.ambient-equalizer i {
    width: 2px;
    height: 5px;
    border-radius: 2px;
    background: currentColor;
    animation: ambient-wave .9s ease-in-out infinite alternate;
}

.ambient-equalizer i:nth-child(2) {
    height: 10px;
    animation-delay: -.45s;
}

.ambient-equalizer i:nth-child(3) {
    height: 7px;
    animation-delay: -.2s;
}

.site-header.is-playing .ambient-note {
    display: none;
}

.site-header.is-playing .ambient-equalizer {
    display: flex;
}

.ambient-toggle.is-awaiting::before,
.site-header.is-awaiting .ambient-toggle::before {
    position: absolute;
    top: 1px;
    right: 0;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
    content: "";
}

.ambient-panel {
    position: fixed;
    z-index: 80;
    top: 88px;
    right: 20px;
    width: min(242px, calc(100vw - 32px));
    padding: 14px 15px 13px;
    border: 1px solid var(--line);
    border-radius: 3px;
    background: var(--bg);
    box-shadow: 0 12px 32px rgba(35, 35, 32, .09);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-5px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
    visibility: hidden;
}

html[data-theme="dark"] .ambient-panel {
    box-shadow: 0 14px 36px rgba(0, 0, 0, .24);
}

.ambient-panel.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
}

.ambient-panel__heading {
    min-width: 0;
    margin-bottom: 10px;
}

.ambient-panel__state {
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: .64rem;
    letter-spacing: .08em;
}

.ambient-panel__title {
    display: block;
    overflow: hidden;
    color: var(--heading);
    font-size: .82rem;
    font-weight: 520;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ambient-panel__progress,
.ambient-panel__volume {
    display: flex;
    align-items: center;
    gap: 9px;
}

.ambient-panel__progress {
    color: var(--muted);
    font-size: .62rem;
    font-variant-numeric: tabular-nums;
}

.ambient-panel__progress span {
    flex: none;
    min-width: 54px;
    text-align: right;
}

.ambient-panel__volume {
    margin-top: 7px;
    color: var(--faint);
}

.ambient-panel__volume > span:not(.screen-reader-text) {
    display: inline-grid;
    flex: none;
    width: 13px;
}

.ambient-panel__volume svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
}

.ambient-panel input[type="range"] {
    width: 100%;
    height: 14px;
    margin: 0;
    padding: 0;
    appearance: none;
    background: transparent;
    cursor: pointer;
}

.ambient-panel input[type="range"]::-webkit-slider-runnable-track {
    height: 1px;
    background: var(--line);
}

.ambient-panel input[type="range"]::-webkit-slider-thumb {
    width: 7px;
    height: 7px;
    margin-top: -3px;
    border: 0;
    border-radius: 50%;
    appearance: none;
    background: var(--muted);
}

.ambient-panel input[type="range"]::-moz-range-track {
    height: 1px;
    background: var(--line);
}

.ambient-panel input[type="range"]::-moz-range-thumb {
    width: 7px;
    height: 7px;
    border: 0;
    border-radius: 50%;
    background: var(--muted);
}

.ambient-panel input[type="range"]:focus-visible {
    outline: 1px solid var(--hover);
    outline-offset: 2px;
}

.ambient-audio {
    display: none;
}

@keyframes ambient-wave {
    from { transform: scaleY(.45); }
    to { transform: scaleY(1); }
}

.site-content {
    outline: none;
}

.post-card {
    margin: 0 0 56px;
}

.post-header {
    margin-bottom: 18px;
}

.post-title {
    margin: 0;
    color: var(--heading);
    font-size: 1.42rem;
    font-weight: 520;
    letter-spacing: -.025em;
    line-height: 1.4;
}

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

.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px 14px;
    margin-top: 4px;
    color: var(--muted);
    font-size: .79rem;
    line-height: 1.45;
}

.post-meta > * {
    display: inline-flex;
    align-items: center;
    min-height: 18px;
}

.post-tags a::before {
    content: "#";
}

.post-tags a + a {
    margin-left: 8px;
}

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

.like-button {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
    transition: color .15s ease, opacity .15s ease;
}

.comment-count {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.comment-count svg,
.like-button svg {
    flex: none;
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
}

.like-button svg {
    transform: translateY(-.5px);
}

.like-button:hover,
.like-button:focus-visible,
.like-button.is-liked {
    color: var(--hover);
    outline: none;
}

.like-button.is-liked svg {
    fill: currentColor;
}

.like-button.is-busy {
    pointer-events: none;
    opacity: .45;
}

.post-content {
    color: var(--text);
    font-family: var(--font-reading);
    font-size: 15px;
    font-weight: 400;
    line-height: 2;
    overflow-wrap: anywhere;
    -webkit-font-smoothing: auto;
}

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

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

.post-content p,
.post-content ul,
.post-content ol,
.post-content blockquote,
.post-content pre,
.post-content table,
.post-content figure {
    margin-top: 1.35em;
    margin-bottom: 1.35em;
}

.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    margin: 2.2em 0 .8em;
    color: var(--heading);
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: -.02em;
}

.post-content h2 {
    font-size: 1.3rem;
}

.post-content h3 {
    font-size: 1.16rem;
}

.post-content h4,
.post-content h5,
.post-content h6 {
    font-size: 1rem;
}

.post-content a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: text-decoration-color .15s ease;
}

.post-content a:hover {
    color: var(--hover);
    text-decoration-color: currentColor;
}

.post-content img,
.entry-cover img {
    display: block;
    width: auto;
    margin: 2rem auto;
    transition: filter .35s ease, opacity .25s ease;
}

.post-content > p > img:only-child,
.post-content > figure > img,
.entry-cover img {
    width: 100%;
}

html[data-media-tone="mono"] .post-content img,
html[data-media-tone="mono"] .entry-cover img {
    filter: grayscale(1) saturate(.15) contrast(.96);
}

html[data-media-tone="mono"] .post-content img:hover,
html[data-media-tone="mono"] .entry-cover:hover img {
    filter: grayscale(.25) saturate(.8) contrast(.98);
}

.post-content figure {
    margin-right: 0;
    margin-left: 0;
}

.post-content figcaption {
    margin-top: -1.2rem;
    color: var(--muted);
    font-size: .78rem;
    text-align: center;
}

.post-content blockquote {
    margin-right: 0;
    margin-left: 0;
    padding: .1em 0 .1em 1.35em;
    border-left: 1px solid var(--faint);
    color: var(--muted);
    font-family: var(--font-serif);
    font-size: 1.04rem;
}

.post-content blockquote > :first-child {
    margin-top: 0;
}

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

.post-content hr {
    width: 36px;
    margin: 3.5rem auto;
    border: 0;
    border-top: 1px solid var(--faint);
}

.post-content code {
    padding: .12em .35em;
    border-radius: 2px;
    background: var(--code-bg);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: .86em;
}

.post-content pre {
    position: relative;
    overflow-x: auto;
    padding: 1.2rem 1.35rem;
    border: 1px solid var(--line);
    background: var(--code-bg);
    font-size: .86rem;
    line-height: 1.75;
}

.post-content pre code {
    padding: 0;
    background: none;
    font-size: inherit;
}

.copy-code {
    position: absolute;
    top: 7px;
    right: 7px;
    padding: 2px 7px;
    border: 1px solid var(--line);
    background: var(--bg);
    color: var(--muted);
    font-size: .7rem;
    opacity: 0;
    transition: opacity .15s ease;
}

pre:hover .copy-code,
.copy-code:focus {
    opacity: 1;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
}

.post-content th,
.post-content td {
    padding: .55rem .7rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.post-content th {
    color: var(--strong);
    font-weight: 560;
}

.post-content ul,
.post-content ol {
    padding-left: 1.4em;
}

.post-content li + li {
    margin-top: .25em;
}

.entry-cover {
    display: block;
}

.read-more {
    margin-top: .8rem !important;
    font-size: .84rem;
}

.single-header {
    margin-bottom: 28px;
}

.single-post > .post-content {
    min-height: 80px;
}

.post-near {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 64px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.post-near__item {
    min-width: 0;
    color: var(--muted);
    font-size: .88rem;
}

.post-near__item > span {
    display: block;
    margin-bottom: 3px;
    color: var(--faint);
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.post-near__item a {
    color: var(--accent);
}

.post-near__next {
    text-align: right;
}

.pagination {
    margin: 36px 0 10px;
}

.pagination ol {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pagination a,
.pagination span {
    color: var(--accent);
    font-size: .88rem;
}

.pagination .current a {
    color: var(--text);
}

.section-header {
    margin: 0 0 38px;
}

.section-header .eyebrow,
.empty-state .eyebrow,
.comments-header .eyebrow,
.respond-header .eyebrow {
    margin: 0 0 2px;
    color: var(--muted);
    font-size: .7rem;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.section-header h1,
.empty-state h1,
.comments-header h2,
.respond-header h2 {
    margin: 0;
    color: var(--strong);
    font-size: 1.45rem;
    font-weight: 520;
    letter-spacing: -.025em;
    line-height: 1.45;
}

.section-intro {
    margin-top: 1rem;
}

.archive-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.archive-list li {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr) auto;
    gap: 10px 16px;
    align-items: baseline;
    padding: 8px 0;
    border-bottom: 1px solid transparent;
}

.archive-list li:hover {
    border-bottom-color: var(--line);
}

.archive-list time,
.archive-list__tags {
    color: var(--muted);
    font-size: .78rem;
}

.archive-list > li > a {
    min-width: 0;
    overflow: hidden;
    color: var(--text);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.archive-list > li > a:hover {
    color: var(--hover);
}

.archive-list__tags a::before {
    content: "#";
}

.archive-list__tags a + a {
    margin-left: 5px;
}

.year-group {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 24px;
    margin-bottom: 28px;
}

.year-group h2 {
    margin: 7px 0 0;
    color: var(--strong);
    font-size: 1.05rem;
    font-weight: 520;
}

.year-group .archive-list li {
    grid-template-columns: 50px minmax(0, 1fr) auto;
}

.tag-cloud {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    border: 1px solid var(--line);
    background: var(--line);
}

.tag-cloud > a {
    display: flex;
    min-width: 0;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 13px;
    background: var(--bg);
}

.tag-cloud span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tag-cloud small {
    color: var(--muted);
    font-size: .7rem;
}

.comments-area {
    margin-top: 70px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.comments-header,
.respond-header {
    margin-bottom: 24px;
}

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

.comment-list > li {
    margin-bottom: 28px;
}

.comment-list .comment-body {
    position: relative;
    padding-left: 52px;
}

.comment-list .avatar {
    position: absolute;
    top: 3px;
    left: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    filter: grayscale(1);
}

.comment-author {
    color: var(--strong);
    font-size: .88rem;
}

.comment-meta {
    margin-top: -3px;
    color: var(--muted);
    font-size: .72rem;
}

.comment-content {
    margin-top: 8px;
}

.comment-content p {
    margin: .7em 0;
}

.comment-reply {
    font-size: .76rem;
}

.comment-reply a,
.cancel-comment-reply a {
    color: var(--accent);
}

.comment-list .children {
    margin: 20px 0 0 52px;
}

.comment-list .children > li + li {
    margin-top: 22px;
}

.respond {
    margin-top: 54px;
}

.comment-fields {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.comment-form p {
    margin: 0 0 16px;
}

.comment-form label {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: .76rem;
}

.comment-form input,
.comment-form textarea,
.inline-search input,
.search-field input {
    width: 100%;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    outline: none;
    background: transparent;
    transition: border-color .15s ease;
}

.comment-form input {
    padding: 8px 0;
}

.comment-form textarea {
    display: block;
    min-height: 150px;
    padding: 10px 0;
    resize: vertical;
}

.comment-form input:focus,
.comment-form textarea:focus,
.inline-search input:focus,
.search-field input:focus {
    border-bottom-color: var(--accent);
}

.comment-form button,
.inline-search button,
.search-field button {
    padding: 7px 15px;
    border: 1px solid var(--faint);
    background: transparent;
    color: var(--text);
}

.comment-form button:hover,
.inline-search button:hover,
.search-field button:hover {
    border-color: var(--hover);
    color: var(--hover);
}

.comment-pagination ol {
    display: flex;
    gap: 12px;
    padding: 0;
    list-style: none;
}

.empty-state {
    max-width: 520px;
    padding: 54px 0 90px;
}

.empty-state > p:not(.eyebrow) {
    color: var(--muted);
}

.empty-state a {
    color: var(--accent);
}

.empty-state--small {
    padding: 8px 0 40px;
}

.inline-search,
.search-field {
    display: flex;
    gap: 12px;
    margin: 26px 0;
}

.inline-search input,
.search-field input {
    min-width: 0;
    padding: 8px 0;
}

.inline-search button,
.search-field button {
    flex: none;
}

.search-panel[hidden] {
    display: none;
}

.search-panel {
    position: fixed;
    z-index: 80;
    inset: 0;
    display: grid;
    padding: 20px;
    place-items: center;
    background: rgba(248, 248, 246, .94);
    backdrop-filter: blur(12px);
}

html[data-theme="dark"] .search-panel {
    background: rgba(28, 28, 27, .94);
}

.search-panel__inner {
    position: relative;
    width: min(100%, 560px);
}

.search-panel label {
    display: block;
    color: var(--strong);
    font-size: 1.4rem;
}

.search-close {
    position: absolute;
    top: -52px;
    right: 0;
    display: grid;
    width: 30px;
    height: 30px;
    padding: 0;
    place-items: center;
    border: 0;
    background: transparent;
    color: var(--muted);
}

.search-is-open {
    overflow: hidden;
}

.muted,
.comments-closed {
    color: var(--muted);
}

@media (max-width: 720px) {
    .site-shell {
        width: min(calc(100% - 32px), var(--content-width));
    }

    .site-header {
        align-items: center;
        padding: 34px 0 32px;
    }

    .site-description {
        display: none;
    }

    .site-nav {
        gap: 12px;
        overflow-x: auto;
        max-width: 62%;
        padding: 4px 1px 7px;
        scrollbar-width: none;
    }

    .site-nav::-webkit-scrollbar {
        display: none;
    }

    .post-card {
        margin-bottom: 48px;
    }

    .post-content {
        font-size: 14px;
        line-height: 1.9;
    }

    .post-content img,
    .entry-cover img {
        margin-top: 1.65rem;
        margin-bottom: 1.65rem;
    }

    .archive-list li,
    .year-group .archive-list li {
        grid-template-columns: 66px minmax(0, 1fr);
        gap: 5px 12px;
    }

    .archive-list__tags {
        display: none;
    }

    .year-group {
        display: block;
    }

    .year-group h2 {
        margin: 0 0 5px;
    }

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

    .comment-fields {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .comment-list .children {
        margin-left: 22px;
    }
}

@media (max-width: 460px) {
    .site-header {
        display: block;
    }

    .site-nav {
        max-width: none;
        margin-top: 18px;
    }

    .site-title {
        font-size: 1.27rem;
    }

    .post-title,
    .section-header h1,
    .empty-state h1 {
        font-size: 1.28rem;
    }

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

    .post-near__next {
        text-align: left;
    }

    .tag-cloud {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media print {
    :root {
        --bg: #fff;
        --text: #222;
        --strong: #000;
        --heading: #111;
    }

    .site-header,
    .comments-area,
    .post-near,
    .ambient-panel,
    .search-panel {
        display: none !important;
    }

    .site-shell {
        width: 100%;
    }

    .post-content a {
        color: inherit;
    }
}
