/* ============================================
   Josia Rakotondravohitra — Typography
   ============================================ */

body {
    font-family: var(--jr-font-body);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--jr-text-light);
    background-color: var(--jr-bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--jr-font-heading);
    font-weight: 600;
    line-height: 1.15;
}

h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); }

.hero-title {
    font-family: var(--jr-font-heading);
    font-weight: 700;
    font-size: clamp(2.5rem, 6vw, 5rem);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.05;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.6);
}

.section-title {
    font-family: var(--jr-font-heading);
    font-weight: 600;
    font-size: clamp(1.8rem, 4vw, 3rem);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.5em;
}

.section-subtitle {
    font-size: 17px;
    color: var(--jr-text-muted);
    max-width: 600px;
    line-height: 1.7;
}

.text-accent { color: var(--jr-accent) !important; }
.text-muted-custom { color: var(--jr-text-muted) !important; }
.font-serif { font-family: var(--jr-font-serif); }
.font-nav { font-family: var(--jr-font-nav); font-weight: 600; text-transform: uppercase; }

.text-uppercase-spaced {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 13px;
    font-weight: 600;
}

.signature-text {
    font-family: var(--jr-font-signature);
    font-style: italic;
    font-size: 20px;
    color: var(--jr-accent);
}

a {
    color: var(--jr-accent);
    text-decoration: none;
    transition: color var(--jr-transition);
}
a:hover { color: var(--jr-accent-hover); }

.section-light,
.section-light h1, .section-light h2, .section-light h3,
.section-light h4, .section-light h5, .section-light h6 {
    color: var(--jr-text-dark);
}
.section-light .text-muted-custom { color: var(--jr-text-muted-light) !important; }

:focus-visible {
    outline: 2px solid var(--jr-accent);
    outline-offset: 2px;
}
