:root {
    --theme-black-color-0: hsl(250, 20%, 13%);
    --theme-black-color-1: hsl(250, 20%, 23%);
    --theme-black-color-2: hsl(250, 14%, 31%);
    --theme-black-color-3: hsl(248, 9%, 39%);
    --theme-black-color-4: hsl(249, 7%, 46%);
    --theme-black-color-5: hsl(251, 6%, 54%);
    --theme-black-color-6: hsl(247, 6%, 62%);
    --theme-black-color-7: hsl(249, 6%, 69%);
    --theme-black-color-8: hsl(252, 6%, 77%);
    --theme-black-color-9: hsl(254, 7%, 85%);
    --theme-black-color-10: hsl(240, 6%, 93%);
    --theme-black-color-bg: #FAF9F6;
    --theme-black-color-accent: 353, 85%, 38%;
    --primary-text: var(--theme-black-color-2);
    --primary-bg: var(--theme-black-color-bg);
    --section-margin-bottom: 2.5rem;
    --hover-bg: var(--theme-black-color-9);
    --border-color: var(--theme-black-color-7);
    --secondary-text: var(--theme-black-color-5);


    --font-size-sm: clamp(0.6rem, 0.73vw + 0.42rem, 1rem);
    --font-size-base: clamp(0.75rem, 0.91vw + 0.52rem, 1.25rem);
    --font-size-md: clamp(0.94rem, 1.14vw + 0.65rem, 1.56rem);
    --font-size-lg: clamp(1.17rem, 1.42vw + 0.82rem, 1.95rem);
    --font-size-xl: clamp(1.46rem, 1.78vw + 1.02rem, 2.44rem);
    --font-size-xxl: clamp(1.83rem, 2.22vw + 1.28rem, 3.05rem);
    --font-size-xxxl: clamp(2.29rem, 2.77vw + 1.6rem, 3.81rem);
    --base-font-size: var(--font-size-md);

    --measure: 80ch;
    --grid: 1.125rem;
}

.dark {
    --primary-text: var(--theme-black-color-9);
    --primary-bg: var(--theme-black-color-0);
    --hover-bg: var(--theme-black-color-2);
    --secondary-text: var(--theme-black-color-6);
    --border-color: var(--theme-black-color-3);
}

@media (prefers-color-scheme: dark) {
    body:not(.light) {
        --primary-text: var(--theme-black-color-9);
        --primary-bg: var(--theme-black-color-0);
        --hover-bg: var(--theme-black-color-2);
        --secondary-text: var(--theme-black-color-6);
        --border-color: var(--theme-black-color-3);
    }
}

body {
    min-height: 100vh;
    font-family: 'Soehne-Buch', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    background-color: var(--primary-bg);
    color: var(--primary-text);
    font-feature-settings: "calt", "clig", "kern", "liga";
    font-kerning: normal;
    font-size: var(--base-font-size);
}

body.light svg.dark {
    display: none;
}

body.dark svg.light {
    display: none;
}

header,
h1,
main {
    width: calc(100% - 2rem);
    margin: 1em auto;
}

h1 {
    font-size: var(--font-size-xxxl);
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
    font-family: Soehne-Dreiviertelfett;
}


header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

nav {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 1em;
}

nav a {
    margin-left: var(--grid);
}

header a,
header button {
    display: inline;
    cursor: pointer;
    color: var(--primary-text);
    background: transparent;
    border: 0;
    border-radius: 0;
    text-decoration: none;
    padding: .5em 0;
}

header a:hover,
header button:hover {
    text-decoration: underline;
}

h1 {
    margin-left: 0;
}

p {
    line-height: 1.5;
    max-width: var(--measure);
}

input,
button,
textarea {
    font-size: var(--base-font-size);
    padding: .5em .8em;
    color: var(--primary-text);
    font-family: system-ui, sans-serif;
    tab-size: 4;
}

input::placeholder,
textarea::placeholder {
    color: var(--primary-text);
}

.search-form {
    border-radius: 6px;
    display: flex;
    height: 36px;
    margin-bottom: calc(var(--grid) * 2);
    align-items: center;
    justify-content: center;
}

.search-form form {
    margin: 0;
    width: 100%;
}

.search-form input {
    background-color: var(--hover-bg);
}

.dark .search-form input {
}

form {
    position: relative;
    margin-bottom: 2em;
    overflow: hidden;
}

form input,
form textarea {
    display: block;
    border-radius: 6px;
    border: 0;
    background-color: var(--hover-bg);
    width: 100%;
    box-sizing: border-box;
}

form textarea {
    min-height: 50vh;
    line-height: 1.5em;
    resize: vertical;
}

form input:hover,
form input:focus,
form textarea:hover,
form textarea:focus {
    outline: 0;
}

form button[type="submit"] {
    border-radius: 6px;
    border: 0;
    color: var(--primary-bg);
    background: var(--primary-text);
    margin-top: .5em;
    float: right;
    cursor: pointer;
}

form button[type="submit"]:hover {
    background: var(--secondary-text);
}

pre {
    background: var(--hover-bg);
    border-radius: 4px;
    padding: 1rem;
}

