:root {
    --season-color: var(--vestment-gold-top);
    --season-color-bottom: var(--vestment-gold-bottom);
    --season-color-mark: var(--vestment-gold-mark);
    --gold-ink: #735614;
    --hairline: #4838222E;
    --ink: #1E1814;
    --ink-secondary: #5C5247;
    --ink-tertiary: #635950;
    --on-dark-vestment: #F8F1E5;
    --on-dark-vestment-accent: #E2BB76;
    --on-dark-vestment-dim: #CEBEAC;
    --on-light-vestment: #2C2112;
    --on-light-vestment-accent: #4A360E;
    --on-light-vestment-dim: #4E412B;
    --vestment-black-bottom: #141211;
    --vestment-black-mark: #1E1B19;
    --vestment-black-top: #282421;
    --vestment-blue-bottom: #162A4A;
    --vestment-blue-mark: #1E385F;
    --vestment-blue-top: #264674;
    --vestment-gold-bottom: #C49C4C;
    --vestment-gold-mark: #6F582B;
    --vestment-gold-top: #E2C17A;
    --vestment-green-bottom: #183626;
    --vestment-green-mark: #224731;
    --vestment-green-top: #2C583C;
    --vestment-purple-bottom: #321E40;
    --vestment-purple-mark: #432953;
    --vestment-purple-top: #543466;
    --vestment-red-bottom: #561C1E;
    --vestment-red-mark: #712624;
    --vestment-red-top: #8C2F2B;
    --vestment-white-bottom: #E4E2DB;
    --vestment-white-mark: #5D5C59;
    --vestment-white-top: #FAF9F5;
}

body {
    background-image: url('../assets/background.jpg');
    background-size: cover;
    margin: 0;
    font-family: Helvetica, sans-serif;
    justify-content: center;
    align-items: center;
    /* min-height, not height: the parchment background runs the full length of long pages */
    min-height: 100vh;
    background-color: #F4E8D0
}

/* sits in the page content, below the top bar, so the bar never disappears */
#loading {
    text-align: center;
    padding-top: 40px;
}

html {
    background-color: #F4E8D0;
    overscroll-behavior: none;
}

.topBar {
    /* solid and the same colour as .statusBarTint, so the status bar and this bar meet without a seam */
    background: color-mix(in srgb, var(--season-color) 75%, #F4E8D0);
    color: var(--on-dark-vestment);
    padding: 30px;
    display: flex;
    align-items: center;
}

/* empty strip pinned to the top edge: iOS Safari and home-screen apps colour the status bar from a fixed
   element there (they read its background-color), and background-clip: text keeps it from painting anything */
.statusBarTint {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 12px;
    background: color-mix(in srgb, var(--season-color) 75%, #F4E8D0);
    -webkit-background-clip: text;
    background-clip: text;
    pointer-events: none;
    z-index: 4;
}
