@font-face {
    font-family: "Barlow Condensed";
    src: url("../fonts/barlow-condensed-100.woff2") format("woff2");
    font-weight: 100;
    font-style: normal;
    font-display: optional;
}

@font-face {
    font-family: "Barlow Condensed";
    src: url("../fonts/barlow-condensed-600.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: optional;
}

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

body {
    margin: 0;
    font-family: "Barlow Condensed", sans-serif;
    background-image: url("../img/FB_BG.webp");
    background-size: cover;
    background-position: center center;
    background-color: #9b0000;
    overflow: hidden;
}

/* Full-viewport centred wrapper */
.dt {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100dvh;
    padding: calc(40px + env(safe-area-inset-top))
             calc(20px + env(safe-area-inset-right))
             calc(40px + env(safe-area-inset-bottom))
             calc(20px + env(safe-area-inset-left));
}

/* Max-width content column */
.dc {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    width: 100%;
    max-width: 1170px;
}

/* "It's Only" / "Until the Festive Bake" */
.t {
    color: #fff;
    font-family: "Barlow Condensed", sans-serif;
    font-size: clamp(24px, 5vw, 80px);
    font-weight: 100;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    line-height: 1;
    text-align: center;
}

.t strong {
    font-weight: 600;
}

/* Countdown row */
#countdown {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: clamp(4px, 1.5vw, 20px);
    width: 100%;
}

/* Each time section */
.ts {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex: 2;
}

.ts-days {
    flex: 3;
}

.countdown-spacer {
    flex: 1;
}

/* Row of digit images */
.digits {
    display: flex;
    flex-direction: row;
    width: 100%;
}

.ti {
    flex: 1;
    padding: clamp(2px, 0.5vw, 8px);
}

.ti img {
    width: 100%;
    height: auto;
    display: block;
}

/* Colon separator */
.c {
    color: #fff;
    font-size: clamp(30px, 5vw, 100px);
    line-height: 1;
    flex-shrink: 0;
    padding-bottom: 2em;
}

/* Days / hours / minutes / seconds label */
.l {
    color: #fff;
    font-size: clamp(12px, 2vw, 36px);
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Snowflakes */
#snowflakeContainer {
    position: absolute;
    left: 0;
    top: 0;
    pointer-events: none;
}

.snowflake {
    padding-left: 15px;
    font-family: Cambria, Georgia, serif;
    font-size: 14px;
    line-height: 24px;
    position: fixed;
    color: #fff;
    user-select: none;
    z-index: 1000;
}

.snowflake:hover {
    cursor: default;
}

/* GitHub link */
#github-link {
    position: fixed;
    bottom: calc(20px + env(safe-area-inset-bottom));
    right: calc(20px + env(safe-area-inset-right));
    opacity: 0.6;
    transition: opacity 0.2s;
    z-index: 1001;
}

#github-link:hover {
    opacity: 1;
}

#github-link svg {
    width: 32px;
    height: 32px;
    fill: #fff;
}

/* Mobile */
@media (max-width: 480px) {
    .dc {
        gap: 30px;
    }

    .c {
        padding-bottom: 1.6em;
    }

    #github-link svg {
        width: 24px;
        height: 24px;
    }
}
