/* Kitchen Card - A Free Design by Bryant Smith (bryantsmith.com)
   A single recipe page shaped like a large ruled index card.
   Every colour, border and spacing value is gathered in this file.
   Use the section headings below to find the part you want to change. */


/* ---- BODY: the warm linen table the card rests on ---- */

html {
    background: #e4d8c2;
}

body {
    background-image:
        radial-gradient(circle at 20% 10%, #efe5d2 0%, rgba(239, 229, 210, 0) 45%),
        radial-gradient(circle at 85% 90%, #d8c9ad 0%, rgba(216, 201, 173, 0) 50%);
    color: #2f2a23;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 17px;
    line-height: 1.7;
    padding: 56px 16px;
}

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


/* ---- PAGE: the cream index card itself ---- */

#page {
    background: #fdfaf1;
    border: 1px solid #e8ddc7;
    border-radius: 8px;
    box-shadow: 0 2px 3px rgba(80, 62, 30, 0.08), 0 22px 48px rgba(80, 62, 30, 0.16);
    margin: 0 auto;
    max-width: 900px;
    overflow: hidden;
    position: relative;
}

/* The folded bottom-right corner of the card. */
#page::after {
    background: linear-gradient(to bottom right, #fdfaf1 49%, #cdbfa3 50%, #e4d8c2 100%);
    bottom: 0;
    box-shadow: -1px -1px 2px rgba(80, 62, 30, 0.10);
    content: "";
    height: 34px;
    position: absolute;
    right: 0;
    width: 34px;
}


/* ---- MENU: the tab strip along the top of the card ---- */

#menu {
    background: #f6efdd;
    border-bottom: 1px solid #e8ddc7;
    padding: 15px 44px;
}

#menu a,
#menu a:visited {
    border-bottom: 2px solid transparent;
    color: #7a6f5c;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    margin-right: 24px;
    padding-bottom: 3px;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.15s ease, border-color 0.15s ease;
}

#menu a:hover {
    border-bottom-color: #b5322a;
    color: #b5322a;
}


/* ---- CARD HEAD: the red band holding the title ---- */

#card-head {
    background: #b5322a;
    background-image: linear-gradient(135deg, #c0392b 0%, #a5281f 100%);
    color: #fdf3ea;
    padding: 38px 44px 32px;
    position: relative;
}

.kicker {
    color: #f0c9bf;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

#card-head h1 {
    font-size: 42px;
    font-weight: normal;
    letter-spacing: -0.5px;
    line-height: 1.08;
    margin-top: 12px;
    max-width: 620px;
}

.tagline {
    color: #f6d8d0;
    font-size: 18px;
    font-style: italic;
    margin-top: 10px;
}

/* The round "tried and tested" stamp in the corner. */
.stamp {
    align-items: center;
    border: 2px solid rgba(253, 243, 234, 0.55);
    border-radius: 50%;
    color: rgba(253, 243, 234, 0.85);
    display: flex;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 9px;
    font-weight: bold;
    height: 78px;
    justify-content: center;
    letter-spacing: 1px;
    line-height: 1.4;
    position: absolute;
    right: 44px;
    text-align: center;
    text-transform: uppercase;
    top: 38px;
    transform: rotate(12deg);
    width: 78px;
}

/* The prep / cook / makes row. */
.meta {
    border-top: 1px solid rgba(253, 243, 234, 0.30);
    display: flex;
    gap: 48px;
    list-style: none;
    margin-top: 28px;
    padding-top: 20px;
}

.meta li {
    color: #fdf3ea;
    font-size: 17px;
}

.meta span {
    color: #f0c9bf;
    display: block;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    letter-spacing: 2px;
    margin-bottom: 4px;
    text-transform: uppercase;
}


/* ---- RECIPE BODY: two columns on the card ---- */

#recipe-body {
    display: flex;
    gap: 44px;
    padding: 42px 44px 8px;
}

#ingredients {
    flex: 0 0 290px;
}

#method {
    border-left: 1px solid #e8ddc7;
    flex: 1 1 auto;
    padding-left: 44px;
}

h2 {
    border-bottom: 2px solid #b5322a;
    color: #a5281f;
    display: inline-block;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 2.5px;
    margin-bottom: 22px;
    padding-bottom: 8px;
    text-transform: uppercase;
}


/* ---- INGREDIENTS: an unordered list with round checks ---- */

#ingredients ul {
    list-style: none;
}

#ingredients li {
    border-bottom: 1px dashed #e2d5b8;
    color: #423b30;
    padding: 9px 0 9px 24px;
    position: relative;
}

#ingredients li:last-child {
    border-bottom: none;
}

