
/* ============================================================
   NORTH POLE TIMES — WORKSHOPPE & CRAFTROOM
   File: /css/crafts.css
   ============================================================ */

.crafts-page {
    box-sizing: border-box;
    position: relative;
    isolation: isolate;
    width: min(calc(100% - 32px), 1320px);
    margin: 10px auto 45px;
    padding: 0;
    color: #4b3024;
    font-family: Arial, Helvetica, sans-serif;
}

/* WINTER FOREST BACKGROUND */

html:has(.crafts-page),
body:has(.crafts-page) {
    min-height: 100%;
    background-color: #7bb6e8;
}

body:has(.crafts-page) {
    background: url('/images/Chappy/winter-evergreen-forest-fade-q90.webp')
        center top / cover no-repeat fixed;
}

/* ILLUSTRATED HEADER */

.crafts-header {
    position: relative;
    z-index: 3;
    margin: 0 0 -78px;
    padding: 0;
    text-align: center;
}

.crafts-header img {
    display: block;
    width: 98%;
    margin-left: 10px;
    height: auto;
    filter: drop-shadow(0 5px 4px rgba(55, 35, 20, .62));
}

/* PARCHMENT PANEL */

.crafts-paper {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    width: calc(100% - 72px);
    margin: 0 auto;
    padding: 45px 36px 50px;

    background-color: #f8e9ca;
    background-image:
        radial-gradient(
            ellipse at 14% 18%,
            rgba(181, 122, 58, .075),
            transparent 43%
        ),
        radial-gradient(
            ellipse at 87% 73%,
            rgba(154, 96, 40, .055),
            transparent 47%
        ),
        radial-gradient(
            ellipse at 47% 41%,
            rgba(255, 255, 244, .58),
            transparent 72%
        ),
        repeating-linear-gradient(
            33deg,
            rgba(122, 83, 42, .027) 0 1px,
            transparent 1px 5px
        ),
        repeating-linear-gradient(
            111deg,
            rgba(122, 83, 42, .021) 0 1px,
            transparent 1px 8px
        ),
        linear-gradient(
            90deg,
            #ead5ad 0%,
            #f6e8ca 5%,
            #fff4dd 18%,
            #fff7e8 50%,
            #fff4dd 82%,
            #f6e8ca 95%,
            #ead5ad 100%
        );

    border: 0;
    border-left: 2px solid #b83b36;
    border-right: 2px solid #b83b36;
    border-bottom: 2px solid #b83b36;
    border-radius: 0 0 38px 38px;

    box-shadow:
        inset 3px 0 0 #d8ad65,
        inset -3px 0 0 #d8ad65,
        inset 0 -3px 0 #d8ad65,
        inset 7px 0 0 rgba(255, 252, 235, .85),
        inset -7px 0 0 rgba(255, 252, 235, .85),
        inset 0 -7px 0 rgba(255, 252, 235, .85),
        0 10px 24px rgba(45, 55, 70, .20);
}

.crafts-paper::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 0;
    right: 11px;
    bottom: 11px;
    left: 11px;
    border: 0;
    border-left: 1px solid rgba(177, 75, 52, .48);
    border-right: 1px solid rgba(177, 75, 52, .48);
    border-bottom: 1px solid rgba(177, 75, 52, .48);
    border-radius: 0 0 26px 26px;
    pointer-events: none;
}

.crafts-paper > * {
    position: relative;
    z-index: 1;
}

/* HOLLY CORNERS */

.crafts-paper::after,
.crafts-heading::after {
    content: "";
    position: absolute;
    z-index: 5;
    width: 180px;
    height: 180px;
    background: url('/images/holly.webp') left top / contain no-repeat;
    pointer-events: none;
}

.crafts-paper::after {
    top: 12px;
    left: 12px;
}

.crafts-heading::after {
    top: -12px;
    right: -20px;
    transform: scaleX(-1);
}

/* TITLE AND AUTHOR */

.crafts-heading {
    position: relative;
    z-index: 4;
    top: -20px;
    margin-bottom: 16px;
    text-align: center;
}

.crafts-flourish {
    margin-bottom: 4px;
    color: #d4a03c;
    font-size: 22px;
    letter-spacing: 5px;
}

.crafts-title-group {
    display: table;
    max-width: 100%;
    margin: 0 auto;
}

.crafts-heading h1 {
    margin: 0 0 4px;
    color: #b50016;
    font-family: Georgia, serif;
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 700;
    line-height: 1.2;
}

.crafts-author {
    margin: 2px 0 4px;
    color: #17682b;
    font-family: Georgia, serif;
    font-size: 18px;
    text-align: right;
}

