css
/* =========================
   GENERAL PAGE STYLING
   ========================= */

* {
    box-sizing: border-box;
}

body {
    width: 90%;
    margin: 0 auto;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333333;
    background-color: #f4f7f6;
}


/* =========================
   HEADER
   ========================= */

header {
    text-align: center;
    padding: 30px 20px;
    background-color: #e0eee8;
    border-radius: 10px;
}

#title {
    color: #174b3a;
    font-family: "Palatino Linotype",
                 "Book Antiqua",
                 Palatino,
                 serif;
    font-size: 2.5em;
    text-shadow: 2px 2.5px 1px #b5c5bd;
    margin: 0;
}

.tagline {
    color: #48665a;
    font-size: 1.1em;
    margin: 10px 0 20px;
}


/* =========================
   NAVIGATION
   ========================= */

nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
}

nav li {
    list-style: none;
    margin: 8px;
}

nav a {
    display: block;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

/* State 1: Unvisited links */
nav a:link {
    color: #174b3a;
    background-color: transparent;
}

/* State 2: Visited links */
nav a:visited {
    color: #72528a;
}

/* State 3: Hover over a link */
nav a:hover {
    color: #ffffff;
    background-color: #267653;
}

/* State 4: Clicked or active links */
nav a:active {
    color: #ffffff;
    background-color: #d97732;
}

/* State 5: Keyboard-focused links */
nav a:focus-visible {
    color: #174b3a;
    background-color: #ffffff;
    outline: 3px solid #d97732;
    outline-offset: 3px;
}


/* =========================
   MAIN THREE-COLUMN SECTION
   ========================= */

#main {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 20px;
    width: 100%;
    margin: 30px 0;
}

/* Shared column styling */
.column {
    min-width: 0;
    padding: 15px;
    background-color: #ffffff;
    border: 1px solid #cbd8d1;
    border-top: 4px solid #267653;
    border-radius: 8px;
    overflow-wrap: break-word;
}

/* Featured Runner on the left */
.column3 {
    flex: 1;
    order: 1;
}

/* Upcoming Races in the middle */
.column2 {
    flex: 2;
    order: 2;
}

/* Training Tips on the right */
.column1 {
    flex: 1;
    order: 3;
}


/* =========================
   HEADINGS
   ========================= */

h2 {
    font-family: "Montserrat", sans-serif;
    font-size: 1.4em;
    text-align: center;
    text-decoration: underline;
    color: #174b3a;
    margin-top: 0;
    margin-bottom: 20px;
}

h3 {
    font-family: "Montserrat", sans-serif;
    color: #bce8d0;
    margin-top: 0;
}


/* =========================
   COLUMN IMAGES
   ========================= */

.column img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 18px;
}

.column p {
    margin-bottom: 16px;
}


/* =========================
   FOOTER
   ========================= */

footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
    padding: 25px;
    color: #ffffff;
    background-color: #174b3a;
    border-radius: 8px 8px 0 0;
}

.footer-contact {
    flex: 1 1 300px;
    min-width: 0;
}

.footer-social {
    flex: 0 1 200px;
}

footer p {
    margin: 8px 0;
    overflow-wrap: anywhere;
}

footer p i {
    margin-right: 8px;
    color: #bce8d0;
}

footer a {
    color: #ffffff;
    text-decoration: none;
}

footer a:hover {
    color: #bce8d0;
    text-decoration: underline;
}

footer a:focus-visible {
    outline: 2px solid #bce8d0;
    outline-offset: 4px;
}


/* Social media icons */
.social-icons {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    font-size: 1.6em;
    background-color: #28604e;
    border-radius: 50%;
    transition: 0.3s;
}

.social-icons a:hover {
    background-color: #398b69;
    transform: translateY(-3px);
    text-decoration: none;
}

.copyright {
    flex-basis: 100%;
    text-align: center;
    border-top: 1px solid #628477;
    padding-top: 15px;
    margin-bottom: 0;
    color: #dcebe4;
    font-size: 0.9em;
}


/* =========================
   MEDIA QUERY: UNDER 1000px
   ========================= */

@media screen and (max-width: 999px) {

    body {
        width: 100%;
    }

    header {
        border-radius: 0;
    }

}


/* =========================
   MEDIA QUERY: UNDER 700px
   ========================= */

@media screen and (max-width: 699px) {

    /* Stack columns vertically */
    #main {
        flex-direction: column;
        gap: 25px;
        padding: 0 18px;
    }

    /* Remove borders and padding from all columns */
    .column1,
    .column2,
    .column3 {
        flex: 1 1 auto;
        width: 100%;
        min-width: 0;
        border: none;
        padding: 0;
        border-radius: 0;
        background-color: transparent;
    }

    /* Keep images within each column */
    .column img {
        width: 100%;
        max-width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        object-fit: cover;
    }

    /* Smaller navigation spacing */
    nav li {
        margin: 4px;
    }

    nav a {
        padding: 8px 10px;
    }

    /* Responsive footer */
    footer {
        flex-direction: row;
        justify-content: space-around;
        align-items: flex-start;
        padding: 22px 18px;
        gap: 20px;
    }

    .footer-contact,
    .footer-social {
        flex: 1 1 100%;
    }

}