/* ═══════════════════════════════════════════════════ */
/* RESET & TYPOGRAPHY BASE                             */
/* ═══════════════════════════════════════════════════ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    font-family: var(--font-body);
    color: var(--clr-text-muted);
    background-color: var(--clr-bg);
    line-height: 1.6;
    font-size: 1.05rem;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
    position: relative;
    width: 100%;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.08;
    background-image: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="3" stitchTiles="stitch"/%3E%3CfeColorMatrix type="saturate" values="0"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
    background-repeat: repeat;
    background-size: 200px 200px;
    mix-blend-mode: overlay;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-heading);
    color: var(--clr-text-main);
    font-weight: 400;
    line-height: 1.1;
}

h1 {
    font-size: clamp(3rem, 6vw, 4.8rem);
    letter-spacing: -0.04em;
    line-height: 1.05;
}

h2 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    letter-spacing: -0.03em;
    line-height: 1.1;
}

h3 {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
}

p {
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--trans-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* ═══════════════════════════════════════════════════ */
/* COMPONENT CLASSES                                   */
/* ═══════════════════════════════════════════════════ */
.styled-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.styled-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.styled-list i,
.styled-list svg {
    color: var(--clr-primary);
    margin-top: 2px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
}

/* ═══════════════════════════════════════════════════ */
/* UTILITIES — Spacing                                 */
/* ═══════════════════════════════════════════════════ */
.mt-auto {
    margin-top: auto;
}

.mt-4 {
    margin-top: 1rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mt-8 {
    margin-top: 2rem;
}

.pt-8 {
    padding-top: 2rem;
}

.max-w-md {
    max-width: 600px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* ═══════════════════════════════════════════════════ */
/* UTILITIES — Typography & Color                      */
/* ═══════════════════════════════════════════════════ */
.text-lg {
    font-size: 1.15rem;
}

.text-accent {
    color: var(--clr-primary);
}

.text-main {
    color: var(--clr-text-main);
}

.italic {
    font-style: italic;
}

.text-center {
    text-align: center;
}

.text-surface {
    color: var(--clr-surface);
}

.text-surface-soft {
    color: #fff;
    opacity: 0.9;
}

.text-primary-light {
    color: var(--clr-primary-light);
}

.text-primary {
    color: var(--clr-primary);
}

.link-primary {
    color: var(--clr-primary);
}

.link-primary:hover {
    color: var(--clr-primary-dark);
}

/* ═══════════════════════════════════════════════════ */
/* UTILITIES — Backgrounds & Borders                   */
/* ═══════════════════════════════════════════════════ */
.bg-rose-light {
    background-color: #f9ebee;
}

.bg-sage-light {
    background-color: #e8ebe9;
}

.bg-surface-alt {
    background-color: var(--clr-surface-alt);
}

.bg-surface {
    background-color: var(--clr-surface);
}

.border-top-subtle {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.border-t-subtle-dark {
    border-top: 1px solid rgba(var(--clr-text-main-rgb), 0.1);
}

.border-subtle {
    border: 1px solid var(--clr-border);
}

.shadow-sm {
    box-shadow: var(--shadow-sm);
}

.shadow-md {
    box-shadow: var(--shadow-md);
}

.rounded-lg {
    border-radius: var(--radius-lg);
}

.rounded-md {
    border-radius: var(--radius-md);
}

/* ═══════════════════════════════════════════════════ */
/* SCRIPT / HANDWRITE TYPOGRAPHY                       */
/* ═══════════════════════════════════════════════════ */
.script-font {
    font-family: var(--font-script);
    font-size: 1.3em;
    font-weight: 400;
    color: var(--clr-primary);
    line-height: 1.2;
    display: inline-block;
    vertical-align: baseline;
}

.handwrite-effect:not([data-hw-processed="true"]) {
    opacity: 0;
}

/* ═══════════════════════════════════════════════════ */
/* SUBTITLE LABEL                                      */
/* ═══════════════════════════════════════════════════ */
.subtitle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.75rem;
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--clr-primary);
    margin-bottom: 32px;
}

.subtitle::before {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--clr-primary);
    border-radius: 2px;
}

/* ═══════════════════════════════════════════════════ */
/* ANIMATION UTILITIES — Reveal                        */
/* ═══════════════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all var(--trans-reveal);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.15s;
}

.reveal-delay-2 {
    transition-delay: 0.3s;
}

.reveal-delay-3 {
    transition-delay: 0.45s;
}

.reveal-delay-4 {
    transition-delay: 0.6s;
}

/* ═══════════════════════════════════════════════════ */
/* ANIMATION UTILITIES — Float                         */
/* ═══════════════════════════════════════════════════ */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes float-alt {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(2deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

.float-anim {
    animation: float 6s ease-in-out infinite;
}

.float-anim-alt {
    animation: float-alt 8s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════════ */
/* UTILITIES — Flexbox                                 */
/* ═══════════════════════════════════════════════════ */
.flex {
    display: flex;
}

.flex-wrap {
    flex-wrap: wrap;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.gap-4 {
    gap: 1rem;
}

/* ═══════════════════════════════════════════════════ */
/* UTILITIES — Text Sizes & Opacity                    */
/* ═══════════════════════════════════════════════════ */
.text-sm {
    font-size: 0.85rem;
}

.opacity-70 {
    opacity: 0.7;
}

.text-muted {
    color: var(--clr-text-muted);
}

.font-semibold {
    font-weight: 600;
}

.block {
    display: block;
}

.mt-3 {
    margin-top: 0.75rem;
}

.m-0 {
    margin: 0 !important;
}

.shrink-0 {
    flex-shrink: 0;
}