* {
  margin: 0;
  padding: 0;
  font-size: 100%;
  font: inherit;
  box-sizing: border-box;
  /* outline: solid 1px rgba(0,0,0,.4); */
}

body.theme-1 {
  /* orange */
  --light: rgba(255,146,0,.4);
  --interactive: rgba(255,146,0,1);
}

body.theme-2 {
  /* magenta */
  --light: rgba(243,69,243,.4);
  --interactive: rgba(243,69,243,1);
}

body.theme-3 {
  /* red */
  --light: rgba(255,38,0,.4);
  --interactive: rgba(255,38,0,1);
}

body.theme-4 {
  /* blue */
  --light: rgba(4,50,255,.4);
  --interactive: rgba(4,50,255,1);
}

body.theme-5 {
  /* green */
  --light: rgba(0,200,0,.4);
  --interactive: rgba(0,200,0,1);
}

body {
  font-family: 'Scope', sans-serif;
  font-variation-settings: "wght" 60, "wdth" 500;
  /* font-size: 26px; */
  /* font-size: 34px; */
  font-size: 30px;
  line-height: 1.2;
  color: #000;
  background: #fff;
  color: var(--interactive);
  overflow-x: hidden;
}

.body--noscroll {
  overflow: hidden;
}

.everything {
  opacity: 0;
  padding-bottom: 40px;
  animation: fadein .4s .3s forwards cubic-bezier(0.075, 0.82, 0.165, 1);
}

.everything--fadeout {
  animation: fadeout .4s forwards cubic-bezier(0.075, 0.82, 0.165, 1);
}

h1 {
  font-variation-settings: "wght" 100, "wdth" 500;
}

.subline {
  /* margin-bottom: 24px; */
  margin-bottom: 20px;
}

.mediumtext {
  font-size: 22px;
  line-height: 1.2em;
}

.mediumtext p {
  max-width: 60ch;
  margin-bottom: .6em;
}

h2 {
  font-size: 22px;
}

h3 {
  font-variation-settings: "wght" 100, "wdth" 500;
}

img {
  max-width: 100%;
  background: rgba(0,0,0,.4);
  filter: grayscale(100%);
  mix-blend-mode: multiply;
}

.item:hover img {
  filter: initial;
  mix-blend-mode: initial;
}

.header {
  margin: 20px 20px 40px 20px;
}

.text {
  margin: 40px 20px 40px 20px;
}

.text p {
  margin-bottom: 20px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
}

.bigcol {
  grid-column: span 3;
  padding-left: 10px;
}

.bigcol--displaced {
  grid-column: 2 / span 3;
}

.items {
}

.item {
  border: solid 1px var(--interactive);
  border-right: none;
  background: var(--light);
  font-variant-ligatures: common-ligatures;
}

.item:hover, .item:focus {
  background: var(--interactive);
  font-variant-ligatures: common-ligatures;
}

