:root {
    --page-bg: #f5f5f5;
    --container-bg: #ffffff;
    --footer-bg: #f3f3f3;
    --text: #404040;
    --title: #232323;
    --muted: #8a8a8a;
    --line: #e9e9e9;
    --line-soft: #f2f2f2;
    --shadow: 0 0 20px 0 rgb(220, 220, 220);
    --code-bg: #fbfbfb;
    --menu-bg: #404040;
    --font-body: Georgia, "Palatino Linotype", "Book Antiqua", "Source Han Serif SC", "Noto Serif CJK SC", serif;
    --font-title: Georgia, "Palatino Linotype", "Book Antiqua", "Source Han Serif SC", "Noto Serif CJK SC", serif;
    --font-ui: "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --font-code: "Cascadia Mono", "JetBrains Mono", Consolas, monospace;
}

html[data-theme="dark"] {
    --page-bg: #111111;
    --container-bg: #181818;
    --footer-bg: #141414;
    --text: #d0d0d0;
    --title: #f2f2f2;
    --muted: #9a9a9a;
    --line: #2d2d2d;
    --line-soft: #242424;
    --shadow: 0 0 20px 0 rgba(0, 0, 0, 0.45);
    --code-bg: #1f1f1f;
    --menu-bg: #1d1d1d;
}

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

html, body {
    margin: 0;
    padding: 0;
    font-size: 100%;
}

body {
    background: var(--page-bg);
    color: var(--text);
    font-family: var(--font-body);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    font-variant-numeric: lining-nums tabular-nums;
    font-feature-settings: "lnum" 1, "tnum" 1;
}

a {
    color: var(--title);
    text-decoration: none;
    outline: none;
    transition: opacity 0.5s ease, color 0.5s ease;
}

a:hover {
    opacity: 0.5;
}

img {
    position: relative;
    display: block;
    margin: 20px auto;
    max-width: 100%;
    border-radius: 5px;
    box-shadow: var(--shadow);
}

p,
ul,
ol,
table,
th,
td,
input,
textarea,
button {
    font-size: 13px;
    line-height: 26px;
    font-weight: 300;
    letter-spacing: 0.6px;
}

time,
.stat-card__value,
.stream-meta,
.entry-meta,
.moment-item__meta,
.comment-meta,
.archive-entry__date,
.archive-entry__meta,
.archive-year__count,
.pager,
.site-footer {
    font-family: var(--font-ui);
    font-variant-numeric: lining-nums tabular-nums;
    font-feature-settings: "lnum" 1, "tnum" 1;
}

p,
ul,
ol,
th,
td {
    color: var(--text);
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 15px;
    margin-bottom: 20px;
    line-height: 1.45;
    font-weight: 300;
    letter-spacing: 0.6px;
    color: var(--title);
    font-family: var(--font-title);
}

code,
pre,
kbd {
    font-family: var(--font-code);
}

pre,
code {
    background: var(--code-bg);
    word-wrap: break-word;
}

code {
    color: var(--title);
}

pre {
    padding: 8px;
    overflow: auto;
    max-height: 400px;
    margin-bottom: 34px;
    font-size: 13px;
}

pre code {
    padding: 3px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 4px 20px 0 25px;
    height: 45px;
    border: 1px solid var(--line);
    text-align: left;
}

th {
    background: var(--code-bg);
}

blockquote {
    margin: 20px 0;
    padding-left: 16px;
    border-left: 2px solid var(--line);
}

hr {
    height: 1px;
    background-color: var(--line);
    border: 0;
}

button,
input,
textarea,
select {
    font-family: var(--font-ui);
}

.center {
    text-align: center;
}

.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;
}
