* {
    box-sizing: border-box;
}

@font-face {
    font-family: 'EB Garamond';
    font-style: normal;
    font-weight: normal;
    src:
            url(/assets/fonts/eb-garamond-v30-cyrillic_cyrillic-ext_latin_latin-ext-regular.woff2) format('woff2'),
            url(/assets/fonts/EBGaramond-Regular.ttf) format('truetype');
}

@font-face {
    font-family: 'Work Sans';
    font-style: normal;
    font-weight: 500;
    src:
            url(/assets/fonts/work-sans-v19-latin_latin-ext-regular.woff2) format('woff2'),
            url(/assets/fonts/WorkSans-Medium.ttf) format('truetype');
}

@font-face {
    font-family: 'Assistant';
    font-style: normal;
    font-weight: 500;
    src:
            url(/assets/fonts/assistant-v22-latin_latin-ext-500.woff2) format('woff2'),
            url(/assets/fonts/Assistant-Medium.ttf) format('truetype');
}

@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 400;
    src:
            url(/assets/fonts/JetBrainsMono-Regular.woff2) format('woff2'),
            url(/assets/fonts/JetBrainsMono-Regular.ttf) format('truetype');
}
            

:root {
    --colour-white: hsl(0deg, 0%, 100%);
    --colour-gold: hsl(50.6deg, 100%, 50%);
    --colour-dark-gold: hsla(50.6deg, 100%, 35%);
    --colour-grey-10: hsl(0deg, 0%, 10%);
    --colour-grey-10-opq: hsla(0deg, 0%, 10%, 0.9);
    --colour-grey-15: hsl(0deg, 0%, 15%);
    --colour-grey-20: hsl(0deg, 0%, 20%);
    --colour-grey-25: hsl(0deg, 0%, 25%);
    --colour-grey-40: hsl(0deg, 0%, 40%);
    --colour-grey-50: hsl(0deg, 0%, 50%);
    --colour-grey-60: hsl(0deg, 0%, 60%);
    --colour-grey-75: hsl(0deg, 0%, 75%);
    --colour-grey-80: hsl(0deg, 0%, 80%);
    --colour-grey-90: hsl(0deg, 0%, 90%);
    --colour-grey-90-opq: hsla(0deg, 0%, 90%, 0.9);
    --colour-dark-olive: hsl(71deg, 99%, 24%);
    --colour-light-olive: hsl(71deg, 99%, 32%);
    --border-radius-s: 3px;
    --border-radius-m: 6px;
    --border-m: 3px;
}

:root.dark {
    --colour-primary-fg: var(--colour-grey-90);
    --colour-secondary-fg: var(--colour-gold);
    --colour-subdued-fg: var(--colour-grey-80);
    --colour-more-subdued-fg: var(--colour-grey-60);
    --colour-subdued-secondary-fg: var(--colour-dark-gold);
    --colour-outer-bg: var(--colour-grey-10);
    --colour-primary-bg: var(--colour-grey-10);
    --colour-primary-bg-opq: var(--colour-grey-10-opq);
    --colour-secondary-bg: var(--colour-grey-15);
    --colour-shadow: var(--colour-grey-10);
    --colour-border: var(--colour-grey-25);
    --colour-redacted: var(--colour-grey-25);
    --colour-primary-bg-20: hsla(0deg, 0%, 10%, 0.2);
    --header-image: url("/assets/backgrounds/yellow-ginkgo-leaves-1280x853.jpg");
    --svg-404: url("/assets/pages/404/interplanetary.svg");
}

