       
/* CSS reset */
* {
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box;
}

/* Prevent images from breaking out of small phone screens */
img {
    max-width: 100%;
    height: auto;
}

/* Full-width centered logo banner */
.logo-banner {
    width: 100%;
    background-color: #EFEFE9;
    text-align: center;
   }

.logo-banner img {
    display: block;
    width: 30%;
    height: auto;
    margin: 0 auto;
    padding: 20px;
  }

/* Main page styles */
body {
    background-color: #523D35;
    color: #BBA58F;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

/* Flexbox header */
header {
    background-color: #959D90;
    color: #222222;
    padding: 25px 20px;
    border-bottom: 4px solid #223030;
    box-shadow: 2px 2px 4px #E2E8D5;
	       ;
}

.header-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
}

/* Mobile navigation */
nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
}

nav a {
    display: block;
    width: 100%;
    min-height: 48px;
    background-color: #8A9A5B;
    color: #18200F;
    border: 2px solid #394820;
    border-radius: 8px;
    padding: 14px 18px;
    text-align: center;
    text-decoration: none;
}

/* Navigation hover and keyboard focus */
nav a:hover,
nav a:focus {
    background-color: #959D90;
    color: #EFEFE9;
    text-decoration: none;
}

/* Shows visitors which page they are currently viewing */
nav a[aria-current="page"] {
    background-color: #EFEFE9;
    color: #523D35;
    border: 3px solid #523D35;
    font-weight: bold;
}

/* Main sections stack vertically on phones */
main {
    max-width: calc(100%-10px);
    margin: 10 auto;
    padding: 20px 16px;
    outline: 4px solid #232030;

    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Boxes around the direct sections inside main */
main > section {
    width: 100%;
    border: 2px solid #223030;
    padding: 16px;
    border-radius: 4px;
}

/* Michelle Unpacked logo */
.logo {
    display: block;
    width: 500px;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 10px;
}

/* Welcome section */
.welcome {
    width: 100%;
	max-width: 900px;
    margin: 0 auto;
    background-color: #EFEFE9;
    color: #523D35;
    border-left: 6px solid #959D90;
    padding: 25px;
}

.welcome h2 {
    color: #394820;
    margin-top: 0;
    margin-bottom: 12px;
}

.welcome p {
    margin-bottom: 12px;
}

/* Start Here button */
.start-button {
    display: inline-block;
    background-color: #523D35;
    color: #EFEFE9;
    border: 2px solid #223030;
    border-radius: 8px;
    padding: 12px 18px;
    margin-top: 12px;
    margin-bottom: 12px;
    text-decoration: none;
}

/* Start button hover and keyboard focus */
.start-button:hover,
.start-button:focus {
    background-color: #959D90;
    color: #223030;
    text-decoration: none;
}

/* Writing topic section heading */
#topics-heading {
    color: #EFEFE9;
    text-align: center;
    margin-bottom: 8px;
}

/* Introduction above the writing topic cards */
.section-introduction {
    max-width: 700px;
    margin: 0 auto 24px;
    color: #EFEFE9;
    text-align: center;
}

/*
Asymmetrical CSS Grid.
This is different from the equal business layout.
*/
.topic-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 35px;
}

/* Writing topic cards */
.topic-card {
    background-color: #EFEFE9;
    color: #523D35;
    border: 2px solid #BBA58F;
    border-radius: 14px;
    padding: 24px;
}

/* Topic card headings */
.topic-card h3 {
    color: #223030;
    border-bottom: 2px solid #959D90;
    padding-bottom: 8px;
    margin-top: 0;
    margin-bottom: 12px;
}

.topic-card p {
    margin-bottom: 12px;
}

/* Taller featured card */
.featured-topic {
    background-color: #EFEFE9;
}

/* Topic links */
.topic-link {
    display: inline-block;
    background-color: #959D90;
    color: #223030;
    border: 2px solid #223030;
    border-radius: 8px;
    padding: 8px 13px;
    margin-top: 10px;
    text-decoration: none;
}

/* Topic-link hover and keyboard focus */
.topic-link:hover,
.topic-link:focus {
    background-color: #556B2F;
    color: #FFFFFF;
    text-decoration: none;
}

/* Writing schedule section */
.schedule-section {
    background-color: #EFEFE9;
    color: #523D35;
    border: 2px solid #DE8E4C;
    border-radius: 14px;
    padding: 25px;
    overflow-x: auto;
}

.schedule-section h2 {
    color: #394820;
    margin-top: 0;
    margin-bottom: 12px;
}

.schedule-section p {
    margin-bottom: 12px;
}

/* Writing schedule table */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
}

caption {
    color: #523D35;
    font-size: 1.25rem;
    font-weight: bold;
    padding: 10px;
}

th,
td {
    border: 1px solid #523D35;
    padding: 12px;
    text-align: left;
}

thead th {
    background-color: #223030;
    color: #EFEFE9;
}

tbody th {
    background-color: #959D90;
    color: #222222;
}

/* Alternating table-row colors */
tbody tr:nth-child(odd) td {
    background-color: #EFEFE9;
}

tbody tr:nth-child(even) td {
    background-color: #E8D9CD;
}

/* Footer */
footer {
    background-color: #394820;
    color: #FFFFFF;
    border-top: 4px solid #8A9A5B;
    margin-top: 30px;
    padding: 20px;
    text-align: center;
}
.contact-info {
    margin: 12px 0;
    color: #EFEFE9;
    font-style: normal;
    line-height: 1.6;
}

.contact-info a,
.contact-info a:visited {
    color: #EFEFE9;
}

.contact-info a:hover,
.contact-info a:focus {
    color: #BBA58F;
    text-decoration: none;
}

footer p {
    margin: 5px;
}

/* AI assistance disclosure */
.ai-disclosure {
    color: #EFEFE9;
    font-size: 0.60rem;
}

/* Tablet and desktop screens */
@media screen and (min-width: 768px) {

    body {
        font-size: 18px;
    }

    .header-container {
        max-width: 1200px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .site-title {
        width: 100%;
        text-align: center;
    }

    /* Horizontal navigation on larger screens */
    header nav {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px;
        width: 100%;
    }

    header nav a {
        display: inline-block;
        width: auto;
        min-height: auto;
        padding: 9px 12px;
    }

    main {
        padding: 30px 20px;
    }

    main > section {
        width: 100%;
    }

    .topic-grid {
        grid-template-columns: 2fr 1fr;
    }

    .featured-topic {
        grid-row: span 2;
    }

}