/* Table of Contents */
/*
    1. Global
    2. Base
    3. Cards
    4. Structure
    5. Navbar
    6. Page Header
    7. Posts
    8. Author Box
    9. Comments
    10. Post Navigation
    11. Footer
    12. Members
*/

/* 1. Global
----------------------------- */
:root {
    /* Colours */
    --color-gray-lightest: #F7F8F9;
    --color-gray-light:    #DCDFE1;
    --color-gray:          #596065;
    --color-gray-dark:     #2C343C;
    --color-yellow:        #FFF7C5;

    /* Fonts */
    --font-primary: ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji',
        'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
    --font-mono: Consolas, 'Andale Mono', 'Courier New', Courier, monospace;
}

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
}

main {
    display: block;
}

hr {
    box-sizing: content-box;
    height: 0;
    overflow: visible;
}

a {
    background-color: transparent;
}

abbr[title] {
    border-bottom: none;
    text-decoration: underline;
    text-decoration: underline dotted;
}

b,
strong {
    font-weight: bold;
}

code,
kbd,
samp,
pre {
    font-family: var(--font-mono);
    font-size: 1em;
}

small {
    font-size: 80%;
}

sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sub {
    bottom: -0.25em;
}

sup {
    top: -0.5em;
}

img {
    border-style: none;
}

button,
input,
optgroup,
select,
textarea {
    font-family: inherit;
    font-size: 100%;
    line-height: 1.15;
    margin: 0;
}

button,
input {
    overflow: visible;
}

button,
select {
    text-transform: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
    -webkit-appearance: button;
}

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
    border-style: none;
    padding: 0;
}

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
    outline: 1px dotted ButtonText;
}

fieldset {
    padding: 0.35em 0.75em 0.625em;
}

legend {
    box-sizing: border-box;
    color: inherit;
    display: table;
    max-width: 100%;
    padding: 0;
    white-space: normal;
}

progress {
    vertical-align: baseline;
}

textarea {
    overflow: auto;
}

[type="checkbox"],
[type="radio"] {
    box-sizing: border-box;
    padding: 0;
}

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
    height: auto;
}

[type="search"] {
    -webkit-appearance: textfield;
    outline-offset: -2px;
}

[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}

::-webkit-file-upload-button {
    -webkit-appearance: button;
    font: inherit;
}

details {
    display: block;
}

summary {
    display: list-item;
}

template {
    display: none;
}

[hidden] {
    display: none;
}

/* 2. Base
----------------------------- */
html {
    font-family: var(--gh-font-body, var(--font-primary));
    font-size: 100%;
}

@media only screen and (min-width: 640px) {
    html {
        font-size: 112.5%;
    }
}

body {
    border: 5px solid var(--ghost-accent-color);
    box-sizing: border-box;
    color: var(--color-gray);
    display: flex;
    flex-direction: column;
    line-height: 1.625;
    min-height: 100vh;
}

@media only screen and (min-width: 640px) {
    body {
        border-width: 15px;
    }
}

a {
    color: var(--ghost-accent-color);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-position: under;
    transition: border-color .25s ease, color .25s ease;
}

a:hover,
a:focus {
    color: var(--color-gray-dark);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-gray-dark);
    font-family: var(--gh-font-heading, var(--font-primary));
    font-weight: bold;
    line-height: 1.2;
    margin: 2.5rem 0 1.25rem;
    text-rendering: optimizeLegibility;
}

h1:first-child,
h2:first-child,
h3:first-child,
h4:first-child,
h5:first-child,
h6:first-child {
    margin-top: 0;
}

h1 {
    font-size: 2.25rem;
    letter-spacing: -0.025em;
    line-height: 1.1;
}

@media only screen and (min-width: 480px) {
    h1 {
        font-size: 2.5rem;
    }
}

h2 {
    font-size: 2rem;
    line-height: 1.1;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.125rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin: 0 0 1rem;
}

ul,
ol {
    margin: 1.5rem 0;
    padding: 0 0 0 1.25rem;
}