:root.light {
    --colour-primary-fg: var(--colour-grey-10);
    --colour-secondary-fg: var(--colour-light-olive);
    --colour-subdued-fg: var(--colour-grey-20);
    --colour-more-subdued-fg: var(--colour-grey-40);
    --colour-subdued-secondary-fg: var(--colour-dark-olive);
    --colour-outer-bg: var(--colour-grey-90);
    --colour-primary-bg: var(--colour-grey-90);
    --colour-primary-bg-opq: var(--colour-grey-90-opq);
    --colour-secondary-bg: var(--colour-grey-80);
    --colour-shadow: var(--colour-grey-90);
    --colour-border: var(--colour-grey-80);
    --colour-redacted: var(--colour-grey-60);
    --colour-primary-bg-20: hsla(0deg, 0%, 90%, 0.2);
    --header-image: url("/assets/backgrounds/ginkgo-leaves-in-autumn-PKXGKL7-1280x853.jpg");
    --svg-404: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' version='1.1' height='40rem' width='100%'><text x='1rem' y='10rem' fill='hsl(0deg, 0%, 85%)' font-family='Work Sans, Helvetica, sans-serif' font-size='10rem'>404</text></svg>");
}

html {
    margin: 0;
}

body {
    font-family: 'EB Garamond', Garamond, serif;
    font-size: 1rem;
    background-color: var(--colour-outer-bg);
    color: var(--colour-subdued-fg);
    text-align: center;
    margin: 0;
}

h1, h2, h3 {
    font-family: 'Work Sans', Helvetica, sans-serif;
    text-transform: uppercase;
    color: var(--colour-primary-fg);
    font-weight: bold;
    margin-top: 1em;
    padding-top: 0.4em;
    margin-bottom: 0.2em;
    text-wrap: balance;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.8rem;
}

h3 {
    font-size: 1.6rem;
}

a {
    color: var(--colour-subdued-secondary-fg);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover, a:active {
    color: var(--colour-secondary-fg);
    text-decoration: underline;
}

h3 > a {
    color: var(--colour-primary-fg);
    text-decoration: none;
    transition: all 0.3s ease;
}

h3 > a:hover, h3 > a:active {
    color: var(--colour-secondary-fg);
    text-decoration: none;
}

a > .pp-external-symbol {
    display: none;
}

a.pp-external:hover > .pp-external-symbol, a.pp-external:active > .pp-external-symbol {
    display: inline;
    vertical-align: super;
    font-size: 0.45em;
    transition: all 0.3s ease;
}

a.pp-external:hover > .pp-external-symbol-full-size, a.pp-external:active > .pp-external-symbol-full-size {
    display: inline;
    vertical-align: baseline;
    font-size: 1em;
    transition: all 0.3s ease;
}

aside {
    font-family: 'Assistant', Tahoma, sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
}

nav {
    font-family: 'Assistant', Tahoma, sans-serif;
    font-size: clamp(1rem, 0.8929rem + 0.4762vw, 1.25rem);
    text-transform: uppercase;
}

.pp-site-container {
    margin: auto;
    padding: 0;
    max-width: 1280px;
    container-name: pp-site-container;
    container-type: inline-size;
    text-align: left;
    height: 100%;
    box-shadow: 0 0 10px 10px rgba(0, 0, 0, 0.2);  /* have a shadow on the left and right, as if it were a sheet of paper */
}


/*****************************************************************************
  H E A D E R
*****************************************************************************/
.pp-nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 10px 0 10px;
    padding: 18px 8px 4px 8px;
    min-height: 48px;
    text-shadow: 2px 2px 4px var(--colour-grey-10);
    container-name: pp-nav-container;
    container-type: inline-size;
}

.pp-menu-list {
    display: flex;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
    list-style: none;
    gap: 1em;
    min-height: 48px;
}

.pp-menu-verbose {
    display: none;
}

@container pp-nav-container (min-width: 480px) {
    .pp-menu-verbose {
        display: inline-block;
    }
}

.pp-menu-item {
    align-content: center;
}

.pp-menu-item a {
    color: var(--colour-grey-90);
    text-decoration: none;
    transition: all 0.3s ease;
}

.pp-menu-item a:hover, .pp-menu-item a:active {
    color: var(--colour-grey-90);
    border-bottom: var(--border-radius-s) ridge var(--colour-grey-90);
}

