@charset "UTF-8";
/* CSS Document */

@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;700&family=Noto+Serif+TC:wght@400;700&family=PT+Serif:ital,wght@0,400;0,700;1,400;1,700&display=swap");

@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined");

:root {
    --dark: #1d1d1f;
    --light: #f5f5f7;
}

::-webkit-scrollbar {
    display: none;
}

* {
    padding: 0;
    margin: 0;
    border: 0;
}

body {
    font-family: "PT Serif", "Georgia", "Noto Serif TC", "Noto Serif SC", Serif;
    font-size: 16px;
    line-height: 1.7;
    letter-spacing: -0.005em;
    color: var(--dark);
    background-color: var(--light);
    max-width: 640px;
    margin: auto;
    padding: 0 5%;
}

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

a::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 1.5px;
    /* background: currentColor; */
    background: linear-gradient(90deg, #e23838 0%, #f78200 20%, #ffb900 40%, #5ebd3e 60%, #009cdf 80%, #973999 100%);
    top: 100%;
    left: 0;
    transform-origin: 100% 50%;
    transform: scale3d(0, 1, 1);
    transition: transform 0.3s;
}

a:hover::before {
    transform-origin: 0% 50%;
    transform: scale3d(1, 1, 1);
}

h1,
h2,
h3 {
    line-height: 1.25;
    font-size: 20px;
}

.site-title {
    padding: 50px 0 25px;
}

.posts {
    padding-top: 0.5em;
    padding-bottom: 0.5em;
    /* margin-bottom: 25px; 
    border-bottom: 2px dotted var(--light-border-color);
    border-bottom-width: 2px; */
}

.post-title {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1em;
}

.post-title h2 {
    flex: 1;
    margin: 0;
}

.post-title .date {
    font-size: 0.8em;
    font-style: italic;
    white-space: nowrap;
}

p {
    margin-top: 1em;
    margin-bottom: 1em;
}

.date {
    font-size: 0.8em;
    font-style: italic;
}

/* .main .posts:last-child {
    border-bottom: 0;
} */

.pagination {
    padding-top: 50px;
    padding-bottom: 100px;
}

.prev,
.next {
    display: inline-block;
}

.prev {
    padding-right: 2em;
}

.next {
    padding-left: 2em;
}

.prev a {
    margin-left: -0.4em;
}

.next a {
    margin-right: -0.4em;
}

.material-symbols-outlined {
    vertical-align: -25%;
}

.year-title {
    font-size: 1.25em;
    font-style: italic;
    font-weight: bold;
    opacity: 0.5;
    margin-top: 1em;
    margin-bottom: 0.5em;
    color: var(--dark);
}

@media (prefers-color-scheme: dark) {
    body {
        color: var(--light);
        background-color: var(--dark);
    }

    .year-title {
        color: var(--light);
    }
}