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

body {
    font-family: Georgia, 'Times New Roman', Times, serif;
    color: #222;
    background: #faf9f6;
    font-size: 17px;
    line-height: 1.8;
}

a {
    color: inherit;
    text-decoration-color: #ddd;
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s ease;
}

a:hover {
    text-decoration-color: currentColor;
}

.right a {
    text-decoration-color: #ccc;
}

.right a:hover {
    text-decoration-color: #333;
}

/* ---- Homepage ---- */

body.home main {
    max-width: 900px;
    margin: 0 auto;
    padding: 20vh 24px 10vh;
    width: 100%;
}

.home .columns {
    display: flex;
    gap: 6em;
}

.left {
    flex-shrink: 0;
    width: 160px;
}

body.home h1 {
    font-weight: normal;
    font-size: 1em;
    letter-spacing: 0.02em;
    margin-bottom: 1.5em;
}

body.home nav {
    display: flex;
    flex-direction: column;
    gap: 0.3em;
    margin-bottom: 1.2em;
    font-size: 0.9em;
}

body.home nav a {
    text-decoration: none;
    width: fit-content;
    color: #aaa;
}

body.home nav a:hover {
    color: #222;
}

body.home nav a.active {
    color: #222;
}

.right {
    flex: 1;
    color: #333;
    font-size: 0.95em;
    line-height: 1.85;
}

.right p {
    margin-bottom: 1em;
}

.socials-list {
    display: flex;
    flex-direction: column;
    gap: 0.4em;
}

.socials-list a {
    width: fit-content;
    text-decoration: none;
    color: #999;
    font-size: 0.95em;
}

.socials-list a:hover {
    color: #222;
}

.contact {
    font-size: 0.75em;
    letter-spacing: 0.01em;
}

.mobile-only {
    display: none;
}

.contact a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact a:hover {
    color: #222;
}

@media (max-width: 600px) {
    body.home main {
        padding-top: 3em;
    }

    .home .columns {
        flex-direction: column;
        gap: 2em;
    }

    body.home nav {
        flex-direction: row;
        gap: 0.8em;
    }

    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
    }
}

/* ---- Inner page header ---- */

header {
    padding: 1.5em 24px;
}

header .header-inner {
    max-width: 600px;
    margin: 0 auto;
}

header a {
    text-decoration: none;
    color: #999;
    font-size: 0.9em;
}

header a:hover {
    color: #111;
}

/* ---- Content wrapper ---- */

.wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 24px 4em;
}

.wrapper p {
    margin-bottom: 1em;
}

/* ---- About page ---- */

.social {
    margin-top: 2em;
    font-size: 0.9em;
}

.social a {
    color: #999;
    text-decoration: none;
    margin-right: 1em;
}

.social a:hover {
    color: #111;
}

/* ---- Writing index ---- */

.container {
    display: flex;
    flex-direction: column;
}

.card {
    border-bottom: 1px solid #eee;
    padding: 1.2em 0;
}

.card h3 {
    font-family: inherit;
    font-weight: normal;
    font-size: 1em;
    line-height: 1.6;
    margin: 0;
}

.card h3 a {
    color: #888;
    font-size: 0.85em;
}

.card h3 a:hover {
    color: #111;
}

time {
    font-size: 0.85em;
    color: #999;
}

/* ---- Blog posts ---- */

h5 {
    font-family: inherit;
    font-weight: normal;
    font-size: 1.3em;
    margin-bottom: 0.3em;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.5em 0;
}

.image-caption {
    font-size: 0.85em;
    color: #999;
    text-align: center;
}

.tags__item {
    display: none;
}


/* ---- Responsive ---- */

@media (max-width: 600px) {
    body {
        font-size: 17px;
    }

    body.home main {
        padding-top: 12vh;
    }
}
