/* App.css
/* ---------------------------------------------------------- /*

These are just some base styles to get you started. You delete
these and start over using your toolset of choice, or evolve
what's here to work the way you'd like it to.

# Table of Contents

- Vars
- Reset
- Defaults
- Layout
- Tag Archives
- Author Archives
- Pagination
- Footer
- Mods

/* Variables
/* ---------------------------------------------------------- */

:root {
  /* Colours */

  --color-base: #161f33;
  --color-primary: #ffffff;
  --color-secondary: rgba(255, 255, 255, 0.8);
  /* --color-border: rgba(255, 255, 255, 0.4); */
  --color-border: hsla(0, 0%, 100%, .15);
  --color-bg: #161f33;
  --color-white: #ffffff;

  /* Fonts */
  --font-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell",
    "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  --font-serif: Georgia, Times, serif;
  --font-mono: Menlo, Courier, monospace;
  --font-light: 100;
  --font-normal: 400;
  --font-medium: 600;
  --font-bold: 700;
  --font-heavy: 800;
  --quote-style: italic;
  --line-height: 1.5;
  --line-height-large: 1.65;
  --body-size: 1.7rem;

  /* layouts */
  --height: 4rem;
  --margin-medium: 1.6rem;
  --bullet-width: 0.65rem;
  --margin-large: 2.4rem;
  --margin-normal: 1.6rem;
  --margin-small: 0.8rem;

  --radius: 0.6rem;
  --max-width: 1120px;
  --spacing-factor: 1;
  --spacing-small: 2.4rem;
  --spacing-normal: 3rem;
  --spacing-large: 4.8rem;

  /* desktop text sizes */
  --text-huge: 5rem;      /* 50 */
  --text-xlarge: 2.4rem;  /* 24 */
  --text-large: 2rem;     /* 20 */
  --text-medium: 1.6rem;  /* 16 */
  --text-small: 1.5rem;   /* 14 */
  --text-tiny: 1.2rem;    /* 12 */
  --text-xtiny: 1.1rem;   /* 11 */

  /* Ghost bits fall back */

  --ghost-accent-color: #ff1a75;
}

@media (max-width: 500px) {
  :root {
    /* mobile text sizes */
    --text-huge: 5rem;      /* 51 */
    --text-xlarge: 2.4rem;  /* 24 */
    --text-large: 1.8rem;   /* 18 */
    --text-medium: 1.6rem;  /* 16 */
    --text-small: 1.4rem;   /* 14 */
    --text-tiny: 1.2rem;    /* 12 */
    --text-xtiny: 1.1rem;   /* 11 */
  }
}

@media (max-width: 1119px) {
  :root {
    --max-width: 90%;
  }
}

/* Reset
/* ---------------------------------------------------------- */

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  font-size: 100%;
  vertical-align: baseline;
}
body {
  line-height: 1;
}
ol,
ul {
  list-style: none;
}
blockquote,
q {
  quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: none;
}
table {
  border-spacing: 0;
  border-collapse: collapse;
}
img {
  max-width: 100%;
  height: auto;
}
html {
  box-sizing: border-box;
  font-family: sans-serif;

  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}
*,
*:before,
*:after {
  box-sizing: inherit;
}
a {
  background-color: transparent;
}
a:active,
a:hover {
  outline: 0;
}
b,
strong {
  font-weight: bold;
}
i,
em,
dfn {
  font-style: italic;
}
h1 {
  margin: 0.5rem 0;
  font-size: var(--text-large);
}
small {
  font-size: 80%;
}
sub,
sup {
  position: relative;
  font-size: 75%;
  line-height: 0;
  vertical-align: baseline;
}
sup {
  top: -0.5rem;
}
sub {
  bottom: -0.25rem;
}
img {
  border: 0;
}
svg:not(:root) {
  overflow: hidden;
}
mark {
  background-color: #fdffb6;
}
code,
kbd,
pre,
samp {
  font-family: monospace, monospace;
  font-size: 1rem;
}
button,
input,
optgroup,
select,
textarea {
  margin: 0;
  color: inherit;
  font: inherit;
}
button {
  overflow: visible;
  border: none;
}
button,
select {
  text-transform: none;
}
button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
  cursor: pointer;
  appearance: button;
  -webkit-appearance: button;
}
button[disabled],
html input[disabled] {
  cursor: default;
}
button::-moz-focus-inner,
input::-moz-focus-inner {
  padding: 0;
  border: 0;
}
input {
  line-height: normal;
}
input:focus {
  outline: none;
}
input[type="checkbox"],
input[type="radio"] {
  box-sizing: border-box;
  padding: 0;
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  height: auto;
}
input[type="search"] {
  box-sizing: content-box;
  appearance: textfield;
  -webkit-appearance: textfield;
}
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}
legend {
  padding: 0;
  border: 0;
}
textarea {
  overflow: auto;
}
table {
  border-spacing: 0;
  border-collapse: collapse;
}
td,
th {
  padding: 0;
}

