@font-face {
  font-family: "FBS";
  src: url("./public/fonts/FBS.otf");
}

@font-face {
  font-family: "Erika Ormig";
  src: url("./public/fonts/Erika_Ormig.ttf");
}

@font-face {
  font-family: "Telegraphem";
  src: url("./public/fonts/Telegraphem.otf");
}

:root {
  --color-background: #d94dea;
  --font-family-body: "Erika Ormig";
  --font-family-title-big: "FBS";
  --font-family-title-small: "Telegraphem";
  --color-foreground-default: #000;
  --color-foreground-action: #fff;
  --color-foreground-accent: #ffd859;
}

* {
  box-sizing: border-box;
}

html {
  align-items: flex-start;
  background-color: var(--color-background);
  background-image: url("./public/magenta-background-sm.jpg");
  background-position: top left;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 2rem;

  @media (min-width: 920px) {
    padding: 4rem 2rem;
  }
}

body {
  display: grid;
  font-family: var(--font-family-body);
  font-size: 1.5rem;
  gap: 2rem;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
  grid-template-areas:
    "header header"
    "main main";
  margin: 0 auto;
  padding: 0;

  @media (min-width: 920px) {
    grid-template-columns: 300px 600px;
    grid-template-areas:
      "header header"
      ". main";
    width: auto;
  }
}

header {
  display: flex;
  grid-area: header;
  justify-content: space-between;
  max-height: 12rem;
  margin: 0 0 2rem;
  position: relative;

  .logo {
    margin: 0;
    position: relative;
    top: 0;

    img {
      height: auto;
      width: 250px;
    }
  }

  nav ul {
    display: flex;
    flex-direction: column;
    font-family: var(--font-family-title-small);
    gap: 1rem;
    height: 100%;
    justify-content: flex-end;
    list-style-type: none;
    margin: 0;
    padding: 0;
    text-align: right;

    a {
      text-decoration: none;
    }

    @media (min-width: 640px) {
      flex-direction: row;
      gap: 2rem;
    }
  }

  @media (min-width: 920px) {
    margin: 0;
    max-height: 4rem;

    .logo {
      right: 40px;
      top: -50px;
      img {
        width: 350px;
      }
    }
  }
}

main {
  grid-area: main;
  display: flex;
  flex-direction: column;
  gap: 2rem;

  & > * {
    margin: 0;
  }
}

a span {
  font-family: var(--font-family-title-big);
}

a,
.current {
  color: var(--color-foreground-action);
}

h2,
h3,
h4 {
  font-family: var(--font-family-title-small);
}

h2 {
  font-size: 1.5rem;
}

p a {
  color: currentColor;
  text-decoration: underline;
}

.current {
  text-decoration: underline;
}

.standOut,
.title {
  font-family: var(--font-family-title-big);
  font-size: 2.5rem;
  font-weight: normal;
}

.event {
  .name {
    display: block;
    font-family: var(--font-family-title-small);
    font-size: 1.4rem;
    font-weight: normal;
    margin: 0;
  }

  & > * {
    margin: 0;
  }
}
