/*
Theme Name: Kris Saling
Description: Block theme for the Kris Saling Home design.
Version: 1.0.0
Text Domain: kris-saling
Requires at least: 6.6
*/

@font-face {
    font-family: Outfit;
    src: url(assets/fonts/outfit-light.woff2) format("woff2");
    font-weight: 300;
    font-display: swap;
}
@font-face {
    font-family: Outfit;
    src: url(assets/fonts/outfit-regular.woff2) format("woff2");
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: Outfit;
    src: url(assets/fonts/outfit-medium.woff2) format("woff2");
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: Outfit;
    src: url(assets/fonts/outfit-semibold.woff2) format("woff2");
    font-weight: 600;
    font-display: swap;
}
@font-face {
    font-family: Playfair;
    src: url(assets/fonts/playfair-regular.woff2) format("woff2");
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: "Playfair Hero";
    src: url(assets/fonts/playfair-hero.woff2) format("woff2");
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: WindSong;
    src: url(assets/fonts/windsong.woff2) format("woff2");
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: Cormorant;
    src: url(assets/fonts/cormorant.woff2) format("woff2");
    font-weight: 400;
    font-display: swap;
}

.ks-home {
    --cream: #fff8ef;
    --navy: #021f3b;
    --gold: #d2aa71;
    --sky: #c7daea;
    --brown: #7b5235;
    --display-face: Playfair, Georgia, serif;
    --handwritten-face: WindSong, cursive;
    --number-face: Cormorant, Georgia, serif;
    --u: calc(100cqw / 1310);
    container-type: inline-size;
    color: var(--navy);
    font-family: Outfit, sans-serif;
    background: var(--cream);
}
.ks-home :is(.ks-body, .ks-section, .wp-block-image, .ks-type, .ks-quotation, .ks-action) {
    margin: 0;
    padding: 0;
}
.ks-home .ks-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}
.ks-home .ks-dark,
.ks-home .ks-hero {
    color: var(--cream);
    background-color: var(--navy);
}
.ks-home .ks-hero {
    background-image: url(assets/images/hero-background.webp);
}
.ks-home .ks-services {
    background-image: url(assets/images/services-background.webp);
}
.ks-home .ks-newsletter {
    background-image: url(assets/images/newsletter-background.webp);
}
.ks-home .ks-hero::before,
.ks-home .ks-credentials::before,
.ks-home .ks-testimonial::before,
.ks-home .ks-portfolio::before,
.ks-home .ks-newsletter::before {
    position: absolute;
    pointer-events: none;
    content: "";
    background-repeat: no-repeat;
}
.ks-home .ks-hero::before,
.ks-home .ks-newsletter::before {
    inset: 0;
    opacity: .1;
}
.ks-home .ks-credentials::before {
    inset: 0;
    background-image: url(assets/ornaments/credentials-contours.svg);
    background-size: 100% 100%;
    opacity: .3;
}
.ks-home .ks-testimonial::before {
    bottom: 0;
    left: 78.34%;
    width: 27.82%;
    height: 68.51%;
    background-image: url(assets/ornaments/testimonial-contours.svg);
    background-position: left bottom;
    background-size: contain;
    opacity: .1;
}
.ks-home .ks-portfolio::before {
    inset: auto auto 0 0;
    width: 18.27%;
    height: 43.29%;
    background-image: url(assets/ornaments/portfolio-contours.svg);
    background-position: left bottom;
    background-size: contain;
    opacity: .3;
}