/* Defaults
/* ---------------------------------------------------------- */

html {
  overflow-x: hidden;
  overflow-y: scroll;
  font-size: 62.5%;  /* sets rem to pixels */
  background: var(--color-base);
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

body {
  overflow-x: hidden;
  color: var(--color-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Oxygen, Ubuntu, Cantarell,
    "Open Sans","Helvetica Neue", sans-serif;
  font-size: var(--text-medium);
  line-height: var(--line-height);
  font-weight: var(--font-normal);
  font-style: normal;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  background: var(--color-base);

  -moz-font-feature-settings: "liga" on;
  font-feature-settings: "liga" on;
}

::selection {
  text-shadow: none;
  background: #cbeafb;
}

hr {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 auto;
  margin-top: 4.8rem;
  /* margin: 1.8rem 0 2.4rem; */
  padding: 0;
  height: 1px;
  border: 0;
  border-top: 1px solid var(--color-border);
  opacity: 0.5;
}

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

iframe {
  display: block;
  margin: 0 auto;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

textarea {
  resize: vertical;
}

p,
ul,
ol,
dl {
  margin: 0 0 var(--margin-medium) 0;
}

ol,
ul {
  padding-left: 1rem;
  padding-right: 1rem;
  margin-left: var(--bullet-width);
}



ol ol,
ul ul,
ul ol,
ol ul {
  margin: var(--margin-medium) 0;
  margin-left: var(--bullet-width);
}

ul {
  list-style: square;
}

ul ul {
  list-style: circle;
}

ol {
  list-style: decimal;
}

ul,
ol {
  max-width: 100%;
}

li {
  margin: 0 0 var(--margin-medium);
  padding-left: 0.3rem;
  line-height: var(--line-height-large);
}

li:last-child {
  margin-bottom: 0;
}

li::marker {
  color: var(--ghost-accent-color);
}

li li::marker {
  color: var(--color-primary);
}

li li {
  padding-left: 0;
}

dt {
  float: left;
  margin: 0 20px 0 0;
  width: 120px;
  font-weight: var(--font-medium);
  text-align: right;
}

dd {
  margin: 0 0 5px 0;
  text-align: left;
}

blockquote {
  /* margin: 0.3em 0 1.8em; */
  padding: 0 1.6em 0 1.6em;
  border-left: var(--ghost-accent-color) 0.5rem solid;
  font-style: var(--quote-style);
}


blockquote small {
  display: inline-block;
  margin: 0.8em 0 0.8em 1.5em;
  font-size: 0.9em;
  opacity: 0.8;
}
/* Quotation marks */
blockquote small:before {
  content: "\2014 \00A0";
}

blockquote cite {
  font-weight: bold;
}
blockquote cite a {
  font-weight: normal;
}

a {
  color: var(--ghost-accent-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  color: var(--color-primary);
  line-height: 1.15;
  font-weight: var(--font-bold);
  text-rendering: optimizeLegibility;
}

h1 {
  margin: 0 0 0.5rem 0;
  font-size: 5rem;
  font-weight: var(--font-bold);
}
@media (max-width: 500px) {
  h1 {
    font-size: 3.4rem;
  }
}

h2 {
  margin: 1.5rem 0 0.5rem 0;
  font-size: 2rem;
}
@media (max-width: 500px) {
  h2 {
    font-size: 1.8rem;
  }
}

h3 {
  margin: 1.5rem 0 0.5rem 0;
  font-size: 1.8rem;
  font-weight: var(--font-medium);
}
@media (max-width: 500px) {
  h3 {
    font-size: 1.7rem;
  }
}

h4 {
  margin: 1.5rem 0 0.5rem 0;
  font-size: 1.6rem;
  font-weight: var(--font-medium);
}

h5 {
  margin: 1.5rem 0 0.5rem 0;
  font-size: 1.4rem;
  font-weight: var(--font-medium);
}

h6 {
  margin: 1.5rem 0 0.5rem 0;
  font-size: 1.4rem;
  font-weight: var(--font-medium);
}

/* Layout
/* ---------------------------------------------------------- */

.viewport {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
}

/* all content container override for full width bleed */
.container,
.site-head,
.site-foot,
.content,
.post-full-content,
.content-body {
  --gap: max(4vmin, 20px);
  --main: min(var(--content-width, 720px), 100% - var(--gap) * 2);
  --full: minmax(var(--gap), 1fr);
  --wide: minmax(0, calc((var(--container-width, 1200px) - var(--content-width, 720px)) / 2));
  display: grid;
  grid-template-columns:
    [full-start] var(--full) [wide-start] var(--wide) [main-start] var(--main) [main-end] var(--wide)
    [wide-end] var(--full) [full-end];
}

.container > *,
.site-head > *,
.site-foot > *,
.content > *,
.post-full-content > * {
  grid-column: wide-start / wide-end;
}

/* bad structure have to set explicit width on all non bleed elements
.site-mast,
.site-nav,
.post-feed,
.post-feature-image,
.content-title,
.site-foot-nav {
  max-width: var(--max-width);
  margin: 0 auto;
}

*/

.content {
  margin: 0 auto;
  font-size: var(--body-size);
  line-height: var(--line-height-large);
  width: 100%;
}

.content-body {
  font-family: var(--font-sans-serif);
}

/*.post-full-content {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
}*/

.content-body > *,
.content-title,
.content-excerpt,
.content-tag {
  grid-column: main-start / main-end;
}

.content-tag,
.post-card-tags {
  text-transform: uppercase;
  color: var(--ghost-accent-color);
  margin: 0;
  font-size: var(--text-tiny);
  font-weight: var(--font-medium);
}

.content-body,
.post-full-content,
.kg-width-full,
.content {
  grid-column: full-start / full-end;
}

.post-feature-image,
.kg-width-wide,
.kg-content-wide > div {
  grid-column: wide-start / wide-end;
}

.kg-width-full img {
  width: 100%;
}

.kg-width-full picture {
  display: block;
  width: 100%;
}

.kg-width-wide img {
  max-width: 100%;
}

.kg-width-wide picture {
  display: block;
  max-width: 100%;
}

.post-full-content figcaption {
  margin: 1em 3em 0;
  font-size: 55%;
  line-height: var(--line-height);
  text-align: center;
  font-weight: normal;
  color: var(--color-secondary);
}

.post-feature-image {
  margin: 0 0 3vw;
}

.post-feature-image img {
  width: 100%;
  object-fit: cover;
}

.post-feature-image picture {
  display: block;
  width: 100%;
}

.post-feature-image figcaption {
  font-size: 1.4rem;
  margin: 0 auto;
  text-align: center;
  color: var(--color-secondary);
}

.content-body h1,
.content-body h2,
.content-body h3,
.content-body h4,
.content-body h5,
.content-body h6 {
  font-family: var(--font-sans-serif);
}

.content-body h1 {
  margin: 1em 0 0.5em 0;
  font-size: 3.4rem;
  font-weight: var(--font-bold);
}
@media (max-width: 500px) {
  .content-body h1 {
    font-size: 2.8rem;
  }
}

.content-title {
  margin: var(--margin-medium) 0 var(--margin-large) 0;
  font-size: 5rem;
}
@media (max-width: 500px) {
  .content-title {
    margin: 1rem 0;
    font-size: 3.4rem;
  }
  .content {
    font-size: var(--body-size);
  }
}

.content-body h2 {
  margin: 0.8em 0 0.4em 0;
  font-size: 3.2rem;
  font-weight: var(--font-bold);
}
@media (max-width: 500px) {
  .content-body h2 {
    font-size: 2.6rem;
  }
}

.content-body h3 {
  margin: 0.5em 0 0.2em 0;
  font-size: 2.8rem;
  font-weight: var(--font-bold);
}
@media (max-width: 500px) {
  .content-body h3 {
    font-size: 2.2rem;
  }
}

.content-body h4 {
  margin: 0.5em 0 0.2em 0;
  font-size: 2.4rem;
  font-weight: var(--font-bold);
}
@media (max-width: 500px) {
  .content-body h4 {
    font-size: 2.2rem;
  }
}

/*
.content-body h5 {
  display: block;
  margin: 0.5em 0;
  padding: 1em 0 1.5em;
  border: 0;
  font-family: Georgia, serif;
  color: var(--color-primary);
  font-style: italic;
  font-size: 3.2rem;
  line-height: 1.35em;
  text-align: center;
}

.content-body h6 {
  margin: 0.5em 0 0.2em 0;
  font-size: 2rem;
  font-weight: var(--font-bold);
}

*/

.content-body figure {
  /*margin: 0.4em 0 1.6em;*/
  font-size: 2.8rem;
  font-weight: var(--font-bold);
}

.content-body .kg-card {
  margin-top: calc(var(--spacing-normal) * var(--spacing-factor,1)) !important;
}

.content-body table {
  width: 100%;
  margin: calc(var(--spacing-normal) * var(--spacing-factor, 1)) 0;
  border-collapse: collapse;
  color: var(--color-secondary);
  font-size: var(--text-medium);
  line-height: var(--line-height);
}

.content-body table th,
.content-body table td {
  padding: 1.4rem 1.6rem;
  text-align: left;
  vertical-align: top;
}

.content-body table th {
  color: var(--color-primary);
  font-weight: var(--font-bold);
}

.content-body table tr {
  border-bottom: 1px solid var(--color-border);
}

.content-body table tbody tr:last-child {
  border-bottom: 0;
}

.content-body :is(.kg-card,table)+:not(.kg-card):not(table):not([id]) {
    margin-top: calc(var(--spacing-large) * var(--spacing-factor, 1));
}

.content-body > :is(hr,blockquote,iframe,div) {
  margin-top: calc(var(--spacing-large) * var(--spacing-factor,1)) !important;
  position: relative;
}


.content-body > :is(hr,blockquote,iframe,div)+* {
  margin-top: calc(var(--spacing-large) * var(--spacing-factor,1)) !important;
}

.content-body > [id]:not(:first-child) {
  margin-top: calc(var(--spacing-large) * var(--spacing-factor,1)) !important;
}

.content-body pre {
  margin: 0.4em 0 1.8em;
  font-size: 1.6rem;
  line-height: 1.4em;
  white-space: pre-wrap;
  padding: 20px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 12px;
}

/* Header
/* ---------------------------------------------------------- */

.site-head {
  position: relative;
  overflow: visible;
  padding-top: 20px;
  padding-bottom: 20px;
  color: #fff;
  background: #000;
  background-position: center;
  background-size: cover;
}

.site-head-content {
  position: relative;
  z-index: 2;
}

.site-nav-item {
  display: inline-block;
  padding: 5px 10px;
  color: var(--color-secondary);
  font-weight: var(--font-medium);
  font-size: var(--text-small);
}

.site-nav-item[aria-current="page"] {
  color: var(--color-primary);
}

.site-nav-item:hover {
  text-decoration: none;
  color: var(--color-primary);
  opacity: 1;
}

.site-nav-right .site-nav-button {
  margin-left: 0.3rem;
}

.site-nav-icon {
  height: 15px;
  margin: -5px 0 0;
  vertical-align: baseline;
}

.site-logo {
  display: block;
  width: min(360px, 58vw);
  height: auto;
  object-fit: contain;
}

.site-mast-left picture {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  height: auto;
  line-height: 0;
}

.site-mast-left {
  flex: 0 0 auto;
  min-width: 0;
}

.site-mast-left a {
  display: block;
  width: fit-content;
  max-width: 100%;
  line-height: 0;
}

.site-mast {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 24px;
}

.site-search-toggle {
  position: relative;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  color: var(--color-primary);
}

.site-search-toggle:hover,
.site-search-toggle:focus-visible {
  background: rgba(236, 39, 62, 0.18);
  border-color: var(--ghost-accent-color);
}

.site-search-toggle-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 50%;
  transform: translate(-58%, -58%);
}

.site-search-toggle-icon::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -4px;
  width: 8px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transform: rotate(45deg);
  transform-origin: center;
}

.site-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(72px, 12vh, 120px) var(--gap, 20px) 32px;
}

.site-search-overlay[hidden] {
  display: none;
}

.site-search-backdrop {
  position: absolute;
  inset: 0;
  padding: 0;
  background: rgba(0, 0, 0, 0.72);
}

.site-search-dialog {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: calc(100vh - clamp(104px, 16vh, 160px));
  overflow: hidden;
  background: #101827;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5);
}

.site-search-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-search-dialog-head h2 {
  margin: 0;
  font-size: 1.8rem;
  line-height: 1.2;
}

.site-search-close {
  position: relative;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  padding: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
}

.site-search-close span::before,
.site-search-close span::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  background: var(--color-secondary);
  border-radius: 999px;
}

