@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Marck+Script&display=swap');

/* VIRASAT - THE CORRESPONDENCE JOURNAL */

.vcj-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-bottom: 100px !important;
}

.vcj-journal {
    --ink: #493323;
    --paper: #eee0c3;
    --brass: #a38752;

    position: relative;
    width: min(100%, 1320px);
    margin: 48px auto;
    padding: clamp(15px, 3vw, 38px);
    border: 2px solid #806044;
    border-radius: 20px 13px 24px 15px;
    background:
        repeating-linear-gradient(
            112deg,
            transparent 0px,
            transparent 3px,
            #00000008 4px,
            transparent 5px
        ),
        linear-gradient(
            135deg,
            #62442d,
            #38261c 50%,
            #563b27
        );
    box-shadow:
        0 0 0 5px #201710,
        0 0 0 7px #72553a,
        0 35px 90px #0007,
        inset 0 0 40px #0005;
    color: var(--ink);
    text-align: left;
}

.vcj-journal *,
.vcj-journal *::before,
.vcj-journal *::after {
    box-sizing: border-box;
}

.vcj-journal::before {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px dashed #c0a07570;
    border-radius: 15px;
    pointer-events: none;
}

.vcj-pages {
    position: relative;
    display: grid;
    grid-template-columns: .88fr 1.12fr;
    gap: clamp(22px, 3vw, 46px);
    padding: clamp(18px, 3vw, 42px);
    background:
        radial-gradient(
            ellipse at 50% 40%,
            #f2e7d0,
            #d6bd94 100%
        );
    border: 1px solid #a38a63;
    box-shadow:
        3px 4px 0 #aa926b,
        6px 7px 0 #d5c09b,
        9px 10px 0 #8e7550,
        inset 0 0 50px #89603b25;
}

.vcj-pages::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 45%;
    width: 22px;
    background: linear-gradient(
        90deg,
        transparent,
        #6a492019,
        transparent
    );
    pointer-events: none;
}

.vcj-left,
.vcj-right {
    position: relative;
    min-width: 0;
}

.vcj-clip {
    position: absolute;
    z-index: 5;
    top: -23px;
    left: 34px;
    width: 74px;
    height: 44px;
    border-radius: 5px;
    border: 1px solid #a77b43;
    background: linear-gradient(
        110deg,
        #57391e,
        #b68e52 45%,
        #71512d
    );
    box-shadow: 2px 5px 7px #0005;
    transform: rotate(-5deg);
    pointer-events: none;
}

.vcj-clip::before,
.vcj-clip::after {
    content: "";
    position: absolute;
    left: 19px;
    width: 36px;
    height: 46px;
    border: 4px solid #b4a58a;
    border-radius: 45% 45% 25% 25%;
    top: -36px;
    box-shadow: 1px 2px 2px #0004;
}

.vcj-clip::after {
    top: 9px;
    height: 30px;
}

.vcj-archive {
    position: relative;
    padding: 24px 18px 18px;
    background: #342b20;
    border: 6px solid #e7d6b6;
    box-shadow: 0 5px 12px #48332140;
    transform: rotate(-1.5deg);
}

.vcj-archive svg {
    display: block;
    width: 100%;
    height: auto;
}

.vcj-archive-caption {
    color: #c9af7b;
    font-size: 10px;
    letter-spacing: .19em;
    text-align: center;
    margin-top: 14px;
}

.vcj-letter {
    position: relative;
    margin: 24px 4px;
    padding: 30px 26px;
    background:
        repeating-linear-gradient(
            transparent 0px,
            transparent 29px,
            #a58c6112 30px
        ),
        radial-gradient(
            ellipse at center,
            #f6ebd5,
            #e3d0ad
        );
    border: 1px solid #b39a73;
    box-shadow: 2px 7px 15px #563b2426;
    transform: rotate(1deg);
}

.vcj-letter::before {
    content: "";
    position: absolute;
    width: 76px;
    height: 24px;
    top: -12px;
    left: 38%;
    background: #bba16b88;
    transform: rotate(-7deg);
}

.vcj-kicker {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #8b6b43;
}

.vcj-letter h3 {
    font-family:
        "Cormorant Garamond",
        Georgia, serif !important;
    font-size: clamp(32px, 3.5vw, 49px);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -.025em;
    color: #493323 !important;
    margin: 16px 0;
}

.vcj-letter p {
    color: #70573d !important;
    font-size: 15px;
    line-height: 1.85;
    margin: 12px 0;
}

.vcj-signature {
    font-family: "Marck Script", cursive;
    color: #63402b;
    font-size: 31px;
    margin-top: 12px;
}

