@charset "UTF-8";

/* ==========================================================================
   CSS CUSTOM PROPERTIES (VARIABLES)
   ========================================================================== */

:root {
    --body: #444;
    --accent: red;
    --accent-hover: #00a4ed;
    --body-notes: #444;
    --accent-notes: #00a4ed;
    --accent-hover-notes: red;
}

/* ==========================================================================
   FONT DECLARATIONS
   ========================================================================== */

@font-face {
    font-family: 'Manrope';
    font-stretch: 100%; 
    font-weight: 300 800;
    src: url('fonts/Manrope-VariableFont_wght.ttf') format('truetype');
}

@font-face {
    font-family: 'Compagnon-Italic';
    src:
        url('fonts/Compagnon-Italic.woff2') format('woff2'),
        url('fonts/Compagnon-Italic.woff') format('woff');
}

@font-face {
    font-family: 'Louise';
    src:
        url('fonts/Louise-Regular.woff2') format('woff2'),
        url('fonts/Louise-Regular.woff') format('woff');
}

/* Inconsolata Font Family */
@font-face {
    font-family: 'Inconsolata';
    font-style: normal;
    font-weight: 400;
    src: 
        url('fonts/inconsolata-v21-latin-regular.woff2') format('woff2'),
        url('fonts/inconsolata-v21-latin-regular.woff') format('woff');
}

@font-face {
    font-family: 'Inconsolata';
    font-style: normal;
    font-weight: 700;
    src:
        url('fonts/inconsolata-v21-latin-700.woff2') format('woff2'),
        url('fonts/inconsolata-v21-latin-700.woff') format('woff');
}

/* ==========================================================================
   BASE STYLES
   ========================================================================== */

* {
    box-sizing: border-box;
}

html {
    font-size: 100%;
    scroll-behavior: smooth;
}

body {
    width: 87.5%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 12.5%;
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    color: var(--body);
    letter-spacing: 0.2px;
    line-height: 1.7em;
    max-width: 1400px;
    counter-reset: sidenote-counter;
    overflow: auto;
    background: rgb(255, 255, 255);
}

main {
    flex-grow: 1;
    max-width: 80ch;
    width: 100%;
    margin: 0 auto;
}

article {
    padding: 2rem 0 0 0;
}