.site-search-close span::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.site-search-close span::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.site-search-close:hover,
.site-search-close:focus-visible {
  background: rgba(236, 39, 62, 0.22);
  border-color: var(--ghost-accent-color);
}

.site-search-close:hover span::before,
.site-search-close:hover span::after,
.site-search-close:focus-visible span::before,
.site-search-close:focus-visible span::after {
  background: var(--color-primary);
}

.site-search-panel {
  max-height: calc(100vh - clamp(176px, 22vh, 232px));
  overflow: auto;
  padding: 18px 20px 20px;
}

.search-overlay-open {
  overflow: hidden;
}

#search {
  width: 100%;
}

#search .pagefind-ui {
  color: var(--color-primary);
  font-family: var(--font-sans-serif);
  font-size: 1.6rem;
  --pagefind-ui-scale: 1;
  --pagefind-ui-primary: var(--ghost-accent-color);
  --pagefind-ui-text: var(--color-primary);
  --pagefind-ui-background: #0f172a;
  --pagefind-ui-border: rgba(255, 255, 255, 0.16);
  --pagefind-ui-tag: var(--ghost-accent-color);
  --pagefind-ui-border-width: 1px;
  --pagefind-ui-border-radius: 4px;
  --pagefind-ui-image-border-radius: 4px;
}

