/* FullMoon MMO - Typography */

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    color: var(--color-text);
}

/* Headings */
h1, h2, h3, h4, h5, h6,
.heading {
    font-family: var(--font-family-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
}

.h1, h1 { font-size: var(--font-size-3xl); }
.h2, h2 { font-size: var(--font-size-2xl); }
.h3, h3 { font-size: var(--font-size-xl); }
.h4, h4 { font-size: var(--font-size-lg); }
.h5, h5 { font-size: var(--font-size-base); }
.h6, h6 { font-size: var(--font-size-sm); }

/* Body text */
.text-xs { font-size: var(--font-size-xs); }
.text-sm { font-size: var(--font-size-sm); }
.text-base { font-size: var(--font-size-base); }
.text-lg { font-size: var(--font-size-lg); }
.text-xl { font-size: var(--font-size-xl); }
.text-2xl { font-size: var(--font-size-2xl); }
.text-3xl { font-size: var(--font-size-3xl); }

/* Font weights */
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }

/* Text colors */
.text-primary { color: var(--theme-primary); }
.text-secondary { color: var(--theme-secondary); }
.text-accent { color: var(--theme-accent); }
.text-muted { color: var(--color-text-muted); }
.text-success { color: var(--color-success); }
.text-warning { color: var(--color-warning); }
.text-error { color: var(--color-error); }

/* Text alignment */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Text transform */
.uppercase { text-transform: uppercase; }
.lowercase { text-transform: lowercase; }
.capitalize { text-transform: capitalize; }

/* Truncation */
.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 360px) {
    .h1, h1 { font-size: 1.5rem; }
    .h2, h2 { font-size: 1.25rem; }
    .h3, h3 { font-size: 1.08rem; }
    .h4, h4 { font-size: 0.98rem; }
    .text-sm { font-size: 0.82rem; }
}
