/* ==============================================
   Coding Page – Taped Paper Notes (from CodePen)
   Scoped under .notes-board to avoid global conflicts
   ============================================== */

@import url("https://fonts.googleapis.com/css2?family=Rock+Salt&family=Gloria+Hallelujah&family=Architects+Daughter&family=Edu+VIC+WA+NT+Beginner&display=swap");

/* Header removed for top-aligned corkboard */
.wrapper-parallax--half {
    margin-top: 0;
}

.notes-board {
    background-color: #874600;
    background-image: url("https://www.transparenttextures.com/patterns/wine-cork.png");
    background-attachment: scroll;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem 35vh 2rem; /* Substantial bottom padding keeps bottom section of corkboard empty */
    border-radius: 0;
    margin: 0;
    max-width: none;
    box-sizing: border-box;

    /* Thicker & Ornate Beveled 3D Wooden Frame */
    border: 36px solid #5d4646;
    border-top-color: #725858;    /* Dynamic light source highlight (top-left) */
    border-left-color: #725858;
    border-bottom-color: #433131; /* Shadow shading (bottom-right) */
    border-right-color: #433131;
    
    box-shadow: 
        /* --- Inner Molding Detail (On the inside edge of the wood frame) --- */
        inset 0 0 0 2px #433131,                   /* Inner dark shadow groove */
        inset 0 0 0 5px #725858,                   /* Inner light raised accent bevel */
        inset 0 0 22px rgba(0, 0, 0, 0.75),        /* Rich shadow cast by the frame onto the cork */
        
        /* --- Outer Molding Detail (Ornate stepped bevels on the outer wood frame edge) --- */
        0 0 0 2px #433131,                         /* Sharp dark outer groove */
        0 0 0 8px #5d4646,                         /* Outer wood trim ridge */
        0 0 0 10px #725858,                        /* Fine highlighted rim */
        0 0 0 12px #322323,                        /* Dark backing shadow line */
        0 15px 35px rgba(0, 0, 0, 0.55);           /* Main volumetric soft drop shadow */
    position: relative;
}

.notes-board>section {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.notes-board article {
    position: relative;
    width: 25%;
    min-height: 45vh;
    background-color: #fff;
    background-image: repeating-linear-gradient(transparent,
            transparent 23.5px,
            #7fb6d1 23.5px,
            #7fb6d1 24.5px);
    padding: 0 3%;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    container-type: inline-size;
}

/* Red margin line */
.notes-board article::before {
    content: "";
    position: absolute;
    top: 0;
    left: 10%;
    width: 1px;
    height: 100%;
    background-color: #ff9999;
}

/* Tape strip (top-left) */
.notes-board article::after {
    content: "";
    position: absolute;
    top: -8px;
    left: -15px;
    width: 55px;
    height: 22px;
    background: rgba(222, 205, 170, 0.6);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    transform: rotate(-35deg);
    z-index: 2;
}

.notes-board article blockquote {
    font-size: clamp(0.7rem, 5cqw, 1.1rem);
    color: #2c3e50;
    text-align: left;
    margin-top: 2rem;
    width: 100%;
    z-index: 1;
    font-family: "Gloria Hallelujah", cursive;
    display: block;
    word-wrap: break-word;
}

/* Tape strip (top-right) */
.notes-board article blockquote::after {
    content: "";
    position: absolute;
    top: -8px;
    right: -15px;
    left: auto;
    width: 55px;
    height: 22px;
    background: rgba(222, 205, 170, 0.6);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    transform: rotate(35deg);
    z-index: 2;
}

.notes-board article cite {
    font-size: clamp(0.5rem, 4cqw, 0.9rem);
    color: #555;
    margin-top: auto;
    margin-bottom: 1rem;
    align-self: flex-end;
    z-index: 1;
    display: block;
    font-family: "Gloria Hallelujah", cursive;
}

/* Alternating fonts & rotations */
.notes-board article:nth-child(odd) {
    transform: rotate(1deg);
    font-family: "Architects Daughter", cursive;
}

.notes-board article:nth-child(even) {
    transform: rotate(-1deg);
    font-family: "Edu VIC WA NT Beginner", cursive;
}

.notes-board article:nth-child(3n) {
    transform: rotate(1.5deg);
}

.notes-board article:nth-child(4n) {
    transform: rotate(-1.5deg);
}

/* Responsive breakpoints */
@media (max-width: 1100px) {
    .notes-board article {
        width: 42%;
    }
}

.torn-paper-wrapper {
    display: inline-block;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.35)) drop-shadow(0 0 1px rgba(0, 0, 0, 0.15));
    margin-top: 30px;
    z-index: 1;
    transform: rotate(-2deg);
    position: relative;
}

.torn-paper-wrapper::before {
    content: "";
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%) rotate(8deg);
    width: 120%;
    height: 18px;
    background: rgba(222, 205, 170, 0.55);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.torn-paper-scrap {
    background-color: transparent;
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.torn-paper-scrap img {
    display: block;
    margin: 0;
}

@media (max-width: 850px) {
    /* Stack notes vertically and shrink frame border for tablets and landscape mobile */
    .notes-board article {
        width: 76%;
        padding: 0 5%;
    }
    
    .notes-board {
        border-width: 24px;
        padding: 2rem 1.5rem 25vh 1.5rem;
    }
}

@media (max-width: 480px) {
    /* Maximize notes sizing and readability for portrait mobile viewports */
    .notes-board article {
        width: 80%;
    }
    
    .notes-board {
        border-width: 18px;
        padding: 1.5rem 0.75rem 20vh 0.75rem;
    }
}

/* ==============================================
   Responsive Tape Sizing for Title Banner
   ============================================== */
@media (max-width: 600px) {
    .title-banner {
        --tape-width: 80px;
        --tape-height: 24px;
        --tape-top-left: -4px;
        --tape-top-right: -1px;
        --tape-left: -5%;
        --tape-right: -5%;
    }
}

@media (max-width: 400px) {
    .title-banner {
        --tape-width: 65px;
        --tape-height: 20px;
        --tape-top-left: -6px;
        --tape-top-right: -3px;
        --tape-left: -4%;
        --tape-right: -4%;
    }
}