/**
 * Typography Styles
 * VerbaCall Landing Theme
 */

/* ========================================
   FONT LOADING
   ======================================== */

/* Import fonts from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Inter:wght@400;500;600&display=swap');

/* Geist Font Family */
@font-face {
    font-family: 'Geist';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/Geist-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Geist';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/Geist-Medium.woff2') format('woff2');
}

@font-face {
    font-family: 'Geist';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/Geist-SemiBold.woff2') format('woff2');
}

/* ========================================
   BASE TYPOGRAPHY
   ======================================== */

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-relaxed);
    color: var(--color-dark);
    background-color: var(--color-white);
}

/* ========================================
   HEADINGS
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-tight);
    color: var(--color-dark);
    margin-bottom: var(--space-base);
}

h1, .h1 {
    font-size: var(--font-size-5xl);
    line-height: var(--line-height-tight);
}

h2, .h2 {
    font-size: var(--font-size-4xl);
    line-height: var(--line-height-snug);
}

h3, .h3 {
    font-size: var(--font-size-3xl);
}

h4, .h4 {
    font-size: var(--font-size-2xl);
}

h5, .h5 {
    font-size: var(--font-size-xl);
}

h6, .h6 {
    font-size: var(--font-size-lg);
}

/* ========================================
   PARAGRAPHS & TEXT
   ======================================== */

p {
    margin-bottom: var(--space-base);
    line-height: var(--line-height-normal);
}

p:last-child {
    margin-bottom: 0;
}

.text-large {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-normal);
}

.text-small {
    font-size: var(--font-size-sm);
}

.text-xs {
    font-size: var(--font-size-xs);
}

/* ========================================
   TEXT UTILITIES
   ======================================== */

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

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

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

.text-white {
    color: var(--color-white);
}

.text-dark {
    color: var(--color-dark);
}

.text-black {
    color: var(--color-black);
}

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

.font-medium {
    font-weight: var(--font-weight-medium);
}

.font-semibold {
    font-weight: var(--font-weight-semibold);
}

.font-bold {
    font-weight: var(--font-weight-bold);
}

/* ========================================
   LINKS
   ======================================== */

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--duration-base) var(--ease-in-out);
}

a:hover {
    color: var(--color-primary-dark);
}

a:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* ========================================
   LISTS
   ======================================== */

ul, ol {
    margin-bottom: var(--space-base);
    padding-left: var(--space-xl);
}

li {
    margin-bottom: var(--space-sm);
}

/* ========================================
   RESPONSIVE TYPOGRAPHY
   ======================================== */

@media (max-width: 1023px) {
    h1, .h1 {
        font-size: 3.5rem; /* 56px */
    }

    h2, .h2 {
        font-size: 2.5rem; /* 40px */
    }
}

@media (max-width: 767px) {
    h1, .h1 {
        font-size: 2.5rem; /* 40px */
    }

    h2, .h2 {
        font-size: 2rem; /* 32px */
    }

    h3, .h3 {
        font-size: 1.75rem; /* 28px */
    }
}

@media (max-width: 639px) {
    body {
        font-size: 0.9375rem; /* 15px */
    }

    h1, .h1 {
        font-size: 2.25rem; /* 36px */
    }

    h2, .h2 {
        font-size: 1.75rem; /* 28px */
    }

    h3, .h3 {
        font-size: 1.5rem; /* 24px */
    }
}
