@import url('https://fonts.cdnfonts.com/css/mona-sans'); /* Fallback */
@font-face {
    font-family: 'LeoPress Sans';
    src: url('https://git.leobite.nl/matthijs/leopress-sans/releases/download/1.0/LeoPressSans.woff2') format('woff2');
    font-weight: 1 900;
    font-stretch: 75% 125%;
    font-optical-sizing: auto;
    font-style: oblique;
}

:root {
    --wdth: 100;
    --opsz: 40;
    --wght: 400;
    --ital: 0;
    --bg: #f0f0f0;
    --text: #1a1a1a;
    --accent: #ff3e00;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
ul {
padding-inline-start: 1em;
}

p {
margin-block-start: 1em
}
body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.2;
}

/* Variable Font Application */
.dynamic {
    font-family: 'LeoPress Sans', sans-serif;
    font-variation-settings: 
        "wdth" var(--wdth),
        "opsz" var(--opsz),
        "wght" var(--wght),
        "ital" var(--ital);
}

/* Controls */
.controls {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 280px;
    background: white;
    padding: 20px;
    border: 3px solid var(--text);
    box-shadow: 8px 8px 0px var(--text);
    z-index: 100;
}

.control-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

label {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 4px;
}

input[type="range"] {
    width: 100%;
    cursor: pointer;
}

.button-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

button {
    padding: 8px;
    border: 2px solid var(--text);
    background: white;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.75rem;
    transition: transform 0.1s, box-shadow 0.1s;
}

button:hover {
    background: #eee;
}

button:active {
    transform: translate(2px, 2px);
    
}

#randomizeBtn {
    background: var(--accent);
    color: white;
    border-color: var(--text);
}

#randomizeBtn:hover {
    background: #e63700;
    transform: translate(-2px, -2px);
    box-shadow: 2px 2px 0px var(--text);
}

/* Main Layout */
main {
    padding: 320px 20px 20px 20px; /* Space for fixed controls */
}

section.poster {
    padding: 60px 0;
    border-bottom: 2px solid var(--text);
}

.poster h1 {
    font-size: clamp(3rem, 15vw, 12rem);
    line-height: 0.8;
    margin-bottom: .5em;
}

.poster p {
    font-size: 1.2rem;
    max-width: 600px;
}
.poster h2:not(:first-child) {
margin-top: .5em;
}

.specimen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    border-bottom: 2px solid var(--text);
}

.grid-item {
    padding: 40px;
    border-right: 1px solid var(--text);
    font-size: 2rem;
    word-break: break-all;
}

.grid-item:nth-child(2n) {
    border-right: none;
}

.content-section h2 {
    font-size: clamp(2rem, 8vw, 6rem);
    margin-bottom: 1rem;
}

.content-section p {
    font-size: 1.5rem;
    max-width: 800px;
}

@media (max-width: 768px) {
    .controls {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        margin-bottom: 20px;
    }
    main {
        padding-top: 20px;
    }
}