ul:first-child,
ol:first-child {
    margin-top: 0;
}

li > ul,
li > ol {
    margin: 0;
}

dl {
    margin: 0;
}

dt {
    font-weight: bold;
}

dd {
    margin: 0 0 1em;
}

mark,
ins {
    background: var(--color-yellow);
    color: var(--color-gray-dark);
    padding: 0.1em 0.25em;
    text-decoration: none;
}

pre {
    background: var(--color-gray-lightest);
    border: 1px solid var(--color-gray-light);
    border-radius: 3px;
    font-size: 0.875rem;
    margin: 1.875rem 0;
    overflow: auto;
    padding: 1.25rem;
    position: relative;
    white-space: pre;
}

pre:first-child {
    margin-top: 0;
}

:not(pre) > code {
    background: var(--color-gray-lightest);
    border: 1px solid var(--color-gray-light);
    border-radius: 3px;
    padding: 0.05em 0.15em;
}

blockquote {
    border-left: 3px solid var(--ghost-accent-color);
    color: var(--color-gray-dark);
    font-size: 1.25rem;
    font-style: italic;
    line-height: 1.5;
    margin: 1.875rem 0;
    padding: 0 0 0 1.25rem;
}

@media only screen and (min-width: 1024px) {
    blockquote {
        margin-left: -1.25rem;
    }
}

blockquote small,
blockquote cite {
    color: var(--color-gray);
    display: inline-block;
    font-size: 1rem;
}

blockquote small:before,
blockquote cite:before {
    content: '\2014 \00A0';
}

hr {
    background: var(--color-gray-light);
    border: 0;
    height: 1px;
    margin: 2.5rem 0;
}

table {
    border: 1px solid var(--color-gray-light);
    border-collapse: collapse;
    border-spacing: 0;
    line-height: 1.5;
    margin: 1.875rem 0;
    text-align: left;
    width: 100%;
}

table:first-child {
    margin-top: 0;
}

caption {
    font-size: 0.875rem;
    margin-bottom: 0.9375em;
    text-align: left;
}

th,
td {
    border-color: var(--color-gray-light);
    border-style: solid;
    border-width: 0 1px 1px 0;
    box-sizing: border-box;
    padding: 0.5rem;
}

th {
    color: var(--color-gray-dark);
    font-weight: bold;
}

img {
    border-radius: 3px;
    height: auto;
    max-width: 100%;
}

embed,
iframe,
object,
video {
    max-width: 100%;
}

figure {
    margin: 1.875rem 0;
}

figure:first-child {
    margin-top: 0;
}

figcaption {
    font-size: 0.875rem;
    text-align: left;
}

:not(.kg-card) > .js-reframe {
    margin: 1.875rem 0;
}

:not(.kg-card) > .js-reframe:first-child {
    margin-top: 0;
}

.sr-only {
    border-width: 0;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    white-space: nowrap;
}

.menu {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-item {
    display: inline-block;
}

.menu-item a {
    color: inherit;
    font-size: 0.875rem;
    padding: 0.25rem;
    text-decoration: none;
}

.menu-item a:hover,
.menu-item a:focus,
.menu-item-current {
    color: var(--ghost-accent-color);
}

/* 3. Cards
----------------------------- */
.kg-card {
    margin: 1.875rem 0;
}

.kg-card:first-child {
    margin-top: 0;
}

.kg-card figcaption {
    margin: 0.375rem auto 0;
    max-width: 760px;
}

.kg-image {
    display: block;
}

.kg-bookmark-card {
    width: 100%;
}

.kg-bookmark-container {
    border: 1px solid var(--color-gray-light);
    border-radius: 3px;
    color: var(--color-gray);
    display: flex;
    min-height: 140px;
    text-decoration: none;
}

.kg-bookmark-container:hover,
.kg-bookmark-container:focus {
    border-color: var(--ghost-accent-color);
}

.kg-bookmark-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: flex-start;
    padding: 1.25rem;
}

.kg-bookmark-title {
    color: var(--color-gray-dark);
    font-size: 1.125rem;
    font-weight: bold;
    line-height: 1.2;
    margin: 0 0 0.5rem;
}

