/* Under Construction - A Free Design by Bryant Smith (bryantsmith.com)
   Every colour and measurement on the page is gathered in this file.
   The short headings below point you to the part you want to change. */


/* ---- BODY: the warm backdrop everything sits on ---- */

body {
    background-color: #f6efe4;
    background-image:
        radial-gradient(circle at 50% 0%, rgba(201, 119, 42, 0.12), rgba(201, 119, 42, 0) 62%),
        radial-gradient(#e7d9c4 1.4px, rgba(255, 255, 255, 0) 1.4px);
    background-size: 100% 100%, 26px 26px;
    color: #2b2724;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    min-height: 100vh;
    padding: 48px 20px;
}

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


/* ---- PAGE: the centred column that holds everything ---- */

#page {
    max-width: 760px;
    text-align: center;
    width: 100%;
}


/* ---- MENU: the small row of links at the very top ---- */

#menu {
    margin-bottom: 36px;
}

#menu a,
#menu a:visited {
    border-bottom: 2px solid transparent;
    color: #7a716a;
    display: inline-block;
    font-size: 12px;
    letter-spacing: 2px;
    margin: 0 12px;
    padding-bottom: 4px;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.2s ease, border-color 0.2s ease;
}

#menu a:hover,
#menu a:focus {
    border-bottom-color: #c9772a;
    color: #9c5312;
}


/* ---- CARD: the friendly panel in the middle of the page ---- */

#card {
    background: #fffdf9;
    border: 1px solid #ede0cd;
    border-radius: 18px;
    box-shadow: 0 2px 3px rgba(43, 39, 36, 0.04), 0 22px 48px rgba(43, 39, 36, 0.09);
    padding: 64px 56px 60px 56px;
}


/* ---- EYEBROW: the little status pill above the heading ---- */

.eyebrow {
    align-items: center;
    background: #fbeed9;
    border-radius: 999px;
    color: #9c5312;
    display: inline-flex;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 2.5px;
    padding: 8px 18px 8px 14px;
    text-transform: uppercase;
}

.eyebrow::before {
    animation: pulse 1.8s ease-in-out infinite;
    background: #c9772a;
    border-radius: 50%;
    content: "";
    display: inline-block;
    height: 8px;
    margin-right: 10px;
    width: 8px;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.35; transform: scale(0.75); }
}


/* ---- HEADING: the big welcome at the top of the card ---- */

#card h1 {
    color: #241f1a;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 54px;
    font-weight: normal;
    letter-spacing: -1px;
    line-height: 1.12;
    margin: 26px 0 22px 0;
}


/* ---- LEAD: the short, warm introduction ---- */

.lead {
    color: #5f574f;
    font-size: 19px;
    line-height: 1.7;
    margin: 0 auto 44px auto;
    max-width: 46ch;
}


/* ---- PROGRESS: the CSS-only progress bar and its note ---- */

.progress {
    margin: 0 auto 44px auto;
    max-width: 460px;
    text-align: left;
}

.progress-top {
    align-items: baseline;
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.progress-label {
    color: #7a716a;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.progress-value {
    color: #9c5312;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 20px;
    font-weight: bold;
}

.track {
    background: #f1e5d3;
    border-radius: 999px;
    box-shadow: inset 0 1px 2px rgba(43, 39, 36, 0.08);
    height: 12px;
    overflow: hidden;
}

.bar {
    animation: grow 1.4s ease-out both, stripes 1s linear infinite;
    background-color: #c9772a;
    background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, rgba(255, 255, 255, 0) 25%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, rgba(255, 255, 255, 0) 75%, rgba(255, 255, 255, 0) 100%);
    background-size: 18px 18px;
    border-radius: 999px;
    height: 100%;
    width: 70%;
}

@keyframes grow {
    from { width: 0; }
    to   { width: 70%; }
}

@keyframes stripes {
    from { background-position: 0 0; }
    to   { background-position: 18px 0; }
}

.progress-note {
    color: #5f574f;
    font-size: 13px;
    line-height: 1.6;
    margin-top: 12px;
}


/* ---- EMAIL: the mailto line at the foot of the card ---- */

.email {
    color: #5f574f;
    font-size: 15px;
    line-height: 1.7;
}

.email a,
.email a:visited {
    border-bottom: 2px solid #f0cfa6;
    color: #9c5312;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 25px;
    padding-bottom: 2px;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.email a:hover,
.email a:focus {
    border-bottom-color: #9c5312;
    color: #6f3a08;
}


/* ---- HOW-TO NOTE: a quiet helper for beginners ---- */

.howto {
    border-top: 1px solid #e5d8c5;
    color: #5f574f;
    font-size: 13px;
    line-height: 1.7;
    margin: 36px auto 0 auto;
    max-width: 560px;
    padding-top: 24px;
    text-align: left;
}

.howto h2 {
    color: #9c5312;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.howto strong {
    color: #2b2724;
}


/* ---- FOOTER: the required credit link (please leave it here) ---- */

#footer {
    color: #7a716a;
    font-size: 10px;
    letter-spacing: 1px;
    margin-top: 28px;
    text-align: center;
    text-transform: uppercase;
}

#footer a,
#footer a:visited {
    color: #7a716a;
    text-decoration: none;
    transition: color 0.2s ease;
}

#footer a:hover {
    color: #9c5312;
}


/* ---- SMALL SCREENS: pull in the padding on phones ---- */

@media (max-width: 640px) {
    body {
        padding: 28px 16px;
    }

    #menu a {
        margin: 0 8px;
    }

    #card {
        border-radius: 14px;
        padding: 44px 24px 40px 24px;
    }

    #card h1 {
        font-size: 36px;
    }

    .lead {
        font-size: 17px;
    }

    .email a {
        font-size: 21px;
    }
}


/* ---- MOTION: respect visitors who prefer less movement ---- */

@media (prefers-reduced-motion: reduce) {
    .eyebrow::before,
    .bar {
        animation: none;
    }
}


/* ---- PRINT: a clean sheet, no decoration ---- */

@media print {
    body {
        background: #ffffff;
        background-image: none;
        display: block;
        padding: 0;
    }

    #menu,
    .howto {
        display: none;
    }

    #card {
        border: none;
        box-shadow: none;
        padding: 0;
    }
}
