:root {
  /* Colours */
  --main: #2ecc71;
  --main-hover: #27ae60;
  --dark-grey: #222;
  --default-text: #444;
  --grey: #888;
  --light-grey: #d2d2d2;
  --lightest-grey: #eee;
  --page-bg: #fff;
  --page-bg-dark: #e9fbf1;
  --green: #27ae60;
  --red: #f05230;
  /* Fonts */
  --sans-serif-font: "Lato", sans-serif;
  --serif-font: "Lora", "Georgia", serif;
  --post-body-font: var(--sans-serif-font);
  /* Misc */
  --box-corner-radius: 10px;
  --box-shadow: rgba(0, 0, 0, 0.2);
  --input-bg: var(--page-bg);
}

.home-flag.blue {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 40rem;
  background: var(--page-bg-dark);
  background: linear-gradient(
    160deg,
    rgba(216, 239, 255, 1) 0%,
    rgba(255, 255, 255, 1) 40%,
    rgba(255, 255, 255, 1) 70%
  );
  z-index: -1;
}

.home-flag.red {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 40rem;
  background: var(--page-bg-dark);
  background: linear-gradient(
    45deg,
    rgba(255, 255, 255, 1) 30%,
    rgba(255, 255, 255, 1) 60%,
    rgba(255, 223, 221, 1) 100%
  );
  z-index: -1;
}

.safe-checkout {
  max-width: 300px;
}

.testimonials > img {
  width: 100px;
}
.testimonials > p {
  font-style: italic;
}

.subscription-needed {
  text-align: center;
  min-width: 300px;
  margin: 1rem;
}

.subscription-needed > div {
  display: inline-block;
  border-radius: var(--box-corner-radius);
  border: var(--red) 1px solid;
}

.subscription-needed > div > p {
  margin: 0;
  padding: 0.5rem;
  color: var(--red);
}

.nav-spacing {
  margin-bottom: 4rem;
}

.plans .offer {
  background-color: var(--red);
  color: #fff;
  padding: 3px 5px;
  border-radius: var(--box-corner-radius);
}

@media (prefers-color-scheme: dark) {
  /* Dark mode colours */
  /* :root {
    --dark-grey: #ececec;
    --default-text: #f8f8f8;
    --grey: #aaa;
    --light-grey: #555;
    --lightest-grey: #333;
    --page-bg: #222;
    --input-bg: var(--lightest-grey);
  } */
}

.container-wide {
  max-width: 900px;
  margin: auto;
}

.container {
  max-width: 800px;
  margin: auto;
}

