:root {
    --bg: #F4EFE6;
    --card: #e9dbce;
    --header: #d6c3b2;
    --text: #3F3125;
    --muted: #7A6A5A;
    --accent: #bfa285;
}

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

body {
    font-family: "Book Antiqua", Palatino, "Palatino Linotype", serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

header {
    background: var(--card);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    margin: 0;
}

header h1 a {
    display: inline-block;
    font-family: "Cormorant Garamond", serif;
    font-size: 2.2rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: .05em;
    color: var(--text);
    text-decoration: none;
    transition: color .25s, letter-spacing .25s;
}

header h1 a:hover {
    color: var(--accent);
    letter-spacing: .08em;
}

nav {
    display: flex;
    gap: 1.5rem;
}

nav a {
    text-decoration: none;
    color: var(--muted);
    font-weight: 500;
    transition: color .25s;
}

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

nav a.active {
    color: var(--text);
    border-bottom: 2px solid var(--accent);
    padding-bottom: .25rem;
}

a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
    border-radius: 4px;
}

footer {
    text-align: center;
    padding: 2rem;
    font-size: .9rem;
    color: #666;
}

.site-footer {

    margin-top: 4rem;
    padding: 2rem;

    text-align: center;

    color: var(--muted);

    font-size: .9rem;

    border-top: 1px solid rgba(63, 49, 37, .12);

}


.footer-nav {

    display: flex;
    justify-content: center;
    gap: 1.5rem;

    margin-bottom: 1rem;

}


.footer-nav a {

    text-decoration: none;
    color: var(--muted);

    transition: .25s;

}


.footer-nav a:hover {

    color: var(--accent);

}

.back-top {

    display: block;
    width: fit-content;

    margin: 3rem auto 1rem;

    padding: .6rem 1.2rem;

    background: rgba(191, 162, 133, .15);

    border: 1px solid rgba(63, 49, 37, .15);

    border-radius: 20px;

    color: var(--muted);

    text-decoration: none;

    font-size: .9rem;

    font-style: italic;

    transition: .25s ease;
}

.back-top:hover {

    background: rgba(191, 162, 133, .28);

    color: var(--text);

    transform: translateY(-2px);

}

html {
    scroll-behavior: smooth;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;

    background: var(--card);
    color: var(--text);

    padding: .8rem 1rem;

    border-radius: 8px;

    z-index: 1000;
}

.essay-nav {

    display: flex;
    width: 90%;
    max-width: 700px;
    justify-content: space-between;

    align-items: center;

    margin-top: 3rem;

    padding-top: 2rem;

    border-top: 1px solid rgba(63, 49, 37, .12);

    margin: 2rem auto 1.5rem;

    display: flex;

}

.essay-nav a {

    background: #f7f1ea;

    border: 1px solid rgba(63, 49, 37, .12);

    border-radius: 12px;

    padding: .6rem 1.2rem;

    color: var(--text);

    text-decoration: none;

    font-size: .95rem;

    transition: .25s ease;

}

.essay-nav a:hover {

    background: #efe5da;

    border-color: #bfa285;

    transform: translateY(-2px);

}

.essay-nav a:nth-child(2) {

    font-style: normal;

}

.archive-button {

    background: #efe5da !important;

}


/*Shared Phone Layout*/
@media (max-width:850px) {

    header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.5rem;
        gap: 1rem;
    }

    header h1 a {
        font-size: 1.9rem;
    }

    nav {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }

    nav a {
        margin: 0;
        font-size: .95rem;
    }

    nav a.active {
        padding-bottom: .4rem;
    }
}