/* ==========================================================================
Breakpoints
========================================================================== */
@media only screen and (min-width: 360px) {}
@media only screen and (min-width: 600px) {}
@media only screen and (min-width: 768px) {}
@media only screen and (min-width: 992px) {}
@media only screen and (min-width: 1280px) {}
@media only screen and (min-width: 1440px) {}

/* ==========================================================================
Variables
========================================================================== */
html {
    overflow-x: hidden;
/* Colours */
    --UpNavy: #0B104F;
    --UpOffWhite: #FFFFEE;
    --UpGreen: #00F6AB;
    --UpTurquoise: #00E1D8;
    --UpBlue: #00CAFF;
    --UpPurple: #C080F0;
    --UpRed: #FF6C9A;
    --UpOrange: #FF8D2F;
    --UpYellow: #FFC100;
/* Fonts */
    --ObviouslyNarrow: "obviously-narrow", sans-serif;
    --FunnelSans: "Funnel Sans", sans-serif;
}
html, body {
  overflow-x: clip;
  overscroll-behavior: none;
}
.borders {
    border-radius: 10px;
}
main {
    min-height: 200dvh;
}
.bento {
    background-color: var(--UpOffWhite);
    border-radius: 10px;
    padding: 10px;
}
@media only screen and (min-width: 360px) {
    .borders {
        border-radius: clamp(10px, 2vw, 20px);
    }
    .bento {
        border-radius: clamp(10px, 2vw, 20px);
    }
}
@media only screen and (min-width: 768px) {
    .bento {
        padding: 15px;
    }
}
@media only screen and (min-width: 992px) {
    .bento {
        padding: 20px;
    }
}
@media only screen and (min-width: 1280px) {
    .bento {
        padding: 30px;
    }
}
/* ==========================================================================
   Reset
   ========================================================================== */

/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* ==========================================================================
   Global Typography
   ========================================================================== */
body {
    background: var(--UpOffWhite);
    color: var(--UpNavy);
    font-family: var(--FunnelSans);
    font-weight: 400;
    line-height: 150%;
}
body.yellow {
    background: var(--UpYellow);
}
h1, h2, h3 {
    font-family: var(--ObviouslyNarrow);
    font-weight: 700;
    font-style: normal;
    line-height: 100%;
}
h1 {
    font-size: 64px;
    text-transform: uppercase;
}
h2 {
    font-size: 32px;
}
h4 {
    font-family: var(--FunnelSans);
    font-size: 20px;
    font-weight: 600;
    font-style: normal;
    line-height: 120%;
    letter-spacing: -0.8px;
}
p {
    font-family: var(--FunnelSans);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
}
p.standfirst {
    font-size: 18px;
}
::selection {
    background: var(--UpNavy);
    color: var(--UpOffWhite);
}
@media only screen and (min-width: 360px) {
    h1 {
        font-size: clamp(64px, 9.5vw, 128px);
    }
    h2 {
        font-size: clamp(32px, 4vw, 64px);
    }
    h4 {
        font-size: clamp(20px, 3.2vw, 40px);
    }
    p {
        font-size: clamp(16px, 1.8vw, 20px);
    }
    p.standfirst {
        font-size: clamp(18px, 2vw, 24px);
    }
}
/* ==========================================================================
   Image styles
   ========================================================================== */
img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: auto;
}
/* ==========================================================================
   Header styles
   ========================================================================== */
header {
    position: sticky;
    top: 20px;
    height: 44px;
    margin-bottom: -44px;
    z-index: 10;
    transform: translateY(20px);
    transition: transform 0.2s ease;
}
header.scrolled {
    transform: translateY(0);
}
.header-container {
    background: var(--UpNavy);
    height: 44px;
    padding: 12px;
    box-sizing: border-box;
    border-radius: 10px;
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
}
.header-logo {
    height: 100%;
}
.header-logo a:focus-visible {
    outline: transparent;
}
.header-logo a:focus-visible img {
    outline: 2px solid var(--UpOrange);
    border-radius: 1px;
    outline-offset: 4px;
}
.header-logo img {
    height: 100%;
    width: auto;
}
nav {
    display: flex;
}
nav a {
    display: none;
    color: var(--UpOffWhite);
    text-decoration: none;
    margin-left: 16px;
    padding: 2px 8px;
    border-radius: 6px;
    transition: 0.3s ease all;
}
nav a:hover {
    background: var(--UpOffWhite);
    color: var(--UpNavy);
}
nav a:focus-visible {
    outline: 2px solid var(--UpOrange);
    border-radius: 4px;
}
@media only screen and (min-width: 600px) {
    nav a {
        display: flex;
    }
}
@media only screen and (min-width: 992px) {
    header {
        height: 50px;
        margin-bottom: -50px;
    }
    .header-container {
        height: 50px;
    }
    .hamburger-tapable {
        margin-left: 10px;
    }
}
/* ==========================================================================
   Spacer styles
   ========================================================================== */