section {
    padding-top: 0.1rem;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1 {
    font-weight: 400;
    margin-top: 3rem;
    margin-bottom: 1rem;
    font-size: 2.3rem;
    line-height: 1;
    font-family: 'Inconsolata', monospace;
    color: #ff6d57;
    max-width: 55%;
}

h2 {
    font-weight: 400;
    margin-top: 2.2rem;
    margin-bottom: 1rem;
    font-size: 2rem;
    line-height: 1;
    max-width: 55%;
    font-family: 'Inconsolata', monospace;
    color: #ff6d57;
}

h3 {
    font-weight: 600;
    font-size: 1.6rem;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

h4 {
    font-weight: 400;
    font-size: 1.6rem;
    margin-top: 3rem;
    margin-bottom: 3rem;
    line-height: 1;
    text-align: center;
    font-family: Louise;
}

p {
    font-size: 1.1rem;
    line-height: 1.8rem;
    margin-top: 1.4rem;
    margin-bottom: 1.4rem;
    padding-right: 0;
    vertical-align: baseline;
}

p.subtitle {
    font-style: italic;
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    display: block;
    line-height: 1;
}

strong {
    font-weight: 700;
}

ol, ul {
    font-size: 1.1rem;
    line-height: 1.8rem;
}

ul li {
    padding-bottom: 0.5rem;
}

code, pre > code {
    font-size: 1rem;
    line-height: 1.42;
    -webkit-text-size-adjust: 100%;
}

.sans > code {
    font-size: 1.2rem;
}

h1 > code, h2 > code, h3 > code {
    font-size: .8em;
}

.marginnote > code, .sidenote > code {
    font-size: 1rem;
}

pre > code {
    font-size: .9rem;
    width: 52.5%;
    margin-left: 2.5%;
    overflow-x: auto;
    display: block;
}

pre.fullwidth > code {
    width: 90%;
}

span.newthought {
    font-variant: small-caps;
    font-size: 1.2em;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.page-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 2em;
    padding-right: 4em;
    position: relative;
}

.page-header__logo {
    margin-bottom: 1rem;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--body);
    align-self: flex-end;
    position: absolute;
    top: 0;
    right: 0;
}

nav {
    padding: 0;
    display: flex;
    place-items: center;
    margin-left: 0;
    width: 100%;
}

nav > ul {
    grid-auto-flow: column;
    margin-left: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    justify-content: flex-start;
}

nav > ul > li {
    margin: 0 1.3rem 0 0;
    padding: 0;
}

nav > ul > li:first-child {
    margin-left: 0;
}

nav > ul > li a,
nav > ul > li .dropdown__title {
    text-decoration: none;
    display: inline-block;
    font-size: 1.2rem;
    color: var(--body) !important;
    font-weight: 600;
}

nav > ul > li a:focus,
nav > ul > li .dropdown__title:focus {
    outline: none;
}

nav > ul > li > a:hover,
nav > ul > li > a:focus,
nav > ul > li .dropdown__title:hover,
nav > ul > li .dropdown__title:focus {
    color: var(--accent-hover) !important;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown__title {
    background-color: transparent;
    border: none;
    font-family: inherit;
}

.dropdown .dropdown__title {
    display: inline-flex;
    align-items: center;
    padding: 0;
}

.dropdown .dropdown__title:after {
    content: "";
    margin-left: 0.25em;
    transform: translateY(0.15em);
}

.dropdown .dropdown__menu {
    position: absolute;
    min-width: 30ch;
    left: 50%;
    top: calc(100% - 0.25rem);
    transform: rotateX(-90deg) translateX(-50%);
    transform-origin: top center;
    visibility: hidden;
    opacity: 0.3;
    padding: 0.5em 0;
    background-color: #fff;
}

.dropdown .dropdown__menu a {
    color: var(--accent);
    display: block;
    padding: 0.1em 0.5em;
    opacity: 0;
}

.dropdown .dropdown__menu a:hover {
    color: var(--accent-hover) !important;
}

.dropdown .dropdown__menu a:focus {
    outline: none;
    color: var(--accent-hover);
}

.dropdown:hover .dropdown__menu,
.dropdown:focus-within .dropdown__menu {
    opacity: 1;
    transform: rotateX(0) translateX(-50%);
    visibility: visible;
    z-index: 10;
}

.dropdown:hover .dropdown__menu a,
.dropdown:focus-within .dropdown__menu a {
    opacity: 1;
}

.dropdown:hover:after,
.dropdown:focus-within:after {
    opacity: 1;
}

/* ==========================================================================
   LINKS
   ========================================================================== */

a[href] {
    color: var(--accent);
    text-decoration: none;
}

article a[href] {
    border-bottom: 2px solid skyblue;
    position: relative;
}

a[href]:hover {
    color: var(--accent-hover) !important;
    text-decoration: none;
}

a[href]:focus {
    outline: 0;
    color: var(--accent-hover);
}

/* Remove special markers from specific contexts */
.page-header a[href*="/"]::after,
.notes-footer a[href*="/"]::after,
.page-footer a[href*="/"]::after,
.themen a[href*="/"]::after,
.liste a[href*="/"]::after,
#notes .page-header a[href*="/"]::after,
#notes .notes-footer a[href*="/"]::after,
#notes .page-footer a[href*="/"]::after,
#notes .liste a[href*="/"]::after {
    content: unset;
}

a > img {
    display: block;
    border-bottom: 0;
}

a[href*="/"] img::after {
    content: none;
}

.no-tufte-underline:link {
    background: unset;
    text-shadow: unset;
}

@media screen and (-webkit-min-device-pixel-ratio:0) {
    .hover-tufte-underline:hover,
    .tufte-underline,
    a:link {
        background-position-y: 87%, 87%, 87%;
    }
}

a:link::-moz-selection,
a:link::selection {
    text-shadow: .03em 0 #b4d5fe, -.03em 0 #b4d5fe, 0 .03em #b4d5fe, 0 -.03em #b4d5fe, .06em 0 #b4d5fe, -.06em 0 #b4d5fe, .09em 0 #b4d5fe, -.09em 0 #b4d5fe, .12em 0 #b4d5fe, -.12em 0 #b4d5fe, .15em 0 #b4d5fe, -.15em 0 #b4d5fe;
    background: #b4d5fe;
}

/* ==========================================================================
   IMAGES & MEDIA
   ========================================================================== */

img {
    width: 100%;
    height: auto;
    mix-blend-mode: multiply;
}

img.logo {
    width: 250px !important;
    mix-blend-mode: multiply;
}

figure {
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
    max-width: 55%;
    -webkit-margin-start: 0;
    -webkit-margin-end: 0;
    margin: 0 0 3em 0;
}

figcaption {
    float: right;
    clear: right;
    margin-top: 0;
    margin-bottom: 0;
    font-size: 1.1rem;
    line-height: 1.6;
    vertical-align: baseline;
    position: relative;
    max-width: 40%;
}

figure.fullwidth figcaption {
    margin-right: 24%;
}

.iframe-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 25px;
    height: 0;
}

.iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   LAYOUT COMPONENTS
   ========================================================================== */

.row {
    display: flex;
    flex-direction: row;
    width: 90%;
}

.column {
    flex: 50%;
    padding-right: 3em;
}

.fullwidth {
    max-width: 90%;
    clear: both;
}

div.fullwidth,
table.fullwidth {
    width: 100%;
}

div.table-wrapper {
    overflow-x: auto;
}

hr {
    display: block;
    height: 1px;
    width: 55%;
    border: 0;
    border-top: 3px solid #f9e955;
    margin: 3em 0;
    padding: 0;
}

/* ==========================================================================
   SPECIALIZED CONTENT AREAS
   ========================================================================== */

/* Tufte-style Content Widths */
section > footer,
section > p,
section > h1,
section > h2,
section > h3,
section > h4,
section > blockquote ol,
section > table,
section > span.themen,
section > iframe,
section > div.ml-form-embedContainer {
    width: 55%;
}

section > ol,
section > ul {
    width: 50%;
    -webkit-padding-start: 5%;
}

/* Sidenotes and Margin Notes */
.marginnote,
.sidenote {
    float: right;
    clear: right;
    margin-right: -60%;
    width: 50%;
    margin-top: 0;
    margin-bottom: 1em;
    font-size: 0.8rem;
    line-height: 1.5;
    vertical-align: baseline;
    position: relative;
    font-style: initial;
    font-weight: 500;
    font-family: 'Inconsolata', monospace;
}

.marginnote img,
.sidenote img {
    width: auto;
    display: block;
    padding-bottom: 0.4em;
    max-width: 100%;
}

.column .marginnote,
.column .sidenote {
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 5;
}

.sidenote-number {
    counter-increment: sidenote-counter;
}

.sidenote-number:after,
.sidenote:before {
    position: relative;
    vertical-align: baseline;
}

.sidenote-number:after {
    content: counter(sidenote-counter);
    font-size: 1rem;
    top: -.5rem;
    left: .1rem;
}

.sidenote:before {
    content: counter(sidenote-counter) " ";
    font-size: 1rem;
    top: -.5rem;
}

input.margin-toggle {
    display: none;
}

label.sidenote-number {
    display: inline;
}

label.margin-toggle:not(.sidenote-number) {
    display: none;
}

/* Blockquotes */
div.epigraph {
    margin: 5em 0;
}

div.epigraph > blockquote {
    margin-top: 3em;
    margin-bottom: 3em;
}

div.epigraph > blockquote,
div.epigraph > blockquote > p {
    font-style: italic;
}

div.epigraph > blockquote > footer {
    font-style: normal;
}

div.epigraph > blockquote > footer > cite {
    font-style: italic;
}

blockquote {
    font-size: 1.4rem;
    margin-inline-start: 0;
}

