/* Typography */

@font-face {
    font-family: "helvetica-neue";
    font-weight: normal;
    font-style: normal;
    src: url("/assets/helveticaneue-d2117848.ttf");
}

@font-face {
    font-family: 'Exposure';
    font-weight: 500;
    font-style: normal;
    src: url("/assets/205TF-Exposure-[-20]-01da5ccb.woff2"), url("/assets/205TF-Exposure-[-20]-2ba0404e.woff");
}

html {
    font-family: var(--font-display);
    font-weight: 600;
    font-style: normal;
    font-size: 14px;
    letter-spacing: 0.02rem;
    line-height: 125%;
    text-wrap: pretty;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

p, input, textarea {
    font-family: var(--font-text);
    font-size: 1.2rem;
    line-height: 135%;
    font-weight: 500;
    letter-spacing: 0;
    text-wrap: pretty;

    a {
        text-decoration: underline;
        text-underline-offset: 0.18rem;
        text-decoration-thickness: 0.09rem;
    }
}

.large p {
    font-size: clamp(1.6rem, 4.4vw, 3.7rem);
    line-height: 115%;
    font-family: var(--font-serif);
    font-variation-settings: "EXPO" -20;
    text-align: center;

    + p {
        margin-top: 3rem;
    }
}

/* Rich text "Small text" paragraphs (lib/small_text.js); after .large p so it wins there too */
p.small {
    font-size: 1rem;
    line-height: 135%;
    text-indent: 0!important;
    opacity: 0.5;
    margin-top: 1rem;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Words split by line_reveal_controller.js. While fading and moving, each is drawn as its own layer clipped to its
   box, which trims tall glyphs until the animation ends. Padding grows the box; the negative margin keeps layout. */
.line-reveal-word {
    padding: 0.25em 0.1em;
    margin: -0.25em -0.1em;
}

/* Italic is exactly what the editor marks: the reset sets font: inherit, and Lexxy's stylesheet sets italics inside
   quotes back to upright (blockquote em, same specificity, so this wins by loading after it). Lexxy saves them as <em>. */
i, em, blockquote :is(i, em) {
    font-style: italic;
}

.h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 82%;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    font-weight: 400;
}

.h2 {
    font-size: 1rem;
    line-height: 120%;
}

.h3 {
    font-family: var(--font-heading);
    font-size: 2.3rem;
    font-weight: 400;
    line-height: 82%;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    text-box-trim: trim-both;
    text-box-edge: cap alphabetic;
}

.h4 {
    font-family: var(--font-display);
    font-size: 1.25rem;
}

.h5 {
    font-size: 1.2rem;
    line-height: 120%;
    font-family: var(--font-serif);
    font-variation-settings: "EXPO" -10;
    letter-spacing: 0.05rem;
}