.mini-gap {
    margin-bottom: 10px;
}
.spacer-bottom-xs {
    margin-bottom: 16px;
}
.spacer-top-xs {
    margin-top: 16px;
}
.spacer-bottom-s {
    margin-bottom: 32px;
}
.spacer-top-s {
    margin-top: 32px;
}
.spacer-bottom-sm {
    margin-bottom: 48px;
}
.spacer-top-sm {
    margin-top: 48px;
}
.spacer-bottom-m {
    margin-bottom: 64px;
}
.spacer-top-m {
    margin-top: 64px;
}
.spacer-bottom-l {
    margin-bottom: 128px;
}
.spacer-top-l {
    margin-top: 128px;
}
@media only screen and (min-width: 768px) {
    .spacer-bottom-sm {margin-bottom: 64px;}
    .spacer-top-sm {margin-top: 64px;}
    .mini-gap {margin-bottom: 20px;}
}
@media only screen and (min-width: 992px) {
    .spacer-bottom-xs {margin-bottom: 20px;}
    .spacer-top-xs {margin-top: 20px;}
    .spacer-bottom-s {margin-bottom: 44px;}
    .spacer-top-s {margin-top: 44px;}
    .spacer-bottom-sm {margin-bottom: 72px;}
    .spacer-top-sm {margin-top: 72px;}
    .spacer-bottom-m {margin-bottom: 88px;}
    .spacer-top-m {margin-top: 88px;}
    .spacer-bottom-l {margin-bottom: 176px;}
    .spacer-top-l {margin-top: 176px;}
}
@media only screen and (min-width: 1280px) {
    .spacer-bottom-xs {margin-bottom: 24px;}
    .spacer-top-xs {margin-top: 24px;}
    .spacer-bottom-s {margin-bottom: 52px;}
    .spacer-top-s {margin-top: 52px;}
    .spacer-bottom-m {margin-bottom: 104px;}
    .spacer-top-m {margin-top: 104px;}
    .spacer-bottom-l {margin-bottom: 208px;}
    .spacer-top-l {margin-top: 208px;}
    .spacer-bottom-sm {margin-bottom: 80px;}
    .spacer-top-sm {margin-top: 80px;}
}
@media only screen and (min-width: 1440px) {
    .spacer-bottom-xs {margin-bottom: 32px;}
    .spacer-top-xs {margin-top: 32px;}
    .spacer-bottom-s {margin-bottom: 60px;}
    .spacer-top-s {margin-top: 60px;}
    .spacer-bottom-sm {margin-bottom: 88px;}
    .spacer-top-sm {margin-top: 88px;}
    .spacer-bottom-m {margin-bottom: 120px;}
    .spacer-top-m {margin-top: 120px;}
    .spacer-bottom-l {margin-bottom: 240px;}
    .spacer-top-l {margin-top: 240px;}
}
/* ==========================================================================
   Home styles
   ========================================================================== */