/* The little circle drawn before each ingredient. */
#ingredients li::before {
    border: 1.5px solid #c98b80;
    border-radius: 50%;
    content: "";
    height: 8px;
    left: 2px;
    position: absolute;
    top: 16px;
    width: 8px;
}

#ingredients strong {
    color: #2f2a23;
}


/* ---- METHOD: an ordered list with numbered circles ---- */

#method ol {
    counter-reset: step;
    list-style: none;
}

#method li {
    color: #423b30;
    counter-increment: step;
    margin-bottom: 20px;
    min-height: 34px;
    padding-left: 48px;
    position: relative;
}

/* Draw the number as a red circle instead of a plain "1." */
#method li::before {
    background: #f6e6dc;
    border: 1px solid #ecd0c5;
    border-radius: 50%;
    color: #a5281f;
    content: counter(step);
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: bold;
    height: 32px;
    left: 0;
    line-height: 32px;
    position: absolute;
    text-align: center;
    top: 0;
    width: 32px;
}


/* ---- NOTES: the tinted cook's note at the end ---- */

.notes {
    background: #f7eeda;
    border: 1px solid #ecdcbe;
    border-left: 4px solid #b5322a;
    border-radius: 0 6px 6px 0;
    margin-top: 30px;
    padding: 20px 24px;
}

.notes h3 {
    color: #a5281f;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.notes p {
    color: #5b5244;
    font-size: 15px;
    line-height: 1.65;
}


/* ---- HOW TO USE: the plain-English note for beginners ---- */

#howto {
    border-top: 1px dashed #e2d5b8;
    margin: 18px 44px 0;
    padding: 24px 0 30px;
}

#howto h2 {
    border-bottom: none;
    color: #7a6f5c;
    font-size: 11px;
    margin-bottom: 10px;
    padding-bottom: 0;
}

#howto p {
    color: #7a6f5c;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 12px;
    line-height: 1.75;
}


/* ---- LINKS: body links and a clear focus ring ---- */

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

#howto a:hover,
#footer a:hover {
    border-bottom: 1px solid #a5281f;
}

a:focus-visible {
    outline: 2px dashed #b5322a;
    outline-offset: 2px;
}


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

#footer {
    border-top: 1px solid #e8ddc7;
    color: #a89a80;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    letter-spacing: 1px;
    padding: 18px 44px 22px;
    text-align: center;
    text-transform: uppercase;
}


/* ---- TABLET: stack the two columns before they get too narrow ---- */

@media (max-width: 800px) {
    #recipe-body {
        flex-direction: column;
        gap: 34px;
    }

    #ingredients {
        flex-basis: auto;
    }

    #method {
        border-left: none;
        border-top: 1px dashed #e2d5b8;
        padding-left: 0;
        padding-top: 30px;
    }
}


/* ---- SMALL SCREENS: tighten the padding and type ---- */

@media (max-width: 640px) {
    body {
        padding: 20px 12px;
    }

    #menu {
        padding: 13px 24px;
    }

    #menu a {
        margin-right: 14px;
    }

    #card-head {
        padding: 28px 24px 26px;
    }

    #card-head h1 {
        font-size: 30px;
    }

    .tagline {
        font-size: 16px;
    }

    .stamp {
        display: none;
    }

    .meta {
        gap: 28px;
    }

    #recipe-body {
        padding: 30px 24px 6px;
    }

    #howto {
        margin: 16px 24px 0;
    }

    #footer {
        padding: 16px 24px 20px;
    }
}


/* ---- PRINT: a clean, ink-friendly recipe card ---- */

@media print {
    body {
        background: #ffffff;
        padding: 0;
    }

    #page {
        border: none;
        border-radius: 0;
        box-shadow: none;
        max-width: 100%;
    }

    #page::after,
    .stamp,
    #menu {
        display: none;
    }

    #card-head {
        background: #ffffff;
        border-bottom: 3px solid #000000;
        color: #000000;
        padding: 0 0 16px;
    }

    #card-head h1,
    .kicker,
    .tagline,
    .meta li,
    .meta span {
        color: #000000;
    }

    .meta {
        border-top-color: #999999;
    }

    #recipe-body {
        padding: 20px 0 0;
    }

    #method {
        border-left-color: #cccccc;
    }

    #ingredients li::before {
        border-color: #666666;
    }

    #method li::before {
        background: #ffffff;
        border-color: #666666;
        color: #000000;
    }

    .notes {
        background: #ffffff;
        border-color: #999999;
    }

    #howto {
        display: none;
    }

    #footer {
        color: #444444;
        margin-top: 24px;
    }
}
