/* ---------- Foundation ---------- */

body {
    margin: 0;
    padding: 0;

    background: #faf8f3; /*ece8df*/
    color: #222;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    line-height: 1.85;

    -webkit-font-smoothing: antialiased;
}

/* ---------- Navigation ---------- */

.nav {
    border-bottom: 1px solid #d8d2c7;
}

.nav-inner {
    max-width: 760px;
    margin: 0 auto;
    padding: 22px 28px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    color: inherit;

    font-size: 15px;
    letter-spacing: 0.08em;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    text-decoration: none;
    color: #555;
    font-size: 15px;
}

.nav-links a:hover {
    color: #111;
}

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

main {
    max-width: 680px;
    margin: 90px auto;
    padding: 0 28px;
}

/* ---------- Headings ---------- */

h1 {
    font-size: 2.8rem;
    font-weight: 400;
    line-height: 1.15;

    margin-top: 0;
    margin-bottom: 1rem;
}

h2 {
    margin-top: 4rem;
    margin-bottom: 1rem;

    font-size: 1.15rem;
    font-weight: 600;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h3 {
    font-size: 1rem;
    font-weight: 600;

    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

/* ---------- Text ---------- */

p {
    margin: 1.2rem 0;
}

strong {
    font-weight: 600;
}

em {
    color: #555;
}

a {
    color: inherit;

    text-decoration-color: #9c907e;
    text-underline-offset: 3px;
}

a:hover {
    text-decoration-color: #222;
}

/* ---------- Lists ---------- */

ul,
ol {
    padding-left: 1.4rem;
}

li {
    margin-bottom: 0.5rem;
}

/* ---------- Separators ---------- */

hr {
    border: 0;
    border-top: 1px solid #d8d2c7;
    margin: 3rem 0;
}

/* ---------- Quotes ---------- */

blockquote {
    margin: 2rem 0;
    padding-left: 1.2rem;

    border-left: 2px solid #c9c1b3;

    color: #555;
    font-style: italic;
}

/* ---------- Code ---------- */

pre {
    overflow-x: auto;

    padding: 1rem;

    background: #e4dfd5;
    border: 1px solid #d3ccbf;
}

code {
    font-size: 0.95em;
}

/* ---------- Images ---------- */

img {
    display: block;
    max-width: 100%;
    height: auto;

    margin: 2rem auto;
}

/* ---------- Footer ---------- */

footer {
    max-width: 680px;

    margin: 100px auto 50px;
    padding: 0 28px;

    color: #777;
    font-size: 0.85rem;
}
