:root {
    color-scheme: light;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #1b1f24;
    background: #f5f7fb;
}

body {
    min-height: 100vh;
    margin: 0;
    display: grid;
    grid-template-rows: 1fr auto;
}

.page {
    width: min(42rem, calc(100% - 2rem));
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 1.25rem;
}

h1 {
    margin: 0;
    font-size: clamp(2rem, 8vw, 4rem);
    line-height: 1;
}

.joke {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.5;
}

.punchline {
    font-size: 1rem;
}

.punchline summary {
    cursor: pointer;
    color: #1f6feb;
    font-weight: 700;
}

.response {
    margin-top: 0.75rem;
}

.button {
    display: inline-block;
    padding: 0.75rem 1rem;
    border-radius: 0.35rem;
    color: #ffffff;
    background: #1f6feb;
    text-decoration: none;
    font-weight: 700;
}

.button:hover,
.button:focus {
    background: #174ea6;
}

footer {
    padding: 1rem;
    color: #57606a;
    text-align: center;
}
