:root {
    --text-color: #fff;
    --button-color: #eb6400;
    --font-shadow: clamp(0.08rem, .08vw, .2rem) #000;
}

@font-face {
    font-family: "Kenyan";
    src:    url("/font/KenyanCoffeeBdIt.woff2") format("woff2"),
            url("/font/KenyanCoffeeBdIt.woff") format("woff"),
            url("/font/KenyanCoffeeBdIt.otf") format("opentype");
    font-weight: 600;
    font-style: bold;
    font-display: swap;
}

body {
    background: url('/img/background.jpg') no-repeat center center fixed;
    background-size: cover;
    background-color: #000;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    font-family: Arial, Helvetica, sans-serif;
}

h2, h3 {
    text-align: center;
    -webkit-text-stroke: var(--font-shadow);
    font-family: 'Kenyan', sans-serif;
    color: var(--button-color);
    text-transform: uppercase;
}

a {
  color: var(--text-color)
}

#page {
    margin: 0 auto;
    width: min(1000px, 90%);
}

#logo {
    background: url('/img/logo.png') no-repeat center center;
    background-size: contain;
    display: block;
    width: min(1000px, 90%);
    aspect-ratio: 2 / 1;
    margin: 10vh auto 0;
}

#logo a {
    color: transparent;
    display: block;
    height: 100%;
    width: 100%;
}

@supports not (aspect-ratio: 1/1) {
    #logo {
        height: 0;
        padding-top: 50%; /* e.g. 3:1 -> 1/3*100 = 33.333% */
    }
}

#event-date {
    display: block;
    font-family: 'Kenyan', sans-serif;
    margin: 16px auto;
    text-align: center;
    font-size: clamp(1.5rem, 8vw, 3rem);
    -webkit-text-stroke: var(--font-shadow);
}

#event-date p {
    margin: .2rem 0;
    text-transform: uppercase;
}

#upcoming-date {
    font-size: clamp(2.5rem, 16vw, 6rem);
    color: var(--button-color);
    -webkit-text-stroke: var(--font-shadow);
}

h2 {
    font-size: clamp(2rem, 14vw, 3.5rem);
    margin-top: 4rem;
}

#lineup {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin: 4rem auto 2rem;
    gap: clamp(1rem, 4vw, 3rem);
    justify-items: center;
    align-items: center;
    grid-auto-rows: minmax(120px, auto);
}

#lineup > :first-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: auto;
    max-height: clamp(140px, 16vh, 400px); /* bigger visual weight */
}

#lineup > :not(:first-child):nth-child(even) {
    justify-self: end;   /* push the whole grid item to the right */
    text-align: right;
}
#lineup > :not(:first-child):nth-child(odd) {
    justify-self: start; /* push the whole grid item to the left */
    text-align: left;
}

/* images fill their grid cells and keep aspect ratio */
#lineup img {
    display: block;

    /* don't exceed the cell width */
    max-width: 100%;

    /* make all logos visually the same "size" by limiting height */
    max-height: clamp(120px, 18vh, 300px);

    /* allow width to scale to preserve aspect ratio */
    width: auto;
    height: auto;

    object-fit: contain;
}

#lineup img.smaller {
    max-height: clamp(80px, 18vh, 180px);
}

p.tba {
    text-align: center;
    -webkit-text-stroke: var(--font-shadow);
    font-family: 'Kenyan', sans-serif;
    text-transform: uppercase;
    font-size: clamp(1rem, 6vw, 2rem);
}

.tickets {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.2em;
    line-height: 1;

    width: min(300px, 80%);
    margin: 4rem auto 6rem;
    padding: 1rem;
    box-sizing: border-box;
    text-align: center;
    font-family: 'Kenyan', sans-serif;
    font-size: clamp(1.5rem, 8vw, 3rem);
    text-transform: uppercase;
    -webkit-text-stroke: var(--font-shadow);
    color: var(--text-color);
    background: url('/img/grudge_bg.png') repeat center center;
    background-color: var(--button-color);
    text-decoration: none;
    border-radius: 3px;
    box-shadow: 0 4px 3px rgba(0, 0, 0, 0.3);
}

.tickets img {
    height: 1em;
    width: auto;
    display: block;
    margin: 0;
}

.tickets-floating {
  display: none;
  box-sizing: border-box;
}

.tickets-floating img {
  box-sizing: border-box;
  width: auto;
  height: 100%;
  border-radius: 3px;
  box-shadow: 0 4px 3px rgba(0, 0, 0, 0.3);
  background: url('/img/grudge_bg.png') repeat center center;
  background-color: var(--button-color);
  padding: 4px;
}

.footer {
    text-align: center;
    margin: 4rem auto 0;
    font-size: 1.2rem;
    text-transform: uppercase;
    font-family: 'Kenyan', sans-serif;
    backdrop-filter: blur(10px);
    box-sizing: border-box;
    padding: 2rem 1rem;
    box-shadow: 0 -1px 2px rgba(255, 255, 255, 0.3);
}

.footer a {
    color: var(--text-color);
    text-decoration: none;
}

.footer a:hover {
    color: var(--text-color);
    text-decoration: underline;
    text-decoration-color: var(--button-color);
}

/* switch to one per row on narrow screens */
@media (max-width: 600px) {

    h2 {
        margin: 2rem auto;
    }

    #lineup {
        margin: 1rem auto 1rem;
    }

    .tickets-floating {
        display: block;
        position: fixed;
        top: 16px;
        right: 10px;
        width: 51px;
        height: 51px;
    }
}
