:root {
  --palette-black: #222222;
  --palette-gray: #666666;
  --palette-light-gray: #666666;
  --palette-green: #4caf50;
  --palette-nvidia: #76b900; /* official color */
  --palette-red: #f44336;
  --palette-wayland: #ffbc00; /* official color */
  --palette-white: #fafafa;
}

[data-theme="dark"] {
  --palette-black: #fafafa;
  --palette-white: #222222;
  --palette-gray: #aaaaaa;
  --palette-light-gray: #efefef;
}

html {
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  color: var(--palette-black);
  background: var(--palette-white);
}

a {
  color: var(--palette-gray);
}

small {
  font-size: 0.6rem;
}

button {
  border: none;
  background: transparent;
  outline: none;
}

.title--question {
  margin-top: 6rem;
  font-size: 2rem;
  color: var(--palette-gray);
}

.title--answer {
  margin: 4rem 0;
  font-size: 3rem;
}

.title--mostly {
  color: var(--palette-gray);
  font-size: 1.2rem;
}

.title--not-found {
  margin: 4rem 0;
}

.weight--400 {
  font-weight: 400;
}

.btn {
  padding: 0.25rem 0.5rem;
  color: var(--palette-black);
  border: 2px solid transparent;
}

.btn:hover {
  cursor: pointer;
  color: var(--palette-white);
  background: var(--palette-black);
}

.btn:focus {
  outline: 2px dotted var(--palette-black);
}

.btn:active {
  border-color: var(--palette-wayland);
}

main {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

.btn--dark-mode {
  position: absolute;
  right: 1rem;
  top: 1rem;
}

.wayland {
  text-decoration: none;
  color: var(--palette-light-gray);
}

.wayland:hover {
  color: var(--palette-white);
}

.accent--wayland {
  padding: 0 8px;
  background: var(--palette-wayland);
}

.accent--nvidia {
  padding: 0 8px;
  background: var(--palette-nvidia);
}

.section {
  margin: 0 auto;
  margin-top: 3rem;
}

.section__title {
  font-size: 1.4rem;
  font-weight: bolder;
}

.section__list {
  margin-top: 2rem;
  padding: 0;
  font-size: 1.1rem;
  text-align: left;
  list-style-type: none;
}

.list__item--kinda,
.list__item--ok,
.list__item--ko {
  position: relative;
  margin: 0.75rem 0;
  padding-left: 20px;
}

.list__item--kinda:before,
.list__item--ok:before {
  position: absolute;
  display: inline-block;
  left: 0.25rem;
  height: 8px;
  width: 4px;
  top: 4px;
  transform: rotate(45deg);
  content: " ";
  border-bottom: 3px solid var(--palette-green);
  border-right: 3px solid var(--palette-green);
}

.list__item--ko:before,
.list__item--ko:after {
  position: absolute;
  left: 0.4rem;
  top: 4px;
  height: 12px;
  width: 3px;
  content: " ";
  background: var(--palette-red);
}

.list__item--ko:before {
  transform: rotate(45deg);
}

.list__item--ko:after {
  transform: rotate(-45deg);
}

.list__item--kinda:before {
  border-color: var(--palette-gray);
}

.notes {
  max-width: 800px;
  margin: 0 auto;
  margin-top: 3rem;
  padding: 1rem 0;
  padding-top: 2rem;
  line-height: 1.5;
  border-top: 1px solid var(--palette-black);
  font-size: 0.9rem;
}

.notes__date {
  color: var(--palette-gray);
}

@media (max-width: 812px) {
  h1 {
    margin-top: 4rem;
  }

  h2 {
    margin: 3rem 0;
    font-size: 5rem;
  }
}
