/* 1. VARIABLES & CORE STYLES */
:root {
    --ink: #111;
    --paper: #fff;
    --rule: #111;
    --muted: #6b6b6b;
    --accent: #ff5a1f;
    --tag: #fff3b0;
    --best: #ffe14d;
    --soft: #f6f3ec;
    --sale: #d62828;
}
.serif{font-family:"Playfair Display",Georgia,serif;}

a{color:inherit;text-decoration:underline;text-underline-offset:3px;}

a:hover{color:var(--accent);}

/* 2. SHARED COMPONENTS */
.brand-mast {
    font-family: "Playfair Display", serif;
    font-weight: 900;
    font-size: 44px;
    letter-spacing: -1px;
    line-height: 1;
    text-decoration: none;
}

.brand-mast .the {
    font-style: italic;
    font-weight: 700;
    font-size: .5em;
    margin-right: .15em;
}

.sticky-note {
    background: var(--tag);
    padding: .4rem .7rem;
    box-shadow: 2px 2px 0 rgba(0,0,0,.08);
    transform: rotate(-2deg);
    display: inline-block;
    cursor: pointer;
}

.rule-top{border-top:1px solid var(--rule);}
.rule-bot{border-bottom:1px solid var(--rule);}
.rule-x{border-top:1px dashed  var(--rule);border-bottom:1px dashed  var(--rule);}
.small-caps{text-transform:uppercase;letter-spacing:.08em;font-size:12px;}

/* 3. HEADER & NAVIGATION */
header .position-absolute.cpdeals-menu-items {
    z-index: 999;
}

/* 4. FOOTER */
footer {
    background: var(--ink);
    color: var(--paper);
    padding: 3rem 0;
    margin-top: 4rem;
}

footer a {
    color: var(--paper);
}

/* 5. FULLSCREEN MENU OVERLAY */
.cpdeals-menu {
    position: fixed;
    inset: 0;
    z-index: 1080;
    background: var(--paper);
    overflow-y: auto;
    display: none;
}

.cpdeals-menu.open {
    display: block;
}

body.menu-open {
    overflow: hidden;
}

/* 5.1 Menu Bar */
.cpdeals-menu .menu-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--ink);
    position: sticky;
    top: 0;
    background: var(--paper);
    z-index: 2;
}

.cpdeals-menu .menu-close {
    background: none;
    border: 1px solid var(--ink);
    padding: .4rem .8rem;
    font-family: "JetBrains Mono", monospace;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .1em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    transition: all 0.2s ease;
}

.cpdeals-menu .menu-close:hover {
    background: var(--ink);
    color: var(--paper);
}

.cpdeals-menu .menu-brand {
    font-family: "Playfair Display", serif;
    font-style: italic;
    font-weight: 900;
    font-size: 24px;
}

/* 5.2 Sites Row */
.cpdeals-menu .sites-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 2rem;
    padding: 1.5rem;
    border-bottom: 1px solid var(--ink);
    font-family: "Playfair Display", serif;
    font-style: italic;
    font-weight: 700;
    font-size: 18px;
}

.cpdeals-menu .sites-row a { text-decoration: none; color: inherit; }
.cpdeals-menu .sites-row a.active { color: var(--accent); }
.cpdeals-menu .sites-row a:hover { text-decoration: underline; text-decoration-thickness: 2px; }

/* 5.3 Menu Grid Content */
.cpdeals-menu .menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.cpdeals-menu .menu-col {
    padding: 1.75rem 1.5rem;
    border-right: 1px dashed #ccc;
    border-bottom: 1px dashed #ccc;
}

.cpdeals-menu .menu-col h4 {
    font-family: "Playfair Display", serif;
    font-weight: 900;
    font-size: 22px;
    margin: 0 0 .9rem;
    letter-spacing: -.3px;
}

.cpdeals-menu .menu-col h4 a { text-decoration: underline; color: inherit; }
.cpdeals-menu .menu-col h4 a:hover { color: var(--accent); }

.cpdeals-menu .menu-col ul { list-style: none; padding: 0; margin: 0; }
.cpdeals-menu .menu-col li { margin: .35rem 0; }
.cpdeals-menu .menu-col li a {
    text-decoration: underline;
    font-size: 14px;
    font-family: "JetBrains Mono", monospace;
    color: #222;
}

.cpdeals-menu .menu-col li a:hover { color: var(--accent); }

/* 5.4 Overlay Footer */
.cpdeals-menu .menu-footer {
    background: #000;
    color: var(--paper);
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-family: "JetBrains Mono", monospace;
    font-size: 12px;
    letter-spacing: .04em;
    border-top: 1px solid #222;
}

.cpdeals-menu .menu-footer a { color: var(--paper); text-decoration: none; }
.cpdeals-menu .menu-footer a:hover { color: var(--accent); }

.cpdeals-menu .menu-footer .mf-left {
    display: flex;
    align-items: center;
    gap: 14px;
    text-transform: uppercase;
}

.cpdeals-menu .menu-footer .mf-left .sep { color: #555; }

.cpdeals-menu .menu-footer .mf-social { display: flex; align-items: center; gap: 14px; }
.cpdeals-menu .menu-footer .mf-social a {
    width: 28px;
    height: 28px;
    border: 1px solid var(--paper);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: "Playfair Display", serif;
    font-size: 13px;
    font-weight: 700;
}

.cpdeals-menu .menu-footer .mf-social a:hover {
    background: var(--paper);
    color: #000;
}

/* 6. RESPONSIVE QUERIES */

/* Tablet View */
@media (max-width: 991.98px) {
    .cpdeals-menu .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile View */
@media (max-width: 575.98px) {
    header .menu-btn {
        transform: rotate(-35deg) !important;
        top: 0 !important;
        left: 2px !important;
    }

    header .masthead h1 {
        margin-left: 3.5rem !important;
    }

    header .cpdeals-menu-items nav > a {
        flex-direction: row;
        display: flex;
        padding-top: 5px;
    }

    header > .position-absolute.end-0.cpdeals-menu-items {
        top: 0 !important;
        margin-right: 10px !important;
    }

    .cpdeals-menu .menu-grid {
        grid-template-columns: 1fr;
    }

    .cpdeals-menu .menu-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}