@import url('https://rsms.me/inter/inter.css');

:root {
  --theme: #C8A2CA;
  --theme-alt: #AD6AD4;
  --theme-light: #E6D7FE;
  --theme-transparent: rgba(173, 106, 212, 0.75);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
}

@supports (font-variation-settings: normal) {
  html {
    font-family: 'Inter var', sans-serif;
  }
}

.w {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  display: block;
  padding-left: 1em;
  padding-right: 1em;
}

.w .w {
  padding-left: 0;
  padding-right: 0;
}

/* HEADER */
header.w {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5em;
  padding-bottom: 1em;
}

header img {
  height: 3em;
}

header a {
  color: inherit;
  margin-left: 1em;
}

@media screen and (max-width: 960px) {
  header.w {
    flex-direction: column;
  }
  header img {
    margin-bottom: 1em;
    margin-top: 1em;
  }
}

/* HERO */

#hero {
  background-image: linear-gradient(0deg, var(--theme-transparent), var(--theme-transparent)), url('/assets/grid.jpg');
  color: white;
  text-align: center;
  text-shadow: 2px 2px 2px rgba(0,0,0,.25);
  background-size: cover;
  padding: 6rem 0;
  background-position-y: center;
}

#hero h1 {
  font-size: 2em;
}

#hero h2 {
  font-size: 1.5em;
  margin-top: 1rem;
}

#hero p {
  margin-top: 1rem;
}

#hero p a {
  color: white;
}

@media screen and (max-width: 960px) {
  #hero {
    padding: 2rem 0;
  }
  #hero h1 {
    font-size: 1.5em;
  } 
  #hero h2 {
    font-size: 1.25em;
  }
}

/* UPDATES */

#updates {
  background: var(--theme-light);
  padding: 1em;
}

#updates form {
  display: grid;
  grid-template-columns: auto 2fr 1fr;
  grid-gap: 1em;
}

#updates label {
  padding: 0.6em;
}

#updates input {
  padding: 0.5em;
  font-size: 1em;
  background: #fff;
  border: 0;
  -webkit-appearance: none;
}

#updates input[type=submit] {
  background: var(--theme);
}

@media screen and (max-width: 960px) {
  #updates form {
    grid-template-columns: 1fr;
  }
  #updates label {
    padding: 0;
    text-align: center;
  }
}

/* ABOUT */

#about {
  padding-top: 4em;
  padding-bottom: 4em;
}

#about p:not(:last-child) {
  margin-bottom: 1em;
}

/* SPONSORS */
#sponsors {
  margin-bottom: 4em;
}

#sponsors .logos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 2em;
  margin-top: 1em;
  padding-right: 50%;
}

#sponsors img {
  width: 100%;
  display: block;
}

#sponsors p {
  margin-top: 1rem;
  margin-bottom: 2rem;
}

#sponsors p a {
  color: var(--theme-alt);
}

@media screen and (max-width: 960px) {
  #sponsors .logos {
    padding-left: 0;
    padding-right: 0;
  }
}

/* VENUE */

#venue {
  margin-top: 4em;
  margin-bottom: 4em;
}

#venue .split {
  display: grid;
  grid-template-columns: calc(25% - 1em) auto;
  grid-gap: 2em;
  margin-top: 1em;
  margin-bottom: 2em;
}

#venue img {
  width: 100%;
  border: 2px solid var(--theme-alt);
}

#venue p:not(:last-child) {
  margin-bottom: 1em;
}

@media screen and (max-width: 960px) {
  #venue .split {
    grid-template-columns: 1fr;
  }
}

/* SCHEDULE */

#schedule h2 {
  margin-bottom: 1rem;
}

#schedule table {
  width: 100%;
}

#schedule table,
#schedule td,
#schedule tr {
  border-collapse: collapse;
  border: 1px solid var(--theme-light);
}

#schedule td {
  padding: 0.5em;
}

/* COC */

#coc p {
  margin-top: 1em;
}

/* FOOTER */

footer {
  background: var(--theme-light);
  padding: 0.5em;
  margin-top: 4em;
}