.kg-bookmark-description {
    display: -webkit-box;
    line-height: 1.5;
    max-height: 3em;
    overflow-y: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.kg-bookmark-thumbnail {
    position: relative;
    min-width: 33%;
    max-height: 100%;
}

.kg-bookmark-thumbnail img {
    height: 100%;
    left: 0;
    object-fit: cover;
    position: absolute;
    top: 0;
    width: 100%;
}

.kg-bookmark-metadata {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.8125rem;
    font-weight: normal;
    line-height: 1.5;
    margin-top: 1rem;
}

.kg-bookmark-icon {
    height: 1.33333rem;
    margin-right: 0.5rem;
    width: 1.33333rem;
}

.kg-bookmark-author:not(:last-child):after {
    content: "\00b7";
    margin: 0 0.35rem;
}

.kg-bookmark-publisher {
    overflow: hidden;
    line-height: 1.5;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 240px;
}

.kg-gallery-container {
    display: flex;
    flex-direction: column;
}

.kg-gallery-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

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

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

.kg-gallery-image img {
    display: block;
    height: 100%;
    margin: 0;
    width: 100%;
}

.kg-blockquote-alt {
    font-size: 1.5rem;
    line-height: 1.4;
    margin: 2.5rem 0;
    border: 0;
    padding: 0;
    text-align: center;
}

@media only screen and (min-width: 900px) {
    .kg-gallery-card,
    .kg-width-full,
    .kg-width-wide {
        margin-left: calc(425px - 50vw);
        margin-right: calc(425px - 50vw);
    }

    .kg-width-full .kg-image,
    .kg-width-wide .kg-image {
        max-width: none;
        width: calc(100vw - 90px);
    }
}

@media only screen and (min-width: 971px) {
    .kg-width-wide {
        margin-left: -60px;
        margin-right: -60px;
    }

    .kg-width-wide .kg-image {
        width: 880px;
    }
}

/* 4. Structure
----------------------------- */
.container {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

@media only screen and (min-width: 640px) {
    .container {
        padding-left: 30px;
        padding-right: 30px;
    }
}

.main {
    box-sizing: border-box;
    flex-grow: 1;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
}

.post-template .main,
.page-template .main {
    padding-bottom: 1.875rem;
}

/* 5. Navbar
----------------------------- */
.navbar {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 1.875rem 0 2.5rem;
    border-bottom: 1px solid var(--color-gray-light);
}

@media only screen and (min-width: 768px) {
    .navbar {
        padding-bottom: 3.125rem;
        padding-top: 2.5rem;
    }
}

.navbar-title {
    color: var(--color-gray-dark);
    font-family: var(--gh-font-heading, var(--font-primary));
    font-size: 1.75em;
    font-weight: bold;
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin: 0;
}

.navbar-title a {
    color: inherit;
    text-decoration: none;
}

@media only screen and (min-width: 768px) {
    .navbar-logo,
    .navbar-title {
        flex: 0 1 auto;
    }
}

.navbar-menu {
    margin: 1.25rem -0.25rem 0;
    width: 100%;
}

@media only screen and (min-width: 768px) {
    .navbar-menu {
        margin: 0;
        width: auto;
    }
}

.navbar-menu .menu-item {
    margin-right: 0.75em;
}

@media only screen and (min-width: 768px) {
    .navbar-menu .menu-item {
        margin-left: 0.75em;
        margin-right: 0;
    }
}

.navbar-search-btn {
    align-items: center;
    background-color: transparent;
    border: 0;
    box-shadow: none;
    color: inherit;
    cursor: pointer;
    display: inline-flex;
    font-size: 0.875rem;
    justify-content: center;
    line-height: 1;
    padding: 0.5rem;
    vertical-align: middle;
}
.navbar-search-btn svg {
    fill: currentColor;
    height: 1em;
    width: 1em;
}

/* 6. Page Header
----------------------------- */
.page-header {
    border-bottom: 1px solid var(--color-gray-light);
    font-style: italic;
    padding: 1.875rem 0 2.5rem;
}

@media only screen and (min-width: 480px) {
    .page-header {
        padding-bottom: 3.125rem;
        padding-top: 2.5rem;
    }
}

.page-title {
    font-size: 1.5rem;
    font-style: italic;
    font-weight: normal;
    margin: 0;
}

.author-template .page-title,
.tag-template .page-title {
    color: var(--color-gray);
}

@media only screen and (min-width: 480px) {
    .author-template .page-title,
    .tag-template .page-title {
        font-size: 1.875rem;
    }
}

.page-title-highlight {
    color: var(--color-gray-dark);
}

/* 7. Posts
----------------------------- */
.post {
    border-bottom: 1px solid var(--color-gray-light);
    padding: 2.5rem 0;
}

@media only screen and (min-width: 480px) {
    .post {
        padding-bottom: 3.125rem;
        padding-top: 3.125rem;
    }
}

.post:last-child {
    border-bottom: 0;
}

.post-header {
    margin-bottom: 1.5em;
}

.post-meta,
.post-byline {
    font-size: 0.875rem;
    line-height: 1.5;
}

.post-meta {
    display: inline-flex;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.post-featured-badge {
    align-items: center;
    display: inline-flex;
}

.post-featured-badge:before {
    background-color: var(--ghost-accent-color);
    border-radius: 50%;
    content: "";
    height: 0.5em;
    margin-right: 0.5em;
    width: 0.5em;
}

.post-featured-badge:after {
    content: "//";
    margin: 0 0.5em;
}

.post-title {
    font-size: 2.25rem;
    letter-spacing: -0.025em;
    margin: 0 0 1.25rem;
}

@media only screen and (min-width: 480px) {
    .post-title {
        font-size: 2.5rem;
    }
}

.post-title a {
    color: inherit;
    text-decoration: none;
}

.post-byline a {
    text-decoration-line: none;
}

.post-byline a:hover,
.post-byline a:focus {
    text-decoration-line: underline;
}

.post-image {
    display: block;
    margin-bottom: 1.5rem;
}

.post-image img {
    display: block;
}

.post-image figcaption {
    margin-top: 0.375rem;
}

.post-read-more-link {
    align-items: center;
    display: inline-flex;
    text-decoration-line: none;
}

.post-read-more-link:hover,
.post-read-more-link:focus {
    text-decoration-line: underline;
}

.post-read-more-link svg {
    fill: currentColor;
    height: 1em;
    margin-left: 0.25em;
    width: 1em;
}

.post-share {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.875rem;
    line-height: 1.5;
    padding: 1.5rem 0 2.5rem;
}

.post-share-title {
    margin-right: 1rem;
}

.post-share a {
    border: 1px solid var(--color-gray-light);
    border-radius: 3px;
    color: inherit;
    margin: 0.25rem 0.5rem 0.25rem 0;
    padding: 0.25em 0.75em;
    text-decoration: none;
}

.post-share a:hover,
.post-share a:focus {
    border-color: var(--ghost-accent-color);
    color: var(--ghost-accent-color);
}

/* 8. Author Box
----------------------------- */
.author-box {
    border-top: 1px solid var(--color-gray-light);
    padding: 1.5rem 0 2.5rem;
}

.author-profile + .author-profile {
    margin-top: 1.875rem;
}

.author-image {
    margin: 0 0 1rem;
}

.author-image img {
    border-radius: 50%;
    display: block;
    height: 5rem;
    object-fit: cover;
    width: 5rem;
}

.author-title {
    font-size: 1.125rem;
    margin: 0;
}

.author-title a,
.author-links a {
    text-decoration-line: none;
}

.author-title a:hover,
.author-title a:focus,
.author-links a:hover,
.author-links a:focus {
    text-decoration-line: underline;
}

.author-bio,
.author-links {
    line-height: 1.5;
    margin: 0.5rem 0 0;
}

.author-links {
    font-size: 0.8125rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 0.75rem;
    row-gap: 0.5rem;
}

.author-links a:has(svg) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--color-gray);
}

.author-links a:has(svg):hover,
.author-links a:has(svg):focus {
    color: var(--ghost-accent-color);
}

.author-links svg {
    fill: currentColor;
    flex-shrink: 0;
    height: 1em;
    width: 1em;
    overflow: visible;
}

@media only screen and (min-width: 480px) {
    .author-box {
        padding-bottom: 3.125rem;
        padding-top: 1.875rem;
    }

    .author-profile {
        display: flex;
    }

    .author-profile + .author-profile {
        margin-top: 2.25rem;
    }

    .author-image {
        flex-shrink: 0;
        margin: 0 1.5rem 0 0;
    }
}

/* 9. Comments
----------------------------- */
.comments {
    border-top: 1px solid var(--color-gray-light);
    padding: 1.5rem 0 2.5rem;
}

@media only screen and (min-width: 480px) {
    .comments {
        padding-bottom: 3.125rem;
        padding-top: 1.875rem;
    }
}

.comments-count {
    display: block;
    padding-bottom: 1rem;
}

.comments-title {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
}

/* 10. Post Navigation
----------------------------- */
.pagination {
    font-size: 0.875rem;
    line-height: 1.5;
    padding: 1.5rem 0 2.5rem;
}

@media only screen and (min-width: 480px) {
    .pagination {
        padding-bottom: 3.125rem;
        padding-top: 1.875rem;
    }
}

.pagination a {
    align-items: center;
    display: inline-flex;
    text-decoration-line: none;
}

.pagination a:hover,
.pagination a:focus {
    text-decoration-line: underline;
}

.pagination-sep {
    padding: 0 0.25rem;
}

.pagination svg {
    fill: currentColor;
    height: 1em;
    width: 1em;
}

.pagination-older svg {
    margin-right: 0.25rem;
}

.pagination-newer svg {
    margin-left: 0.25rem;
}

/* 11. Footer
----------------------------- */
.footer {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 1.5rem 0;
    border-top: 1px solid var(--color-gray-light);
}

@media only screen and (min-width: 480px) {
    .footer {
        padding-bottom: 1.875rem;
        padding-top: 1.875rem;
    }
}

.footer-nav {
    margin-bottom: 0.75rem;
}

.footer-nav .menu-item {
    margin-right: 0.5em;
}

.footer-social {
    margin-bottom: 0.75rem;
}

.footer-social a {
    align-items: center;
    color: var(--color-gray);
    display: inline-flex;
    justify-content: center;
    margin: 0.25rem 0.5rem 0.25rem 0;
    padding: 0.25rem;
    text-decoration: none;
}

.footer-social a:hover,
.footer-social a:focus {
    color: var(--ghost-accent-color);
}

.footer-social svg {
    flex-shrink: 0;
    fill: currentColor;
    height: 1.25rem;
    width: 1.25rem;
    overflow: visible;
}

.footer-info {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-copyright {
    font-size: 0.8125rem;
    line-height: 1.5;
    margin-right: 1.25rem;
}

.footer-copyright a {
    text-decoration-line: none;
}

.footer-copyright a:hover,
.footer-copyright a:focus {
    text-decoration-line: underline;
}

.footer-top-btn {
    align-items: center;
    border: 1px solid var(--color-gray-light);
    border-radius: 3px;
    color: inherit;
    display: inline-flexbox;
    justify-content: center;
    line-height: 1;
    padding: 0.5em;
    text-decoration: none;
}

.footer-top-btn:hover,
.footer-top-btn:focus {
    border-color: var(--ghost-accent-color);
    color: var(--ghost-accent-color);
}

.footer-top-btn svg {
    fill: currentColor;
    height: 1em;
    width: 1em;
}

/* 12. Members
----------------------------- */
.post .gh-post-upgrade-cta,
.post .gh-post-upgrade-cta-content {
    box-sizing: border-box;
}

.post .gh-post-upgrade-cta-content {
    border-radius: 3px;
    padding-left: 30px;
    padding-right: 30px;
}
