/* Pet Parade - A Free Design by Bryant Smith (bryantsmith.com)
   A bright sunny header, a row of pet profile cards with round CSS
   avatars, and a tinted list of favourite things.
   Every colour and space used on the page is gathered here.
   Follow the comment headings to find the part you want to change. */


/* ---- COLOUR PALETTE -------------------------------------------------
   Sun yellow  : #ffe08a / #ffc14d / #ff9a52   (the bright header)
   Header ink  : #3a2a14 / #6b4415           (text on the header)
   Page cream  : #fff8ef                     (background)
   Card white  : #ffffff
   Raspberry   : #c2334f                     (links and accents)
   Ink         : #3b3340 / #574f5e           (headings / body text)
   Muted       : #857d8c
   Hairline    : #f0e2d4
   Pet tints   : orange  #ff8a5c
                 sky     #4a9fc7
                 violet  #8e6fc0
   -------------------------------------------------------------------- */


/* ---- BODY: the warm cream page everything sits on ---- */

body {
    background: #fff8ef;
    color: #574f5e;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 15.5px;
    line-height: 1.7;
    margin: 0;
}

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


/* ---- HERO: the bright full-width header band ----
   #hero stretches across the whole window; .hero-inner keeps the words
   centred inside a comfortable max-width. */

#hero {
    background: linear-gradient(135deg, #ffe08a 0%, #ffc14d 48%, #ff9a52 100%);
    border-bottom: 1px solid #f0b352;
    box-shadow: 0 1px 0 #fff3d4 inset;
    overflow: hidden;
    padding: 60px 24px 42px 24px;
    position: relative;
    text-align: center;
}

/* A soft sunny glow and two pale bubbles, all drawn with CSS. */
#hero::before {
    background: radial-gradient(60% 80% at 50% 0%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 70%);
    content: "";
    height: 220px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

#hero::after {
    background: rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    bottom: -70px;
    content: "";
    height: 180px;
    position: absolute;
    right: -50px;
    width: 180px;
}

.hero-inner {
    margin: 0 auto;
    max-width: 900px;
    position: relative;
    z-index: 1;
}

#hero .eyebrow {
    color: #8a4a12;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

#hero h1 {
    color: #3a2a14;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 58px;
    font-weight: normal;
    letter-spacing: -1px;
    line-height: 1.05;
    margin-top: 12px;
}

#hero .tagline {
    color: #6b4415;
    font-size: 18px;
    font-style: italic;
    margin-top: 14px;
}


/* ---- MENU: the row of navigation links inside the header ---- */

#menu {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 28px;
    justify-content: center;
    margin: 30px auto 0 auto;
    max-width: 640px;
}

#menu a,
#menu a:visited {
    border-bottom: 2px solid transparent;
    color: #5a3c14;
    font-size: 12px;
    letter-spacing: 2px;
    padding-bottom: 4px;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.18s ease, border-color 0.18s ease;
}

#menu a:hover,
#menu a:focus {
    border-bottom-color: #b23a1f;
    color: #8a2c12;
}


/* ---- MAIN: the centred column that holds the cards and list ---- */

#main {
    margin: 0 auto;
    max-width: 960px;
    padding: 56px 24px 0 24px;
}

#main .lead {
    color: #3b3340;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 21px;
    line-height: 1.6;
    margin-bottom: 20px;
}

#main .note {
    border-left: 3px solid #ffb347;
    color: #857d8c;
    font-size: 14.5px;
    margin-bottom: 52px;
    padding-left: 20px;
}


/* ---- SECTION TITLE: the small caps heading with a paw dot ---- */

.section-title {
    color: #3b3340;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 3px;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.section-title::before {
    background: #c2334f;
    border-radius: 50%;
    box-shadow: 6px 6px 0 -1px #ffc14d;
    content: "";
    display: inline-block;
    height: 9px;
    margin-right: 11px;
    vertical-align: 1px;
    width: 9px;
}


/* ---- CARDS: three pet profiles in a row, stacking on phones ---- */

.cards {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(3, 1fr);
}

.card {
    background: #ffffff;
    border: 1px solid #f0e2d4;
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(90, 60, 30, 0.04), 0 12px 26px rgba(90, 60, 30, 0.07);
    padding: 28px 24px 26px 24px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: 0 2px 4px rgba(90, 60, 30, 0.05), 0 18px 34px rgba(90, 60, 30, 0.11);
    transform: translateY(-4px);
}

.card-biscuit {
    border-top: 4px solid #ff8a5c;
}

