:root {
    --dark-background-color: rgb(25, 25, 25);
    --dark-bright-color: rgb(193, 193, 193);
    --dark-dim-color: rgb(125, 125, 125);
    --dark-border-color: rgb(57, 57, 57);
    --dark-quote-color: rgb(150, 120, 120);

    --light-background-color: rgb(255, 255, 255);
    --light-bright-color: #414141;
    --light-dim-color: rgb(125, 125, 125);
    --light-border-color: #ddd;
    --light-quote-color: rgb(120, 36, 17);

    --accent-red: rgb(163, 80, 64);

    --bg-color: var(--light-background-color);
    --bright-color: var(--light-bright-color);
    --dim-color: var(--light-dim-color);
    --border-color: var(--light-border-color);
    --quote-color: var(--light-quote-color);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: var(--dark-background-color);
        --bright-color: var(--dark-bright-color);
        --dim-color: var(--dark-dim-color);
        --border-color: var(--dark-border-color);
        --quote-color: var(--dark-quote-color);
    }
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    background-color: var(--bg-color);
    color: var(--bright-color);
    font-family: 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', 'STSong',
        'Noto Serif', Georgia, 'Times New Roman', serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

.app {
    font-size: 20px;
    margin: 0 auto;
    max-width: 90%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Header — inherited from wetland-old Header.css */
.header {
    width: 100%;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    justify-content: space-evenly;
    margin-top: 30px;
    margin-bottom: 30px;
    font-size: 1em;
}

.header .logo {
    font-size: 1.6em;
}

.header .name {
    color: var(--bright-color);
    font-family: 'EB Garamond', 'Times New Roman', Times, Georgia, serif;
    font-size: 1em;
    font-weight: bold;
    line-height: 1.15;
}

.header .italic {
    font-size: 1em;
    font-weight: normal;
    font-style: italic;
}

.header .slogan {
    color: var(--bright-color);
    font-weight: 600;
    font-size: 0.5em;
    letter-spacing: 5px;
    margin-top: 4px;
    line-height: 1.5;
}

.header .menu {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    list-style: none;
    height: 1.4em;
    margin-top: 8px;
}

.header .space {
    flex: 1;
}

.header .normal {
    border-bottom: 1px solid var(--border-color);
}

.header .item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    color: var(--bright-color);
    font-size: 0.78em;
    font-weight: 400;
    user-select: none;
}

.header .focused {
    border-top: 1px solid var(--border-color);
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
}

/* Main single-page profile & note */
.main {
    width: 100%;
    max-width: 620px;
    margin: 24px auto 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.avatar {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    overflow: hidden;
    object-fit: cover;
}

.author-name {
    font-size: 20px;
    font-weight: 600;
    margin-top: 14px;
    color: var(--bright-color);
    letter-spacing: 0.5px;
}

.author-tagline {
    margin-top: 10px;
    font-size: 15.5px;
    line-height: 28px;
    color: var(--dim-color);
}

.section {
    width: 100%;
    margin-top: 44px;
}

.section-title {
    font-weight: 600;
    font-size: 18px;
    line-height: 38px;
    color: var(--bright-color);
    letter-spacing: 1px;
}

.section-body {
    padding-top: 18px;
    border-top: 1px solid var(--border-color);
    font-size: 16px;
    line-height: 31px;
    color: var(--bright-color);
}

.section-body p + p {
    margin-top: 16px;
}

.section-body.muted {
    color: var(--dim-color);
}

/* Footer — inherited from wetland-old Footer.css */
.footer {
    width: 100%;
    min-height: 80px;
    padding: 20px 0 28px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 10px 24px;
    margin-top: 72px;
    font-size: 0.78em;
    color: var(--dim-color);
}

.footer .author,
.footer .runtime .daycount,
.footer .copyright a {
    color: var(--bright-color);
}

.footer .copyright a:hover,
.footer .record a:hover {
    color: var(--accent-red);
    transition: color 0.25s ease;
}

.footer .record a {
    color: var(--dim-color);
}

@media (min-width: 600px) {
    .app {
        max-width: 85%;
    }

    .header .logo {
        font-size: 2em;
    }

    .header .name {
        font-size: 0.9em;
    }

    .header .slogan {
        font-size: 0.4em;
    }

    .header .item {
        font-size: 0.9em;
        width: 68px;
    }

    .header .menu {
        height: 1.6em;
    }

    .avatar {
        width: 140px;
        height: 140px;
    }
}

@media (min-width: 700px) {
    .header .logo {
        font-size: 3em;
    }

    .header .name {
        font-size: 1em;
    }

    .header .slogan {
        font-size: 0.4em;
    }

    .header .item {
        font-size: 0.95em;
        width: 80px;
    }

    .header .menu {
        height: 2em;
    }
}

@media (min-width: 1200px) {
    .app {
        max-width: 80%;
    }
}
