/* Gift List - A Free Design by Bryant Smith (bryantsmith.com)
   ------------------------------------------------------------------
   A personal gift-planning page in red and cream.

   All of the colour lives in the eight values below. Change one here and
   the whole page follows, so you never have to hunt through the file. */

:root {
    --cream:    #fbf3e7;   /* the page background            */
    --card:     #fffaf2;   /* the gift cards                 */
    --red:      #a4161a;   /* the main red accent            */
    --red-dark: #7d0f13;   /* a deeper red for edges         */
    --ink:      #3a2724;   /* body text and headings         */
    --muted:    #6b5648;   /* quieter secondary text         */
    --line:     #ecd8c2;   /* soft cream borders             */
    --tan:      #f0e2d2;   /* the "maybe" label              */
}


/* ---- RESET: a clean starting point ---- */

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

body {
    background: var(--cream);
    color: var(--ink);
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 16.5px;
    line-height: 1.7;
}

a:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 2px;
}


/* ---- WRAP: the centred column everything sits in ---- */

.wrap {
    margin: 0 auto;
    max-width: 900px;
    padding: 0 32px;
}


/* ---- MASTHEAD: the full-width red hero band ---- */

#masthead {
    background-color: var(--red);
    background-image:
        radial-gradient(rgba(255, 245, 234, 0.16) 1.6px, transparent 1.6px),
        linear-gradient(135deg, #b3141a 0%, #8a1014 55%, #6f0c10 100%);
    background-size: 20px 20px, 100% 100%;
    border-bottom: 6px solid var(--red-dark);
    color: #fff5ea;
    padding: 56px 0 44px;
    text-align: center;
}

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

#masthead h1 {
    color: #fffaf3;
    font-size: 58px;
    font-weight: normal;
    letter-spacing: -1px;
    line-height: 1.05;
}

.tagline {
    color: #f6d8c8;
    font-size: 17px;
    font-style: italic;
    margin-top: 12px;
}

#menu {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 12px;
    letter-spacing: 2px;
    margin-top: 28px;
    text-transform: uppercase;
}

#menu a,
#menu a:visited {
    border-bottom: 2px solid transparent;
    color: #ffe9dd;
    margin: 0 12px;
    padding-bottom: 4px;
    text-decoration: none;
    transition: color 0.15s ease, border-color 0.15s ease;
}

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


/* ---- CONTENT: the reading column below the band ---- */

#content {
    padding-bottom: 8px;
    padding-top: 56px;
}

.lead {
    color: #4a3129;
    font-size: 19px;
    line-height: 1.7;
    margin-bottom: 28px;
}

.lead::first-letter {
    color: var(--red);
    float: left;
    font-size: 3.4em;
    line-height: 0.82;
    padding: 4px 10px 0 0;
}

section {
    margin-bottom: 48px;
}

h2 {
    border-bottom: 2px solid var(--line);
    color: var(--ink);
    font-size: 26px;
    font-weight: normal;
    margin-bottom: 18px;
    padding-bottom: 12px;
    position: relative;
}

h2::before {
    background: var(--red);
    bottom: -2px;
    content: "";
    height: 2px;
    left: 0;
    position: absolute;
    width: 56px;
}


/* ---- LEGEND: what the priority labels mean ---- */

.legend {
    align-items: center;
    background: #fff8ee;
    border: 1px solid var(--line);
    border-left: 4px solid var(--red);
    border-radius: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
    padding: 14px 18px;
}

.legend-title {
    color: var(--ink);
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    margin-right: 6px;
    text-transform: uppercase;
}


/* ---- RECIPIENT GRID: two cards per row ---- */

.recipient-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(2, 1fr);
}

.recipient {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(74, 32, 26, 0.04),
                0 10px 24px rgba(74, 32, 26, 0.06);
    overflow: hidden;
    padding: 24px;
    position: relative;
}

