* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-b);
    font-size: 16px;
    line-height: 1.55;
    font-weight: 400;
    overflow-x: hidden;
    letter-spacing: -.005em;
}

img {
    max-width: 100%;
    display: block;
}

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

button {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    cursor: pointer;
}

input,
select,
textarea {
    font: inherit;
    color: inherit;
}

::selection {
    background: var(--leaf);
    color: var(--paper);
}

:focus-visible {
    outline: 2px solid var(--leaf);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Headings */
h1,
h2,
h3,
h4 {
    font-family: var(--font-d);
    font-weight: 500;
    letter-spacing: -.022em;
    line-height: 1.04;
    color: var(--ink);
}

h1 {
    font-size: clamp(44px, 6.4vw, 84px);
}

h2 {
    font-size: clamp(34px, 4.4vw, 56px);
}

h3 {
    font-size: clamp(24px, 2.4vw, 34px);
}

em {
    font-style: italic;
}

/* Type utilities */
.eyebrow {
    font-family: var(--font-m);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--ink-2);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.eyebrow::before {
    content: "";
    width: 22px;
    height: 1px;
    background: var(--ink-2);
}

.eyebrow.center::after {
    content: "";
    width: 22px;
    height: 1px;
    background: var(--ink-2);
}

.mono {
    font-family: var(--font-m);
}

.lead {
    font-size: clamp(17px, 1.5vw, 21px);
    line-height: 1.55;
    color: var(--ink-2);
}

.muted {
    color: var(--ink-2);
}

/* Grain overlay */
.grain {
    position: fixed;
    inset: 0;
    z-index: 120;
    pointer-events: none;
    opacity: .045;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s cubic-bezier(.22, .7, .3, 1),
        transform .7s cubic-bezier(.22, .7, .3, 1);
}

.reveal.in {
    opacity: 1;
    transform: none;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .001s !important;
        transition-duration: .001s !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}