.pp-page-header {
    background-image: var(--header-image), linear-gradient(to right, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3));
    background-blend-mode: multiply;
    background-repeat: no-repeat;
    background-size: cover;
    height: 30%;
    min-height: 250px;
    max-height: 400px;
    display: flex;
    flex-direction: column;
}

.pp-page-title {
    text-align: center;
    align-content: center;
    flex-grow: 1;
    margin: 2em;
}

h1.pp-title-text {
    font-family: 'EB Garamond', Garamond, serif;
    font-size: clamp(2.1rem, 1.9118rem + 0.8602vw, 2.6rem);
    text-transform: uppercase;
    color: var(--colour-grey-90);
    text-shadow: 2px 2px 4px var(--colour-grey-10);
    opacity: 80%;
    margin: 1em 0;
    padding: 0;
}

.pp-page-title-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.pp-tag-index, .pp-category-index {
    background-color: var(--colour-grey-90);
    background-repeat: no-repeat;
    background-size: cover;
    height: 2.5rem;
    width: 2.5rem;
    opacity: 80%;
}

.pp-tag-index {
    -webkit-mask-image: url('/assets/icons/tag.svg');
    mask-image: url('/assets/icons/tag.svg');
}

.pp-category-index {
    -webkit-mask-image: url('/assets/icons/categories.svg');
    mask-image: url('/assets/icons/categories.svg');
}

.pp-ribbon-photo {
    max-width: 1280px;
    max-height: 24px;
    background-image: url("/assets/backgrounds/yellow-ginkgo-leaves-1280x24.jpg"), linear-gradient(to right, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.8));
    background-blend-mode: multiply;
    background-repeat: no-repeat;
}

.pp-hero-header {
    height: 100vh;
    margin: 0;
    position: relative;
    top: 0;
    display: flex;
    flex-direction: column;
}

.pp-hero-message-container {
    align-content: center;
    flex-grow: 1;
}

.pp-hero-message-row {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
}

.pp-hero-message {
    min-width: 280px;
    max-width: 50%;
    padding: 0 20px 0 0;
}

.pp-hero-message > img {
    width: 260px;
    height: auto;
}

.pp-hero-message p {
    color: var(--colour-grey-90);
    font-size: 1.5rem;
}

.pp-hero-header video {
    width: 100%;
    height: 100%;
    position: absolute;
    object-fit: cover;
    z-index: -1;
}

.pp-article-header {
    display: flex;
    padding: 0.5rem 1rem 0 1rem;
    font-size: 0.85rem;
    flex: 1;
    gap: 1em;
    justify-content: flex-end;
    align-items: center;
}

.pp-byline {
    color: var(--colour-subdued-fg);
    font-size: 0.85rem;
}

.pp-byline a {
    color: var(--colour-subdued-fg);
    text-decoration: none;
    transition: all 0.3s ease;
}

.pp-byline a:hover, .pp-byline a:active {
    color: var(--colour-secondary-fg);
    text-decoration: underline;
}



/*****************************************************************************
  M A I N
*****************************************************************************/

.pp-main-container {
    display: flex;
    padding: 1rem;
    gap: 1rem;
    font-size: 1.4rem;
    max-width: 100%;
    flex-wrap: wrap;
    flex-direction: column;
    container-name: pp-main-container;
    container-type: inline-size;
}

@container pp-site-container (min-width: 946px) {
    .pp-main-container {
        flex-direction: row;
    }
}

.pp-article {
    flex: 1 1 0;
}

.pp-article-initial::first-letter {
    -webkit-initial-letter: 3 2;
    initial-letter: 3 2;
    padding: 0 0.2em 0.2em 0;
}

@container pp-main-container (min-width: 850px) {
    .pp-article {
        padding: 0 1em;
    }
}

@container pp-main-container (min-width: 1000px) {
    .pp-article {
        padding: 0 1em 0 3em;
    }
}