#search .pagefind-ui__form {
  position: relative;
}

#search .pagefind-ui__search-input {
  width: 100%;
  height: 46px !important;
  padding: 12px 44px 12px 14px !important;
  background: rgba(255, 255, 255, 0.07) !important;
  background-image: none !important;
  color: var(--color-primary) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 4px !important;
  font-size: 1.4rem !important;
  line-height: 1.2 !important;
}

#search .pagefind-ui__search-input::placeholder {
  color: var(--color-secondary);
  opacity: 1;
  font-weight: var(--font-normal);
}

#search .pagefind-ui__drawer {
  position: static;
  width: 100%;
  max-height: none;
  overflow: visible;
  margin-top: 16px !important;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

#search .pagefind-ui__results-area {
  margin-top: 0;
}

#search .pagefind-ui__result {
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

#search .pagefind-ui__result:first-child {
  border-top: 0;
}

#search .pagefind-ui__result-link {
  color: var(--color-primary);
  font-weight: var(--font-bold);
}

#search .pagefind-ui__result-excerpt,
#search .pagefind-ui__message {
  color: var(--color-secondary);
}

#search mark {
  padding: 0 2px;
  color: #fff;
  background: rgba(236, 39, 62, 0.45);
  border-radius: 2px;
}

#search button.pagefind-ui__search-clear {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  transform: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 22px !important;
  min-width: 22px !important;
  height: 22px !important;
  min-height: 22px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: transparent !important;
  font-size: 0 !important;
  text-indent: -9999px !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 50% !important;
  cursor: pointer;
  z-index: 3;
}

