/*
* Base styles for design system
* Tokens: foundation/variables.css (loaded before components, see _stylesheets.html.twig)
*/

/* Heading sizes — also for Bootstrap's .h1–.h6 classes (a heading level that
   looks like another level), so every heading stays on the type scale. */
h1,
.h1 {
    margin-bottom: var(--jena-space-lg);
    font-size: var(--jena-font-size-h1);
    font-weight: var(--jena-font-weight-bold);
    letter-spacing: var(--jena-letter-spacing-tight);
}

h2,

.h2 {
    margin-top: var(--jena-space-xl);
    margin-bottom: var(--jena-space-md);
    font-size: var(--jena-font-size-h2);
    font-weight: var(--jena-font-weight-bold);
}

h3,

.h3 {
    margin-top: var(--jena-space-lg);
    margin-bottom: var(--jena-space-sm);
    font-size: var(--jena-font-size-h3);
    font-weight: var(--jena-font-weight-semibold);
}

h4,

.h4 {
    font-size: var(--jena-font-size-xl);
    font-weight: var(--jena-font-weight-semibold);
}

h5,

.h5 {
    font-size: var(--jena-font-size-lg);
    font-weight: var(--jena-font-weight-normal);
}

h6,

.h6 {
    font-size: var(--jena-font-size-base);
    font-weight: var(--jena-font-weight-normal);
    text-transform: uppercase;
    letter-spacing: var(--jena-letter-spacing-wide);
}

/* Responsive adjustments */

/* Medium devices (tablets, less than 768px) */
@media (width < 768px) {
    h1,
    .h1 {
        font-size: var(--jena-font-size-h3);
    }

    h2,

    .h2 {
        font-size: var(--jena-font-size-xl);
    }

    h3,

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