<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <link href="/favicon.ico" rel="SHORTCUT ICON">
  <title>500 Error</title>
  <style>
    :root {
      --gloabl-font-size: 16px;
      --container-width: 73.125rem;
      --font-h1: 3rem;
      --font-lead: 1.125rem;
      --global-line-height: 1.5;
    }

    @media screen and (max-width: 768px) {
      :root {
        --font-h1: 1.5rem;
        --global-line-height: 1.2;
        --font-lead: 1rem;
      }
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    html,
    body {
      font-size: var(--gloabl-font-size);
      line-height: var(--global-line-height);
    }
    
    a {
      text-decoration: underline;
      color: #36ACE0;
    }

    .container {
      max-width: var(--container-width);
      margin: 0 auto;
    }

    .text-center {
      text-align: center;
    }

    .lead,
    p {
      font-size: var(--font-lead);
      line-height: var(--global-line-height);
    }

    h1 {
      font-size: var(--font-h1);
      line-height: var(--global-line-height);
      margin: 1rem 0;
    }

    .main,
    main {
      height: 100vh;
    }

    .slide-hero {
      display: flex;
      flex-direction: column;
      padding-top: 10rem;
    }

    .slide-hero p {
      margin: 2rem 0;
    }

    p:empty {
      display: none;
    }

    @media screen and (max-width: 768px) {
      .container {
        padding: 0 2rem;
      }

      .slide-hero p {
        margin: 1rem 0;
      }
    }
  </style>
</head>
<body>
    <div class="main main--is-dark">
        <main class="container">
            <div class="slide-hero slide main-padding-large">
                <div class="slide-hero-header">
                    <p class="slide-hero-header-eyebrow quote-small"></p>
                    <h1 class="heading-three">Well, that wasn't supposed to happen.</h1>
                </div>
                <div class="slide-hero-content">
                    <div class="rte">
                        <p>Something went wrong and it shouldn't have. We'll look into it!</p>
                        <p><a href="/">Click here</a> to move back to homepage. </p>
                    </div>
                </div>
            </div>

        </main>
    </div>
    <script>
        if (window.location.host.includes("climatrek")) {
            var link = document.querySelector("link[rel~='icon']");
            if (!link) {
                link = document.createElement('link');
                link.rel = 'icon';
                document.getElementsByTagName('head')[0].appendChild(link);
            }
            link.href = "/climatrek_favicon.ico";
        }
    </script>
</body>
</html>