.pp-article-multi-columns {
    display: flex;
    flex: 1 1 0;
    flex-wrap: wrap;
    gap: 1em;
}

.pp-article-single-column {
    display: block;
}

.pp-article-block {
    flex: 1;
    min-width: 24ch;
}

@container pp-main-container (min-width: calc(24ch + 1em + 24ch)) {

    .pp-multi-columns-reverse-1 {
        order: 1;
    }

    .pp-multi-columns-reverse-2 {
        order: 2;
    }
}

.pp-vertical-container {
    display: flex;
    flex-direction: column;
}    

.pp-image-sidecaption {
    display: none;
}

.pp-sidecaption-label {
    display: flex;
}

.pp-sidecaption-to-right, .pp-sidecaption-to-left {
    background-color: var(--colour-subdued-secondary-fg);
    background-repeat: no-repeat;
    background-size: cover;
    height: 1em;
    width: 1em;
    flex-shrink: 0;
    flex-grow: 0;
    align-self: center;
}

.pp-sidecaption-to-right {
    -webkit-mask-image: url('/assets/icons/next.svg');
    mask-image: url('/assets/icons/next.svg');
    background-position: right center;
}

.pp-sidecaption-to-left {
    -webkit-mask-image: url('/assets/icons/prev.svg');
    mask-image: url('/assets/icons/prev.svg');
    background-position: left center;
}

.pp-sidecaption-text > p {
    font-family: 'Assistant', Tahoma, sans-serif;
    font-size: 0.7em;
    color: var(--colour-more-subdued-fg);
    text-align: center;
    text-wrap: balance;
    padding: 0 1em;
    margin-top: 0;
}

@container pp-main-container (min-width: 50cqmax) {
    .pp-image-sidecaption {
        display: block;
        flex: 1;
        width: 100%;
        align-self: center;
    }

    .pp-sidecaption-text {
        flex: 1;
    }

    .pp-sidecaption-text-to-right > p {
        text-align: right;
        padding-right: 0.5rem;
    }

    .pp-sidecaption-text-to-left > p {
        text-align: left;
        padding-left: 0.5rem;
    }

    .pp-sidecaption-to-right, .pp-sidecaption-to-left {
        margin: 1em 0;
        /* font-size: clamp(2.3125rem, 1.3085rem + 2.7182vw, 3.5rem); */
        font-size: clamp(2rem, 1.142rem + 2.322vw, 3rem);
    }

    .pp-sidecaption-text > p  {
        flex-grow: 1;
        font-family: 'EB Garamond', Garamond, serif;
        font-size: clamp(2.3125rem, 1.3085rem + 2.7182vw, 3.5rem);
        font-style: italic;
        color: var(--colour-subdued-secondary-fg);
        margin: 1em 0;
    }

    .pp-vertical-container figcaption {
        display: none;
    }
}

.pp-block-video {
    min-width: 240px;
    margin: 0;
}

.pp-block-video video {
    max-width: 100%;
    border-radius: var(--border-radius-m);
}

.pp-block-image {
    max-width: 100%;
    border-radius: var(--border-radius-m);
}

.pp-image-w-spacing {
    max-width: calc(100% - 4em);
    margin: 1em 2em;
}

.pp-image-round {
    border-radius: 50%;
}


figcaption {
    font-family: 'Assistant', Tahoma, sans-serif;
    font-size: 0.7em;
    color: var(--colour-more-subdued-fg);
    text-align: center;
    text-wrap: balance;
}

.pp-article-block figure {
    margin: 0;
}

p.pp-align-centre {
    text-align: center;
}

p.pp-subdued-text {
    font-style: italic;
    font-size: 0.95em;
    color: var(--colour-more-subdued-fg);
}

span.pp-subdued-text {
    font-size: 0.95em;
    color: var(--colour-more-subdued-fg);
}

li.pp-subdued-list-item::marker {
    color: var(--colour-more-subdued-fg);
}