#search button.pagefind-ui__search-clear::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 10px;
  height: 10px;
  background:
    linear-gradient(45deg, transparent calc(50% - 1px), var(--color-secondary) calc(50% - 1px), var(--color-secondary) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(-45deg, transparent calc(50% - 1px), var(--color-secondary) calc(50% - 1px), var(--color-secondary) calc(50% + 1px), transparent calc(50% + 1px));
  text-indent: 0;
  transform: translate(-50%, -50%);
}

#search button.pagefind-ui__search-clear:hover {
  background: rgba(236, 39, 62, 0.22) !important;
  border-color: var(--ghost-accent-color) !important;
}

#search button.pagefind-ui__search-clear:hover::after {
  background:
    linear-gradient(45deg, transparent calc(50% - 1px), var(--color-primary) calc(50% - 1px), var(--color-primary) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(-45deg, transparent calc(50% - 1px), var(--color-primary) calc(50% - 1px), var(--color-primary) calc(50% + 1px), transparent calc(50% + 1px));
}

#search .pagefind-ui__search-icon,
#search .pagefind-ui__form svg,
#search .pagefind-ui__search-input-wrapper svg,
#search .pagefind-ui__search-input-container svg {
  display: none !important;
}

#search .pagefind-ui__form::before,
#search .pagefind-ui__form::after,
#search .pagefind-ui__search-input-wrapper::before,
#search .pagefind-ui__search-input-wrapper::after,
#search .pagefind-ui__search-input-container::before,
#search .pagefind-ui__search-input-container::after {
  content: none !important;
  display: none !important;
}

@media (max-width: 768px) {

  .site-mast {
    gap: 18px 24px;
  }

  .site-logo {
    width: clamp(210px, 35vw, 320px);
    max-width: 100%;
    height: auto;
  }


  .site-mast-left picture {
    width: fit-content;
    height: auto;
  }

  .site-search-dialog-head,
  .site-search-panel {
    padding-left: 16px;
    padding-right: 16px;
  }
}

.site-mast-right {
  display: flex;
  align-items: center;
}

.site-mast-right .site-nav-item:last-child {
  padding-right: 0;
}

.site-banner {
  max-width: 80%;
  margin: 0 auto;
  padding: 15vh 0;
  text-align: center;
}

.site-banner-title {
  margin: 0;
  padding: 0;
  color: var(--color-primary);
  line-height: 1.3em;
}