.card-miso {
    border-top: 4px solid #4a9fc7;
}

.card-pepper {
    border-top: 4px solid #8e6fc0;
}


/* ---- AVATAR: a round CSS badge that shows an initial ----
   There are no image files anywhere on this page. Each avatar is just a
   coloured circle with a big letter centred inside it. */

.avatar {
    border-radius: 50%;
    box-shadow: 0 0 0 4px #ffffff, 0 8px 16px rgba(90, 60, 30, 0.18);
    color: #ffffff;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 30px;
    height: 72px;
    line-height: 72px;
    margin: 2px auto 18px auto;
    text-align: center;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.18);
    width: 72px;
}

.avatar-biscuit {
    background: linear-gradient(145deg, #ffb347 0%, #ff8a5c 100%);
}

.avatar-miso {
    background: linear-gradient(145deg, #7ec8e3 0%, #4a9fc7 100%);
}

.avatar-pepper {
    background: linear-gradient(145deg, #b39ddb 0%, #8e6fc0 100%);
}


/* ---- CARD TEXT: names, details and the little stories ---- */

.card h3 {
    color: #3b3340;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 23px;
    font-weight: normal;
    line-height: 1.2;
}

.card .meta {
    color: #857d8c;
    font-size: 11px;
    letter-spacing: 1.5px;
    margin: 6px 0 14px 0;
    text-transform: uppercase;
}

.card p {
    font-size: 14.5px;
    text-align: left;
}


/* ---- FAVOURITES: a tinted rounded panel with a two-column list ---- */

.favourites {
    background: #fff0ec;
    border: 1px solid #ffd9cf;
    border-radius: 18px;
    margin-top: 56px;
    padding: 36px 36px 32px 36px;
}

.fav-heading {
    color: #3b3340;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 26px;
    font-weight: normal;
    margin-bottom: 8px;
}

.fav-intro {
    color: #857d8c;
    font-size: 14.5px;
    margin-bottom: 22px;
}

.fav-list {
    display: grid;
    gap: 0 40px;
    grid-template-columns: 1fr 1fr;
    list-style: none;
}

.fav-list li {
    border-bottom: 1px solid #ffd9cf;
    padding: 12px 0 12px 26px;
    position: relative;
}

.fav-list li::before {
    background: #c2334f;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(194, 51, 79, 0.15);
    content: "";
    height: 8px;
    left: 2px;
    position: absolute;
    top: 20px;
    width: 8px;
}

.fav-list li:nth-last-child(-n+2) {
    border-bottom: none;
}


/* ---- FOOTER: the required credit link ---- */

#footer {
    border-top: 1px solid #efdfd0;
    color: #9a8f9c;
    font-size: 10px;
    letter-spacing: 1.5px;
    margin-top: 64px;
    padding: 26px 24px 40px 24px;
    text-align: center;
    text-transform: uppercase;
}

#footer a,
#footer a:visited {
    color: #c2334f;
    text-decoration: none;
}

#footer a:hover {
    text-decoration: underline;
}


/* ---- SMALL SCREENS: stack the cards and the list, calm the type ---- */

@media (max-width: 640px) {
    #hero {
        padding: 42px 20px 32px 20px;
    }

    #hero h1 {
        font-size: 40px;
    }

    #hero .tagline {
        font-size: 16px;
    }

    #menu {
        gap: 10px 20px;
        margin-top: 24px;
    }

    #main {
        padding: 38px 20px 0 20px;
    }

    #main .lead {
        font-size: 18.5px;
    }

    #main .note {
        margin-bottom: 38px;
    }

    .cards {
        gap: 20px;
        grid-template-columns: 1fr;
    }

    .favourites {
        margin-top: 40px;
        padding: 26px 22px 22px 22px;
    }

    .fav-heading {
        font-size: 22px;
    }

    .fav-list {
        grid-template-columns: 1fr;
    }

    .fav-list li:nth-last-child(-n+2) {
        border-bottom: 1px solid #ffd9cf;
    }

    .fav-list li:last-child {
        border-bottom: none;
    }
}


/* ---- PRINT: drop the tints and shadows for a clean sheet ---- */

@media print {
    #hero {
        background: #ffffff;
        border-bottom: 2px solid #ffb347;
        box-shadow: none;
        padding: 0 0 18px 0;
    }

    #hero::before,
    #hero::after {
        display: none;
    }

    #menu,
    #footer {
        display: none;
    }

    .card,
    .favourites {
        box-shadow: none;
    }
}
