
:root {
    --highlight-color: #5F65B2;
    --secondary-color: #8B362A;
    --lightgray-color: #AAAAAA;
    --midgray-color:   #888888;
    --darkgray-color:  #444444;
}

/* -- Base -- */

body {
    font-family: 'Vollkorn', sans-serif;
    font-size: 20px;
    margin: 50px 25px;
    color: #333;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--highlight-color);
}

/* -- Layout -- */

header, footer, div.page {
    max-width: 1024px;
    margin: 0 auto;
    padding: 20px 30px;
}

/* -- Header & Nav -- */

header {
    border-bottom: 2px solid var(--highlight-color);
    font-family: "Vollkorn", sans-serif;
    font-size: 25px;
    text-align: center;
    color: var(--darkgray-color);
    padding-bottom: 16px;
    margin-bottom: 8px;
}

header h1 {
    color: var(--secondary-color);
    margin: 0;
    font-weight: normal;
    font-size: 30px;
    font-variant: small-caps;
}

header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 4px;
}

header nav ul li {
    margin: 0;
    padding: 0;
}

header nav ul li a {
    display: inline-block;
    padding: 4px 14px;
    color: var(--darkgray-color);
    font-variant: small-caps;
    letter-spacing: 0.02em;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

header nav ul li a:hover {
    color: var(--highlight-color);
    border-bottom-color: var(--highlight-color);
}

header nav ul li.active a {
    color: var(--highlight-color);
    border-bottom-color: var(--highlight-color);
}

/* -- Footer -- */

footer {
    border-top: 1px solid #ddd;
    font-family: "Fira Code";
    font-size: 12px;
    text-align: center;
    color: var(--midgray-color);
    margin-top: 40px;
    padding-top: 20px;
}

footer a {
    color: var(--midgray-color);
    transition: color 0.2s;
}

footer a:hover {
    color: var(--highlight-color);
}

/* -- Page Content -- */

div.page h1 {
    color: var(--highlight-color);
    margin: 0 0 0.3em 0;
    font-weight: bold;
    font-size: 26px;
    font-variant: small-caps;
}

div.page h2 {
    color: var(--secondary-color);
    margin: 1.2em 0 0.3em 0;
    font-weight: bold;
    font-size: 22px;
    font-variant: small-caps;
}

div.page h3 {
    margin: 1em 0 0.3em 0;
    font-size: 19px;
    color: var(--darkgray-color);
}

div.page p {
    text-align: justify;
    hyphens: auto;
    line-height: 1.6;
}

/* -- Blog -- */

.blog-post {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.blog-post:last-child {
    border-bottom: none;
}

.blog-post h2 {
    margin: 0.3em 0 0.1em 0;
}

.blog-post h2 a {
    color: var(--highlight-color);
    transition: color 0.2s;
}

.blog-post h2 a:hover {
    color: var(--secondary-color);
}

.blog-post .meta {
    font-size: 0.82em;
    color: var(--midgray-color);
    font-style: italic;
    margin-bottom: 0.8em;
}

.blog-post .meta a {
    color: var(--midgray-color);
}

.blog-post .meta a:hover {
    color: var(--highlight-color);
}

/* -- Pagination -- */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin: 2rem 0;
    font-family: "Fira Code";
    font-size: 13px;
}

.pagination a,
.pagination .disabled,
.pagination .page-num,
.pagination .ellipsis {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

.pagination a {
    border: 1px solid #ddd;
    color: var(--darkgray-color);
}

.pagination a:hover {
    background: var(--highlight-color);
    color: #fff;
    border-color: var(--highlight-color);
}

.pagination .page-num.current {
    background: var(--highlight-color);
    color: #fff;
    border: 1px solid var(--highlight-color);
}

.pagination .disabled {
    color: #ccc;
    border: 1px solid #eee;
}

.pagination .ellipsis {
    color: var(--midgray-color);
    border: none;
    padding: 5px 4px;
}

/* -- Welcome / Hero -- */

.intro {
    font-size: 400%;
    line-height: 1;
    float: left;
    padding-right: .125em;
    color: hsl(350, 50%, 50%);
}

.people {
    display: inline-block;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.col {
    display: inline-block;
}

.col.mid {
    vertical-align: middle;
}

.image-list {
    display: inline-block;
    vertical-align: middle;
}

.image-list ul {
    padding: 0 0 0 30px;
    margin: 0;
    list-style: none;
}

.image-list li {
    line-height: 55px;
}

.avatar {
    width: 150px;
    border-radius: 50%;
    box-shadow: 0 0 0 3px #fff, 0 0 0 4px #999, 0 2px 5px 4px rgba(0,0,0,.2);
}

.big-title {
    font-family: "Vollkorn", sans-serif;
    font-variant: small-caps;
    font-size: 80px;
    font-weight: bold;
    color: var(--highlight-color);
}

.big-subtitle {
    font-family: "Vollkorn", sans-serif;
    font-size: 72px;
    color: var(--secondary-color);
}

.big-quote {
    font-family: "Vollkorn", sans-serif;
    font-style: italic;
    font-size: 33px;
    color: var(--darkgray-color);
}

/* -- Thumbnails -- */

.thumbnail {
    float: left;
    margin: 0px 15px 15px 0px;
    width: 250px;
    height: auto;
    padding: 2px;
    border: 1.5px solid #021a40;
    background-color: #fff;
    border-radius: 4px;
    transition: box-shadow 0.2s;
}

.thumbnail:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* -- Image gallery -- */

.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.image-thumbnail {
    cursor: pointer;
    max-width: 150px;
    height: auto;
    border: 2px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.image-thumbnail:hover {
    border-color: var(--highlight-color);
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.image-group {
    margin: 20px 0;
}

.image-group h4 {
    margin-bottom: 10px;
    color: var(--darkgray-color);
    font-size: 16px;
}

/* -- Modal overlay -- */

.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    cursor: pointer;
}

.image-modal img {
    display: block;
    margin: auto;
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    border-radius: 4px;
}

.image-modal .close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.image-modal .close:hover {
    opacity: 0.7;
}

/* -- Code -- */

.inline-code {
    font-family: monospace, "Fira Code";
    font-size: 15px;
    background: #f4f4f4;
    border: 1px solid #ddd;
    color: #444;
    line-height: 1.6;
}

code {
    font-family: "Fira Code";
    font-size: 15px;
    background: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #444;
    line-height: 1.6;
    display: inline;
    padding: 0 0.3em;
    word-wrap: break-word;
}

pre {
    border: 1px solid #ddd;
    border-left: 3px solid var(--highlight-color);
    page-break-inside: avoid;
    line-height: 1.6;
    margin-bottom: 1.6em;
    max-width: 100%;
    overflow: auto;
    padding: 1em 1.5em;
    border-radius: 0 4px 4px 0;
    word-wrap: break-word;
    font-size: 0.85em;
}

pre code {
    background: transparent;
    border: 0;
    border-radius: 0;
    display: block;
    padding: 0;
}

/* -- Tags -- */

.tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
    color: #fff;
    background-color: #777;
    margin-left: 5px;
}

.tag.available {
    background-color: #4CAF50;
}

.tag.oop {
    background-color: #f44336;
}

/* -- Unavailable link pill -- */

.unavailable {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 10px;
    font-size: 0.7em;
    font-style: italic;
    color: #fff;
    background-color: #e8923a;
    vertical-align: middle;
    line-height: 1.6;
    cursor: help;
}

/* -- Fancy HR -- */

hr.fancy-hr {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
    margin: 40px 0;
}

/* -- Responsive -- */

@media (max-width: 768px) {
    body {
        margin: 20px 10px;
        font-size: 18px;
    }

    .big-title {
        font-size: 40px;
    }

    .big-subtitle {
        font-size: 36px;
    }

    .big-quote {
        font-size: 22px;
    }

    .people {
        display: block;
        text-align: center;
    }

    .col, .image-list {
        display: block;
    }

    .image-list ul {
        padding: 0;
    }

    .image-list li {
        line-height: 1.4;
        margin-bottom: 8px;
    }

    header nav ul {
        flex-wrap: wrap;
    }

    .thumbnail {
        float: none;
        display: block;
        margin: 15px auto;
        max-width: 100%;
    }

    .intro {
        font-size: 250%;
    }
}
