/* ==========================================================
   SERGIO

   File: utilities.css
   Version: 1.1

   Purpose:
   Reusable utility classes and design patterns used
   throughout the SERGIO digital flagship.

========================================================== */


/* ==========================================================
   TYPOGRAPHY PATTERNS
========================================================== */

/* Hero Headline */

.type-hero {
    font-family: var(--font-family-secondary);
    font-size: var(--font-size-display);
    font-weight: var(--font-weight-light);
    line-height: 1;
    letter-spacing: var(--letter-spacing-tight);
    text-wrap: balance;
}


/* Editorial Headlines */

.type-editorial-title {
    font-family: var(--font-family-secondary);
    font-weight: var(--font-weight-light);
    line-height: var(--line-height-tight);
    letter-spacing: var(--letter-spacing-tight);
    text-wrap: balance;
}


/* Editorial Body */

.type-editorial-body {
    font-family: var(--font-family-secondary);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-normal);
}


/* Lead Paragraph */

.type-lead {
    max-width: 60ch;

    font-size: var(--font-size-lead);
    line-height: var(--line-height-relaxed);
}


/* Caption */

.type-caption {
    color: var(--color-text-secondary);

    font-size: var(--font-size-caption);
}


/* Button Text */

.type-button {
    font-size: var(--font-size-button);
    font-weight: var(--font-weight-medium);
    letter-spacing: var(--letter-spacing-wide);
    text-transform: uppercase;
}


/* Overline */

.type-overline {
    font-size: var(--font-size-caption);
    font-weight: var(--font-weight-medium);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}


/* Long-form Reading */

.type-prose {
    max-width: 65ch;
}


/* ==========================================================
   ACCESSIBILITY
========================================================== */

.visually-hidden {
    position: absolute !important;

    width: 1px !important;
    height: 1px !important;

    margin: -1px !important;
    padding: 0 !important;

    overflow: hidden !important;

    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;

    white-space: nowrap !important;

    border: 0 !important;
}