.container--narrow {
  max-width: 600px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 1rem;
  font: 18px/1.4 var(--sans-serif-font);
  color: var(--default-text);
  background-color: var(--page-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (max-width: 500px) {
  body {
    font-size: 15px;
  }
}
@media (min-width: 501px) {
  body {
    padding: 2rem 1rem;
  }
}

/* .bg-green {
  position: absolute;
  width: 180px;
  z-index: -1;
}

.bg-green-1 {
  left: 50px;
  top: 300px;
}

.bg-green-2 {
  right: 50px;
  top: 300px;
}

.bg-green-3 {
  left: 50px;
  top: 600px;
}

.bg-green-4 {
  right: 50px;
  top: 1000px;
} */

h1 {
  color: var(--dark-grey);
}
h1 {
  font-size: 2.5em;
}
h2,
h3,
h4 {
  color: var(--default-text);
}
h3,
h4 {
  font-weight: 500;
}
.fs24,
.fslarge {
  font-size: 1.5em;
}
.fs32 {
  font-size: 2em;
}
.fssmall {
  font-size: 0.875em;
}
.fstiny {
  font-size: 0.5em;
}
.fsinitial {
  font-size: 1rem;
}
.fsmedium {
  font-size: 1.2em;
}
.lhtitle {
  line-height: 1.2;
}
.tc {
  text-align: center;
}
.tl {
  text-align: left;
}
.tr {
  text-align: right;
}
.b {
  font-weight: bold;
}

hr {
  border: 0;
  border-top: 1px solid var(--light-grey);
}

img {
  max-width: 100%;
}

a:link:not(.button),
a:visited:not(.button) {
  color: var(--dark-grey);
  border-bottom: 1px solid var(--light-grey);
  text-decoration: none;
  transition: border-color 0.3s;
}
a:hover:not(.button) {
  border-color: var(--dark-grey);
}

/* .main-content a:link,
.main-content a:visited {
  border-bottom: 1px solid var(--main);
}
.main-content a:hover {
  border-color: var(--light-grey);
} */

.normal {
  font-weight: normal;
}
.mb0 {
  margin-bottom: 0;
}
.mb1 {
  margin-bottom: 1rem;
}
.mb3 {
  margin-bottom: 3rem;
}
.mb4 {
  margin-bottom: 4rem;
}
.mt0 {
  margin-top: 0;
}
.mt1 {
  margin-top: 1rem;
}
.mt2 {
  margin-top: 2rem;
}
.mt3 {
  margin-top: 3rem;
}
.mt4 {
  margin-top: 4rem;
}
.mt5 {
  margin-top: 5rem;
}
.mt6 {
  margin-top: 6rem;
}
.mt8 {
  margin-top: 8rem;
}
.mt10 {
  margin-top: 10rem;
}
.mt12 {
  margin-top: 12rem;
}
.mt15 {
  margin-top: 15rem;
}
.mt20 {
  margin-top: 20rem;
}
.b0 {
  border: none !important;
}

.color--main {
  color: var(--main);
}

.color--grey,
.color--grey a:not(.button):link,
.color--grey a:not(.button):visited {
  color: var(--grey);
  border-color: var(--grey);
}

.tag,
a.tag {
  padding: 1px 0.5rem;
  display: inline-block;
  background-color: var(--lightest-grey);
  border-radius: 20px;
  border-bottom: 0 !important;
}

pre {
  overflow: auto;
  padding: 1em;
  background-color: var(--lightest-grey);
  border-radius: 3px;
}
pre code {
  padding: 0;
}
code {
  padding: 0.12em 0.25em;
  color: var(--dark-grey);
  background-color: var(--lightest-grey);
  font-size: 0.88em;
  font-family: monospace;
  border-radius: 3px;
}

hr {
  margin: 4rem 0;
}

.button,
input {
  display: block;
  width: 100%;
  margin-bottom: 0.5rem;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  font-size: inherit;
  font-family: inherit;
  color: inherit;
  border-radius: 3px;
  line-height: 32px;
  padding: 6px 14px;
  text-align: center;
}
input {
  border: 1px solid var(--grey);
  background-color: var(--input-bg);
}
input:focus {
  outline: none;
  border-color: var(--main);
  transition: border-color 0.3s;
}
.button {
  border: 1px solid var(--main);
  cursor: pointer;
  background-color: var(--main);
  color: #fff !important;
  white-space: nowrap;
  text-decoration: none;
}
.button--inline {
  display: inline-block;
  width: auto;
}
.button:not([disabled]):hover {
  background-color: var(--main-hover);
  border-color: var(--main-hover);
  color: #fff !important;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}
.button.loading {
  opacity: 0.8;
}
.button--secondary {
  background-color: var(--page-bg);
  border-color: var(--main);
  color: var(--main) !important;
}
.button--secondary:not([disabled]):hover {
  background-color: var(--page-bg);
  border-color: var(--main-hover);
  color: var(--main-hover) !important;
}

.subscribe-form {
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}
.subscribe-email {
  text-align: center;
}

.subscribe-form .button-loader,
.subscribe-form .message-success,
.subscribe-form .message-error {
  display: none;
}
.subscribe-form .button-loader svg {
  vertical-align: middle;
}
.subscribe-form.loading .button-loader {
  display: inline-block;
}
.subscribe-form.loading .button-content {
  display: none;
}
.subscribe-form.success .message-success {
  display: block;
}
.subscribe-form.error .message-error {
  display: block;
}

ul.nav {
  padding-left: 0;
  list-style: none;
  margin: 0;
}
.nav-current,
.nav-current-parent {
  font-weight: bold;
}
.logo {
  width: 300px;
  box-shadow: none !important;
}
.page-head {
  display: flex;
  align-items: center;
}
.head__logo .logo {
  width: 200px;
}
.head__logo {
  font-weight: bold;
}
.head__nav {
  text-align: right;
  position: relative;
}
@media (max-width: 600px) {
  .head__logo,
  .head__nav {
    width: 50%;
  }
  .nav-trigger {
    padding: 0.5rem;
    cursor: pointer;
  }
  .nav-wrapper {
    display: inline-block;
  }
  .nav-wrapper .nav {
    position: absolute;
    display: none;
    right: 0;
    border: 1px solid var(--light-grey);
    border-radius: var(--box-corner-radius);
    z-index: 10;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.15);
  }
  .nav-wrapper:hover .nav {
    display: block;
  }
  .nav-wrapper .nav li a {
    padding: 0.4rem 1rem;
    display: block;
    border: 0;
    background-color: var(--page-bg);
    min-width: 140px;
  }
  .nav-wrapper .nav li:first-of-type a {
    border-radius: var(--box-corner-radius) var(--box-corner-radius) 0 0;
  }
  .nav-wrapper .nav li:last-of-type a {
    border-radius: 0 0 var(--box-corner-radius) var(--box-corner-radius);
  }
  .nav-wrapper .nav li a:hover {
    background-color: var(--lightest-grey);
  }
}
@media (min-width: 601px) {
  .head__logo {
    width: 30%;
  }
  .head__nav {
    width: 70%;
  }
  .nav-trigger {
    display: none;
  }
  ul.nav li {
    display: inline;
    margin-left: 1rem;
  }
  footer ul.nav li {
    margin: 0 0.5rem;
  }
  ul.nav li.nav-subscribe a {
    padding: 0.4rem 0.6rem;
    border-radius: 5px;
    background: var(--main);
    color: #fff;
    border-bottom: 0;
  }
  ul.nav li.nav-subscribe a:hover {
    background-color: var(--main-hover);
    transition: background-color 0.3s;
  }
}

.box {
  border-radius: var(--box-corner-radius);
  padding: 2.5rem 2rem;
  position: relative;
}
.box--bordered {
  border: 1px solid var(--light-grey);
}
.box--shadowed {
  box-shadow: 0 4px 10px var(--box-shadow);
}

/* Home */

.strapline {
  max-width: 1000px;
  margin: auto;
}
.strapline > div {
  display: flex;
  margin-left: 1rem;
  margin-right: 1rem;
}
.strapline > div > div:last-child {
  padding-left: 4rem;
}
.whats-included {
  max-width: 1000px;
  margin: auto;
  display: flex;
  align-items: stretch;
}
.whats-included > div {
  margin-right: 1rem;
  margin-left: 1rem;
  flex: 1;
}
.whats-included > div > p {
  font-weight: normal;
}
.topics > div {
  display: flex;
  justify-content: center;
}
.topics > div > ul {
  list-style-type: none;
  margin: 0;
  margin-right: 2rem;
  padding: 0;
}
.post-teasers {
  max-width: 600px;
}

@media (max-width: 1040px) {
  .strapline > div {
    flex-direction: column-reverse;
  }
  .whats-included {
    flex-direction: column;
  }
  .whats-included > div {
    margin-bottom: 1rem;
  }
}

@media (max-width: 700px) {
  .strapline > div > div:last-child {
    padding-left: 0rem;
  }
  .topics > div {
    flex-direction: column;
    text-align: center;
  }
}

/* Authors and Members */

.avatar {
  width: 100px;
  border-radius: 50% !important;
}
.avatar--mini {
  width: 64px;
  border-radius: 50% !important;
  vertical-align: middle;
}

/* Post list */
.post-card time {
  font-style: italic;
}
.post-card .box,
.box--noaccess {
  height: 300px;
  background-color: var(--grey);
  color: #fff;
}
.box--noaccess p {
  position: relative;
}
.post-card .box,
.box--noaccess,
.box--noaccess .image-cover {
  background-size: cover;
  background-position: center;
}
.box--noaccess .image-cover {
  opacity: 0.2;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  border-radius: var(--box-corner-radius);
}
.box--noaccess .button {
  padding: 0.2rem;
  max-width: 200px;
  margin: auto;
  border-color: var(--main);
}

.pagination {
  margin-top: 3rem;
}

.main-content img {
  border-radius: 3px;
}

/* Post */

.post-title {
  font-size: 2.4rem;
}
.post-content:not(.page) {
  margin: 3rem auto;
  line-height: 1.6;
  max-width: 600px;
}

.post-header {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.post-header img {
  width: 100%;
}
@media (min-width: 701px) {
  .post-header {
    max-width: none;
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
  }
  .post-left {
    width: 40%;
    padding-right: 2rem;
  }
  .post-right {
    width: 60%;
  }
}

.post-full-image img {
  width: 100%;
}

.post-arrows {
  display: flex;
  justify-content: space-between;
}
.post-nav {
  width: 50%;
}

.post-content .socials {
  margin-left: 15px;
  float: right;
  display: flex;
  align-items: center;
}
.post-content .socials > iframe {
  margin-right: 10px;
}

.post-content p,
.post-content ul,
.post-content ol {
  font-family: var(--post-body-font);
}

.post-content pre,
.post-content blockquote,
.post-content .kg-card,
.post-content table,
.post-content ul,
.post-content ol {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  margin-top: 2rem;
  margin-bottom: 0;
}

.post-content p {
  margin-bottom: 1.5rem;
  margin-top: 0.5rem;
}

blockquote {
  margin-left: 0;
  padding: 0.5rem 1.5rem;
  font-size: 1.2rem;
  border-left: 0.5rem solid var(--light-grey);
}

.post-content table {
  border-spacing: 0;
  border-collapse: collapse;
  width: 100%;
  font-size: 0.88em;
}
.post-content table th,
.post-content table td {
  padding: 0.5rem;
  border: 1px solid var(--light-grey);
}
.post-content table tr:nth-of-type(2n) {
  background-color: var(--lightest-grey);
}

.kg-width-wide,
.kg-width-full {
  position: relative;
  width: 75vw;
  min-width: 100%;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  transform: translateX(calc(50vw - 50%));
}

.kg-width-full {
  width: 90vw;
}

article figure {
  margin: 0;
}

article figcaption {
  text-align: center;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  max-width: 400px;
  margin: 1rem auto;
  padding: 1rem;
}
.plan .popular {
  position: absolute;
  top: 5px;
  left: -20px;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  background: var(--main);
  color: #fff;
  border-radius: var(--box-corner-radius);
}
.plan .popular > span {
  font-size: 0.8rem;
  padding: 0.2rem 0.5rem;
}
.plan-features {
  flex: 1;
}
@media (min-width: 660px) {
  .plans {
    display: flex;
    justify-content: space-between;
  }
  .plan {
    flex: 0 1 50%;
    margin: 0;
    max-width: 3 60px;
  }
  .plan + .plan {
    margin-left: 2rem;
  }
  .plan-features {
    min-height: 182px;
  }
}
.plan-features {
  list-style: none;
  padding-left: 0;
}
.plan-features li {
  padding-left: 24px;
  margin-bottom: 4px;
}
.plan-features li:before {
  display: inline-block;
  content: "✓";
  width: 20px;
  margin-left: -20px;
  color: var(--main);
  font-family: system-ui, sans-serif;
}

/* Member icons */
.icon-unlock {
  display: none;
}
.icon-lock svg,
.icon-unlock svg {
  position: relative;
  top: 2px;
}
.icon-lock.vis-members.paidmember-false,
.icon-lock.paidmember-true {
  display: none;
}
.icon-unlock.paidmember-true,
.icon-unlock.vis-members.paidmember-false {
  display: inline;
}

.active-check svg path {
  fill: var(--main);
}

/* Account page */
@media (min-width: 501px) {
  .user {
    display: flex;
  }
  .user__avatar {
    flex: 1 0 8rem;
  }
}

/* Subscribe Message and Overlay */

.notification {
  visibility: hidden;
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 9000;
  padding: 22px 60px;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1.3em;
  font-weight: 500;
  text-align: center;
  background: var(--green);
  transition: all 0.35s cubic-bezier(0.19, 1, 0.22, 1) 0.5s;
  transform: translateY(-175%);
  font-size: 1rem;
}
.notification a {
  border-bottom: 0 !important;
}

.subscribe-success .notification-subscribe {
  visibility: visible;
  transform: translateY(0);
}
.signup-success .notification-signup {
  visibility: visible;
  transform: translateY(0);
}
.signin-success .notification-signin {
  visibility: visible;
  transform: translateY(0);
}
.checkout-success .notification-checkout {
  visibility: visible;
  transform: translateY(0);
}
.billing-success .notification-billing-update {
  visibility: visible;
  transform: translateY(0);
}

.billing-cancel .notification-billing-update-cancel {
  visibility: visible;
  background: var(--red);
  transform: translateY(0);
}

.notification.closed {
  visibility: hidden;
  transition: all 1.35s cubic-bezier(0.19, 1, 0.22, 1);
  transform: translateY(-175%);
}

.notification-close {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
}

.notification-close:before {
  content: "";
  position: absolute;
  top: 29px;
  right: 25px;
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transform: rotate(45deg);
}

.notification-close:after {
  content: "";
  position: absolute;
  top: 29px;
  right: 25px;
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transform: rotate(-45deg);
}

/* Post cards */

.kg-bookmark-card {
  width: 100%;
  margin: 3rem 0;
  position: relative;
}

.kg-bookmark-container {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row-reverse;
  color: currentColor;
  font-family: inherit;
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.kg-bookmark-container:hover {
  text-decoration: none;
}

.kg-bookmark-content {
  flex-basis: 0;
  flex-grow: 999;
  padding: 20px;
  order: 1;
}

.kg-bookmark-title {
  font-weight: 600;
}

.kg-bookmark-metadata,
.kg-bookmark-description {
  margin-top: 0.5em;
}

.kg-bookmark-metadata {
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kg-bookmark-description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.kg-bookmark-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: text-bottom;
  margin-right: 0.5em;
  margin-bottom: 0.05em;
}

.kg-bookmark-thumbnail {
  display: flex;
  flex-basis: 24rem;
  flex-grow: 1;
}

.kg-bookmark-thumbnail img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
  object-fit: cover;
  box-shadow: none;
}

.kg-bookmark-author {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.kg-bookmark-publisher::before {
  content: "•";
  margin: 0 0.5em;
}

.kg-image-card figcaption,
.kg-gallery-card figcaption {
  margin: 0 0 1.5em;
  font-size: 0.88em;
}

.kg-embed-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 1.5em 0 3em;
  min-width: 100%;
}

.kg-embed-card figcaption {
  margin: 0.5em 0 0;
}

.kg-embed-card .fluid-width-video-wrapper {
  margin: 0;
}

.kg-image-full + figcaption {
  padding: 0 1.5em;
}

@media (max-width: 1040px) {
  .post-full-content .kg-width-full .kg-image {
    width: 100vw;
  }
}

.kg-gallery-container {
  display: flex;
  flex-direction: column;
  margin: 1.5em auto;
  max-width: 1040px;
  width: 100%;
}

.kg-gallery-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
}
.kg-gallery-image img {
  display: block;
  margin: 0;
  width: 100%;
  height: 100%;
}

.kg-gallery-row:not(:first-of-type) {
  margin: 0.75em 0 0 0;
}

.kg-gallery-image:not(:first-of-type) {
  margin: 0 0 0 0.75em;
}

footer.container {
  margin-top: 6rem;
}

/* animations */

[data-inviewport="slide-up"] {
  transition: 1s;
  transform: translateY(1em);
  opacity: 0;
}

[data-inviewport="slide-up"].is-inViewport,
[data-inviewport="slide-up"].was-inViewport {
  transform: translateY(0em);
  opacity: 1;
}

[data-inviewport="pulsate"].is-inViewport,
[data-inviewport="pulsate"].was-inViewport {
  animation: pulsate 500ms ease-out;
  -webkit-animation: pulsate 500ms ease-out;
  animation-iteration-count: 3;
  -webkit-animation-iteration-count: 3;
}

@keyframes pulsate {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}
@-webkit-keyframes pulsate {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}
