/* libre-baskerville-regular - latin */
@font-face {
    font-display: swap;
    font-family: "Libre Baskerville";
    font-style: normal;
    font-weight: 400;
    src: url("./fonts/libre-baskerville-v24-latin-regular.woff2")
        format("woff2");
}

/* libre-baskerville-italic - latin */
@font-face {
    font-display: swap;
    font-family: "Libre Baskerville";
    font-style: italic;
    font-weight: 400;
    src: url("./fonts/libre-baskerville-v24-latin-italic.woff2") format("woff2");
}

/* libre-baskerville-700 - latin */
@font-face {
    font-display: swap;
    font-family: "Libre Baskerville";
    font-style: normal;
    font-weight: 700;
    src: url("./fonts/libre-baskerville-v24-latin-700.woff2") format("woff2");
}

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

:root {
    --bg: #faf9f7;
    --ink: #111110;
    --ink-light: #444440;
    --ink-faint: #999990;
}

html {
    font-size: 18px;
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: "Libre Baskerville", Georgia, serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(3rem, 8vw, 7rem) clamp(2rem, 10vw, 12rem);
}

.wordmark {
    font-size: clamp(2.6rem, 7vw, 5.2rem);
    font-weight: 400;
    font-style: italic;
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: clamp(3rem, 6vh, 5rem);
}

.wordmark-text {
    opacity: 0;
}

.cursor {
    display: inline-block;
    width: 3px;
    height: 0.82em;
    background: var(--ink);
    vertical-align: text-bottom;
    margin-left: 3px;
    animation: blink 0.9s step-end infinite 0.3s both;
}

@keyframes blink {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

.hero-body p {
    font-size: clamp(1.1rem, 2.8vw, 1.5rem);
    line-height: 1.75;
    opacity: 0;
    transform: translateY(14px);
    max-width: 540px;
}

.hero-body p + p {
    margin-top: 0.2em;
}

.hero-body p:nth-child(1) {
    animation: line-in 0.7s ease 2s forwards;
}
.hero-body p:nth-child(2) {
    animation: line-in 0.7s ease 2.45s forwards;
}
.hero-body p:nth-child(3) {
    animation: line-in 0.7s ease 2.9s forwards;
}
.hero-body p:nth-child(4) {
    animation: line-in 0.7s ease 3.35s forwards;
}

@keyframes line-in {
    to {
        opacity: 1;
        transform: none;
    }
}

.rule {
    height: 1px;
    background: var(--ink);
    opacity: 0.12;
    margin: 0 clamp(2rem, 10vw, 12rem);
}

section {
    padding: clamp(4.5rem, 11vh, 8rem) clamp(2rem, 10vw, 12rem);
    max-width: 900px;
}

.section-label {
    display: block;
    font-size: 0.7rem;
    font-style: normal;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: 2rem;
}

.large-text {
    font-size: clamp(1.25rem, 3vw, 1.8rem);
    line-height: 1.65;
    font-style: italic;
    margin-bottom: 1.8rem;
}

.body-text {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    line-height: 1.9;
    color: var(--ink-light);
    max-width: 540px;
}

.body-text + .body-text {
    margin-top: 1.2em;
}

.body-text em {
    font-style: italic;
    color: var(--ink);
}

#closing {
    padding: clamp(4.5rem, 11vh, 8rem) clamp(2rem, 10vw, 12rem);
    padding-bottom: clamp(6rem, 14vh, 11rem);
}

.sign-off {
    font-size: clamp(0.9rem, 1.8vw, 1.05rem);
    color: var(--ink-faint);
    font-style: italic;
    margin-bottom: 0.5rem;
}

.signature {
    font-size: clamp(2rem, 5.5vw, 3.8rem);
    font-style: italic;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.comma {
    color: var(--ink-faint);
}

footer {
    padding: clamp(1.8rem, 3.5vh, 2.8rem) clamp(2rem, 10vw, 12rem);
    border-top: 1px solid rgba(17, 17, 16, 0.1);
}

.footer-text {
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 1s ease,
        transform 1s ease;
}

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