:root {
    --accent: #c8102e;
    --ink: #1c2327;
    --muted: #4f5b63;
    --card: rgb(255 255 255 / 0.72);
    --radius: 28px;
    --pad: clamp(12px, 2vw, 40px);
    --space: clamp(8px, 1vw, 20px);
    --badge: clamp(72px, 7.5vw, 150px);
    /* Bottom strip of the screen must stay free of text and information. */
    --reserved-bottom: 80px;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    gap: var(--pad);
    padding: var(--pad) var(--pad) calc(var(--pad) + var(--reserved-bottom));
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--ink);
    background: #dfe7e8 url("./images/background.jpg") center bottom / cover no-repeat;
    /* Horizontal swipes change the day (script.js); keep the browser from claiming them. */
    touch-action: pan-y pinch-zoom;
}

/* Header */

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space);
}

.logo {
    width: clamp(64px, 8vw, 160px);
    height: auto;
    flex: 0 0 auto;
    filter: drop-shadow(0 4px 12px rgb(0 0 0 / 0.25));
}

.site-title {
    margin: 0;
    text-align: center;
    font-size: clamp(1.5rem, 0.6rem + 3.4vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.05;
    color: #fff;
    text-shadow: 0 2px 6px rgb(0 0 0 / 0.45), 0 0 32px rgb(0 0 0 / 0.3);
}

/* Main area */

.content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.beer-card,
.message {
    background: var(--card);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    backdrop-filter: blur(16px) saturate(1.2);
    border: 1px solid rgb(255 255 255 / 0.6);
    border-radius: var(--radius);
    box-shadow: 0 20px 50px rgb(0 0 0 / 0.25);
}

.beer-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: clamp(16px, 3vw, 64px);
    width: min(100%, 1400px);
    padding: clamp(20px, 2.8vw, 56px);
}

.day-badge {
    position: absolute;
    top: 0;
    left: 0;
    transform: translate(-30%, -30%);
    width: var(--badge);
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 4px solid #fff;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    line-height: 1;
    box-shadow: 0 8px 20px rgb(0 0 0 / 0.3);
}

.day-label {
    font-size: clamp(0.65rem, 0.45rem + 0.5vw, 1.2rem);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.day-number {
    font-size: clamp(1.75rem, 0.9rem + 2.9vw, 4.25rem);
    font-weight: 800;
}

.beer-image-wrap {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(160px, 22vw, 380px);
    height: min(52vh, 600px);
}

.beer-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 16px 24px rgb(0 0 0 / 0.35));
}

.beer-text {
    flex: 1;
    min-width: 0;
}

.title {
    margin: 0 0 var(--space);
    font-size: clamp(1.75rem, 0.9rem + 2.6vw, 4.25rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.05;
}

.abv {
    display: inline-block;
    margin: 0 0 var(--space);
    padding: 0.25em 0.8em;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: clamp(1rem, 0.75rem + 0.8vw, 1.75rem);
    font-weight: 700;
}

.description {
    max-width: 48ch;
    margin: 0 0 1em;
    color: var(--muted);
    font-size: clamp(1.05rem, 0.8rem + 0.85vw, 1.85rem);
    line-height: 1.4;
}

.call-to-action {
    margin: 0;
    color: var(--accent);
    font-size: clamp(1rem, 0.8rem + 0.6vw, 1.6rem);
    font-weight: 700;
}

.message {
    margin: 0;
    max-width: 900px;
    padding: clamp(20px, 2.8vw, 56px);
    text-align: center;
    font-size: clamp(1.2rem, 0.8rem + 1.4vw, 2.75rem);
    font-weight: 700;
}

/* Mobile */

@media (max-width: 768px) {
    .beer-card {
        flex-direction: column;
        align-items: stretch;
    }

    .beer-image-wrap {
        width: 100%;
        height: 280px;
    }

    .day-badge {
        top: 12px;
        left: 12px;
        transform: none;
    }
}
