*,
::after,
::before,
::backdrop,
::file-selector-button {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0 solid;
}

html {
  line-height: 1.5;
  font-family:
    ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

body {
  width: 100%;
  min-width: 100%;
  min-height: 100vh;
  padding: 1rem;

  @media (min-width: 640px) {
    padding: 2rem;
    max-width: 640px;
  }
  @media (min-width: 768px) {
    max-width: 768px;
  }
  @media (min-width: 1024px) {
    max-width: 1024px;
  }
  @media (min-width: 1280px) {
    max-width: 1280px;
  }
  @media (min-width: 1536px) {
    max-width: 1536px;
  }

  @media (prefers-color-scheme: dark) {
    background-color: oklch(0.208 0.042 265.755);
    background-image: linear-gradient(to bottom right, oklch(0.208 0.042 265.755), oklch(0.216 0.006 56.043));
    color: white;
  }

  @media print {
    padding: 0;
  }

  & > div {
    margin-inline: auto;
    max-width: 1024px;
    & > :not(:last-child) {
      margin-block-end: 2rem;
    }

    & > div {
      display: grid;
      gap: 2rem;
      @media (min-width: 640px) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }
      @media print {
        gap: 1rem;
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }
    }
  }
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer {
  display: flex;
  justify-content: right;
  align-items: center;
  gap: 0.5rem;
  @media print {
    display: none;
  }
}

h1 {
  font-size: 3rem;
  font-weight: inherit;
  line-height: 1;

  @media print {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }
}

h2 {
  font-size: 1.875rem;
  font-weight: inherit;
  line-height: 2.25rem;
  color: oklch(0.511 0.262 276.966);

  @media print {
    font-size: 1.25rem;
    line-height: 1.4rem;
  }

  @media (prefers-color-scheme: dark) {
    color: oklch(0.785 0.115 274.713);
  }
}

h3 {
  font-size: 1.125rem;
  font-weight: inherit;
  line-height: calc(1.75 / 1.125);
  @media print {
    font-size: 0.875rem;
    line-height: calc(1.25 / 0.875);
  }
}

p {
  @media print {
    font-size: 0.75rem;
    line-height: calc(1 / 0.75);
  }
}

main {
  & > section {
    & > :not(:last-child) {
      margin-block-end: 0.5rem;
    }
  }
  @media (min-width: 640px) {
    grid-column: span 2 / span 2;
  }
  @media print {
    grid-column: span 2 / span 2;
  }
}

aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;

  & > section {
    & > :not(:last-child) {
      margin-block-end: 0.25rem;
      @media print {
        margin-block-end: 0;
      }
    }

    h2 {
      font-size: 1.125rem;
      font-weight: inherit;
      line-height: 1.75rem;
      color: inherit;
      @media print {
        font-size: 1rem;
        line-height: calc(1.25 / 0.875);
      }
    }
  }
}

img {
  max-width: 100%;
  height: auto;
}

ol {
  list-style: none;
  & > :not(:last-child) {
    margin-block-end: 0.5rem;
  }
}

ul {
  list-style: disc;
  list-style-position: inside;
  @media print {
    font-size: 0.75rem;
    line-height: calc(1 / 0.75);
  }
}

li > p {
  font-size: 0.875rem;
  line-height: calc(1.25 / 0.875);
  color: oklch(0.551 0.027 264.364);
  @media print {
    font-size: 0.75rem;
    line-height: calc(1 / 0.75);
  }
}

a {
  color: inherit;
}

a[href="/"], a[href="da.html"] {
  @media print {
    display: none;
  }
}

a[href="https://itinstituttet.dk"] {
  text-decoration-thickness: 2px;
  text-decoration-color: oklch(0.87 0 0);
  &:hover {
    text-decoration-color: oklch(0.708 0 0);
  }
  &:active {
    text-decoration-color: oklch(0.556 0 0);
  }
  @media (prefers-color-scheme: dark) {
    text-decoration-color: oklch(0.556 0 0);
    &:hover {
      text-decoration-color: oklch(0.439 0 0);
    }
    &:active {
      text-decoration-color: oklch(0.371 0 0);
    }
  }
}

