:root {
    --color-bg: #ebe7dd;
    --color-text-main: #33435f;
    --color-accent: #9f793e;
    --color-border: #001739
}

body {
    font-family: 'Droid Serif', serif;
    background-color: var(--color-bg);
    color: var(--color-text-main);
    font-weight: 400;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    position: relative;o
    overflow-x: hidden
}

#animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -10;
    background: radial-gradient(circle at 10% 20%, rgb(159 121 62 / .08), transparent 40%), radial-gradient(circle at 80% 70%, rgb(51 67 95 / .04), transparent 50%), radial-gradient(circle at 50% 50%, rgb(0 23 57 / .04), transparent 40%), radial-gradient(circle at 30% 80%, rgb(159 121 62 / .05), transparent 60%);
    background-size: 200% 200%;
    will-change: background-position;
    animation: moveBackground 45s ease-in-out infinite alternate
}

@keyframes moveBackground {
    0% {
        background-position: 0% 0%
    }

    100% {
        background-position: 100% 100%
    }
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAALUlEQVQoU2N8+vRpfwYkwMjIyL8RkYJmI6INoN0oGUw0sxiNEiNFiNEiNAuNAAA02gDkXp01jgAAAABJRU5ErkJggg==);
    opacity: .05;
    z-index: -5;
    pointer-events: none
}

header,
main,
footer {
    position: relative;
    z-index: 2
}

.font-artistic {
    font-family: 'Droid Serif', serif;
    letter-spacing: .5px
}

