* {
  margin: 0;
}

html {
  margin: 0;
  padding: 0;
  height: 100%;
  background: white;
}

body {
  color: #333;
  font-family: system, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, Geneva, sans-serif;
  font-weight: lighter;
  margin: 0;
  padding: 0;
  padding-bottom: 64px;
  min-height: 100%;
  width: 100%;
  min-width: 320px;
  display: flex;
  flex-direction: column;
}

/* =headings
---------------------------------------------- */

h1 {
  font-size: xx-large;
  font-weight: normal;
  padding: 8px 0;
}

h2 {
  color: #666;
  font-size: x-large;
  font-weight: lighter;
  padding: 6px 0;
}

h3 {
  color: #666;
  font-size: large;
  font-weight: lighter;
  margin: 0 0 10px 0;
  padding: 4px 0;
}

h4 {
  color: #666;
  font-size: medium;
  font-weight: lighter;
  padding: 4px 0;
}

/* =links
---------------------------------------------- */

a {
  font-weight: bold;
}

a:link, a:visited {
  color: #544592;
  text-decoration: none;
}

a:hover, a:active {
  color: #b2a0fd;
}

/* =paragraphs
---------------------------------------------- */

p {
  line-height: 20px;
  margin: 0 0 10px 0;
}

p:last-child {
  margin: 0;
}

/* =images
---------------------------------------------- */

p img {
  background: #fff;
  display: block;
  padding: 4px;
}

/* =lists
---------------------------------------------- */

ul, ol {
  margin: 0 0 22px 0;
  padding: 0 0 0 24px;
}

ul li, ol li {
  line-height: 18px;
  margin: 0 0 8px 0;
}

/* =layout
---------------------------------------------- */

.wrapper {
  margin: 0 auto;
  padding: 0 12px;
  width: 950px;
  max-width: 100%;
  box-sizing: border-box;
}

/* =header
---------------------------------------------- */

.site-header {
  padding: 20px;
  background: #544592;
}

.site-logo {
  font-size: xx-large;
  font-weight: normal;
}

.site-logo a:link,
.site-logo a:visited {
  color: #f3f2f8;
  font-weight: normal;
}

.site-logo a:hover {
  color: #74d0f4;
}

/* =content
---------------------------------------------- */

.page-content {
  flex: 1;
}

.site-content {
  margin: 10px;
  padding: 20px;
  background-color: #ffffff;
}

/* =cookie banner
---------------------------------------------- */

#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #2a2255;
  color: #f3f2f8;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 1000;
  font-size: small;
}

#cookie-banner p {
  margin: 0;
  line-height: 1.4;
}

#cookie-banner a:link,
#cookie-banner a:visited {
  color: #b2a0fd;
}

.cookie-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.cookie-actions button {
  padding: 6px 16px;
  border: none;
  border-radius: 4px;
  font-size: small;
  cursor: pointer;
}

#cookie-accept {
  background: #b2a0fd;
  color: #1a1040;
  font-weight: bold;
}

#cookie-decline {
  background: transparent;
  color: #f3f2f8;
  border: 1px solid #7060aa !important;
}

