:root {
    --text-color: #222;
    --background-color: #fafafa;
    --border-color: #cfd9de;
    --light-color: #536471;
    --border-radius: 12px;
    --post-link-color: rgb(0, 111, 214);
    --margin: 1rem;
    --small-margin: 0.5rem;
}

body {
    font-family: sans-serif;
    line-height: 1.3;
    color: var(--text-color);
    background-color: var(--background-color);
}

a,
a:visited {
    color: var(--text-color);
}

a:hover {
    color: #000;
}

p {
    margin: 12px 0;
}

p:first-child {
    margin-top: 0;
}

p:last-child {
    margin-bottom: 0;
}

h1,
h2,
h3,
ul {
    margin: 0;
    padding: 0;
}

li {
    list-style-type: none;
}

table {
    border-collapse: collapse;
}

th,
td {
    padding: 3px 6px;
}

th {
    text-align: left;
}

.same-line-centered {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.profile-img {
    display: block;
    object-fit: cover;
    border-radius: 50%;
}

time,
.quiet {
    color: var(--light-color);
    font-size: 0.8rem;
}

.boxed {
    max-width: 800px;
    padding: 5px 8px;
    border-radius: 5px;
    border: solid 1px #1c4;
    background-color: #daf3e1;
    font-size: 0.9rem;
    margin: auto;
}

/* --- Main Header --- */
.main-header {
    justify-content: space-between;
    padding: 12px;
    max-width: 800px;
    margin: auto;
}

.main-header .title {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.main-header .title img {
    height: 50px;
}

.main-header h2 {
    margin: 0;
    font-size: 2rem;
}

.main-header h3 {
    margin: 0;
    font-style: italic;
    font-weight: normal;
    font-size: 1rem;
    color: var(--light-color);
}

.main-header nav {
    flex-grow: 1;
    max-width: 320px;
}

.main-header ul {
    display: flex;
    justify-content: space-between;
}

.main-header li {
    list-style: none;
}

.main-header a {
    padding: 6px 16px;
    color: #222;
    border: solid 1px var(--background-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-header nav img {
    height: 16px;
}

.main-header a:hover {
    border: solid 1px #777;
    border-radius: 8px;
    background-color: #fff;
}

/*--- End main header ---*/

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 15px;
    gap: 2rem;
}

.center {
    text-align: center;
}

.cta {
    text-align: center;
    margin: 4rem 0;
    background-color: #ecf2fb;
    border-radius: 25px;
    padding: 2rem;
}

.cta h2 {
    margin-bottom: 2rem;
}

.cta h2 strong {
    font-size: 1.8rem;
}

.cta a {
    border-radius: 8px;
    padding: 8px 16px;
    background-color: #2aa9e0;
    text-decoration: none;
    color: #effaff;
    font-weight: bold;
    font-size: 1.1rem;
}

.cta a:hover {
    background-color: #1a99d0;
}

/* Text pages (Home, About) */
.prose {
    width: 100%;
    max-width: 800px;
}
.prose h1 {
    margin: 4rem 0;
    text-align: center;
}

.prose h1 em {
    display: block;
    font-size: 1.2rem;
}

.prose ul {
    margin: 12px 0;
    padding-left: 1.5rem;
}

.prose li {
    list-style-type: disc;
}