.site-banner-title {
  color: var(--color-primary);
  background: linear-gradient(180deg, var(--color-primary), #859FAC);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  /* -webkit-text-stroke: 0.5px var(--color-primary); */
}

.site-banner-desc {
  margin: 5px 0 0 0;
  padding: 0;
  font-size: 2.4rem;
  line-height: 1.3em;
  opacity: 0.7;
}

.site-nav {
  display: flex;
  align-items: center;
  align-content: center;
  justify-content: flex-end;
  flex: 0 1 auto;
  margin-left: auto;
}

@media (max-width: 560px) {
  .site-nav {
    justify-content: flex-start;
    margin-left: 0;
  }

  .site-nav-item {
    padding-right: 6px;
    padding-left: 6px;
  }

  .site-nav-item:first-child {
    padding-left: 0;
  }
}

.site-nav-left {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
}

@media (max-width: 860px) {
  .site-mast {
    align-items: flex-start;
    gap: 18px 16px;
  }

  .site-mast-left {
    order: 1;
    flex: 1 0 100%;
    max-width: 100%;
  }

  .site-logo {
    width: min(250px, 100%);
  }

  .site-foot-nav .site-logo {
    margin: 0 auto;
  }

  .site-nav {
    order: 2;
    flex: 1 1 0;
    justify-content: flex-start;
    min-width: 0;
    margin-left: 0;
  }

  .site-search-toggle {
    order: 3;
    margin-left: auto;
  }

  .site-nav-item {
    padding-right: 6px;
    padding-left: 6px;
  }

  .site-nav-item:first-child {
    padding-left: 0;
  }
}

.site-nav-button {
  display: inline-block;
  padding: 5px 10px;
  border: #fff 1px solid;
  color: #fff;
  font-size: 1.3rem;
  line-height: 1em;
  border-radius: var(--radius);
  opacity: 0.7;
}

.site-nav-button:hover {
  text-decoration: none;
}

/* Main
/* ---------------------------------------------------------- */

.site-main {
  padding: 4vw 0;
}

/* Index
/* ---------------------------------------------------------- */

.post-feed {
  display: grid;
  justify-content: space-between;
  grid-gap: 30px;
  grid-template-columns: 1fr 1fr 1fr;
}

@media (max-width: 980px) {
  .post-feed {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 680px) {
  .post-feed {
    grid-template-columns: 1fr;
  }
}

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

.post-card:hover {
  text-decoration: none;
}

.post-card-header {
  display: flex;
  flex-direction: column;
}

/*
.post-card-tags {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.15em;
  color: var(--color-secondary);
  text-transform: uppercase;
}*/

.post-card-title {
  margin: 0 0 0.5rem 0;
  padding: 0;
}

.post-card-excerpt {
  font-size: 1.6rem;
  line-height: var(--line-height);
}

.post-card-excerpt p {
  margin: 0;
}

.post-card-image {
  margin: 0 0 10px 0;
  width: 100%;
  height: 200px;
  background: var(--color-secondary) no-repeat center center;
  background-size: cover;
  object-fit: cover;
}

.post-card-header > picture {
  display: block;
  line-height: 0;
  margin: 0 0 10px 0;
  width: 100%;
  height: 200px;
}

.post-card-header > picture .post-card-image {
  margin: 0;
}

.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  color: var(--color-secondary);
  font-size: var(--text-tiny);
}

.post-card-footer-left {
  display: flex;
  align-items: center;
}

.post-card-footer-right {
  display: flex;
  flex-direction: column;
}

.post-card-avatar {
  width: 30px;
  height: 30px;
  margin: 0 7px 0 0;
  border-radius: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-card-avatar .author-profile-image {
  display: block;

  width: 3rem;
  height: 3rem;
  background: none;
  border-radius: 100%;
  object-fit: cover;
}

.post-card-avatar .default-avatar {
  width: 26px;
}

/* Tag Archives
/* ---------------------------------------------------------- */

.tag-header {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 2rem;
  padding-bottom: var(--spacing-normal);
  margin-bottom: 4vw;
  width: 100%;
  border-bottom: 1px solid rgba(255,255,255,0.3);
}

.tag-header h1 {
  margin: 0 0 1rem 0;
}

.tag-header p,
.content-excerpt {
  /* margin: 0; */
  color: var(--color-primary);
  margin-bottom: var(--margin-large);
}

.content-excerpt {
  line-height: 1.35;
  font-size: var(--text-large);
}

.tag-description {
  width: 100%;
}

.tag-description p.game-data {
  font-size: var(--text-normal);
  margin-bottom: var(--margin-small);
}

.tag-description .game-value {
  color: var(--color-primary);
}

@media (max-width: 768px) {
  .tag-header {
    flex-wrap: wrap;
    padding-bottom: 4vw;
    border-bottom: var(--color-bg) 1px solid;
    flex-direction: column-reverse;
  }
  .tag-header p,
  .content-excerpt {
    font-size: var(--text-medium);
  }
  .tag-description {
    flex-wrap: wrap;
  }
  .tag-item {
    width: 100%;
  }
}

/* Author Archives
/* ---------------------------------------------------------- */

.author-header {
  display: flex;
  justify-content: space-between;
  margin: 0 0 4vw;
}

.author-header h1 {
  margin: 0 0 1rem 0;
}

.author-header p {
  margin: 0;
  color: var(--color-secondary);
  font-size: 2.2rem;
  line-height: 1.3em;
}

.author-header-image {
  flex: 0 0 auto;
  margin: 0 0 0 4vw;
  height: 120px;
  width: 120px;
  border-radius: 100%;
  overflow: hidden;
}

.author-header-meta {
  display: flex;
  margin: 1rem 0 0 0;
}

.author-header-item {
  display: block;
  padding: 2px 10px;
}

.author-header-item:first-child {
  padding-left: 0;
}

@media (max-width: 500px) {
  .author-header {
    border-bottom: var(--color-bg) 1px solid;
    padding-bottom: 4vw;
  }
  .author-header p {
    font-size: 1.7rem;
  }
  .author-header-image {
    height: 80px;
    width: 80px;
  }
}

/* Pagination
/* ---------------------------------------------------------- */

.pagination {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 4vw 0 0;
}

.pagination a {
  display: inline-block;
  padding: 10px 15px;
  border: var(--ghost-accent-color) 1px solid;
  color: var(--color-secondary);
  text-decoration: none;
  font-size: 1.4rem;
  line-height: 1em;
  border-radius: var(--radius);
}

.pagination a:active,
.pagination a:hover {
  background: var(--ghost-accent-color);
  color: var(--color-primary);
}

.pagination-location {
  position: absolute;
  left: 50%;
  width: 100px;
  margin-left: -50px;
  text-align: center;
  color: var(--color-secondary);
  font-size: 1.3rem;
}

.pagination span {
  color: var(--color-secondary);
  opacity: 0.5;
}

/* Footer
/* ---------------------------------------------------------- */

.site-foot {
  padding: 20px 0 40px 0;
  color: var(--color-secondary);
  font-size: var(--text-small);
  background: var(--color-base);
}

.site-foot-layout {
  padding: var(--spacing-normal) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  flex-direction: row;
  align-content: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.site-foot-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-small);
}

.site-foot-nav.left {
  justify-content:  flex-start;
}

.site-foot-nav.right {
  justify-content: flex-end;
}

@media (max-width: 920px) {
  .site-foot-layout {
    flex-direction: column;
    gap: var(--spacing-small);
  }
  .site-foot-nav {
    width: 100%;
  }
  .site-foot-nav.left,
  .site-foot-nav.right {
  justify-content: center;
}

}


.site-foot-nav a {
  color: var(--color-secondary);
}

.site-foot-nav a:hover {
  text-decoration: none;
  color: rgba(255, 255, 255, 1);
}

.site-foot-nav-right a {
  display: inline-block;
  padding: 2px 5px;
}

.site-foot-nav-right a:last-child {
  padding-right: 0;
}

/* Card Styles
/* ---------------------------------------------------------- */

.kg-video-container video {
  width: 100%;
}

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

.kg-bookmark-container {
  display: flex;
  min-height: 148px;
  color: var(--color-primary);
  font-family: var(--font-sans-serif);
  text-decoration: none;
  border-radius: 3px;
  box-shadow:
    0 2px 5px -1px rgba(0, 0, 0, 0.15),
    0 0 1px rgba(0, 0, 0, 0.09);
}

.kg-bookmark-container:hover {
  color: var(--color-secondary);
  text-decoration: none;
  box-shadow:
    0 2px 5px -1px rgba(0, 0, 0, 0.15),
    0 0 1px rgba(0, 0, 0, 0.09);
}

.kg-bookmark-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 20px;
}

