:root {
  color-scheme: dark;
  --border-radius: .5rem;
  --bg: rgb(0, 20, 33);
  --bg-transparent: rgba(0, 20, 33, .6);
  --accent-bg: #2b2b2b;
  --text: #fff8ef;
  --text-reverse: black;
  --text-light: #ababab;
  --accent: #017fc0;
  --accent-hover: #ffe099;
  --accent-text: var(--bg);
  --code: #f06292;
  --preformatted: #ccc;
  --disabled: #111;
  --input-bg: #0e1f28;
  --input-border-color: #888;
  --error-color: #EE402E;
  font-size: 125%;
  font-family: 'Karla', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.5;
}

hr {
  margin-top: 2em;
  border: 1px solid var(--input-border-color);
}

h1,
h2,
h3,
h4,
h5,
h6,
h7 {
  font-family: "Sour Gummy", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
}

.header-title {
  --text-shadow: 0px 0px .5rem #000;

  h1 {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .header-subtitle {
    text-shadow: var(--text-shadow);
    font-weight: bold;
    margin-top: .5rem;
    text-wrap: balance;
    text-align: center;
  }

  .header-title-logo {
    width: 12rem;
    height: auto;
  }
}

nav {
  width: 100%;
}

menu {
  display: flex;
  list-style-type: none;
  justify-content: space-evenly;
  align-items: center;
  margin: 0;
  padding: .25em;

  a {
    padding: .5rem 1rem;
    color: var(--text);
    text-decoration: none;
    display: flex;
    /* justify-content: center; */
    align-items: center;
    gap: .25em;
    border: 2px solid rgba(255, 255, 255, .33);
    border-radius: .25em;
    transition: border-color .25s;

    &:hover,
    &:focus {
      border-color: white;
    }

    &:focus {
      text-decoration: underline;
    }

    &[aria-current] {
      background-color: #d0ad26;
      color: var(--text-reverse);
      font-weight: bold;
    }
  }
}

html {
  min-height: 100%;
}

body {
  padding: 1em 20%;

  @media (max-width: 1700px) {
    padding: 1em 1em;
  }

  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1em;
  margin: 0 auto;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 28' width='56' height='28'%3E%3Cpath fill='%23000000' fill-opacity='0.25' d='M56 26v2h-7.75c2.3-1.27 4.94-2 7.75-2zm-26 2a2 2 0 1 0-4 0h-4.09A25.98 25.98 0 0 0 0 16v-2c.67 0 1.34.02 2 .07V14a2 2 0 0 0-2-2v-2a4 4 0 0 1 3.98 3.6 28.09 28.09 0 0 1 2.8-3.86A8 8 0 0 0 0 6V4a9.99 9.99 0 0 1 8.17 4.23c.94-.95 1.96-1.83 3.03-2.63A13.98 13.98 0 0 0 0 0h7.75c2 1.1 3.73 2.63 5.1 4.45 1.12-.72 2.3-1.37 3.53-1.93A20.1 20.1 0 0 0 14.28 0h2.7c.45.56.88 1.14 1.29 1.74 1.3-.48 2.63-.87 4-1.15-.11-.2-.23-.4-.36-.59H26v.07a28.4 28.4 0 0 1 4 0V0h4.09l-.37.59c1.38.28 2.72.67 4.01 1.15.4-.6.84-1.18 1.3-1.74h2.69a20.1 20.1 0 0 0-2.1 2.52c1.23.56 2.41 1.2 3.54 1.93A16.08 16.08 0 0 1 48.25 0H56c-4.58 0-8.65 2.2-11.2 5.6 1.07.8 2.09 1.68 3.03 2.63A9.99 9.99 0 0 1 56 4v2a8 8 0 0 0-6.77 3.74c1.03 1.2 1.97 2.5 2.79 3.86A4 4 0 0 1 56 10v2a2 2 0 0 0-2 2.07 28.4 28.4 0 0 1 2-.07v2c-9.2 0-17.3 4.78-21.91 12H30zM7.75 28H0v-2c2.81 0 5.46.73 7.75 2zM56 20v2c-5.6 0-10.65 2.3-14.28 6h-2.7c4.04-4.89 10.15-8 16.98-8zm-39.03 8h-2.69C10.65 24.3 5.6 22 0 22v-2c6.83 0 12.94 3.11 16.97 8zm15.01-.4a28.09 28.09 0 0 1 2.8-3.86 8 8 0 0 0-13.55 0c1.03 1.2 1.97 2.5 2.79 3.86a4 4 0 0 1 7.96 0zm14.29-11.86c1.3-.48 2.63-.87 4-1.15a25.99 25.99 0 0 0-44.55 0c1.38.28 2.72.67 4.01 1.15a21.98 21.98 0 0 1 36.54 0zm-5.43 2.71c1.13-.72 2.3-1.37 3.54-1.93a19.98 19.98 0 0 0-32.76 0c1.23.56 2.41 1.2 3.54 1.93a15.98 15.98 0 0 1 25.68 0zm-4.67 3.78c.94-.95 1.96-1.83 3.03-2.63a13.98 13.98 0 0 0-22.4 0c1.07.8 2.09 1.68 3.03 2.63a9.99 9.99 0 0 1 16.34 0z'%3E%3C/path%3E%3C/svg%3E"),
  radial-gradient(circle at bottom, #f06600 0, #006cdf 90%);
  background-attachment: fixed;

  >header {
    display: flex;
  }
}

main:not(.home-grid-container),
section,
footer menu {
  padding: .75em 1em;

  @media (max-width: 1100px) {
    flex-direction: column;
    gap: 1em;

    li {
      width: 100%;
    }
  }
}

main:not(.home-grid-container),
section,
footer {
  background-color: var(--bg-transparent);
  backdrop-filter: blur(10px);
  /* backdrop-filter: blur(2px) saturate(140%) hue-rotate(340deg); */
  border-radius: var(--border-radius);
}

footer {
  width: 100%;
}

.section-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  gap: .5em;
}

.home-grid-container {
  display: grid;
  grid-template:
    "intro       intro       screenshots screenshots screenshots"
    "features    features    screenshots screenshots screenshots"
    "features    features    notify      notify      support"
    "selfhosting selfhosting notify      notify      support"
    "selfhosting selfhosting notify      notify      support"
    / 400px 1fr;
  gap: 1em;
  /* width: 60%; */

  @media (max-width: 1100px) {
    display: flex;
    flex-direction: column;
  }


  section {
    min-width: min-content;
    display: flex;
    gap: .5em;
    flex-direction: column;
    text-wrap: balance;

    p,
    ul {
      margin: 0;
      /* text-wrap: balance; */
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    h7 {
      margin: 0;
      align-self: center;
    }
  }
}

.gallery {
  --gap: 1em;
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap);
  justify-content: center;

  a {
    width: calc(50% - var(--gap));
  }

  img {
    border-radius: .15rem;
    width: 100%;
    vertical-align: bottom;
  }

  @media (max-width: 1080px) {
    img {
      min-width: 300px;
      max-width: 100%;
    }
  }

  @media (max-width: 800px) {
    flex-direction: column;

    a {
      width: 100%;
    }
  }
}

svg {
  width: 1em;
  height: 1em;
}

.new-tab-link-icon {
  height: 0.75em;
  width: 0.75em;
  margin-left: auto;
}

.subscription-notify {
  form {
    display: flex;
    flex-direction: column;
    gap: .5em;
    margin-top: .5em;
  }

  button {
    width: 100%;
  }
}

.support-menu {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  gap: 1em;

  li {
    width: 100%;
  }
}

h1 {
  margin-top: 0;
}

dl {
  dt {
    font-weight: bold;
  }
}

.success-message {
  background-color: #95fb62;
  /* background-color: #a8e18e; */
  color: black;
  padding: .5em 1em;
  font-weight: bold;
  border-radius: .25em;
}

.error-message {
  background-color: #ff5b5b;
  color: black;
  padding: .5em 1em;
  font-weight: bold;
  border-radius: .25em;
}