﻿/* InnKeeperWeb - Modular Architecture */

:root {
    --pillar-width: clamp(95px, 10vw, 175px);
}

/* Retire the original fixed-height columns */

main::before,
main::after {
    content: none;
    display: none;
}

/* Full-height architectural framework */

main {
    position: relative;
    padding-inline: var(--pillar-width);
}

.architecture-pillar {
    position: absolute;
    top: 0;
    bottom: 0;
    width: var(--pillar-width);
    display: flex;
    flex-direction: column;
    pointer-events: none;
    z-index: 5;
    filter: drop-shadow(8px 8px 12px rgba(0,0,0,0.55));
}

.pillar-left {
    left: 0;
}

.pillar-right {
    right: 0;
    transform: scaleX(-1);
}

/* Decorative capital */

.pillar-capital {
    position: relative;
    width: 100%;
    height: auto;
    display: block;
    flex-shrink: 0;
    z-index: 3;
}

/* Repeatable timber shaft */

.pillar-shaft {
    position: relative;
    flex: 1;
    min-height: 0;
    width: 100%;
    background-image:
        url("../images/rustic-pillar-extension.png");
    background-size: 100% auto;
    background-repeat: repeat-y;
    background-position: center top;
}

/* Independent ivy layer */

.pillar-shaft::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        url("../images/rustic-ivy-climbing.png");
    background-size: 100% auto;
    background-position: center top;
    background-repeat: repeat-y;
    pointer-events: none;
}

/* Grounded stone foundation */

.pillar-base {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    flex-shrink: 0;
    z-index: 3;
}

/* Preserve usable content space on smaller screens */

@media (max-width: 1100px) {
    :root {
        --pillar-width: 75px;
    }
}

@media (max-width: 760px) {
    main {
        padding-inline: 0;
    }

    .architecture-pillar {
        display: none;
    }
}

/* Architectural proportion refinements */

main {
    padding-inline: calc(var(--pillar-width) * 0.45);
}

.pillar-capital {
    width: 76%;
    align-self: center;
    margin-bottom: -12px;
}

.pillar-base {
    width: 85%;
    align-self: center;
    margin-top: -12px;
}

@media (max-width: 760px) {
    main {
        padding-inline: 0;
    }
}