a[href="https://mindkey.com"] {
  text-decoration-thickness: 2px;
  text-decoration-color: oklch(0.871 0.15 154.449);
  &:hover {
    text-decoration-color: oklch(0.792 0.209 151.711);
  }
  &:active {
    text-decoration-color: oklch(0.723 0.219 149.579);
  }
  @media (prefers-color-scheme: dark) {
    text-decoration-color: oklch(0.723 0.219 149.579);
    &:hover {
      text-decoration-color: oklch(0.627 0.194 149.214);
    }
    &:active {
      text-decoration-color: oklch(0.527 0.154 150.069);
    }
  }
}

a[href="https://commentor.dk"] {
  text-decoration-thickness: 2px;
  text-decoration-color: oklch(0.837 0.128 66.29);
  &:hover {
    text-decoration-color: oklch(0.75 0.183 55.934);
  }
  &:active {
    text-decoration-color: oklch(0.705 0.213 47.604);
  }
  @media (prefers-color-scheme: dark) {
    text-decoration-color: oklch(0.705 0.213 47.604);
    &:hover {
      text-decoration-color: oklch(0.646 0.222 41.116);
    }
    &:active {
      text-decoration-color: oklch(0.553 0.195 38.402);
    }
  }
}

a[href="https://eazyproject.net"], a[href="https://eazyproject.net/en"] {
  text-decoration-thickness: 2px;
  text-decoration-color: oklch(0.828 0.111 230.318);
  &:hover {
    text-decoration-color: oklch(0.746 0.16 232.661);
  }
  &:active {
    text-decoration-color: oklch(0.685 0.169 237.323);
  }
  @media (prefers-color-scheme: dark) {
    text-decoration-color: oklch(0.685 0.169 237.323);
    &:hover {
      text-decoration-color: oklch(0.588 0.158 241.966);
    }
    &:active {
      text-decoration-color: oklch(0.5 0.134 242.749);
    }
  }
}

a[href="https://bjornlunden.com"] {
  text-decoration-thickness: 2px;
  text-decoration-color: oklch(0.879 0.169 91.605);
  &:hover {
    text-decoration-color: oklch(0.828 0.189 84.429);
  }
  &:active {
    text-decoration-color: oklch(0.769 0.188 70.08);
  }
  @media (prefers-color-scheme: dark) {
    text-decoration-color: oklch(0.769 0.188 70.08);
    &:hover {
      text-decoration-color: oklch(0.666 0.179 58.318);
    }
    &:active {
      text-decoration-color: oklch(0.555 0.163 48.998);
    }
  }
}

button {
  font: inherit;
  color: inherit;
  border-radius: 0;
  background-color: transparent;
}

.btn {
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: inherit;
  gap: 0.25rem;
  padding: 0.5rem;
  border-radius: 0.375rem;
  background-image: linear-gradient(to right, oklch(0.865 0.127 207.078), oklch(0.809 0.105 251.813));
  &:hover {
    background-image: linear-gradient(to right, oklch(0.789 0.154 211.53), oklch(0.707 0.165 254.624));
  }
  &:active {
    background-image: linear-gradient(to right, oklch(0.715 0.143 215.221), oklch(0.623 0.214 259.815));
  }

  @media (prefers-color-scheme: dark) {
    background-image: linear-gradient(to right, oklch(0.715 0.143 215.221), oklch(0.623 0.214 259.815));
    &:hover {
      background-image: linear-gradient(to right, oklch(0.609 0.126 221.723), oklch(0.546 0.245 262.881));
    }
    &:active {
      background-image: linear-gradient(to right, oklch(0.52 0.105 223.128), oklch(0.488 0.243 264.376));
    }
  }

  @media print {
    display: none;
  }
}

.btn-ghost {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: inherit;
  gap: 0.25rem;
  padding-inline: 0.25rem;
}

.print\:none {
  display: none;
  font-size: 0.75rem;
  line-height: calc(1 / 0.75);
  @media print {
    display: inline-block;
  }
}
