:root {
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --max-content-width: 850px;
    --nav-color: Crimson;
}

body {
    background-image: url(../images/gp.png);
    background-position: center top;
    background-repeat: no-repeat;
    background-size: 1200px 130px;
    margin: var(--spacing-md) auto;
    width: 90%;
    max-width: var(--max-content-width);
    font-size: 15pt;
    font-family: Georgia, "Big Caslon", "Book Antiqua", "Palatino Linotype", serif;
}

@media (min-width: 768px) {
    body {
        width: 70%;
    }
}

header, header a {
    font-family: monaco, Consolas, "Lucida Console", monospace;
}

nav .menu, footer ul {
    font-family: Georgia, "Big Caslon", "Book Antiqua", "Palatino Linotype", serif;
    padding: 0;
    list-style: none;
    font-weight: normal;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

ul li {
    font-size: 12pt;
    line-height: 16pt;
    font-family: monaco, Consolas, "Lucida Console", monospace;
}

nav .menu li, nav .menu li a {
    color: var(--nav-color);
    font-size: 16pt;
    line-height: 18pt;
    display: inline-block;
}

/* Hamburger menu styles */
.menu-toggle {
    display: none;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    z-index: 10;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--nav-color);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

@media (max-width: 768px) {
    nav {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .hamburger {
        display: flex;
    }

    .menu {
        display: none !important;
        width: 100%;
        flex-direction: column;
        gap: 10px;
        margin-top: var(--spacing-sm);
        padding-left: 0;
    }

    .menu-toggle:checked ~ .menu {
        display: flex !important;
    }

    /* Morphing to X */
    .menu-toggle:checked + .hamburger span:nth-child(1) {
        transform: translateY(7.5px) rotate(45deg);
    }

    .menu-toggle:checked + .hamburger span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle:checked + .hamburger span:nth-child(3) {
        transform: translateY(-7.5px) rotate(-45deg);
    }
}

nav .menu li a:hover, nav .menu li a:focus {
    text-decoration: underline;
    outline: none;
}

footer ul {
    justify-content: flex-start;
    margin-bottom: var(--spacing-sm);
}

footer ul li {
    display: inline-block;
}

footer .social-icon {
    width: 42px;
    height: 42px;
    border: 0;
}

a {
  color: var(--nav-color);
  text-decoration: none;
  font-family: Georgia, "Big Caslon", "Book Antiqua", "Palatino Linotype", serif;
}

a:hover, a:focus {
    text-decoration: underline;
}

h1 {
    font-size: 22pt;
    font-family: monaco, Consolas, "Lucida Console", monospace;
    margin-top: var(--spacing-md);
}

p {
    text-align: justify;
    font-size: 15pt;
    line-height: 24pt;
    font-family: Georgia, "Big Caslon", "Book Antiqua", "Palatino Linotype", serif;
    color: #333;
    margin-bottom: var(--spacing-sm);
}

footer {
    border-top: 1px solid #d5d5d5;
    font-size: 12pt;
    font-family: monaco, Consolas, "Lucida Console", monospace;
    padding-top: var(--spacing-sm);
    margin-top: var(--spacing-lg);
}

footer a, footer p {
    font-size: 11pt;
    font-family: monaco, Consolas, "Lucida Console", monospace;
}

ul.posts {
    margin: var(--spacing-sm) auto var(--spacing-md);
    font-size: 12pt;
    padding-left: 0;
}

ul.posts li {
    list-style: none;
    margin-bottom: var(--spacing-xs);
}

img {
    max-width: 100%;
    height: auto;
}

.alignright {
    float: none;
    display: block;
    margin: 0 auto var(--spacing-sm);
}

@media (min-width: 600px) {
    .alignright {
        float: right;
        margin: 0 0 var(--spacing-sm) var(--spacing-sm);
    }
}

.textwidth {
    max-width: 100%;
    height: auto;
}

.profile-img {
    width: 210px;
    max-width: 100%;
}

.compact-text p {
    font-size: 12pt;
    line-height: 16pt;
}

.full-width {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    max-width: none;
}

.half-width {
    width: 50vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    max-width: none;
}

@media (min-width: 1200px) {
    .full-width {
        width: 1200px;
        margin-left: calc((var(--max-content-width) - 1200px) / 2);
        left: auto;
        right: auto;
    }
}