pre, code {
    font-family: 'IBM Plex Mono', 'Menlo', 'Monaco', monospace;
    word-break: initial;
    font-size: var(--font-size-base);
}

.bold {
    font-family: 'Soehne-Dreiviertelfett';
    font-feature-settings: "calt", "clig", "kern", "liga";
    font-kerning: auto;
    font-optical-sizing: auto;
    font-weight: 400;
    vertical-align: baseline;
}

.italic {
    font-family: 'Soehne-Leicht';
    font-feature-settings: "calt", "clig", "kern", "liga";
    font-kerning: auto;
    font-optical-sizing: auto;
    font-weight: 400;
    vertical-align: baseline;
}

.light {
    font-feature-settings: "calt", "clig", "kern", "liga", "zero", "frac";
    font-kerning: auto;
    font-optical-sizing: auto;
    vertical-align: baseline;
}

.debug {
    background: rgba(255, 0, 0, 0.05);
}


.feed {
    margin-bottom: var(--section-margin-bottom);
}

.update {
    margin-bottom: var(--grid);
    word-break: break-word;
    line-height: 1.5;
    font-size: var(--base-font-size);
    letter-spacing: 0.010em;
}

.update a {
    transition: background-color 0.3s;
}

.update-content a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid;
    padding: 2px;
}

.update-content a:hover {
    background-color: var(--hover-bg);
}

.update .update-time {
    padding: calc(var(--base-font-size) / 2) 0;
    border-top: 1px solid var(--border-color);
    flex-grow: 0;
    flex-shrink: 0;
    text-decoration: none;
    font-size: var(--font-size-base);
    letter-spacing: 0.05rem;
    font-family: 'Soehne-Leicht';
    font-feature-settings: "calt", "clig", "kern", "liga", "zero", "frac";
}

.update .update-time svg {
    /* TODO */
}

.update .update-time a {
    color: inherit;
    border-radius: 4px;
    text-decoration: none;
    padding: 2px;
}

.update-time a:hover {
    background-color: var(--hover-bg);
}
.page-row {
    font-size: var(--font-size-sm);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    margin-top: calc(var(--grid) * 2);
}

.page-row .showing {
    display: none;
    margin-left: var(--grid);
    margin-right: var(--grid);
}

.page-row a {
    color: var(--primary-text);
}

.page-row a:hover {
    color: var(--secondary-text);
}

.page-row a:nth-child(1) {
    margin-right: var(--grid);
}

blockquote {
    font-family: Soehne-Leicht;
    position: relative;
    quotes: "\201C" "\201D" "\201C" "\2019";
    margin: 0 0 0 1rem;
    font-size: var(--font-size-xl);
}

blockquote::before {
    font-size: var(--font-size-xxl);
    position: absolute;
    content: "\201C";
    right: 100%;
    top: -1rem;
    margin-right: 0.3125rem;
}


@media only screen and (min-width: 760px) {
    :root {
        --base-font-size: var(--font-size-base);
    }

    header,
    h1,
    main {
        max-width: 860px;
    }


    .update {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .update-time {
        display: flex;
        flex-direction: column;
        margin-right: var(--grid);
        text-align: right;
    }

    .update-content {
        border-top: 1px solid var(--border-color);
        padding-top: calc(var(--base-font-size) / 2);
        width: 0;
        flex-grow: 1;
        flex-shrink: 1;
    }

    .update-content :first-child {
        margin-top: 0;
    }

    .search-form {
        height: 60px;
    }

    .update .update-time {
        font-size: var(--font-size-sm);
    }

    .update .update-time a {
        padding: 0.25rem;
    }

    .update > .author {
        width: 100%;
        margin-left: 12%;
    }
}


@font-face {
    font-family: 'Soehne-Dreiviertelfett';
    src: url(/public/fonts/soehne-dreiviertelfett.woff2) format('woff2');
    font-weight: 400;
    font-style: normal;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Soehne-Leicht';
    src: url(/public/fonts/soehne-leicht.woff2) format('woff2');
    font-weight: 300;
    font-style: normal;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Soehne-Buch';
    src: url(/public/fonts/soehne-buch.woff2) format('woff2');
    font-weight: 400;
    font-style: normal;
    /*unicode-range: U+21-80, U+91-94, U+BF-D6, U+D8-F6, U+F8-122;*/
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Heldane-Text-Regular';
    src: url(/public/fonts/heldane-text-regular.woff2) format('woff2');
    font-weight: normal;
    font-style: normal;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

.diagonal-stripe-1 {
    background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScxMCcgaGVpZ2h0PScxMCc+CiAgPHJlY3Qgd2lkdGg9JzEwJyBoZWlnaHQ9JzEwJyBmaWxsPSd3aGl0ZScvPgogIDxwYXRoIGQ9J00tMSwxIGwyLC0yCiAgICAgICAgICAgTTAsMTAgbDEwLC0xMAogICAgICAgICAgIE05LDExIGwyLC0yJyBzdHJva2U9J2JsYWNrJyBzdHJva2Utd2lkdGg9JzEnLz4KPC9zdmc+Cg==");
    background-repeat: repeat;
}

.break {
    flex-basis: 100%;
    height: 0;
}