/* =========================================================
   BEYOND HR — ARTICLE STYLES
   PercolatePraxis

   HTML:
   articles/people/beyond-hr.html

   CSS:
   css/bhr-styles.css

   FONT:
   Times New Roman
   ========================================================= */


/* =========================================================
   1. GLOBAL RESET
   Removes default browser spacing and makes sizing easier
   to control.
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* =========================================================
   2. HTML / PAGE SETTINGS
   ========================================================= */

html {
    scroll-behavior: smooth;
}


/* =========================================================
   3. BODY
   Main page background, text colour, font and line spacing.
   ========================================================= */

body {
    background-color: #f7f5f0;
    color: #222222;

    /* Main font for the entire article */
    font-family: "Times New Roman", Times, serif;

    line-height: 1.75;
}


/* =========================================================
   4. ARTICLE CONTAINER
   Controls the overall spacing around the article.
   ========================================================= */

.article-container {
    width: 100%;

    /* Top / horizontal / bottom spacing */
    padding: 70px 20px 90px;
}


/* =========================================================
   5. ARTICLE WIDTH
   Keeps the article readable on large screens.
   ========================================================= */

.article {
    max-width: 820px;

    /* Centres the article horizontally */
    margin: 0 auto;
}


/* =========================================================
   6. ARTICLE HEADER
   Contains:
   - Category
   - Article title
   - Introduction
   ========================================================= */

.article-header {
    text-align: center;

    /* Space between header and article content */
    margin-bottom: 55px;
}


/* =========================================================
   7. ARTICLE CATEGORY
   Example: PEOPLE
   ========================================================= */

.article-category {
    font-family: "Times New Roman", Times, serif;

    font-size: 14px;

    /* Creates spacing between letters */
    letter-spacing: 3px;

    font-weight: bold;

    color: #777777;

    margin-bottom: 18px;
}


/* =========================================================
   8. ARTICLE TITLE
   ========================================================= */

.article-header h1 {
    font-family: "Times New Roman", Times, serif;

    font-size: 46px;

    /* Controls spacing between lines of the title */
    line-height: 1.15;

    font-weight: bold;

    color: #171717;

    margin-bottom: 25px;
}


/* =========================================================
   9. ARTICLE INTRODUCTION
   Short description displayed below the title.
   ========================================================= */

.article-intro {
    max-width: 700px;

    /* Centres the introduction */
    margin: 0 auto;

    font-family: "Times New Roman", Times, serif;

    font-size: 20px;

    line-height: 1.6;

    color: #555555;
}


/* =========================================================
   10. ARTICLE BODY
   Main paragraphs of the article.
   ========================================================= */

.article-content {
    font-family: "Times New Roman", Times, serif;

    font-size: 18px;

    line-height: 1.75;
}


/* =========================================================
   11. ARTICLE PARAGRAPHS
   ========================================================= */

.article-content p {
    font-family: "Times New Roman", Times, serif;

    margin-bottom: 28px;
}


/* Removes unnecessary bottom spacing from the final paragraph */
.article-content p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   12. ARTICLE FOOTER
   Contains the closing message and back link.
   ========================================================= */

.article-footer {
    margin-top: 60px;

    padding-top: 30px;

    /* Thin separator above the footer */
    border-top: 1px solid #d6d2ca;

    text-align: center;
}


/* =========================================================
   13. CLOSING MESSAGE
   ========================================================= */

.article-footer p {
    font-family: "Times New Roman", Times, serif;

    font-size: 18px;

    font-style: italic;

    color: #555555;

    margin-bottom: 25px;
}


/* =========================================================
   14. BACK TO WEBSITE LINK
   ========================================================= */

.back-link {
    display: inline-block;

    font-family: "Times New Roman", Times, serif;

    color: #222222;

    text-decoration: none;

    font-size: 16px;

    font-weight: bold;

    /* Underline created using border */
    border-bottom: 1px solid #222222;

    padding-bottom: 3px;

    transition: opacity 0.2s ease;
}


/* Changes opacity when the mouse is placed over the link */
.back-link:hover {
    opacity: 0.6;
}


/* =========================================================
   15. TABLET RESPONSIVE DESIGN
   Applies to screens up to 768px wide.
   ========================================================= */

@media (max-width: 768px) {

    /* Reduce outer spacing */
    .article-container {
        padding: 50px 18px 70px;
    }


    /* Reduce header spacing */
    .article-header {
        margin-bottom: 40px;
    }


    /* Reduce title size */
    .article-header h1 {
        font-size: 36px;
    }


    /* Reduce introduction size */
    .article-intro {
        font-size: 18px;
    }


    /* Slightly reduce body text */
    .article-content {
        font-size: 17px;

        line-height: 1.7;
    }


    /* Reduce paragraph spacing */
    .article-content p {
        margin-bottom: 24px;
    }

}


/* =========================================================
   16. MOBILE RESPONSIVE DESIGN
   Applies to screens up to 480px wide.
   ========================================================= */

@media (max-width: 480px) {

    /* Reduce outer spacing further */
    .article-container {
        padding: 40px 16px 60px;
    }


    /* Smaller article title */
    .article-header h1 {
        font-size: 30px;
    }


    /* Smaller category text */
    .article-category {
        font-size: 12px;

        letter-spacing: 2px;
    }


    /* Smaller introduction */
    .article-intro {
        font-size: 17px;
    }


    /* Smaller body text */
    .article-content {
        font-size: 16px;
    }


    /* Smaller footer text */
    .article-footer p {
        font-size: 16px;
    }

}


/* =========================================================
   END OF BEYOND HR ARTICLE STYLES
   ========================================================= */
