/* typography.css - Text styling for the wedding website */

/* First, add the BrittanySignature font */
@font-face {
    font-family: 'BrittanySignature';
    src: url('../fonts/BrittanySignature.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Base typography styles - set Montserrat as the default for all text */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
div,
a,
button,
input,
select,
textarea {
    font-family: 'Montserrat', sans-serif;
}

/* Then, apply Thai font only to Thai text */
[lang="th"],
.th,
*:has(> :matches([\u0E00-\u0E7F])) {
    font-family: 'Kanit', sans-serif !important;
}

/* Special case for hero heading - BrittanySignature */
.hero-content h1 {
    font-family: 'BrittanySignature', 'Great Vibes', cursive !important;
    font-size: 5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content h1 span {
    font-family: 'BrittanySignature', 'Great Vibes', cursive !important;
    font-weight: bold;
    letter-spacing: 5px;
}

.hero-content p {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 2rem;
    margin-top: 10%;
    line-height: 1.2;
    color: white;
    font-weight: 300;
    letter-spacing: 1px;
}

/* Other typography specifics */
h2 {
    font-weight: 300;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #4a471e;
}

h3 {
    font-weight: 500;
    color: #4a471e;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.schedule-item h3 {
    color: #4a471e;
}

.schedule-item span {
    display: block;
    color: #a18b42;
}

p {
    color: #a18b42;
    margin-bottom: 0.5rem;
}

.parents-section p {
    font-size: 1rem;
}

/* Additional style classes */
.date-time {
    font-size: 3rem;
    color: white;
}

.romantic-text {
    font-family: 'BrittanySignature', 'Great Vibes', cursive !important;
    font-size: 2rem;
    color: #ae6070;
    line-height: 1.2;
}

.message-text {
    font-family: 'BrittanySignature', 'Great Vibes', cursive !important;
    font-size: 3rem;
    color: #ae6070;
    line-height: 1.2;
    margin: 0;
}

/* Specific Thai sections */
.parents-section p:lang(th),
.gift-title-text,
.schedule-item p:lang(th) {
    font-family: 'Kanit', sans-serif !important;
}

.parents-section p.couple-name{
    font-family: 'BrittanySignature', 'Great Vibes', cursive !important;
}



/* Mobile-specific typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2.8rem;
    }

    .hero-content p {
        font-size: 1.5rem;
        margin-top: 5%;
    }

    .romantic-text {
        font-size: 1.3rem;
    }

    .message-text {
        font-size: 2.5rem;
    }
    
    .hero-heading h2 {
        font-size: 1.3rem;
        margin: 0.5rem 0;
    }
}

@media (max-width: 430px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content p {
        font-size: 1.2rem;
        margin-top: 3%;
    }
    
    .hero-heading h2 {
        font-size: 1.2rem;
    }

    .parents-section p.romantic-text{
        font-size: 0.9rem;
    
    }
}

@media (max-width: 375px) {
    .parents-section p.romantic-text{
        font-size: 0.8rem;
    
    }
}
