﻿/*
Theme Name: Shane Rawls Assignment 3B
Theme URI: https://assignment3b.srawls.tech
Author: Shane Rawls
Description: A custom editorial WordPress theme for CSCI 4460 Assignment 3B.
Version: 1.2
Text Domain: assignment3b
*/

* {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    color: #17233d;
    background-color: #f1eadc;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.7;
}

a {
    color: #174f83;
    text-decoration: none;
}

    a:hover,
    a:focus {
        color: #8a6426;
        text-decoration: underline;
    }

img {
    max-width: 100%;
    height: auto;
}

.site-wrapper {
    width: 100%;
    min-height: 100vh;
}

.site-header {
    color: #ffffff;
    background-color: #101c36;
    border-bottom: 6px solid #bd9852;
}

.header-content {
    width: 92%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 55px 20px 40px;
    text-align: center;
}

.publication-label {
    margin: 0 0 12px;
    color: #9edbe5;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 4px;
}

.site-title {
    display: inline-block;
    color: #ffffff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 48px;
    font-weight: bold;
    line-height: 1.1;
    letter-spacing: 2px;
}

    .site-title:hover,
    .site-title:focus {
        color: #e8c97f;
        text-decoration: none;
    }

.site-description {
    max-width: 650px;
    margin: 16px auto 0;
    color: #d7e6ed;
    font-size: 17px;
}

.main-navigation {
    background-color: #17294b;
    border-top: 1px solid #33476b;
}

    .main-navigation ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        max-width: 1180px;
        margin: 0 auto;
        padding: 0;
        list-style: none;
    }

    .main-navigation li {
        margin: 0;
        padding: 0;
    }

    .main-navigation a {
        display: block;
        padding: 16px 22px;
        color: #ffffff;
        font-size: 14px;
        font-weight: bold;
        letter-spacing: 1px;
        text-transform: uppercase;
    }

        .main-navigation a:hover,
        .main-navigation a:focus {
            color: #101c36;
            background-color: #9edbe5;
            text-decoration: none;
        }

.site-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 36px;
    width: 92%;
    max-width: 1180px;
    margin: 45px auto;
}

.left-sidebar {
    grid-column: 1;
}

.sidebar-section {
    margin-bottom: 25px;
    padding: 22px;
    background-color: #ffffff;
    border-top: 4px solid #174f83;
    box-shadow: 0 4px 14px rgba(16, 28, 54, 0.10);
}

    .sidebar-section h2 {
        margin: 0 0 15px;
        padding-bottom: 9px;
        color: #101c36;
        border-bottom: 1px solid #d9d1c2;
        font-family: Georgia, "Times New Roman", serif;
        font-size: 21px;
    }

    .sidebar-section ul {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .sidebar-section li {
        padding: 8px 0;
        border-bottom: 1px solid #e7e0d3;
    }

        .sidebar-section li:last-child {
            border-bottom: 0;
        }

    .sidebar-section input[type="search"] {
        width: 100%;
        padding: 10px;
        color: #17233d;
        background-color: #ffffff;
        border: 1px solid #9fa8b7;
    }

    .sidebar-section input[type="submit"] {
        margin-top: 8px;
        padding: 10px 14px;
        color: #ffffff;
        background-color: #174f83;
        border: 0;
        cursor: pointer;
    }

        .sidebar-section input[type="submit"]:hover,
        .sidebar-section input[type="submit"]:focus {
            color: #101c36;
            background-color: #9edbe5;
        }

.main-content {
    grid-column: 2;
    min-width: 0;
}

.editorial-introduction {
    margin-bottom: 28px;
    padding: 34px;
    color: #ffffff;
    background-color: #174f83;
    border-left: 8px solid #9edbe5;
}

.section-label {
    margin: 0 0 8px;
    color: #e8c97f;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 3px;
}

.editorial-introduction h1 {
    margin: 0 0 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 38px;
    line-height: 1.2;
}

.editorial-introduction p:last-child {
    margin-bottom: 0;
}

.editorial-article {
    margin-bottom: 30px;
    padding: 34px;
    background-color: #ffffff;
    border-bottom: 4px solid #bd9852;
    box-shadow: 0 4px 14px rgba(16, 28, 54, 0.10);
}

.article-category {
    margin: 0 0 8px;
    color: #8a6426;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.article-title {
    margin: 0 0 8px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 32px;
    line-height: 1.25;
}

    .article-title a {
        color: #101c36;
    }

        .article-title a:hover,
        .article-title a:focus {
            color: #174f83;
        }

.article-information {
    margin: 0 0 22px;
    padding-bottom: 12px;
    color: #5c6677;
    border-bottom: 1px solid #ddd6ca;
    font-size: 14px;
}

.article-content h2,
.article-content h3 {
    color: #101c36;
    font-family: Georgia, "Times New Roman", serif;
}

.article-content blockquote {
    margin: 24px 0;
    padding: 12px 22px;
    color: #39465b;
    background-color: #edf6f7;
    border-left: 5px solid #63b8c7;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
}

.article-content img {
    display: block;
    margin: 20px auto;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
}

    .post-navigation a {
        display: inline-block;
        padding: 11px 16px;
        color: #ffffff;
        background-color: #174f83;
    }

        .post-navigation a:hover,
        .post-navigation a:focus {
            color: #101c36;
            background-color: #9edbe5;
            text-decoration: none;
        }

.site-footer {
    padding: 30px 20px;
    color: #d7e6ed;
    background-color: #101c36;
    border-top: 6px solid #bd9852;
    text-align: center;
}

    .site-footer p {
        margin: 4px 0;
    }

@media screen and (max-width: 760px) {
    .site-title {
        font-size: 36px;
    }

    .main-navigation ul {
        display: block;
    }

    .main-navigation a {
        border-bottom: 1px solid #33476b;
        text-align: center;
    }

    .site-layout {
        display: flex;
        flex-direction: column;
        margin-top: 25px;
    }

    .main-content {
        order: 1;
    }

    .left-sidebar {
        order: 2;
    }

    .editorial-introduction,
    .editorial-article {
        padding: 24px;
    }

        .editorial-introduction h1 {
            font-size: 30px;
        }

    .article-title {
        font-size: 27px;
    }
}