/* the thin red ribbon across the top of every card */
.recipient::before {
    background: linear-gradient(90deg, var(--red), #c9302c);
    content: "";
    height: 4px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.card-head {
    align-items: center;
    display: flex;
    gap: 14px;
    margin-bottom: 16px;
}

.avatar {
    align-items: center;
    background: radial-gradient(circle at 30% 25%, #c9302c, var(--red) 70%);
    border: 2px solid var(--red-dark);
    border-radius: 50%;
    color: #fff8ef;
    display: flex;
    flex: 0 0 auto;
    font-size: 20px;
    height: 46px;
    justify-content: center;
    width: 46px;
}

.who h3 {
    color: var(--ink);
    font-size: 21px;
    font-weight: normal;
}

.relation {
    color: var(--muted);
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    letter-spacing: 0.5px;
}


/* ---- IDEA LISTS: the gift suggestions inside a card ---- */

.ideas {
    list-style: none;
}

.idea {
    align-items: flex-start;
    border-top: 1px dashed var(--line);
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 12px 0;
}

.idea:first-child {
    border-top: none;
    padding-top: 4px;
}

.gift {
    padding-left: 18px;
    position: relative;
}

/* a small red diamond marks each idea (a CSS shape, no image) */
.gift::before {
    background: var(--red);
    content: "";
    height: 7px;
    left: 0;
    position: absolute;
    top: 8px;
    transform: rotate(45deg);
    width: 7px;
}

.gift-name {
    color: var(--ink);
    font-size: 15.5px;
}

.options {
    list-style: none;
    margin-top: 6px;
}

.options li {
    color: var(--muted);
    font-size: 13.5px;
    padding-left: 14px;
    position: relative;
}

.options li::before {
    background: var(--red);
    content: "";
    height: 1px;
    left: 0;
    position: absolute;
    top: 11px;
    width: 6px;
}

.tally {
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    letter-spacing: 0.5px;
    margin-top: 14px;
    padding-top: 12px;
    text-transform: uppercase;
}


/* ---- TAGS: the red and cream priority labels ---- */

.tag {
    border: 1px solid transparent;
    border-radius: 999px;
    display: inline-block;
    flex: 0 0 auto;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    letter-spacing: 1px;
    padding: 4px 9px;
    text-transform: uppercase;
    white-space: nowrap;
}

.tag-top {
    background: var(--red);
    color: #fff5ea;
}

.tag-want {
    background: #fbeee0;
    border-color: var(--red);
    color: var(--red);
}

.tag-maybe {
    background: var(--tan);
    border-color: #dcc7ad;
    color: var(--muted);
}


/* ---- IDEAS BANK: a two-column checklist ---- */

#ideas p {
    margin-bottom: 14px;
}

.bank {
    column-count: 2;
    column-gap: 36px;
    list-style: none;
}

.bank li {
    border-bottom: 1px solid var(--line);
    break-inside: avoid;
    color: var(--ink);
    padding: 10px 0 10px 26px;
    position: relative;
}

/* a red tick drawn with two borders, turned 45 degrees */
.bank li::before {
    border-bottom: 2px solid var(--red);
    border-left: 2px solid var(--red);
    content: "";
    height: 6px;
    left: 2px;
    position: absolute;
    top: 15px;
    transform: rotate(-45deg);
    width: 12px;
}


/* ---- STEPS: the numbered how-to-use list ---- */

#how-to p {
    margin-bottom: 16px;
}

.steps {
    counter-reset: step;
    list-style: none;
}

.steps li {
    border-bottom: 1px solid var(--line);
    padding: 12px 0 12px 46px;
    position: relative;
}

.steps li::before {
    align-items: center;
    background: var(--red);
    border-radius: 50%;
    color: #fff5ea;
    content: counter(step);
    counter-increment: step;
    display: flex;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 13px;
    height: 30px;
    justify-content: center;
    left: 0;
    position: absolute;
    top: 11px;
    width: 30px;
}

.note {
    background: #fdeede;
    border: 1px dashed #d8b79b;
    border-radius: 10px;
    color: var(--ink);
    font-size: 15px;
    margin-top: 24px;
    padding: 16px 20px;
}


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

#footer {
    background: #f6ead9;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    letter-spacing: 1px;
    margin-top: 64px;
    padding: 28px 16px;
    text-align: center;
    text-transform: uppercase;
}

#footer a,
#footer a:visited {
    border-bottom: 1px solid transparent;
    color: var(--red);
    text-decoration: none;
    transition: border-color 0.15s ease;
}

#footer a:hover {
    border-bottom-color: var(--red);
}


/* ---- SMALL SCREENS: one column, tighter spacing ---- */

@media (max-width: 640px) {
    .wrap {
        padding: 0 20px;
    }

    #masthead {
        padding: 40px 0 32px;
    }

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

    #content {
        padding-top: 40px;
    }

    .lead {
        font-size: 17.5px;
    }

    .lead::first-letter {
        font-size: 2.8em;
    }

    .legend {
        align-items: flex-start;
        flex-direction: column;
    }

    .recipient-grid {
        gap: 18px;
        grid-template-columns: 1fr;
    }

    .idea {
        flex-direction: column;
        gap: 8px;
    }

    .bank {
        column-count: 1;
    }
}


/* ---- PRINT: a clean, ink-friendly shopping list ---- */

@media print {
    body {
        background: #ffffff;
        color: #000000;
        font-size: 12pt;
    }

    .wrap {
        max-width: 100%;
        padding: 0;
    }

    #masthead {
        background: #ffffff;
        border-bottom: 2px solid #000000;
        color: #000000;
        padding: 0 0 12px;
    }

    #masthead h1,
    .kicker,
    .tagline {
        color: #000000;
    }

    #menu {
        display: none;
    }

    #content {
        padding-top: 16px;
    }

    .legend,
    .recipient,
    .note {
        background: #ffffff;
        border: 1px solid #999999;
        box-shadow: none;
    }

    .legend {
        border-left: 4px solid #000000;
    }

    .recipient::before,
    .gift::before,
    .options li::before,
    .bank li::before {
        background: #000000;
    }

    .recipient-grid {
        display: block;
    }

    .recipient {
        break-inside: avoid;
        margin-bottom: 12px;
        page-break-inside: avoid;
    }

    .avatar,
    .tag {
        background: #ffffff;
        border: 1px solid #000000;
        color: #000000;
    }

    .steps li::before {
        background: #ffffff;
        border: 1px solid #000000;
        color: #000000;
    }

    .bank {
        column-count: 2;
    }

    #footer {
        background: #ffffff;
        border-top: 1px solid #000000;
        color: #000000;
        margin-top: 24px;
        padding: 12px 0;
    }

    #footer a {
        color: #000000;
    }
}
