/* blindlisteningtest/styles.css */

:root {
    --bg-color: #DCD9D5;
    --text-color: #2B2B2B;
    --font-main: 'Jost', sans-serif;
}

* {
    box-sizing: border-box;
}

/* Same page base as Open Keys and Open Kick */
html {
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    overflow-y: scroll;
}
html::-webkit-scrollbar {
    display: none;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

#product-site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Top padding puts the first text line on the same line as the Open Keys and Open Kick headlines
   (Open Kick's: 5.5% down its 862-unit frame, scaled to the window; 12.8px is half the 16px x 1.6 line) */
.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: calc(100vw * 47.41 / 1512 - 12.8px) 20px 0 20px;
    flex: 1 0 auto;
}

/* The line under the header: 16px Jost, which looks the same size as the 14px Helvetica tabs */
.blt-intro {
    width: 810px;
    max-width: 100%;
    margin: 0 auto 30px;
    font-size: 16px;
    line-height: 1.6;
    text-align: center;
}

.blt-intro a {
    color: inherit;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.blt-intro a:hover {
    color: #b95d26;
}

/* Same on-screen scale as Open Kick (and Open Keys): Open Kick's 2182px screenshot
   is 1050/1512 of the window, so this 1478px one is 1478/2182 of that */
:root {
    --blt-img-w: calc(100vw * 1050 / 1512 * 1478 / 2182);
}

.blt-light {
    display: block;
    width: var(--blt-img-w);
    height: auto;
    margin-left: calc(50% - var(--blt-img-w) / 2);
}

/* Dark version below, like Open Kick's: its column rule (75% of the page column) scaled the same way */
.blt-after {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 60px 20px 0 20px;
    flex: none;
}

.blt-after img {
    display: block;
    width: calc(75% * 1478 / 2182);
    height: auto;
    margin: 0 auto;
}

/* Sanguine footer in the dark-footer colours */
#product-site .sw-footer {
    --sw-footer-color: var(--bg-color);
    --sw-footer-bg: var(--text-color);
    --sw-footer-line: var(--text-color);
    margin-top: 80px;
    padding-bottom: 60px;
    flex-shrink: 0;
}

@media (max-width: 800px) {
    .container {
        padding: 20px 20px 0 20px;
    }

    :root {
        --blt-img-w: 100%;
    }

    .blt-light {
        margin-left: 0;
    }

    .blt-after {
        padding-top: 20px;
    }

    .blt-after img {
        width: 100%;
    }
}