.home-hero {
    background: var(--UpRed);
    min-height: 70vh;
    min-height: 70dvh;
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}
.home-hero .hero-content {
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}
.home-hero h1 {
    max-width: 12ch;
}
.home-hero p {
    max-width: 38ch;
}
.home-hero .gradient {
    position: absolute;
    inset: 0;
    bottom: -1px;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.home-hero .gradient .gradient-inner {
    position: relative;
    width: 100%;
    height: 100%;
}
.home-hero .gradient .gradient-inner .grad-layer {
    position: absolute;
    inset: 0;
    will-change: transform;
}
.home-hero .gradient .gradient-inner .grad {
    position: absolute;
    left: 50%;
    bottom: var(--bottom);
    width: var(--width);
    max-width: none;
    height: auto;
    display: block;
    transform: translateX(-50%);
    transform-origin: 50% 100%;
    backface-visibility: hidden;
    pointer-events: none;
}
.home-hero .gradient .gradient-inner .grad7 { --width: 134vw; --bottom: -32vw; }
.home-hero .gradient .gradient-inner .grad6 { --width: 144vw; --bottom: -28vw; }
.home-hero .gradient .gradient-inner .grad5 { --width: 154vw; --bottom: -24vw; }
.home-hero .gradient .gradient-inner .grad4 { --width: 164vw; --bottom: -20vw; }
.home-hero .gradient .gradient-inner .grad3 { --width: 174vw; --bottom: -16vw; }
.home-hero .gradient .gradient-inner .grad2 { --width: 184vw; --bottom: -12vw; }
.home-hero .gradient .gradient-inner .grad1 { --width: 194vw; --bottom: -8vw; }

.home-news h2 {
    text-align: center;
    margin-top: 8px;
}
.leaderboard-toggles {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin: 16px 0 12px 0;
}
.leaderboard-toggles .toggle {
    background: var(--UpNavy);
    color: var(--UpOffWhite);
    border-radius: 10px;
    text-align: center;
    padding: 8px;
    flex: 1;
    cursor: pointer;
}
.leaderboard-toggles .toggle:hover {
    background: var(--UpBlue);
    color: var(--UpNavy);
}
.leaderboard-toggles .toggle.active {
    background: var(--UpOffWhite);
    color: var(--UpNavy);
    box-shadow: 0 0 14px 0 var(--UpBlue);
    animation: pulseShadow 5s ease-in-out infinite;
    pointer-events: none;
}
@keyframes pulseShadow {
    0%,
    100% {
        box-shadow: 0 0 12px 0 var(--UpBlue);
    }
    50% {
        box-shadow: 0 0 22px 0 #B0F0FF;
    }
}
@media only screen and (min-width: 600px) {
    .home-hero {
        min-height: 80vh;
        min-height: 80dvh;
    }
}
@media only screen and (min-width: 768px) {
    .home-news h2 {
        text-align: left;
        margin-top: 0px;
    }
}
@media only screen and (min-width: 992px) {
    .home-hero {
        min-height: 95vh;
        min-height: 95dvh;
    }
    .leaderboard-toggles {
        margin: 32px 0 12px 0;
    }

    .home-hero .gradient .gradient-inner .grad7 { --width: 134vw; --bottom: -42vw; }
    .home-hero .gradient .gradient-inner .grad6 { --width: 144vw; --bottom: -40vw; }
    .home-hero .gradient .gradient-inner .grad5 { --width: 154vw; --bottom: -38vw; }
    .home-hero .gradient .gradient-inner .grad4 { --width: 164vw; --bottom: -36vw; }
    .home-hero .gradient .gradient-inner .grad3 { --width: 174vw; --bottom: -34vw; }
    .home-hero .gradient .gradient-inner .grad2 { --width: 184vw; --bottom: -32vw; }
    .home-hero .gradient .gradient-inner .grad1 { --width: 194vw; --bottom: -30vw; }
}
@media only screen and (min-width: 1440px) {
    .home-hero .gradient .gradient-inner .grad7 { --width: 160vw; --bottom: -56vw; }
    .home-hero .gradient .gradient-inner .grad6 { --width: 144vw; --bottom: -43vw; }
    .home-hero .gradient .gradient-inner .grad5 { --width: 154vw; --bottom: -40vw; }
    .home-hero .gradient .gradient-inner .grad4 { --width: 164vw; --bottom: -37vw; }
    .home-hero .gradient .gradient-inner .grad3 { --width: 174vw; --bottom: -34vw; }
    .home-hero .gradient .gradient-inner .grad2 { --width: 184vw; --bottom: -31vw; }
    .home-hero .gradient .gradient-inner .grad1 { --width: 194vw; --bottom: -28vw; }
}