.gradient-text {
    background: linear-gradient(to right, #9f793e, #33435f);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: #fff0
}

.gradient-bg {
    background: linear-gradient(90deg,rgba(51, 67, 95, 1) 0%, rgba(37, 37, 82, 1) 100%)
}

.gradient-bg-hover:hover {
    background: linear-gradient(to right, #33435f, #001739)
}

.artistic-card {
    background: rgb(255 255 255 / .6);
    border: 1px solid #ad9d84;
    box-shadow: inset 0 0 15px rgb(0 0 0 / .02), 0 4px 6px rgb(0 0 0 / .05);
    border-radius: 35px 20px 45px 15px / 15px 45px 20px 35px;
    transition: transform 0.4s cubic-bezier(.25, .8, .25, 1), border-color 0.4s ease, box-shadow 0.4s cubic-bezier(.25, .8, .25, 1)
}

.artistic-card.hover-anim-1:hover {
    transform: translateY(-6px) rotate(-1.5deg) scale(1.01);
    border-color: #ad9d84;
}

.artistic-card.hover-anim-2:hover {
    transform: translateY(-6px) rotate(1.5deg) scale(1.01);
    border-color: #ad9d84;
}

.artistic-card.hover-anim-3:hover {
    transform: translateY(-5px) rotate(0.5deg) scale(1.02);
    border-color: #ad9d84;
}

.artistic-button-shape {
    border-radius: 35px 20px 45px 15px / 15px 45px 20px 35px
}

.header-pill {
    display: block;
    background: rgb(255 255 255 / .5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgb(159 121 62 / .3);
    box-shadow: 0 4px 20px rgb(0 0 0 / .05);
    border-radius: 25px 40px 30px 50px / 40px 30px 50px 25px;
    transition: all 0.3s ease
}

.mobile-menu-card {
    background: rgb(255 255 255 / .9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid #fff;
    box-shadow: 0 10px 30px rgb(51 67 95 / .15);
    border-radius: 20px;
    overflow: hidden
}

.hero-artistic-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    mask-image: linear-gradient(to bottom, black 0%, black 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 70%, transparent 100%);
    pointer-events: none
}

.hero-artistic-bg svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: #001739;
    stroke-width: .8;
    opacity: .15
}

.artistic-divider {
    position: relative;
    width: 100%;
    height: 60px;
    margin: 4rem auto;
    overflow: visible;
    pointer-events: none
}

.divider-content {
    position: relative;
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0 auto
}

.artistic-divider svg {
    display: block;
    width: 100%; /* If you only want 4000 units scaled down to the viewport */
    height: 100%;
    overflow: visible;
    stroke: #33435f;
    stroke-width: 3px; /* INCREASED from 1.5px to 3px for bolder line */
    fill: none;
    opacity: .8
}

.divider-logo {
    position: absolute;
    width: 30px;
    height: 30px;
    top: 50%;
    transform: translateY(-50%);
    right: -30px; /* Slight adjustment to place it just outside, but without the large negative margin */
    margin-right: 0; /* REMOVE negative margin */
    margin-top: -8px;
    color: #33435f
}

.divider-svg-path {
    /* Highly exaggerated, wobbly, and irregular path for an unmistakable hand-drawn look. */
    d: path("M0,40 C 250,5 600,75 1000,30 S 1450,15 1900,55 C 2350,85 2800,0 3200,45 S 3600,60 4000,30")
}

.form-input-artistic {
    background-color: #FFFEFB;
    border: none;
    --line-height: 2rem;
    font-size: 1.1rem;
    line-height: var(--line-height);
    background-image: 
        linear-gradient(to right, rgba(134, 46, 34, 0.4) 3px, transparent 3px),
        repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--line-height) - 1px), rgba(51, 67, 95, 0.15) calc(var(--line-height) - 1px), rgba(51, 67, 95, 0.15) var(--line-height));
    background-position: 3rem top, left top;
    background-repeat: repeat-y, repeat;
    padding: 0 1rem 0 3.5rem;
    width: 100%;
    color: #33435f;
    font-family: 'Droid Serif', serif; /* Or 'Gloria Hallelujah' for handwriting effect */
    clip-path: polygon(0% 4%, 2% 0%, 6% 3%, 10% 0%, 14% 2%, 18% 0%, 22% 3%, 26% 0%, 30% 2%, 34% 0%, 38% 3%, 42% 0%, 46% 2%, 50% 0%, 54% 3%, 58% 0%, 62% 2%, 66% 0%, 70% 3%, 74% 0%, 78% 2%, 82% 0%, 86% 3%, 90% 0%, 94% 2%, 98% 0%, 100% 4%, 100% 96%, 98% 100%, 94% 98%, 90% 100%, 86% 98%, 82% 100%, 78% 98%, 74% 100%, 70% 98%, 66% 100%, 62% 98%, 58% 100%, 54% 98%, 50% 100%, 46% 98%, 42% 100%, 38% 98%, 34% 100%, 30% 98%, 26% 100%, 22% 98%, 18% 100%, 14% 98%, 10% 100%, 6% 98%, 2% 100%, 0% 96%);
    transition: all 0.3s ease;
    filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.1));
}

.form-input-artistic::placeholder {
    color: #9f793e;
    opacity: 0.4;
    font-style: italic;
    font-family: 'Gloria Hallelujah', cursive; /* Uses your handwriting font */
    font-size: 0.9rem;
}

.form-input-artistic:focus {
    outline: none;
    background-color: #fff;
    filter: drop-shadow(0px 8px 12px rgba(159, 121, 62, 0.25));
    transform: translateY(-2px) scale(1.01);
}

textarea.form-input-artistic {
    min-height: 160px;
    padding-top: 1.5rem; 
    background-position: 3rem 1.5rem, left 1.5rem;
    resize: vertical; 
}

.fade-note {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    padding: 12px 18px 14px 18px;
    color: #33435f;
    background-color: #fbf7ef;
    border: 1px solid rgb(0 23 57 / .18);
    clip-path: polygon(0% 8%, 6% 0%, 14% 6%, 22% 1%, 30% 7%, 38% 2%, 46% 6%, 54% 0%, 62% 5%, 70% 2%, 78% 7%, 86% 1%, 94% 6%, 100% 10%, 100% 92%, 94% 99%, 85% 95%, 76% 100%, 68% 96%, 60% 99%, 52% 95%, 44% 100%, 36% 96%, 28% 99%, 20% 94%, 12% 98%, 6% 95%, 0% 90%);
    background-image: linear-gradient(to right, rgb(159 121 62 / .35) 28px, rgb(159 121 62 / .35) 29px, transparent 29px), repeating-linear-gradient(to bottom, transparent 0, transparent 22px, rgb(51 67 95 / .12) 22px, rgb(51 67 95 / .12) 23px);
    background-repeat: no-repeat, repeat;
    background-position: left top, left top;
    box-shadow: 0 10px 24px rgb(0 0 0 / .12);
    transform: rotate(-3deg);
    cursor: pointer
}