.crafts-author a {
    color: inherit;
    text-decoration: none;
}

/* FEATURED PHOTO AND DESCRIPTION */

.crafts-intro {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
    margin-bottom: 38px;
}

.crafts-featured-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    padding: 0;
    box-shadow: none;
}

.crafts-featured-photo img {
    display: block;
    width: 400px;
    max-width: 100%;
    height: auto;
    padding: 6px;
    background: #fff;
    border: 2px solid #c51d2b;
    border-radius: 17px;
    box-sizing: border-box;
}

.crafts-placeholder {
    display: grid;
    min-height: 290px;
    place-content: center;
    gap: 12px;
    color: #66808a;
    background: linear-gradient(145deg, #e4edf0, #d5e5e8);
    border-radius: 10px;
    font-size: 18px;
    text-align: center;
}

.crafts-intro-copy {
    display: flex;
    flex-direction: column;
    padding: 22px 25px;
    border: 1px solid #dfc9a4;
    border-radius: 14px;
    background: rgba(255, 250, 238, .8);
}

.crafts-rating {
    margin-bottom: 15px;
}

.crafts-divider {
    width: 100%;
    height: 36px;
    margin: 0 auto 18px;
    background: url('/images/sidebar/divider_holly.png')
        center / contain no-repeat;
}

.crafts-description,
.crafts-body,
.crafts-panel-content {
    color: #3f3029;
    font-size: 18px;
    line-height: 1.65;
}

.crafts-social {
    margin-top: auto;
    padding-top: 20px;
    text-align: center;
}

.crafts-body {
    margin: 24px 5px;
}

.crafts-notice {
    margin: 22px 0;
    color: #755f48;
    font-size: 13px;
    text-align: center;
}

.crafts-notice p {
    margin: 2px 0;
}

.crafts-template {
    margin: 5px;
    text-align: center;
}

/* SUPPLIES AND PROCEDURE PANELS */

.crafts-panel {
    position: relative;
    margin: 65px 0 36px;
    padding: 48px 24px 24px;
    border: 1px solid #d9a447;
    border-radius: 13px;
    background: linear-gradient(#fff9e9, #f9e7c4);
    box-shadow: 0 4px 8px rgba(80, 48, 12, .12);
}

.crafts-ribbon {
    position: absolute;
    top: -45px;
    left: 50%;
    width: 410px;
    max-width: 90%;
    height: 100px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    transform: translateX(-50%);
    pointer-events: none;
}

.crafts-ribbon-supplies {
    background-image: url('/images/crafts/ribbon-supplies-needed.webp');
}

.crafts-ribbon-procedure {
    background-image: url('/images/crafts/ribbon-directions.webp');
}

.crafts-ribbon h2 {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.crafts-panel-content p:last-child {
    margin-bottom: 0;
}

/* SUPPLIES */

.crafts-supplies-layout {
    display: grid;
    grid-template-columns: 34% minmax(0, 1fr);
    align-items: start;
    gap: 36px;
}


.crafts-supplies-photo {
    min-width: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
}

.crafts-supplies-photo img {
    display: block;
    width: 100%;
    height: auto;
    padding: 4px;
    background: #fff;
    border: 2px solid #c51d2b;
    border-radius: 10px;
    box-sizing: border-box;
}

.crafts-supplies-list {
    min-width: 0;
    padding-top: 5px;
    font-size: 24px;
    line-height: 1.6;
}


.crafts-supplies-list ul,
.crafts-supplies-list ol {
    columns: 1;
    margin: 0;
    padding-left: 28px;
}

.crafts-supplies-list li {
    margin-bottom: 12px;
    break-inside: avoid;
}

.crafts-supplies-list li:last-child {
    margin-bottom: 0;
}

.crafts-supplies-list li::marker {
    color: #c00020;
}

.crafts-supplies-list a {
    color: #17682b;
}

.crafts-supplies-list a:hover,
.crafts-supplies-list a:focus {
    color: #005b24;
}

/* PROCEDURE */

.crafts-panel-procedure {
    padding-top: 34px;
}

.crafts-step {
    padding: 9px 0;
    border-bottom: 1px solid rgba(185, 127, 66, .24);
}

.crafts-step:first-child {
    padding-top: 0;
}

.crafts-step:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.crafts-step-row {
    display: grid;
    grid-template-columns: calc(25% + 60px) 40px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
}

.crafts-step-photo {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border-radius: 9px;
}

.crafts-step-photo img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 200px;
    height: auto;
    object-fit: contain;
    padding: 4px;
    background: #fff;
    border: 2px solid #c51d2b;
    border-radius: 10px;
    box-sizing: border-box;
}

.crafts-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #8f0014;
    border-radius: 50%;
    background: linear-gradient(#d52c30, #8d0610);
    box-shadow:
        inset 0 2px 2px rgba(255, 255, 255, .35),
        0 2px 3px rgba(65, 30, 20, .28);
    color: #fff;
    font: bold 19px/1 Arial, sans-serif;
}

.crafts-step-text {
    min-width: 0;
    font-size: 24px;
    line-height: 1.5;
}

.crafts-step-text p {
    margin: 0 0 8px;
}

.crafts-step-text p:last-child {
    margin-bottom: 0;
}

/* RELATED CRAFTS */

.crafts-related {
    margin-top: 24px;
    text-align: center;
}

.crafts-related h2 {
    margin: 0;
    color: #b70e1b;
    font: bold italic 34px Georgia, serif;
    text-shadow: 1px 1px 0 #e5bd70;
}

.crafts-related > .crafts-divider {
    max-width: 300px;
    height: 32px;
    margin-bottom: 12px;
}

/* TABLET */

@media (max-width: 991.98px) {

    .crafts-header {
        margin-bottom: -80px;
    }

    .crafts-paper {
        width: calc(100% - 52px);
        padding: 30px 25px 40px;
    }

    .crafts-paper::after,
    .crafts-heading::after {
        width: 130px;
        height: 130px;
    }

    .crafts-intro {
        gap: 20px;
    }

    .crafts-supplies-layout {
        gap: 20px;
    }

    .crafts-supplies-list {
        font-size: 19px;
    }

    .crafts-step-row {
        gap: 12px;
    }
}

/* MOBILE */

@media (max-width: 767.98px) {

    .crafts-page {
        width: calc(100% - 16px);
        margin-top: 42px;
    }

    .crafts-header {
        margin-bottom: -35px;
    }

    .crafts-paper {
        width: calc(100% - 24px);
        padding: 20px 18px 30px;
        border-radius: 0 0 20px 20px;
    }

    .crafts-paper::before {
        right: 7px;
        bottom: 7px;
        left: 7px;
        border-radius: 0 0 13px 13px;
    }

    .crafts-paper::after,
    .crafts-heading::after {
        width: 75px;
        height: 75px;
    }

    .crafts-paper::after {
        top: 5px;
        left: 5px;
    }

    .crafts-heading::after {
        top: -15px;
        right: -13px;
    }

    .crafts-heading h1 {
        font-size: 32px;
    }

    .crafts-intro,
    .crafts-supplies-layout {
        grid-template-columns: 1fr;
    }

    .crafts-placeholder {
        min-height: 220px;
    }

    .crafts-intro-copy {
        padding: 18px;
    }

    .crafts-description,
    .crafts-body,
    .crafts-panel-content {
        font-size: 17px;
    }

    .crafts-panel {
        margin-top: 52px;
        padding: 40px 17px 20px;
    }

    .crafts-ribbon {
        top: -35px;
        width: 310px;
        height: 78px;
    }

    .crafts-supplies-photo {
        max-width: 360px;
        margin: 0 auto;
    }

    .crafts-supplies-list {
        padding-top: 0;
        font-size: 19px;
    }

    .crafts-supplies-list ul,
    .crafts-supplies-list ol {
        padding-left: 25px;
    }

    .crafts-step-row {
        grid-template-columns: 32% 32px minmax(0, 1fr);
        gap: 10px;
    }

    .crafts-step-number {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }

    .crafts-step-text {
        font-size: 15px;
    }
}

/* SMALL PHONES */

@media (max-width: 479.98px) {

    .crafts-supplies-list {
        font-size: 18px;
    }

    .crafts-step-row {
        grid-template-columns: 34% 27px minmax(0, 1fr);
        gap: 8px;
    }

    .crafts-step-number {
        width: 27px;
        height: 27px;
        font-size: 14px;
    }

    .crafts-step-text {
        font-size: 14px;
    }
}

/* PRINT */

@media print {

    .crafts-page {
        width: 100%;
        margin: 0;
    }

    .crafts-header,
    .crafts-social,
    .crafts-related {
        display: none !important;
    }

    .crafts-paper {
        width: 100%;
        padding: 0;
        border: 0;
        box-shadow: none;
        background: #fff;
    }

    .crafts-paper::before,
    .crafts-paper::after,
    .crafts-heading::after {
        display: none;
    }

    .crafts-panel {
        box-shadow: none;
        break-inside: avoid;
    }
}