blockquote p {
    width: 55%;
    font-family: Compagnon-Italic;
    color: black;
}

blockquote footer {
    width: 55%;
    font-size: 1.1rem;
    text-align: right;
}

/* ==========================================================================
   THEME-SPECIFIC STYLES
   ========================================================================== */

span.themen {
    line-height: 2.4em;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 300;
}

span.themen a[href] {
    font-weight: 400;
}

.topics-header {
    font-weight: 200;
    text-transform: uppercase;
}

.list-date {
    font-size: 0.8em;
    font-weight: 200;
}

.danger {
    color: red;
}

.footnotes {
    font-size: 0.8em;
}

/* ==========================================================================
   NOTES SECTION OVERRIDES
   ========================================================================== */

#notes {
    background-color: #F7E9DE !important;
    color: var(--body-notes);
    font-family: 'Inconsolata', monospace;
    background: transparent;
}

#notes h1, #notes h2, #notes h3 {
    font-family: 'Manrope', sans-serif;
    width: 55%;
}

#notes h1 {
    font-weight: 600;
}

#notes h2 {
    margin-top: 2rem;
    margin-bottom: 1.1rem;
    font-size: 1.7rem;
    font-weight: 600;
}

#notes ol,
#notes p,
#notes ul {
    font-size: 1.1rem;
    line-height: 1.6rem;
}

#notes a[href] {
    color: var(--accent-notes);
}

#notes a[href]:hover, 
#notes nav > ul > li a:hover, 
#notes nav > ul > li .dropdown__title:hover, 
#notes p.notes-footer a:hover {
    color: var(--accent-hover-notes) !important;
}

#notes nav > ul > li a,
#notes nav > ul > li .dropdown__title {
    color: var(--accent-notes);
}

#notes .marginnote,
#notes .sidenote {
    font-family: 'Manrope', sans-serif;
    line-height: 1.6;
}

#notes .page-footer p {
    font-size: 0.7em;
}

#notes p.notes-footer {
    letter-spacing: 0.05em;
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    font-size: 0.9em;
}

/* ==========================================================================
   FOOTER STYLES
   ========================================================================== */

.page-footer {
    text-align: left;
    margin-bottom: 6em;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-top: 5em;
    padding-right: 3em;
}

.page-footer p {
    font-size: 0.6em;
    display: flex;
    flex-wrap: wrap;
}

.page-footer a {
    color: inherit !important;
    text-decoration: none;
}

p.notes-footer {
    margin-top: 1.5em;
    margin-bottom: 1em;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--accent);
}

/* ==========================================================================
   FORM ELEMENTS
   ========================================================================== */

input {
    padding: 1em;
    font: inherit;
}

button.primary {
    padding: 1em;
    margin-top: 0.5em;
    font: inherit;
    color: var(--accent);
    background-color: transparent;
    border: 1px solid;
}

button.primary:hover {
    cursor: pointer;
    color: #fff;
    background-color: var(--accent);
}

div.privacy-policy p {
    font-size: smaller;
    color: silver;
    line-height: 1.1rem;
}

/* ==========================================================================
   MAILERLITE OVERRIDES
   ========================================================================== */

#mlb2-9437398.ml-form-embedContainer .ml-form-align-center {
    text-align: left !important;
}

#mlb2-9437398.ml-form-embedContainer .ml-form-embedWrapper.embedForm {
    max-width: 500px !important;
}

#mlb2-9437398.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody, 
#mlb2-9437398.ml-form-embedContainer .ml-form-embedWrapper .ml-form-successBody {
    padding: 0px !important;
}

#mlb2-9437398.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-horizontalRow input, 
#mlb2-9437398.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-horizontalRow button, 
#mlb2-9437398.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedPermissions .ml-form-embedPermissionsContent.privacy-policy p, 
#mlb2-9437398.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedContent h4, 
#mlb2-9437398.ml-form-embedContainer .ml-form-embedWrapper .ml-form-successBody .ml-form-successContent h4, 
#mlb2-9437398.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedContent p, 
#mlb2-9437398.ml-form-embedContainer .ml-form-embedWrapper .ml-form-successBody .ml-form-successContent p {
    font-family: 'Manrope' !important;
}