.vcj-objects {
    position: relative;
    min-height: 145px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.vcj-coin {
    position: relative;
    width: 62px;
    height: 62px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 5px double #6f5937;
    background: radial-gradient(
        circle at 35% 30%,
        #c6aa70,
        #8b7044 65%,
        #604a2e
    );
    color: #574022;
    font-family: Georgia, serif;
    font-size: 29px;
    box-shadow: 3px 5px 6px #39271750;
}

.vcj-coin:nth-child(1) {
    transform: rotate(-18deg) translateY(14px);
}

.vcj-coin:nth-child(2) {
    width: 84px;
    height: 84px;
    transform: rotate(12deg);
}

.vcj-coin:nth-child(3) {
    transform: rotate(-9deg) translateY(-14px);
    background: radial-gradient(
        circle at 30% 25%,
        #c7c0a9,
        #8a8475
    );
}

.vcj-form-paper {
    position: relative;
    padding: clamp(22px, 3vw, 42px);
    border: 1px solid #b29a73;
    background:
        radial-gradient(
            ellipse at 45% 30%,
            #faf0dc,
            #e9d9b9 80%,
            #d6bd94
        );
    box-shadow:
        3px 4px 0 #bda37a,
        6px 8px 0 #e5d3b0,
        0 10px 24px #50382020;
}

.vcj-form-paper::before {
    content: "";
    position: absolute;
    inset: 9px;
    border: 1px solid #a98b5d55;
    pointer-events: none;
}

.vcj-form-heading {
    padding-bottom: 24px;
    margin-bottom: 25px;
    border-bottom: 1px solid #b69b7266;
}

.vcj-form-heading h2 {
    font-family:
        "Cormorant Garamond",
        Georgia, serif !important;
    font-size: clamp(40px, 5vw, 66px) !important;
    font-weight: 500 !important;
    line-height: 1.05;
    color: #493323 !important;
    margin: 12px 0 !important;
    letter-spacing: -.035em;
}

.vcj-form-heading p {
    font-size: 14px;
    line-height: 1.7;
    color: #7c6245 !important;
}

.vcj-form-paper form {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    max-width: none !important;
    gap: 20px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #493323 !important;
}

.vcj-form-paper label {
    display: block;
    color: #65492f !important;
    font-size: 13px !important;
    font-weight: 500;
    margin-bottom: 9px;
}

.vcj-form-paper input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.vcj-form-paper select,
.vcj-form-paper textarea {
    width: 100% !important;
    min-width: 0;
    border: 0 !important;
    border-bottom: 1px solid #a68b60 !important;
    border-radius: 0 !important;
    background: #fff8e735 !important;
    color: #493323 !important;
    padding: 15px 12px !important;
    font-family: inherit !important;
    font-size: 16px !important;
    box-shadow: none !important;
    outline: none;
}

.vcj-form-paper input::placeholder,
.vcj-form-paper textarea::placeholder {
    color: #9a8364 !important;
}

.vcj-form-paper input:focus,
.vcj-form-paper textarea:focus,
.vcj-form-paper select:focus {
    border-bottom-color: #713b29 !important;
    background: #fff9e980 !important;
    outline: 1px solid #9a7957;
    outline-offset: 2px;
}

.vcj-form-paper textarea {
    min-height: 145px !important;
    resize: vertical;
    line-height: 30px !important;
    background:
        repeating-linear-gradient(
            transparent 0px,
            transparent 29px,
            #a58b622e 30px
        ) !important;
}

.vcj-form-paper select option {
    background: #eee0c3;
    color: #493323;
}

.vcj-form-paper button[type="submit"],
.vcj-form-paper input[type="submit"] {
    width: 100% !important;
    min-height: 54px;
    border: 1px solid #ae8555 !important;
    border-radius: 3px !important;
    background: linear-gradient(
        135deg,
        #783e2d,
        #492219
    ) !important;
    color: #f7e8c9 !important;
    font-size: 15px !important;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 8px #4b281d26;
    transition: transform .25s ease,
                box-shadow .25s ease;
}

.vcj-form-paper button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px #4b281d35;
}

.vcj-wax {
    position: relative;
    display: grid;
    place-items: center;
    width: 80px;
    height: 80px;
    margin: 28px auto 12px;
    border-radius: 46% 52% 48% 43%;
    border: 5px double #a25a40;
    background: radial-gradient(
        circle at 35% 25%,
        #a85b42,
        #743323 55%,
        #502219
    );
    box-shadow:
        3px 5px 7px #47261b55,
        inset 0 0 10px #3b1717;
    color: #d6ad77;
    font-family: Georgia, serif;
    font-size: 39px;
    transform: rotate(-9deg);
}

.vcj-motto {
    text-align: center;
    color: #795a3a;
    font-size: 13px;
}

.vcj-journal-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-top: 25px;
    color: #c6aa7d;
    font-size: 10px;
    letter-spacing: .14em;
}

@media (hover: hover) and
       (prefers-reduced-motion: no-preference) {

    .vcj-letter {
        transition: transform .45s ease;
    }

    .vcj-letter:hover {
        transform: rotate(0deg) translateY(-5px);
    }

    .vcj-archive {
        transition: transform .45s ease;
    }

    .vcj-archive:hover {
        transform: rotate(0deg) translateY(-4px);
    }
}

@media (max-width: 900px) {
    .vcj-pages {
        grid-template-columns: 1fr;
    }

    .vcj-pages::before {
        display: none;
    }

    .vcj-archive {
        max-width: 460px;
        margin: auto;
    }

    .vcj-objects {
        min-height: 110px;
    }
}

@media (max-width: 520px) {
    .vcj-section {
        padding-bottom: 50px !important;
    }

    .vcj-journal {
        width: 100%;
        padding: 10px;
        margin: 32px auto;
        border-radius: 9px;
    }

    .vcj-pages {
        padding: 13px;
        gap: 24px;
    }

    .vcj-letter {
        padding: 22px 18px;
        transform: none;
    }

    .vcj-form-paper {
        padding: 24px 17px;
    }

    .vcj-archive {
        transform: none;
    }

    .vcj-form-heading h2 {
        font-size: 42px !important;
    }

    .vcj-journal-footer {
        flex-wrap: wrap;
        font-size: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vcj-journal * {
        animation: none !important;
        transition: none !important;
    }
}