.ks-home .ks-type {
    font-weight: 400;
}
.ks-home .ks-body-light { font-weight: 300; }
.ks-home .ks-body-medium { font-weight: 500; }
.ks-home .ks-body-semibold,
.ks-home strong { font-weight: 600; }
.ks-home .ks-display {
    font-family: var(--display-face);
    font-weight: 400;
}
.ks-home .ks-hero-title { font-family: "Playfair Hero", var(--display-face); font-weight: 500; }
.ks-home .ks-script {
    color: var(--sky);
    font-family: var(--handwritten-face);
}
.ks-home .ks-number {
    color: var(--gold);
    font-family: var(--number-face);
    font-variant-numeric: lining-nums;
}
.ks-home .ks-eyebrow {
    color: var(--brown);
    text-transform: uppercase;
}
.ks-home .ks-dark .ks-eyebrow { color: var(--gold); }
.ks-home .ks-book-eyebrow,
.ks-home .ks-polaroid-caption { color: var(--navy); }
.ks-home .ks-about-signature { color: #f2e9d6; }
.ks-home .ks-footer-copyright { color: #231f20; }

.ks-home .ks-service {
    border: 1px solid rgb(199 218 234 / .3);
    border-radius: calc(8.75 * var(--u));
}
.ks-home .ks-book-panel {
    background: var(--sky);
    border-radius: calc(12.92 * var(--u));
}
.ks-home .ks-media img {
    display: block;
    width: 100%;
    height: 100%;
}
.ks-home .ks-about-portrait,
.ks-home .ks-product-photo {
    overflow: hidden;
    border-radius: calc(13.57 * var(--u));
}
.ks-home .ks-product-photo { border-radius: calc(10.78 * var(--u)); }
.ks-home .ks-about-portrait img {
    position: relative;
    top: -3.864%;
    left: -.428%;
    width: 101.156%;
    max-width: none;
    height: 133.96%;
}
.ks-home .ks-product-photo img { object-fit: cover; }
.ks-home .ks-template-product-photo img { object-position: 40% 50%; }
.ks-home .ks-polaroid {
    isolation: isolate;
}
.ks-home .ks-polaroid::before {
    position: absolute;
    content: "";
    background: var(--cream);
    inset: 0;
    clip-path: polygon(6.036% 21.706%, 73.10% 10.285%, 87.895% 77.868%, 20.832% 89.288%);
}
.ks-home .ks-polaroid-shadow {
    z-index: -1;
    mix-blend-mode: multiply;
    opacity: .2;
}
.ks-home .ks-seal-shadow {
    mix-blend-mode: multiply;
    opacity: .15;
}
.ks-home .ks-portfolio-picture {
    transform: rotate(-10.93deg);
    transform-origin: left top;
    clip-path: inset(22.975% 0 10.36% 0);
}

.ks-home .ks-action .wp-block-button,
.ks-home .ks-action .wp-block-button__link {
    width: 100%;
    height: 100%;
}
.ks-home .ks-action .wp-block-button__link {
    display: flex;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    border-radius: 100vw;
    border: 1px solid transparent;
    padding: 0;
    background: transparent;
    color: inherit;
    font-family: Outfit, sans-serif;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}
.ks-home .ks-nav .wp-block-button__link {
    justify-content: flex-start;
    border: 0;
    border-radius: 0;
    font-weight: 500;
}
.ks-home .ks-gold .wp-block-button__link { background: var(--gold); color: var(--navy); }
.ks-home .ks-solid .wp-block-button__link { background: var(--navy); color: var(--cream); }
.ks-home .ks-outline .wp-block-button__link { color: var(--navy); border-color: var(--navy); }
.ks-home .ks-outline-light .wp-block-button__link { color: var(--cream); border-color: var(--cream); }
.ks-home .ks-pending .wp-block-button__link,
.ks-home [aria-disabled="true"],
.ks-home :disabled { cursor: default; }
.ks-home .ks-action a[href]:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.ks-home .ks-action a[href]:hover { text-decoration: underline; text-underline-offset: .18em; }

.ks-home .ks-newsletter-form {
    display: flex;
    align-items: stretch;
    border: 1px solid rgb(249 240 229 / .65);
    box-sizing: border-box;
}
.ks-home .ks-newsletter-form :is(input, button) {
    box-sizing: border-box;
    min-width: 0;
    border: 0;
    border-radius: 0;
    opacity: 1;
    font: inherit;
}
.ks-home .ks-newsletter-form input {
    flex: 1;
    padding: 0 0 0 calc(14.5 * var(--u));
    background: transparent;
    color: var(--cream);
    font-weight: 300;
}
.ks-home .ks-newsletter-form input::placeholder { color: var(--cream); opacity: 1; }
.ks-home .ks-newsletter-form button {
    width: 39.3%;
    background: var(--cream);
    color: var(--navy);
    font-weight: 600;
}
.ks-home .ks-footer-social {
    display: flex;
    justify-content: space-between;
}
.ks-home .ks-footer-social img { display: block; width: 100%; }
.ks-home .ks-footer-social span { width: 36.5%; }

@media (min-width: 1024px) {
    .ks-home .ks-section {
        height: calc(var(--section-height) * var(--u));
    }
    .ks-home :is(.ks-type, .ks-action, .ks-card, .ks-media, .ks-collage, .ks-place) {
        position: absolute;
        box-sizing: border-box;
        left: calc(var(--x, 0) * var(--u));
        top: calc(var(--y, 0) * var(--u));
    }
    .ks-home :is(.ks-type, .ks-action, .ks-card, .ks-media, .ks-collage, .ks-place) {
        width: calc(var(--w, 0) * var(--u));
        height: calc(var(--h, 0) * var(--u));
    }
    .ks-home :is(.ks-type:not(.ks-center), .ks-nav, .ks-credential) { width: max-content; }
    .ks-home :is(.ks-type, .ks-nav, .ks-credential) { height: auto; }
    .ks-home .ks-type {
        font-size: calc(var(--size) * var(--u));
        line-height: calc(var(--line) * var(--u));
        letter-spacing: calc(var(--tracking, 0) * var(--u));
        white-space: nowrap;
        transform: scaleX(var(--stretch, 1));
        transform-origin: left top;
    }
    .ks-home .ks-center { text-align: center; transform-origin: center top; }
    .ks-home .ks-rotated {
        transform: rotate(var(--angle)) scaleX(var(--stretch, 1));
        transform-origin: left var(--baseline);
    }
    .ks-home .ks-action .wp-block-button__link {
        padding-top: calc(var(--label-offset, 0) * 2 * var(--u));
        font-size: calc(9.8013 * var(--u));
        letter-spacing: calc(var(--tracking, 0) * var(--u));
    }
    .ks-home .ks-nav .wp-block-button__link,
    .ks-home .ks-nav-book .wp-block-button__link {
        font-size: calc(11.4263 * var(--u));
    }
    .ks-home .ks-nav .wp-block-button__link {
        height: calc(18.5 * var(--u));
    }
    .ks-home :is(.ks-hero, .ks-services, .ks-newsletter) {
        background-position-x: calc(-41.383 * var(--u));
        background-repeat: no-repeat;
    }
    .ks-home .ks-hero {
        background-position-y: calc(-41.395 * var(--u));
        background-size: calc(1392 * var(--u)) calc(964 * var(--u));
    }
    .ks-home .ks-hero::before {
        z-index: 2;
        background-image: url(assets/ornaments/star.svg), url(assets/ornaments/star.svg);
        background-size: calc(21.80 * var(--u));
        background-position: calc(273.956 * var(--u)) calc(243.48 * var(--u)),
                             calc(1110.335 * var(--u)) calc(576.93 * var(--u));
    }
    .ks-home .ks-hero::after {
        position: absolute;
        inset: calc(493.934 * var(--u)) 0 0;
        z-index: 1;
        content: "";
        pointer-events: none;
        background: linear-gradient(to bottom, transparent, rgb(0 0 0 / .5) 61.47%);
    }
    .ks-home .ks-hero-nav > *,
    .ks-home :is(.ks-hero-title, .ks-hero .ks-script) { z-index: 2; }
    .ks-home .ks-services {
        background-position-y: calc(-41.505 * var(--u));
        background-size: calc(1392 * var(--u)) calc(872 * var(--u));
    }
    .ks-home .ks-service :is(.ks-type, .ks-action) {
        margin: -1px 0 0 -1px;
    }
    .ks-home .ks-credential + .ks-credential::before {
        position: absolute;
        top: 0;
        left: calc(-66 * var(--u));
        width: calc(.75 * var(--u));
        height: calc(210.8 * var(--u));
        background: rgb(199 218 234 / .3);
        content: "";
    }
    .ks-home .ks-testimonial-credit::before {
        position: absolute;
        top: calc(381.97 * var(--u));
        left: calc(575.12 * var(--u));
        width: calc(1 * var(--u));
        height: calc(14.12 * var(--u));
        background: var(--navy);
        content: "";
    }
    .ks-home .ks-newsletter {
        background-position-y: calc(-41.216 * var(--u));
        background-size: calc(1392 * var(--u)) calc(662 * var(--u));
    }
    .ks-home .ks-newsletter::before {
        background-image: url(assets/ornaments/star.svg), url(assets/ornaments/star.svg), url(assets/ornaments/star.svg);
        background-size: calc(21.80 * var(--u));
        background-position: calc(148.94 * var(--u)) calc(311.25 * var(--u)),
                             calc(1174.37 * var(--u)) calc(429.97 * var(--u)),
                             calc(1045.29 * var(--u)) calc(103.78 * var(--u));
    }
    .ks-home .ks-newsletter-form {
        font-size: calc(10 * var(--u));
        border-width: calc(.5 * var(--u));
    }
    .ks-home .ks-newsletter-form button {
        font-size: calc(9.8013 * var(--u));
        letter-spacing: calc(1.10 * var(--u));
    }
    .ks-home .ks-footer::after {
        position: absolute;
        top: calc(135.91 * var(--u));
        left: calc(90.70 * var(--u));
        width: calc(1127.91 * var(--u));
        height: calc(.5 * var(--u));
        background: rgb(2 31 59 / .2);
        content: "";
    }
}

@media (max-width: 1023px) {
    .ks-home .ks-section {
        padding: clamp(56px, 10vw, 105px) clamp(22px, 6vw, 64px);
    }
    .ks-home .ks-center-section,
    .ks-home .ks-center { text-align: center; }
    .ks-home .ks-display {
        font-size: clamp(33px, 6.2vw, 66px);
        line-height: 1;
        letter-spacing: -.04em;
    }
    .ks-home .ks-type {
        position: relative;
        font-size: clamp(15px, 2vw, 18px);
        line-height: 1.55;
    }
    .ks-home .ks-type.ks-display { font-size: clamp(33px, 6vw, 62px); line-height: 1.05; }
    .ks-home .ks-eyebrow { font-size: 12px; letter-spacing: .23em; }
    .ks-home .ks-eyebrow + .ks-display { margin-top: 16px; }
    .ks-home .ks-display + .ks-type { margin-top: 18px; }
    .ks-home .ks-type br { display: none; }
    .ks-home :is(.ks-display, .ks-note) br { display: revert; }
    .ks-home .ks-action { position: relative; width: max-content; max-width: 100%; }
    .ks-home .ks-action .wp-block-button__link {
        min-height: 44px;
        padding: 0 22px;
        font-size: 11px;
        letter-spacing: .08em;
    }
    .ks-home .ks-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 24px;
    }
    .ks-home .ks-center-section .ks-actions { justify-content: center; }
    .ks-home .ks-navigation {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        column-gap: clamp(10px, 2.7vw, 26px);
        row-gap: 4px;
    }
    .ks-home .ks-nav .wp-block-button__link { padding: 0; font-size: 10px; }
    .ks-home .ks-hero {
        min-height: clamp(505px, 83vw, 805px);
        padding: 22px clamp(16px, 4vw, 36px);
        background-position: center;
        background-size: cover;
    }
    .ks-home .ks-hero-nav { z-index: 2; }
    .ks-home .ks-logo-light {
        order: -1;
        flex: 0 0 100%;
        display: flex;
        justify-content: center;
        padding-bottom: 6px;
    }
    .ks-home .ks-logo-light img { width: 138px; height: auto; }
    .ks-home .ks-hero-portrait {
        position: absolute;
        left: 50%;
        bottom: -6.5%;
        width: clamp(640px, 112%, 1050px);
        transform: translateX(-50%);
    }
    .ks-home .ks-hero::after {
        position: absolute;
        inset: 58% 0 0;
        content: "";
        background: linear-gradient(transparent, rgb(0 0 0 / .5));
    }
    .ks-home .ks-type.ks-hero-title {
        position: absolute;
        z-index: 1;
        inset: auto 0 10%;
        font-size: clamp(70px, 14vw, 128px);
        line-height: 1;
        white-space: nowrap;
        transform: scaleX(.67);
    }
    .ks-home .ks-hero .ks-note {
        position: absolute;
        z-index: 1;
        text-align: center;
    }
    .ks-home .ks-hero-note-left { left: 2%; top: 52%; transform: rotate(-6.36deg); }
    .ks-home .ks-hero-note-right { right: 3%; top: 33%; transform: rotate(8.48deg); }
    .ks-home .ks-hero .ks-script { font-size: clamp(14px, 3vw, 28px); line-height: .98; }
    .ks-home .ks-credentials {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 16px;
    }
    .ks-home .ks-credential { position: relative; }
    .ks-home .ks-credential .ks-star { width: 24px; margin-bottom: 12px; }
    .ks-home .ks-credential .ks-display { font-size: clamp(22px, 4.8vw, 38px); }
    .ks-home .ks-credential .ks-type:not(.ks-display, .ks-eyebrow) { font-size: 13px; }
    .ks-home .ks-credential .ks-eyebrow + .ks-display { margin-top: 9px; }
    .ks-home .ks-credential .ks-display + .ks-type { margin-top: 8px; }
    .ks-home .ks-services,
    .ks-home .ks-newsletter { background-position: center; background-size: cover; }
    .ks-home .ks-hero { background-image: url(assets/images/hero-background-compact.webp); }
    .ks-home .ks-services { background-image: url(assets/images/services-background-compact.webp); }
    .ks-home .ks-newsletter { background-image: url(assets/images/newsletter-background-compact.webp); }
    .ks-home .ks-service-cards {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        text-align: left;
        gap: 14px;
        margin-top: 30px;
    }
    .ks-home .ks-service {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: clamp(16px, 3vw, 32px);
    }
    .ks-home .ks-service .ks-display { font-size: clamp(26px, 3.5vw, 36px); margin-top: 8px; }
    .ks-home .ks-service .ks-number { font-size: 22px; }
    .ks-home .ks-service .ks-body-light { margin: 12px 0 18px; font-size: 14px; }
    .ks-home .ks-service .ks-action { margin-top: auto; }
    .ks-home .ks-service .ks-action .wp-block-button__link { padding-inline: 13px; font-size: 10px; }
    .ks-home .ks-about {
        display: grid;
        align-items: center;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    .ks-home .ks-about-photo { position: relative; }
    .ks-home .ks-about-portrait { aspect-ratio: 558.447 / 632.229; }
    .ks-home .ks-type.ks-about-title { font-size: clamp(34px, 4.8vw, 55px); }
    .ks-home .ks-about-title br { display: none; }
    .ks-home .ks-about-next { margin-top: 14px; }
    .ks-home .ks-about-signature {
        position: absolute;
        top: 32%;
        left: 73%;
        transform: rotate(-6.36deg);
        font-size: clamp(18px, 3.4vw, 30px);
    }
    .ks-home .ks-about-underline { position: absolute; top: 35%; left: 72%; width: 20%; }
    .ks-home .ks-book { padding-top: 0; padding-bottom: 0; }
    .ks-home .ks-book-panel {
        display: grid;
        grid-template-columns: minmax(115px, .33fr) 1fr;
        align-items: center;
        gap: 26px;
        padding: clamp(20px, 5vw, 40px);
        border-radius: 12px;
    }
    .ks-home .ks-book-copygroup .ks-display { font-size: clamp(28px, 4vw, 48px); }
    .ks-home .ks-book-copygroup .ks-action { margin-top: 18px; }
    .ks-home .ks-testimonial .ks-display { font-size: clamp(27px, 4.6vw, 42px); }
    .ks-home .ks-testimonial .ks-display br { display: none; }
    .ks-home .ks-quotation { margin-top: 20px; }
    .ks-home .ks-testimonial-credit {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 0 16px;
        margin-top: 20px;
    }
    .ks-home .ks-testimonial-credit .ks-type { font-size: 13px; }
    .ks-home .ks-portfolio {
        display: grid;
        grid-template-columns: minmax(190px, .66fr) 1fr;
        align-items: center;
    }
    .ks-home .ks-polaroid {
        position: relative;
        container-type: inline-size;
        width: min(100%, 336px);
        aspect-ratio: 336 / 380.948;
        margin: auto;
    }
    .ks-home .ks-polaroid > * {
        --u: calc(100cqw / 336);
        position: absolute;
        left: calc(var(--x) * var(--u));
        top: calc(var(--y) * var(--u));
        width: calc(var(--w) * var(--u));
        height: calc(var(--h) * var(--u));
    }
    .ks-home .ks-polaroid > .ks-polaroid-caption {
        width: max-content;
        font-size: calc(var(--size) * var(--u));
        line-height: 1;
        transform: rotate(-10.93deg);
        transform-origin: left var(--baseline);
    }
    .ks-home .ks-portfolio-note {
        grid-column: 2;
        position: relative;
        justify-self: end;
        margin: 22px 8px 0;
        transform: rotate(5deg);
    }
    .ks-home .ks-portfolio-note .ks-type { line-height: .94; font-size: 21px; }
    .ks-home .ks-portfolio-arrow { position: absolute; top: 70%; right: 76%; width: 50%; }
    .ks-home .ks-portfolio-cta,
    .ks-home .ks-shop-all { margin: 20px auto 0; }
    .ks-home .ks-products {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 20px 14px;
        text-align: left;
        margin-top: 24px;
    }
    .ks-home .ks-product-photo { aspect-ratio: 226.4 / 244.535; border-radius: 8px; }
    .ks-home .ks-product .ks-display { font-size: 26px; margin-top: 7px; }
    .ks-home .ks-product .ks-display + .ks-type { margin-top: 4px; }
    .ks-home .ks-newsletter-star { width: 32px; margin: 0 auto 18px; }
    .ks-home .ks-newsletter-form { position: relative; max-width: 295px; height: 44px; margin: 24px auto 0; font-size: 12px; }
    .ks-home .ks-newsletter-form button { letter-spacing: .08em; }
    .ks-home .ks-footer {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 14px;
        padding-top: 30px;
        padding-bottom: 24px;
    }
    .ks-home .ks-logo-dark { width: 125px; }
    .ks-home .ks-footer-social { width: 44px; }
    .ks-home .ks-footer-nav { order: 1; flex: 0 0 100%; }
    .ks-home .ks-footer-copyright {
        order: 2;
        flex: 0 0 100%;
        padding-top: 16px;
        border-top: 1px solid rgb(2 31 59 / .15);
        font-size: 11px;
    }
}

@media (max-width: 650px) {
    .ks-home .ks-service-cards,
    .ks-home .ks-about,
    .ks-home .ks-portfolio { grid-template-columns: 1fr; }
    .ks-home .ks-service { padding: 24px; }
    .ks-home .ks-book-panel { grid-template-columns: 1fr; }
    .ks-home .ks-book-cover { width: min(56%, 170px); margin-inline: auto; }
    .ks-home .ks-portfolio .ks-polaroid { width: min(76%, 282px); }
    .ks-home .ks-portfolio-note { grid-column: 1; }
    .ks-home .ks-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
