@font-face {
  font-family: 'FotonType';
  src: url('/assets/fonts/FotonType-Bold.woff2') format('woff2'), url('/assets/fonts/FotonType-Bold.woff') format('woff');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'FotonType';
  src: url('/assets/fonts/FotonType-Medium.woff2') format('woff2'), url('/assets/fonts/FotonType-Medium.woff') format('woff');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'FotonType';
  src: url('/assets/fonts/FotonType-Light.woff2') format('woff2'), url('/assets/fonts/FotonType-Light.woff') format('woff');
  font-weight: 200;
  font-display: swap;
}

@layer reset, tokens, base, components, utilities;

@layer reset {
  /* 1. Use a more-intuitive box-sizing model */
  *, *::before, *::after {
    box-sizing: border-box;
  }

  /* 2. Remove default margin */
  *:not(dialog) {
    margin: 0;
  }

  /* 3. Enable keyword animations */
  @media (prefers-reduced-motion: no-preference) {
    html {
      interpolate-size: allow-keywords;
    }
  }

  html {
    scroll-behavior: smooth;
    font-family: 'FotonType', sans-serif;
  }

  body {
    /* 4. Increase line-height */
    line-height: 1.5;
    /* 5. Improve text rendering */
    -webkit-font-smoothing: antialiased;
  }

  /* 6. Improve media defaults */
  img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
  }

  /* 7. Inherit fonts for form controls */
  input, button, textarea, select {
    font: inherit;
  }

  /* 8. Avoid text overflows */
  p, h1, h2, h3, h4, h5, h6 {
    /*overflow-wrap: break-word;*/
  }

  /* 9. Improve line wrapping */
  p {
    text-wrap: pretty;
  }

  h1, h2, h3, h4, h5, h6 {
    text-wrap: balance;
  }

  /*
    10. Create a root stacking context
  */
  #root, #__next {
    isolation: isolate;
  }
}

@layer tokens {
  :root {
    --foton-blue: #041954;
    --foton-white: #ffffff;
    --foton-grey: #b4bcbf;
  }
}

h1 {
  width: 100%;
  font-size: 2rem;
  line-height: 1.8rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

a {
  color: var(--foton-white);
}

.container {
  display: grid;
  align-content: start;
  width: 100%;
  /*max-width: 1200px;*/
  margin: 2.5rem auto;
  padding: 0 3rem;
}

main {
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-content: start;
  min-height: 100vh;
  background-color: var(--foton-blue);
  color: var(--foton-white);
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.col + .col {
  padding-left: 1rem;
}

.banner {
  background: url(/assets/header.jpg) no-repeat center;
}

@media (max-width: 767px){
  .row {
    grid-template-columns: auto;
    grid-template-rows: auto auto;
  }
  .col + .col {
    padding:1rem 0 0;
  }

  .banner {
    min-height: 40vh;
    background-size: cover;

    .container {
      height: calc(100% - 5rem);
    }
    h1 {
      margin-top: 0;
    }
  }
}

.logo {
  width: 200px;
  margin: 0 0 1rem;
}

.main {
  margin-bottom: 0;
  p {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
}

.footer {
  margin-top: auto;
  padding-top: 2.5rem;
  justify-content: space-between;

  p {
    margin-bottom: 1rem;
  }
}

.social {
  ul {
    margin-bottom: 1rem;
    padding: 0;
    list-style: none;
    font-size: 2rem;

    li {
      display: inline-block;
    }
  }
  a {
    &:hover {
      text-shadow: 0 0 2rem;
    }
  }
}

@media (min-width: 768px) {

  h1 {
    font-size: 3.5rem;
    line-height: 3rem;
  }
  .banner {
    min-height: 65vh;
  }
  .main p {
    font-size: 1.2rem;
  }

  .footer {
    grid-template-columns: auto auto;

    ul {
      margin-bottom: 0;
    }

    p {
      align-self: end;
      text-align: right;
    }
  }
}