.fade-note::before {
    content: "";
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: radial-gradient(circle at 30% 30%, #e6dfcf, #b7b1a4 70%);
    border-radius: 50%;
    box-shadow: 0 1px 0 rgb(0 0 0 / .25)
}

.fade-note::after {
    content: "";
    position: absolute;
    top: -44px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 34px;
    background: linear-gradient(to bottom, rgb(0 0 0 / .25), rgb(0 0 0 / .05) 60%, transparent)
}

.fade-note-back {
    position: relative;
    z-index: 1;
    font-family: 'Droid Serif', serif;
    font-size: .95rem;
    line-height: 1.35;
    text-align: center;
    max-width: 30ch;
    opacity: 0;
    transition: opacity 260ms ease
}

.fade-note-front {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    pointer-events: none;
    transition: opacity 260ms ease;
    background: #fff0;
    opacity: 1
}

.fade-note-front-text {
    font-family: 'Droid Serif', serif;
    font-size: 1.12rem;
    line-height: 1.4;
    letter-spacing: .3px;
    color: #33435f;
    white-space: nowrap
}

.fade-note:hover .fade-note-front {
    opacity: 0
}

.fade-note:hover .fade-note-back {
    opacity: 1
}

.bad-hand {
    font-family: 'Gloria Hallelujah', cursive;
    display: inline-block;
    transform: rotate(-2deg);
    letter-spacing: .3px
}

.sq-tooltip {
    position: fixed;
    z-index: 100000;
    max-width: 220px;
    padding: 8px 12px;
    background-color: #fbf7ef;
    color: #33435f;
    border: 1px solid rgb(255 255 255 / .5);
    border-radius: 6px;
    box-shadow: 0 8px 24px rgb(0 0 0 / .15);
    font-size: .85rem;
    line-height: 1.2rem;
    opacity: 0;
    transform: translateY(4px) scale(.98);
    transition: opacity 150ms ease-out, transform 150ms ease-out;
    pointer-events: none;
    visibility: hidden;
    background-image: linear-gradient(to right, rgb(134 46 34 / .15) 15px, rgb(159 121 62 / .2) 16px, transparent 16px), repeating-linear-gradient(to bottom, transparent 0, transparent 22px, rgb(51 67 95 / .05) 22px, rgb(51 67 95 / .05) 23px);
    clip-path: polygon(0% 4%, 4% 0%, 10% 3%, 16% 0%, 24% 2%, 32% 0%, 40% 3%, 48% 0%, 56% 2%, 64% 0%, 72% 3%, 80% 1%, 88% 3%, 96% 0%, 100% 4%, 100% 96%, 96% 100%, 90% 98%, 84% 100%, 76% 98%, 68% 100%, 60% 97%, 52% 100%, 44% 98%, 36% 100%, 28% 98%, 20% 100%, 12% 97%, 4% 100%, 0% 96%)
}

.sq-tooltip[data-show="true"] {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible
}

.cursor {
    display: inline-block;
    width: 2px;
    background-color: #9f793e;
    animation: blink 1s infinite;
    margin-left: 2px
}

@keyframes blink {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: 0
    }
}

.mask-tape {
    mask-image: linear-gradient(90deg, transparent 0%, black 5%, black 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 5%, black 95%, transparent 100%);
}

.ink-button {
    clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
    box-shadow: 4px 4px 0px #9f793e; /* Hard shadow */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ink-button:hover {
    transform: translate(-2px, -2px);
}

.ink-button:active {
    transform: translate(2px, 2px);
    box-shadow: 0px 0px 0px #9f793e;
}

@keyframes floatRaven {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}
.animate-float {
    animation: floatRaven 4s ease-in-out infinite;
}