﻿/*
Theme Name: Shane Rawls Assignment 4
Theme URI: https://assignment4.srawls.tech
Author: Shane Rawls
Description: A custom editorial WordPress theme for CSCI 4460 Assignment 4.
Version: 1.2
Text Domain: assignment4
*/

* {
    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.6;
}

a {
    color: #174f85;
}

    a:hover,
    a:focus {
        color: #8b1e3f;
    }

img {
    max-width: 100%;
    height: auto;
}

.site-header {
    color: #ffffff;
    background-color: #17233d;
    border-bottom: 5px solid #b88a2d;
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 20px;
}

.site-title {
    margin: 0;
    font-size: 34px;
    line-height: 1.2;
}

    .site-title a {
        color: #ffffff;
        text-decoration: none;
    }

.site-description {
    margin: 8px 0 0;
    color: #e8dfcc;
    font-size: 17px;
}

.site-navigation {
    background-color: #0f182a;
    border-bottom: 1px solid #2d3a54;
}

    .site-navigation ul {
        display: flex;
        flex-wrap: wrap;
        max-width: 1100px;
        margin: 0 auto;
        padding: 0;
        list-style: none;
    }

    .site-navigation li {
        margin: 0;
    }

    .site-navigation a {
        display: block;
        padding: 14px 18px;
        color: #ffffff;
        text-decoration: none;
    }

        .site-navigation a:hover,
        .site-navigation a:focus {
            color: #ffffff;
            background-color: #8b1e3f;
        }

.site-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 28px;
    max-width: 1100px;
    margin: 32px auto;
    padding: 0 20px;
    align-items: start;
}

.sidebar {
    padding: 22px;
    background-color: #ffffff;
    border: 1px solid #d5c8b2;
}

.widget {
    margin-bottom: 28px;
}

    .widget:last-child {
        margin-bottom: 0;
    }

.widget-title {
    margin: 0 0 12px;
    padding-bottom: 8px;
    color: #17233d;
    font-size: 21px;
    border-bottom: 2px solid #b88a2d;
}

.widget ul {
    margin: 0;
    padding-left: 20px;
}

.site-main {
    min-width: 0;
    padding: 28px;
    background-color: #ffffff;
    border: 1px solid #d5c8b2;
}

.post-summary,
.single-post,
.page-content {
    margin-bottom: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid #d5c8b2;
}

    .post-summary:last-child,
    .single-post:last-child,
    .page-content:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: 0;
    }

.entry-title {
    margin: 0 0 8px;
    color: #17233d;
    font-size: 30px;
    line-height: 1.25;
}

    .entry-title a {
        color: #17233d;
        text-decoration: none;
    }

        .entry-title a:hover,
        .entry-title a:focus {
            color: #8b1e3f;
        }

.entry-meta {
    margin-bottom: 16px;
    color: #5b6474;
    font-size: 14px;
}

.featured-image {
    display: block;
    margin: 0 0 20px;
}

.entry-content,
.entry-summary {
    overflow-wrap: break-word;
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 14px;
    color: #ffffff;
    background-color: #174f85;
    text-decoration: none;
}

    .read-more:hover,
    .read-more:focus {
        color: #ffffff;
        background-color: #8b1e3f;
    }

.navigation {
    margin-top: 24px;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
}

.site-footer {
    margin-top: 36px;
    padding: 24px 20px;
    color: #ffffff;
    text-align: center;
    background-color: #17233d;
    border-top: 5px solid #b88a2d;
}

    .site-footer p {
        margin: 0;
    }

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    white-space: nowrap;
    border: 0;
    clip: rect(0, 0, 0, 0);
}

    .screen-reader-text:focus {
        position: fixed;
        top: 10px;
        left: 10px;
        z-index: 100000;
        width: auto;
        height: auto;
        padding: 12px;
        margin: 0;
        overflow: visible;
        color: #17233d;
        background-color: #ffffff;
        clip: auto;
    }

@media screen and (max-width: 800px) {
    .site-layout {
        grid-template-columns: 1fr;
    }

    .site-title {
        font-size: 28px;
    }

    .site-navigation ul {
        display: block;
    }

    .site-navigation a {
        border-bottom: 1px solid #2d3a54;
    }
}