.kg-bookmark-title {
  color: color(var(--color-secondary) l(-30%));
  font-size: 1.6rem;
  line-height: 1.5em;
  font-weight: var(--font-medium);
  transition: color 0.2s ease-in-out;
}

.kg-bookmark-container:hover .kg-bookmark-title {
  color: var(--color-primary);
}

.kg-bookmark-description {
  display: -webkit-box;
  overflow-y: hidden;
  margin-top: 12px;
  max-height: 48px;
  color: color(var(--color-secondary) l(-10%));
  font-size: 1.5rem;
  line-height: 1.5em;
  font-weight: var(--font-normal);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.kg-bookmark-content {
  min-width: 0;
}

.kg-bookmark-description {
  overflow-wrap: anywhere;
}



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

.kg-bookmark-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 0 3px 3px 0;

  object-fit: cover;
}

.kg-bookmark-metadata {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 14px;
  color: color(var(--color-secondary) l(-10%));
  font-size: 1.5rem;
  font-weight: var(--font-normal);
}

.kg-bookmark-icon {
  margin-right: 8px;
  width: 22px;
  height: 22px;
}

.kg-bookmark-author {
  line-height: 1.5em;
}

/* not required
.kg-bookmark-author:after {
  content: "•";
  margin: 0 6px;
}
*/

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

.content-body .kg-bookmark-card.kg-bookmark-card-internal .kg-bookmark-container,
.content-body .kg-bookmark-card:has(> .kg-bookmark-container[href^="/"]) .kg-bookmark-container {
  position: relative;
  align-items: center;
  min-height: 112px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background:
    linear-gradient(135deg, rgba(236, 39, 62, 0.14), rgba(255, 255, 255, 0.035) 42%),
    rgba(8, 14, 31, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.content-body .kg-bookmark-card.kg-bookmark-card-internal .kg-bookmark-container::after,
.content-body .kg-bookmark-card:has(> .kg-bookmark-container[href^="/"]) .kg-bookmark-container::after {
  content: "\203A";
  flex: 0 0 auto;
  margin-right: 22px;
  color: var(--ghost-accent-color);
  font-size: 3.2rem;
  line-height: 1;
}

.content-body .kg-bookmark-card.kg-bookmark-card-internal .kg-bookmark-container:hover,
.content-body .kg-bookmark-card:has(> .kg-bookmark-container[href^="/"]) .kg-bookmark-container:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(135deg, rgba(236, 39, 62, 0.22), rgba(255, 255, 255, 0.055) 46%),
    rgba(11, 19, 42, 0.82);
  transform: translateY(-1px);
}

.content-body .kg-bookmark-card.kg-bookmark-card-internal .kg-bookmark-content,
.content-body .kg-bookmark-card:has(> .kg-bookmark-container[href^="/"]) .kg-bookmark-content {
  min-width: 0;
  padding: 18px 20px;
}

.content-body .kg-bookmark-card.kg-bookmark-card-internal .kg-bookmark-title,
.content-body .kg-bookmark-card:has(> .kg-bookmark-container[href^="/"]) .kg-bookmark-title {
  color: #fff;
  font-size: 1.8rem;
  line-height: 1.25;
  font-weight: var(--font-bold);
}

.content-body .kg-bookmark-card.kg-bookmark-card-internal .kg-bookmark-container:hover .kg-bookmark-title,
.content-body .kg-bookmark-card:has(> .kg-bookmark-container[href^="/"]) .kg-bookmark-container:hover .kg-bookmark-title {
  color: #fff;
}

.content-body .kg-bookmark-card.kg-bookmark-card-internal .kg-bookmark-description,
.content-body .kg-bookmark-card:has(> .kg-bookmark-container[href^="/"]) .kg-bookmark-description {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--text-small);
}