.item-image, .item-video {
  /* transform: translate(1.2); */
  margin: 20px 20px 10px 20px;
  width: calc(100% - 40px);
  transition: all .4s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.item:hover .item-image, .item:focus .item-image, .item:hover .item-video, .item:focus .item-video {
  margin: 0;
  width: 100%;
}

.item-text {
  margin: 0 20px 40px 20px;
  transition: all .4s cubic-bezier(0.075, 0.82, 0.165, 1);
  letter-spacing: 1px;
}

.item:hover .item-text, .item:focus .item-text {
  margin: 10px 20px 20px 20px;
  color: #fff;
  /* -webkit-font-smoothing: antialiased; */
  /* letter-spacing: initial; */
  /* font-variation-settings: "wght" 100, "wdth" 500; */
}

.footer {
  margin: 40px 20px 40px 20px;
}

.footer-links {
  margin-top: 40px;
  font-size: 16px;
}

.footer-links a {
  display: inline;
  margin-right: 20px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all .3s cubic-bezier(0.075, 0.82, 0.165, 1);
  cursor: ne-resize;
}

a:not(.item) {
  border-bottom: solid 1px var(--light);
}

a:hover:not(.item) {
  border-bottom: solid 1px var(--interactive);
}

a:focus:not(.item) {
  border-bottom: none;
}

::-moz-selection {
  background: var(--interactive);
  color: #fff;
}

::selection {
  background: var(--interactive);
  color: #fff;
}

a:focus {
  outline: rgba(0,0,0,.2) 4px solid;
  transition: none;
}

.item--empty {
  background: var(--light) url(../images/error.png);
  /* opacity: .4; */
  display: none;
  cursor: not-allowed;
  position: relative;
}

.item--empty:after {
  content: 'Item was removed or failed to load';
  font-size: 16px;
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  padding: 0px 20px 20px 20px;
  width: 80%;
  text-align: center;
  transform: translate(-50%, -50%);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.item--empty:hover {
  background: var(--light) url(../images/error.png);
}

.item--empty.item:nth-child(8) {
  display: block;
}

a.item--promote, a.item--promoted {
  display: block;
  /* background: var(--interactive) !important;
  color: #fff !important; */
}

.item--promote .item-video {

}

.item--promote h2, .item--promoted h2 {
  /* font-size: 16px; */
}

.item--promoted h2:after {
  content: 'promoted';
  text-transform: uppercase;
  background: #fff;
  padding: 2px 5px 3px 7px;
  border-radius: 12px;
  color: var(--interactive);
  display: block;
  margin-top: 8px;
  margin-left: -4px;
  opacity: .8;
  font-variation-settings: "wght" 80, "wdth" 500;
  width: calc(8ch + 12px);
  transition: all .3s cubic-bezier(0.075, 0.82, 0.165, 1);
  font-size: 12px;
}

.item--promoted:hover h2:after {
  opacity: 1;
}
  
/* .item--promote img, .item--promoted img {
  background: none;
  filter: initial;
  mix-blend-mode: initial;
} */

.item--promoted img {
  background: none;
}

.modal, .dialog {
  position: fixed;
  inset: 0;
  height: 100%;
  width: 100%;
  pointer-events: none;
}

.modal-close, .dialog-close {
  background: var(--interactive);
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: all .4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: e-resize;
}

.dialog-close {
  cursor: s-resize;
}

.modal-info {
  right: -75vw;
  height: 100%;
  width: 50vw;
  background: #fff;
  position: absolute;
  top: 0;
  transition: all .4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
  padding: 20px 80px 40px 20px;
  overflow: auto;
}

.dialog-info {
  top: 100vh;
  width: 800px;
  max-width: 100%;
  position: absolute;
  transition: all .4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
  padding: 60px 40px 50px 40px;
  overflow: auto;
  background: #fff;
  left: 50%;
  transform: translateX(-50%);
}

a.modal-info-close, a.dialog-info-close {
  border: solid 1px var(--interactive);
  display: block;
  width: 30px;
  line-height: 23px;
  height: 30px;
  text-align: center;
  border-radius: 100%;
  cursor: pointer;
  margin-left: -8px;
  cursor: e-resize;
}

a.dialog-info-close {
  cursor: s-resize;
  right: 20px;
  position: absolute;
  top: 20px;
}

.modal--visible .modal-close, .dialog--visible .dialog-close {
  opacity: .7;
  z-index: 100;
  pointer-events: auto;
}

.modal--visible .modal-info {
  right: 0;
  z-index: 200;
}

.dialog--visible .dialog-info {
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 200;
  margin-top: -10px;
}


.profilepic {
  background: var(--light);
  width: 90px;
  max-width: 100%;
  display: flex;
  border-radius: 100%;
  float: left;
  /* margin: 0 20px 0px -5px; */
  margin-right: 20px;
}

.profilepic img {
  max-width: 100%;
  mix-blend-mode: multiply;
  /* filter: grayscale(1); */
  filter: brightness(1.2);
  border-radius: inherit;
}

a.btn {
  border: solid 1px var(--interactive);
  padding: 2px 14px 4px 14px;
  /* border-radius: 20px; */
  border-radius: 70em;
  margin-left: -14px;
  /* letter-spacing: 1.5px; */
  letter-spacing: .05em;
  font-variant-ligatures: none;
  cursor: move;
}

a.btn:hover, a.btn:focus, a.modal-info-close:hover, a.modal-info-close:focus, a.dialog-info-close:hover, a.dialog-info-close:focus {
  border: solid 1px var(--interactive);
  border-bottom: solid 1px var(--interactive);
  background: var(--interactive);
  color: #fff;
  -webkit-font-smoothing: antialiased;
  letter-spacing: initial;
  font-variation-settings: "wght" 100, "wdth" 500;
  font-variant-ligatures: none;
}

a.moreinfo {
  cursor: w-resize;
  margin-top: 10px;
  display: inline-block;
}

a.submit {
  cursor: n-resize;
}

.btn+.btn {
  margin-left: 0px;
}

a.submitnow {
  font-size: 30px;
  line-height: 1.2;
  margin-top: 12px;
  display: inline-block;
  cursor: crosshair;
}

/* a.moreinfo:hover, a.moreinfo:focus {
  letter-spacing: ;
} */

.producthunt {
}

.producthunt a {
  background: var(--light);
  display: inline-block;
  height: 54px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}

.producthunt a, .producthunt a:hover {
  border-bottom: none;
  text-decoration: none;
}

.producthunt a:hover {
  background: var(--interactive);
}

.producthunt img {
  background: none;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.producthunt a:hover img {
  /* filter: initial;
  mix-blend-mode: initial; */
}



/* wix collaboration */
/* .item:nth-of-type(8) {
  display: none !important;
} */

.item--wix {
  /* background: var(--interactive);
  color: #fff; */
}

.item--wix h2 {
  /* font-variation-settings: "wght" 100, "wdth" 500;
  font-size: 18px; */
  font-size: 19px;
}

.item--wix h2:after {
  content: 'Sponsored';
  display: block;
  opacity: .7;
}

.item--wix .item-image {
  filter: unset;
  mix-blend-mode: unset;
  /* width: 100%;
  margin: 0 0 10px 0; */
}



@media (min-width: 961px) {
  .item:nth-child(1), .item:nth-child(5) {
    border-left: none;
  }

  .item:nth-child(1), .item:nth-child(2), .item:nth-child(3), .item:nth-child(4) {
    border-bottom: none;
  }
}

@media(max-width: 960px) {
  .grid {
    grid-template-columns: repeat(2,1fr);
  }

  .bigcol {
    padding-left: 0;
    grid-column: span 4;
  }

  .item:nth-child(odd) {
    border-left: none;
  }

  .item:nth-child(1), .item:nth-child(2), .item:nth-child(3), .item:nth-child(4), .item:nth-child(5), .item:nth-child(6) {
    border-bottom: none;
  }

  a.btn {
    margin-left: 0;
  }
}

@media(max-width: 600px) {
  .grid {
    grid-template-columns: repeat(1,1fr);
  }

  .item {
    border-left: none;
    border-right: none;
  }

  .item--empty {
    display: none !important;
  }

  .footer-links {
    display: block;
  }

  .modal-info {
    width: 90vw;
    right: -90vw;
    padding: 20px 20px 40px 20px;
  }

  .submit, .moreinfo {
    display: block;
  }
  
  .btn+.btn {
    margin-top: 10px;
  }
}

@keyframes fadein {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeout {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(40px);
  }
}