.pp-quote-block {
    margin: 1em 2em 1em 1em;
    border-left: 4px solid var(--colour-secondary-fg);
    border-radius: 4px 0 0 4px;
    padding-left: 0.7em;
}

.pp-quote-body {
    font-style: italic;
}

.pp-quote-author {
    text-align: right;
}

.pp-quote-source {
    font-family: 'Assistant', Tahoma, sans-serif;
    font-size: 0.75rem;
    color: var(--colour-more-subdued-fg);
}

.pp-quote-source a {
    color: var(--colour-more-subdued-fg);
    transition: all 0.3s ease;
}

.pp-quote-source a:hover, .pp-quote-source a:active {
    color: var(--colour-secondary-fg);
}

.pp-spoilers {
    color: var(--colour-redacted);
    background-color: var(--colour-redacted);
    font-size: 0.75em;
    transition: all 0.3s ease;
}

.pp-spoilers::before {
    content: "SPOILERS";
    border: 1px solid var(--colour-subdued-fg);
    border-radius: var(--border-radius-s);
    padding: 1px 2px;
    margin: 0 3px;
    font-family: 'Assistant', Tahoma, sans-serif;
    font-size: 0.55em;
    color: var(--colour-subdued-fg);
}

.pp-spoilers:hover {
    color: var(--colour-subdued-fg);
}

.pp-code-text {
    display: inline-block;
    font-family: 'Assistant', Tahoma, sans-serif;
    font-size: 0.8em;
    background-color: var(--colour-border);
    padding: 0.1em 0.33em;
    border-radius: var(--border-radius-s);
}

.pp-small-text {
    font-family: 'Assistant', Tahoma, sans-serif;
    font-size: 0.55em;
    color: var(--colour-more-subdued-fg);
}

.pp-editorial-insert {
    font-family: 'Assistant', Tahoma, sans-serif;
    font-size: 0.85em;
    color: var(--colour-more-subdued-fg);
    font-style: italic;
}

.pp-article-footer {
    margin-top: 2em;
}

ul.pp-block-list {
    list-style: none;
    padding: 1em;
    margin: 0;
}

li.pp-block-list-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5em;
    align-items: stretch;
    margin-bottom: 1em;
}

@container pp-main-container (max-width: 500px) {
    li.pp-block-list-item {
        grid-template-columns: 1fr;
    }

    li.pp-block-list-item > .pp-swatch-text > p {
        text-align: center;
    }
}

.pp-article-navigation {
    margin: 2em;
    display: flex;
    justify-content: space-between;
    gap: 2em;
}

div.pp-blogpost-list {
    flex: 1;
    margin: 0;
}

ul.pp-blogpost-list {
    list-style: none;
    margin: 0;
}

li.pp-blogpost-list-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "image content";
    gap: 1rem;
    align-items: stretch;
    margin: 0 auto;
    padding: 1em 0;
    max-width: 946px;
}

li.pp-blogpost-list-reverse {
    grid-template-areas: "content image";
}

.pp-load-more-wrapper {
    text-align: center;
    max-width: 100%;
    margin: 2em;
}

#pp-load-more-button {
    height: 3.5em;
    min-width: 50%;
}

.pp-link-image {
    cursor: pointer;
    transition: all 0.1s ease;
}

.pp-link-image:hover {
    border: 3px solid var(--colour-primary-fg);
}

.pp-square-image-wrapper {
    grid-area: image;
    position: relative;
    width: 100%;
    padding-top: 100%;
    align-self: start;
}

.pp-square-image-inner {
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    background-size: cover;
    background-position: center;
    border-radius: var(--border-radius-m);
}

ul.pp-list-with-hyphens {
    list-style-type: none;
    text-indent: -0.5em;
}

ul.pp-list-with-hyphens > li::before {
    content: '- ';
}

li.pp-list-item-spacious {
    margin-bottom: 0.5em;
}

li.pp-list-item-spacious:last-child {
    margin-bottom: 0;
}

