:root {
  /* Colours */
  --main: #ea4e4e;
  --main-hover: #d64242;
  --main-light: #FFF4EC;
  --dark-grey: #222;
  --default-text: #555;
  --grey: #888;
  --light-grey: #ccc;
  --lightest-grey: #f8f8f8;
  --page-bg: #fff;
  --green: #a4d037;
  --red: #f05230;
  --input-bg: var(--page-bg);
  /* Misc */
  --box-corner-radius: 10px;
}

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


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

* {box-sizing: border-box;}

body { 
  margin: 0;
  padding: 3rem 1rem 3rem;
  font: 16px/1.4 system-ui, 'Helvetica', sans-serif;
  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 }
}


h1, h2, h3, h4 { color: var(--dark-grey); }
h1 {font-size: 2.5em; }
.fs24, .fslarge { font-size: 1.5em }
.fssmall { font-size: 0.875em; }
.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,
a:visited { 
  color: var(--dark-grey); 
  border-bottom: 1px solid var(--light-grey); 
  text-decoration: none;
  transition: border-color 0.3s;
}
a:hover { border-color: var(--light-grey) }


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

.home-template .container, .container--narrow {max-width: 600px}

.normal { font-weight: normal; }
.mb0 {margin-bottom: 0}
.mb1 {margin-bottom: 1rem}
.mb2 {margin-bottom: 2rem}
.mb3 {margin-bottom: 3rem}
.mb4 {margin-bottom: 4rem}
.mt0 {margin-top: 0;}
.mt2 {margin-top: 2rem}
.mt3 {margin-top: 3rem}
.mt4 {margin-top: 4rem}
.mt6 {margin-top: 6rem}
.mv0{margin-top: 0;margin-bottom: 0 }
.mv1{margin-top: 1rem;margin-bottom: 1rem }
.b0 {border:none !important;}

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

.tag { padding: 1px 4px; display: inline-block; background-color: var(--main-light); border-radius: 3px }

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

hr {margin: 4rem 0;}

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

button, .button, input, select, textarea { 
  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;
}
input {
  border: 1px solid var(--light-grey);
  background-color: var(--input-bg);
}
input:focus{
  outline:none;
  border-color: var(--grey)
}
button, .button, button.cove-button {
  border: 1px solid var(--main); 
  cursor: pointer; 
  background-color: var(--main);
  color: #fff !important;
  white-space: nowrap;
}
button:not([disabled]):hover, .button:not([disabled]):hover, button.cove-button:hover { 
  background-color: var(--main-hover);
  border-color: var(--main-hover);
  color: #fff !important;
  transition: background-color 0.3s, border-color 0.3s; 
}
button.loading, .button.loading {
  opacity: 0.8;
}
.cove-main button {
  width: auto;
  padding: 0.5rem;
  line-height: 1 !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;
}

.page-head {margin-bottom: 4rem}
ul.nav { padding-left: 0;list-style: none;margin: 0}
ul.nav li a {border:0;}
ul.nav li { display: inline-block;margin-right:1rem; }
.nav-current, .nav-current-parent {font-weight: bold}
.logo {width: 300px;box-shadow: none !important}
.head__logo .logo {width: 200px}
@media (min-width:501px) {
  .page-head {display: flex;align-items: center}
  .head__logo {width: 40%}
  .head__nav {width: 60%;text-align: right;}
  ul.nav li {margin-right:0;margin-left:1rem; }
  footer ul.nav li { margin: 0 0.5rem; }
}

.box {border-radius: var(--box-corner-radius);background-color: var(--main-light);padding: 3rem 2rem;}

/* Authors */

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


/* Post list */

.post-card {margin: 4rem auto;}
.post-card:not(.post-card--minimal) {display: flex;justify-content:space-between;align-content:flex-end;}
.post-card:not(.post-card--minimal) .post-card__left {min-width: 100px;height:100px;border-radius: 3px;background-size: cover;background-position: center;}
.post-image-wrap { background-color: #f7f7f7;
    display: block;
    height: 100px;
    background-size: cover;
    background-position: center;border-radius: 3px}
.post-card:not(.post-card--minimal) .post-card__right {flex-grow: 1;margin-left: 1.6rem;text-align: left;flex-grow: 1}

.post-card.no-excerpt h1 {margin-top: 1rem}

.post-card--minimal {margin: 1rem auto;}
.post-card--minimal .post-card__left {width: 100px;display: inline-block;}
.post-card--minimal .post_card__right {display: inline-block;}

.pagination { margin-top: 3rem }

.main-content {padding-top: 0.2rem;font-size: 1.13em}

.main-content img {border-radius: 3px;box-shadow: 0px 2px 4px rgba(0,0,0,.2); height: auto;}


/* 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%}

.home-feature {
  margin: 3rem 0 5rem;
  padding: 2rem;
}
.home-feature .post-card { margin: 0 }


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


.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;
}

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

.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;
}


/* Member icons */
.icon-unlock{display: none}
.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) }


/* 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;
}

.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) !important;
    border-radius: var(--box-corner-radius);
}

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

.kg-bookmark-content {
    flex-basis: 0;
    flex-grow: 1;
    width: 100%;
    padding: 20px;
    order: 1;
    color: var(--dark-grey);
    background-color: var(--lightest-grey);
}

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

.kg-bookmark-metadata,
.kg-bookmark-description {
    margin-top: .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: .5em;
    margin-bottom: .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 .5em;
}



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

.kg-image-card img {
  height: auto;
}

.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;}


@media (prefers-color-scheme: dark) {

}