
/*
    Student Name: Jayla Bethea
    Date: 10/14/2026
    File Name: styles.css
*/

/* CSS Reset */
body, header, nav, main, footer, img, h1, h2, h3, p,
ul, article, section, aside, figure, figcaption {
    margin: 0;
    padding: 0;
    border: 0;
}

/* Body and Image Styles */
body {
    background: linear-gradient(#f6eee4, #78593a);
    color: #2a1f14;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

/* Mobile Navigation Styles */
nav {
    background-color: #2a1f14;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav ul {
    list-style-type: none;
    margin: 0;
    text-align: center;
}

nav li {
    display: inline-block;
    font-size: 1em;
}

nav li a {
    display: block;
    color: #f6eee4;
    padding: 0.75em 0.5em;
    text-decoration: none;
}

/* Navigation Hover and Focus Effects */
nav li a:hover,
nav li a:focus {
    background-color: #78593a;
    color: #ffffff;
}

/* Main Content Styles */
main {
    padding: 2%;
    font-family: Verdana, Arial, sans-serif;
}

main p {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 1em;
}

main h2,
main h3 {
    padding-top: 2%;
    margin-bottom: 0.5em;
}

main ul {
    list-style-type: square;
    padding-left: 2em;
    margin-bottom: 1em;
}

/* Link Styles */
.link {
    color: #4d3319;
    text-decoration: none;
    font-weight: bold;
    font-style: italic;
}

.link:hover,
.link:focus {
    color: #78593a;
    text-decoration: underline;
}

/* Action Text Styles */
.action {
    font-size: 1.25em;
    font-weight: bold;
    text-align: center;
}

/* Contact Section */
#contact {
    text-align: center;
}

/* Rounded Corner Styles */
#welcome,
#latest,
#info,
#contact {
    background-color: #fffaf5;
    border-radius: 10px;
    padding: 1em;
    margin-bottom: 1em;
}

/* Mobile and Desktop Content Visibility */
.tab-desk {
    display: none;
}

.mobile {
    display: block;
}

/* Footer Styles */
footer {
    text-align: center;
    font-size: 0.85em;
    background-color: #2a1f14;
    color: #f6eee4;
    padding: 1em 0;
}

footer a {
    color: #f3e6d8;
    text-decoration: none;
}

footer a:hover,
footer a:focus {
    text-decoration: underline;
}

/* Tablet Viewport: 620px and Above */
@media screen and (min-width: 620px) {

    /* Show Tablet and Desktop Content */
    .tab-desk {
        display: block;
    }

    .mobile {
        display: none;
    }

    /* Tablet Navigation */
    nav li {
        font-size: 1.25em;
    }

    nav li a {
        padding: 0.75em 1em;
    }

    /* Tablet Text Styles */
    main p {
        font-size: 1.1em;
    }

    /* Tablet Two-Column Layout */
    .grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5em;
    }

    /* Figure and Caption Styles */
    figure {
        margin: 1em auto;
    }

    figcaption {
        text-align: center;
        font-style: italic;
        padding: 0.5em;
    }
}

/* Desktop Viewport: 1000px and Above */
@media screen and (min-width: 1000px) {

    /* Desktop Navigation */
    nav li {
        font-size: 1.5em;
    }

    nav li a {
        padding: 0.75em 1.5em;
    }

    /* Desktop Main Content */
    main {
        padding: 2em;
    }

    main p {
        font-size: 1.25em;
    }

    /* Desktop Three-Column Layout */
    .grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 2em;
    }

    /* Desktop Navigation Hover Effect */
    nav li a:hover,
    nav li a:focus {
        background-color: #f6eee4;
        color: #2a1f14;
    }

    /* Desktop Section Spacing */
    #welcome,
    #latest,
    #info,
    #contact {
        padding: 2em;
        margin-bottom: 1.5em;
    }
}

/* Large Desktop Viewport: 1921px and Above */
@media screen and (min-width: 1921px) {

    /* Center Website Within a 1920px Wrapper */
    #wrapper {
        width: 1920px;
        margin: 0 auto;
    }

    /* Large Desktop Navigation */
    nav li {
        font-size: 1.75em;
    }

    /* Large Desktop Content Spacing */
    main {
        padding: 3em;
    }
}

/* Print Styles */
@media print {

    /* White Background and Black Text */
    body {
        background: #ffffff;
        color: #000000;
    }

    /* Hide Navigation When Printing */
    nav {
        display: none;
    }

    /* Remove Colored Backgrounds */
    header,
    main,
    footer,
    #welcome,
    #latest,
    #info,
    #contact {
        background: #ffffff;
        color: #000000;
    }

    /* Print Links in Black */
    a,
    footer a,
    .link {
        color: #000000;
        text-decoration: underline;
    }

    /* Remove Decorative Rounded Corners */
    #welcome,
    #latest,
    #info,
    #contact {
        border: 1px solid #000000;
        border-radius: 0;
    }

    /* Keep Images Within the Page */
    img {
        max-width: 100%;
    }
}