li > div.pp-list-item-flex {
    display: flex;
    justify-content: flex-start;
}

div.pp-list-item-flex > .pp-list-item-flex-text {
    flex: 1;
    text-wrap: balance;
}

div.pp-list-item-flex > .pp-list-item-flex-vcenter {
    flex: 1;
    align-self: center;
}


.pp-blogpost-excerpt {
    grid-area: content;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.pp-blogpost-excerpt > h3 {
    margin-top: 3px;
    margin-bottom: 0.8em;
}

.pp-blogpost-excerpt > p {
    margin: 0.1em 0.1em;
}

.pp-blogpost-excerpt > button {
    flex-grow: 0;
    flex-shrink: 1;
    margin-top: 1.5rem;
}

@container pp-main-container (max-width: 500px) {

    li.pp-blogpost-list-item {
        grid-template-columns: 1fr;
        grid-template-areas:
      "image"
      "content";
    }

    li.pp-blogpost-list-reverse {
        grid-template-areas:
      "image"
      "content";
    }

}

table.pp-borderless-table {
    border: 0;
    border-spacing: 0.8em 0.2em;
}

table.pp-cell-top-align th, table.pp-cell-top-align td {
    vertical-align: top;
}

table.pp-cell-balanced-wrap th, table.pp-cell-balanced-wrap td {
    text-wrap: balance;
}

td.pp-cell-flex {
    display: flex;
    align-items: center;
    gap: 6px;
}

td.pp-cell-flex > div {
    flex-shrink: 1;
}

td.pp-cell-flex > p {
    flex: 1;
    text-wrap: balance;
    margin: 0;
}

hr.pp-conditional-ruler {
    display: none;
    border-top: 1px solid var(--colour-border);
    border-bottom: 0;
    border-left: 0;
    border-right: 0;
}

@container pp-main-container (min-width: calc(24ch + 1em + 24ch)) {

    hr.pp-conditional-ruler {
        display: block;
    }
}

/* End of MAIN **************************************************************/


/*****************************************************************************
  F E A T U R E D
*****************************************************************************/
.pp-featured-container {
    display: flex;
    flex-direction: column;
    margin: 1em 1em auto 1em;
    padding: 1em;
    border: var(--border-radius-s) solid var(--colour-subdued-fg);
    border-radius: var(--border-radius-m) 1em 0.5em 1em;
    background-color: var(--colour-subdued-secondary-fg);
    min-height: 100px;
    max-width: calc(100% - 2em);
    gap: 1em;
    font-size: clamp(1rem, 0.7188rem + 1.25vw, 1.5rem);
    flex: 1;
}

.pp-featured-container p {
    color: var(--colour-secondary-bg);
}

.pp-featured-container h1 {
    font-size: clamp(1.25rem, 0.8281rem + 1.875vw, 2rem);
}


@container pp-main-container (min-width: 500px) {
    .pp-featured-container {
        margin: 1em 1em auto 1em;
        padding: 1em;
        max-width: calc(100% - 2em);
        gap: 1em;
        flex: 1;
    }
}

@container pp-main-container (min-width: 750px) {
    .pp-featured-container {
        flex-direction: row;
        margin: 2em 2em auto 2em;
        padding: 2em;
        border-radius: var(--border-radius-m) 2em 1em 2em;
        max-width: calc(100% - 4em);
        gap: 2em;
        flex: 1;
    }
}

/* End of FEATURED **********************************************************/


/*****************************************************************************
  F O O T E R
*****************************************************************************/
footer {
    font-family: 'Assistant', Tahoma, sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    text-align: center;
    padding: 1rem;
    background-color: var(--colour-secondary-bg);
}

.pp-license {
    font-family: 'Assistant', Tahoma, sans-serif;
    font-size: 0.75rem;
    text-transform: none;
    display: inline-block;
    vertical-align: middle;
}

.pp-license img {
    vertical-align: middle;
}

/* End of FOOTER ************************************************************/

