/* JetBrains Mono, self-hosted (SIL Open Font License, see fonts/OFL.txt).
   One variable file covers weights 300 and 400; Latin subset only. */
@font-face {
    font-family: "JetBrains Mono";
    font-style: normal;
    font-weight: 100 800;
    font-display: swap;
    src: url("fonts/jetbrains-mono-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --bg: #050505;
    --text: #f2f2f2;
    --muted: #7c7c7c;
    --faint: #3a3a3a;
    --gutter: clamp(1rem, 4vw, 3rem);
}

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

html,
body {
    height: 100%;
    overflow: hidden;
}

body {
    height: 100vh;
    height: 100svh;

    display: grid;
    grid-template-rows: auto 1fr auto;

    padding: var(--gutter);

    background: var(--bg);
    color: var(--text);

    font-family: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;

    cursor: crosshair;
}

::selection {
    background: var(--text);
    color: var(--bg);
}

/* ---------- Mark ---------- */

.mark {
    position: relative;
    z-index: 1;

    line-height: 0;
}

.wordmark {
    width: auto;
    height: 20px;
}

.wordmark-aero {
    stroke: var(--text);
    stroke-width: 6;
}

.wordmark-solid {
    fill: var(--text);
    stroke: none;
}

/* Kept at a true 1px hairline regardless of the logo's size */
.wordmark-void {
    stroke: #9a9a9a;
    stroke-width: 1;
}

.wordmark-void > * {
    vector-effect: non-scaling-stroke;
}

/* ---------- Manifesto ---------- */

.manifesto {
    position: relative;
    z-index: 1;

    align-self: center;
    justify-self: center;

    text-align: center;
}

h1 {
    font-size: clamp(2.4rem, 7.5vw, 6.5rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.045em;
}

.thesis {
    margin-top: clamp(2.5rem, 7vh, 4.5rem);

    color: var(--muted);

    font-size: clamp(0.78rem, 1.1vw, 0.92rem);
    line-height: 2;
}

.thesis span {
    display: block;
}

.coda {
    margin-top: clamp(2.5rem, 7vh, 4.5rem);

    color: var(--text);

    font-size: 0.72rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
}

/* ---------- Contact ---------- */

.contact {
    position: relative;
    z-index: 1;

    justify-self: center;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
}

.contact-toggle {
    padding: 0.6rem 0.8rem;

    background: none;
    border: 0;
    color: #ffffff;

    font: inherit;
    font-size: clamp(0.85rem, 1.2vw, 1rem);
    font-weight: 400;
    letter-spacing: 0.42em;

    cursor: crosshair;
}

.contact-toggle::before,
.contact-toggle::after {
    letter-spacing: 0;
}

.contact-toggle::before {
    content: "[";
    margin-right: 1.1em;
}

/* Trailing letter-spacing on the last letter balances against the left gap */
.contact-toggle::after {
    content: "]";
    margin-left: calc(1.1em - 0.42em);
}

.contact-email {
    color: var(--muted);

    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-decoration: none;

    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s ease, visibility 0s linear 1.2s, color 0.6s ease;
}

.contact.is-open .contact-email {
    opacity: 1;
    visibility: visible;
    transition: opacity 1.2s ease, visibility 0s, color 0.6s ease;
}

.contact-email:hover,
.contact-email:focus-visible {
    color: var(--text);
}

.contact-toggle:focus-visible,
.contact-email:focus-visible {
    outline: 1px solid var(--faint);
    outline-offset: 4px;
}