@media (max-width: 768px) {
  body {
    padding-bottom: 110px;
  }

  #cookie-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =footer
---------------------------------------------- */

.site-footer {
  background: #f7f7f8;
  color: #837b7b;
  text-align: center;
  padding: 10px 0;
  box-sizing: border-box;
}

.site-footer li {
  list-style-type: none;
}

.footer-nav {
  list-style-type: none;
  overflow: hidden;
  display: inline-block;
  width: auto;
  padding: 0;
  margin: 0;
}

.footer-nav li {
  float: left;
  margin: 0 0 0 10px;
  padding: 0;
  font-size: small;
}

.footer-nav li:first-child {
  margin-left: 0;
}

.footer-nav li a:link,
.footer-nav li a:visited {
  color: #c9c3e6;
  font-weight: normal;
}

.footer-nav li a:hover {
  color: black;
}

/* =about
---------------------------------------------- */

.about .intro {
  margin-top: 10px;
  margin-bottom: 10px;
}

.about .contact .address {
  margin-top: 40px;
  margin-bottom: 30px;
}

.about .contact .email {
  margin-top: 40px;
  margin-bottom: 15px;
}

/* =apps listing
---------------------------------------------- */

.apps-listing {
  text-align: center;
}

.apps-listing .header {
  margin-top: 5px;
  margin-bottom: 5px;
}

.apps-listing .app {
  margin-top: 10px;
  margin-bottom: 10px;
}

.apps-listing .app img {
  width: 128px;
  height: 128px;
}

.apps-listing a div.app h1 {
  color: black;
}

.apps-listing a div.app p {
  color: silver;
  font-weight: normal;
}

/* =app page
---------------------------------------------- */

.app-page .header {
  font-size: medium;
  display: inline-block;
  position: relative;
  text-align: center;
  width: 100%;
  height: auto;
  margin: 0 0 10px;
  padding-bottom: 10px;
  box-sizing: border-box;
}

.app-page .header .icon {
  display: inline-block;
  position: relative;
  width: 100%;
  text-align: center;
}

.app-page .header .icon img {
  height: 128px;
  width: 128px;
}

.app-page .header h1 {
  font-size: xx-large;
  margin: 0 0 10px;
}

.app-page .header p {
  color: gray;
}

.app-page .header .price {
  font-size: small;
  color: gray;
  display: inline-block;
  text-align: center;
  margin-bottom: 5px;
  width: 100%;
}

.app-page .header .download-button {
  display: inline-block;
  position: relative;
  margin-top: 10px;
  margin-bottom: 10px;
}

.app-page .header .download-button img {
  width: 136px;
  height: 40px;
}

/* =features
---------------------------------------------- */

.app-page .features .feature {
  margin: 5px 0;
  padding: 5px 0;
  display: inline-block;
  position: relative;
  height: auto;
  width: 100%;
  border-bottom: 1px #eeeeee solid;
  box-sizing: border-box;
}

/* =requirements
---------------------------------------------- */

.app-page .requirements {
  margin: 5px 0;
}

/* =screenshots
---------------------------------------------- */

.app-page .screenshots {
  margin: 5px 0;
  padding: 5px 0;
  display: inline-block;
  position: relative;
  height: auto;
}

.app-page .screenshots .screenshot {
  display: inline-block;
  position: relative;
}

.app-page .screenshots .screenshot img {
  display: block;
  padding: 4px;
  max-width: 246px;
  max-height: 246px;
}

/* =dark mode
---------------------------------------------- */

@media (prefers-color-scheme: dark) {
  html {
    background: #1e1e1e;
  }

  body {
    color: #f0f0f0;
  }

  .site-header {
    background: #3b3369;
  }

  .site-content {
    background-color: #1e1e1e;
  }

  .site-footer {
    background: #2a2a2a;
    color: #a09898;
  }

  .footer-nav li a:link,
  .footer-nav li a:visited {
    color: #9d94cc;
  }

  .footer-nav li a:hover {
    color: #f0f0f0;
  }

  h2, h3, h4 {
    color: #aaa;
  }

  a:link, a:visited {
    color: #b2a0fd;
  }

  a:hover, a:active {
    color: #d4ccff;
  }

  .app-page .features .feature {
    border-bottom-color: #3a3a3a;
  }

  .apps-listing a div.app h1 {
    color: #f0f0f0;
  }
}

/* =responsive
---------------------------------------------- */

@media (max-width: 980px) {
  .wrapper {
    width: 100%;
  }

  .app-page .screenshots .screenshot img {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 12px 16px;
  }

  .site-logo {
    text-align: center;
  }

  .site-content {
    margin: 6px;
    padding: 12px;
  }
}