#mlb2-9437398.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedPermissions .ml-form-embedPermissionsContent p a {
    text-decoration: none !important;
}

/* ==========================================================================
   BACKLINKS
   ========================================================================== */

.backlinks-title {
    margin-bottom: 0;
}

.backlinks-container {
    margin-top: 0;
}

.backlinks-default {
    margin-top: 0;
    margin-left: 16px;
    color: var(--grey);
}

.backlink__preview {
    display: none;
    position: absolute;
    bottom: 8px;
    left: 100%;
    background-color: #fff;
    border-radius: 4px;
    padding: 4px;
    box-shadow: 0 0 4px 2px rgba(0, 0, 0, 0.25);
    width: 348px;
    max-height: 148px;
    overflow: hidden;
}

.backlink__preview::after {
    content: "";
    position: absolute;
    bottom: 0;
    background: linear-gradient(transparent, white);
    width: 100%;
    height: 24px;
}

.backlink__preview h1 {
    font-size: 1.2rem;
    margin-top: 8px;
    font-weight: bold;
}

.backlink {
    width: fit-content;
    position: relative;
}

.backlink:hover {
    padding-right: 4px;
}

.backlink:hover .backlink__preview {
    display: block;
}

/* ==========================================================================
   RESPONSIVE DESIGN - MOBILE
   ========================================================================== */

@media screen and (max-width: 960px) {
    .row {
        flex-direction: column;
    }

    .column {
        padding-right: 0;
    }
}

@media (max-width: 960px) {
    body {
        width: 84%;
        padding-left: 8%;
        padding-right: 8%;
    }

    .page-header {
        padding-right: 2em;
    }
    
    /* Mobile Navigation */
    .nav-toggle {
        display: block;
        order: 2;
    }
    
  
    nav {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        background: white;
        z-index: 1000;
        margin-left: 0;
        min-width: 200px;
    }
    
    nav.active {
        display: block;
    }
    
    nav > ul {
        grid-auto-flow: row;
        padding: 1rem 0;
    }
    
    nav > ul > li {
        margin: 0;
        
    }
    
    nav > ul > li:last-child {
        border-bottom: none;
    }
    
    nav > ul > li a,
    nav > ul > li .dropdown__title {
        display: block;
        padding: 0.75rem 1.5rem;
        width: 100%;
        text-align: left;
    }
    
    .dropdown .dropdown__menu {
        position: static;
        transform: none;
        visibility: visible;
        opacity: 1;
        background: #f8f8f8;
        margin-top: 0;
        box-shadow: none;
    }
    
    .dropdown .dropdown__menu a {
        opacity: 1;
        padding-left: 2.5rem;
    }

    /* Content Width Adjustments */
    hr,
    section > footer,
    section > p,
    section > h1,
    section > h2,
    section > h3,
    section > h4,
    section > table,
    section > span.themen,
    section > iframe {
        width: 100%;
    }

    pre > code {
        width: 97%;
    }

    section > ol,
    section > ul {
        width: 90%;
    }

    figure {
        max-width: 90%;
    }

    figcaption,
    figure.fullwidth figcaption {
        margin-right: 0;
        max-width: none;
    }

    blockquote {
        margin-left: 1.5em;
        margin-right: 0;
    }

    blockquote footer,
    blockquote p {
        width: 100%;
    }

    /* Mobile Sidenotes */
    label.margin-toggle:not(.sidenote-number) {
        display: inline;
    }

    .marginnote,
    .sidenote {
        display: none;
    }

    .margin-toggle:checked + .marginnote,
    .margin-toggle:checked + .sidenote {
        display: block;
        float: left;
        left: 1rem;
        clear: both;
        width: 95%;
        margin: 1rem 2.5%;
        vertical-align: baseline;
        position: relative;
    }

    label {
        cursor: pointer;
    }

    div.table-wrapper,
    table {
        width: 85%;
    }

    img {
        width: 100%;
    }
}