.content-body .kg-bookmark-card.kg-bookmark-card-internal .kg-bookmark-metadata,
.content-body .kg-bookmark-card:has(> .kg-bookmark-container[href^="/"]) .kg-bookmark-metadata {
  display: none;
}

.content-body .kg-bookmark-card.kg-bookmark-card-internal .kg-bookmark-thumbnail,
.content-body .kg-bookmark-card:has(> .kg-bookmark-container[href^="/"]) .kg-bookmark-thumbnail {
  order: -1;
  align-self: stretch;
  min-width: 118px;
  width: 118px;
  max-height: none;
}

.content-body .kg-bookmark-card.kg-bookmark-card-internal .kg-bookmark-thumbnail img,
.content-body .kg-bookmark-card:has(> .kg-bookmark-container[href^="/"]) .kg-bookmark-thumbnail img {
  border-radius: 0;
}

@media (max-width: 500px) {
  .content-body .kg-bookmark-card.kg-bookmark-card-internal .kg-bookmark-container,
  .content-body .kg-bookmark-card:has(> .kg-bookmark-container[href^="/"]) .kg-bookmark-container {
    min-height: 0;
  }

  .content-body .kg-bookmark-card.kg-bookmark-card-internal .kg-bookmark-thumbnail,
  .content-body .kg-bookmark-card:has(> .kg-bookmark-container[href^="/"]) .kg-bookmark-thumbnail {
    min-width: 78px;
    width: 78px;
  }

  .content-body .kg-bookmark-card.kg-bookmark-card-internal .kg-bookmark-content,
  .content-body .kg-bookmark-card:has(> .kg-bookmark-container[href^="/"]) .kg-bookmark-content {
    padding: 14px;
  }

  .content-body .kg-bookmark-card.kg-bookmark-card-internal .kg-bookmark-container::after,
  .content-body .kg-bookmark-card:has(> .kg-bookmark-container[href^="/"]) .kg-bookmark-container::after {
    margin-right: 14px;
    font-size: 2.6rem;
  }
}

/* Gallery Styles
/* ---------------------------------------------------------- */
.kg-gallery-container {
  display: flex;
  flex-direction: column;
  max-width: 1040px;
  width: 100%;
  margin: 0 auto;
}

.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-image picture {
  display: block;
  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;
}

.kg-gallery-card + .kg-image-card.kg-width-wide,
.kg-gallery-card + .kg-gallery-card,
.kg-image-card.kg-width-wide + .kg-gallery-card,
.kg-image-card.kg-width-wide + .kg-image-card.kg-width-wide {
  margin: -2.25em 0 3em;
}

/* stack full width headers */
/*
.content-body .kg-card.kg-width-full {
  margin: 0;
}
*/
 .content-body > .kg-width-full + .kg-width-full:not(.kg-width-full.kg-card-hascaption + .kg-width-full) {
    margin-top: 0 !important;
}


figure.kg-image-card {
  /* needs auto to centre */
  margin-left: auto;
  margin-right: auto;
}

figure.kg-image-card.kg-width-wide {
  /* wide images */
  border: 0;
}

figure.kg-image-card.kg-width-full {
  /* full with images */
  border: 0;
}

.kg-embed-card .twitter-tweet {
  margin-left: auto;
  margin-right: auto;
}

.kg-embed-card div iframe {
  position: relative;
}

/* Facebook embed posts Ghost no longer supports it */
.fb-post.fb_iframe_widget {
  display: flex;
  justify-content: center;
}

.fb-post iframe {
  background-color: var(--color-white);
}


/* 404 background */
.spaced {
  padding: 5rem 0;
}

.site-main:has(.spaced) {
  background-image: url(/assets/theme/spaced.webp);
  background-size: cover;
  background-position: center center;
  height: 100vh;
}

.welcome {
  padding:  0 0 4vw 0;
}

.welcome h2 {
  /* font-size: var(--text-xlarge);*/
  font-size: 3.2rem;
}

/*
.kg-embed-card iframe {
  background-color: white;
}*/

/*
.kg-embed-card figcaption {
  width: 100%;
  position: absolute;
  margin-left: auto;
  margin-right: auto;
  left: 0;
  right: 0;
}
*/
/* Ghost defaults */
/* Default vertical spacing */

/* Modifications
/* ---------------------------------------------------------- */

