:root {
    --headertextcolor: #646464;
    --textcolor: #000000;
    --linkcolor: #000000;
    --textfont:  'inter';
    --bordercolor: #c8c8c8;
}

.footer {
    border-top: 1px solid var(--bordercolor);
    border-bottom: 1px solid var(--bordercolor);
    font-family: var(--textfont);
    font-weight: 300;
    margin-bottom: -20em;
    padding-bottom: 40px;
    padding-top: 15px;
}

@media only screen and (max-width: 768px) {
    .footer {
        margin-right: 0;
        margin-left: 0;
        padding-left: 16px;
    }
}

@media only screen and (max-width: 640px) {
    .footer {
        margin-right: 0;
        margin-left: 0;
        padding-left: 16px;
        padding-bottom: 24px;
    }
}

.footer p {
    font-size: 12px;
    color: #514e4e;
    padding-left: 35px;
}

.footer a {
    text-decoration: none;
}

.footer a:visited {
    color: #514e4e;
}

table {
    width: 100%;
    line-height: 18px;
    font-size: 1rem;
    margin-top: 1rem;
}

table tr td:nth-child(1) {
    /* padding-left: 2px; */
    padding-right: 8px;
    width: 55%;
}

table tr td:nth-child(3) {
    text-align: right;
    width: 15%;
}

table tr td:nth-child(2) {
    /* padding-left: 2px; */
    width: 35%;
}

table tr td {
    padding: 4px 1px 10px 0px;
}

table em {
    font-style: italic;
}

table strong {
    font-weight: 400;
    font-size: 1.5em;
    margin-top: 2vw;
    display: block;
}

table a {
    font-weight: 400;
    font-style: normal;
    color: var(--linkcolor);
    font-family: var(--textfont);
}

.page {
    font-size: 1rem;
    margin-left: 32px;
    margin-right: 32px;
    display: block;
}

@media only screen and (max-width: 768px) {
    .page {
        margin-left: 0;
        margin-right: 0;
    }
}

@media only screen and (max-width: 640px) {
    .page {
        margin-left: 0;
        margin-right: 0;
    }
}

.header {
    display: inline-flex;
    width: 100%;
    border-bottom: 2px solid var(--bordercolor);
    margin-bottom: 15px;
    padding-bottom: 20px;
    font-size: 12pt;
    padding-top: 20px;
    justify-content: space-between;
    align-items: baseline;
}

.header a {
    text-decoration: none;
    border-bottom: none;
}

.header a:hover {
    text-decoration: none;
    border-bottom: none;
}

@media only screen and (max-width: 768px) {
    .header {
        display: block;
        padding-bottom: 10px;
    }
}

@media (max-width: 500px) {
    .header {
        display: block;
        padding-bottom: 5px;
    }
}

.header .title {
    font-weight: 400;
    font-family: var(--textfont);
    color: var(--headertextcolor);
    text-align: left;
    margin-left: 32px;
}

.title a {
    text-decoration: none;
}

.title a:visited {
    color: var(--headertextcolor);
    text-decoration: none;
}

@media (max-width: 500px) {
    .title {
        padding-left: 16px;
    }
}

.header .nav {
    color: var(--headertextcolor);
    margin-right: 32px;
}

@media only screen and (max-width: 768px) {
    .nav {
        padding-left: 30px;
        padding-right: 0;
    }
}

@media only screen and (max-width: 640px) {
    .nav {
        padding-left: 16px;
    }
}

.nav a {
    font-family: var(--textfont);
    font-weight: 400;
    color: var(--headertextcolor);
    text-decoration: none;
}

.nav ul {
    list-style: none;
    align-content: left;
    justify-content: left;
    display: flex;
    gap: 0.5em;
    margin: 0;
}

@media only screen and (max-width: 768px) {
    .nav ul {
        padding-left: 0;
        gap: 0.5em;
    }
}

.nav ul li:not(:last-child) {
    padding-right: 12px;
}

@media (max-width: 500px) {
    .nav ul li {
        padding-right: 0;
    }
}

@media only screen and (max-width: 768px) {
    .nav ul li {
        padding-right: 0;
    }
}

.page .cont {
    justify-content: center;
    align-items: center;
}

@media (max-width: 500px) {
    .page .cont {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (max-width: 500px) {
    .page {
        flex-direction: column;
        align-items: center;
    }

    .nav {
        width: 65%;
    }

    .nav ul {
        display: flex;
        justify-content: space-between;
    }

    .page .cont {
        margin-left: 120px;
        justify-content: center;
        align-items: center;
        display: flex;
        flex-wrap: wrap;
    }

    .page {
        display: inline-block;
    }

    .page .cont {
        margin-left: 0px;
    }

    .nav {
        margin-left: 0px;
        position: relative;
    }

    .page .nav ul li {
        padding-bottom: 10px;
        padding-right: 10px;
    }
}

@media (max-width: 500px) and (max-width: 640px) {
    .page .cont {
        max-width: 90vw;
        display: block;
    }
}

@media (max-width: 500px) and (max-width: 640px) {
    .page {
        max-width: 100vw;
        display: block;
    }
}

@media only screen and (max-width: 500px) and (max-width: 768px) {
    .page {
        max-width: 100vw;
        display: block;
    }
}

@media only screen and (max-width: 500px) and (max-width: 768px) {
    .page .nav ul li {
        padding-right: 0;
    }
}

@media (max-width: 500px) and (max-width: 500px) {
    .page .nav ul li {
        padding-right: 0;
    }
}

.site-title {
    font-family: var(--textfont);
    text-align: left;
    align-self: center;
    font-size: 44px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 45px;
    max-width: auto;
}

body {
    background: #f8f9fa;
    font-family: var(--textfont);
    /* line-height: 24px; */
    font-weight: 400;
    word-wrap: break-word;
    margin-top: 0;
    font-size: 1rem; /* 18px */
    line-height: 1.6;
}

@media only screen and (max-width: 768px) {
    body {
        margin: 0;
    }
}

@media only screen and (max-width: 640px) {
    body {
        margin: 0;
    }
}

hr {
    color: #fff;
}

.wrapper {
    background: #ffffff;
    max-width: auto;
    margin: auto;
    max-width: 46em;
    border-left: 1px solid var(--bordercolor);
    border-right: 1px solid var(--bordercolor);
}

@media only screen and (max-width: 768px) {
    .wrapper {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }
}

@media only screen and (max-width: 640px) {
    .wrapper {
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
    }
}

.header h1 {
    /* font-size: 12pt; */
    font-size: clamp(2rem, 50%, 3rem);
    font-family: var(--textfont);
    font-weight: 500;
    padding-bottom: 5px;
    text-align: left;
}

b {
    font-weight: 600;
}

i {
    font-style: italic;
}

#navigation ul li {
    margin: 0;
    padding: 0;
    list-style-type: none;
    display: inline;
}

#navigation li:not(:first-child):before {
    content: " · ";
}

.description a {
    text-decoration: none;
    line-height: 24px;
    font-weight: 400;
    font-style: normal;
    font-size: 12pt;
    color: var(--linkcolor);
    /* border-bottom: 2px solid var(--bordercolor); */
    text-decoration: underline;
}

.desc {
    max-width: auto;
}

.desc h2 {
    font-size: 12pt;
}

.desc p {
    font-family: var(--textfont);
    font-size: 1rem;
    font-weight: 400;
    line-height: 24px;
    margin-bottom: 5px;
    justify-items: center;
}

.portfolio {
    padding-bottom: 30px;
}

.portfolio h1 {
    font-size: 1em;
    margin-bottom: 5px;
}

.blog {
    padding-bottom: 30px;
    line-height: 32px;
    color: var(--textcolor);
}

.blog ol {
    padding-left: 0;
}

/* archive header */
.blog h1 {
    font-family: var(--textfont);
    /* font-size: 1rem; */
    font-size: clamp(2rem, 50%, 3rem);
    font-weight: 400;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--bordercolor);
    color: var(--textcolor);
}

.blog li {
    padding-right: 0px;
    list-style: none;
    padding-bottom: 4px;
}

.blog li .date {
    float: right;
    font-size: 12pt;
    color: #aaa69a;
    text-transform: lowercase;
}

a {
    font-weight: 400;
    font-style: normal;
    color: var(--linkcolor);
    text-decoration: none;
    text-decoration: underline;
}

a:hover {
    /* border-bottom: 1px dotted #1a1a1a; */
    text-decoration: underline solid #4a4a4a;
    color: #575653;
}

.post {
    padding-bottom: 30px;
    max-width: auto;
}

.post h1 {
    font-family: var(--textfont);
    margin-bottom: 4px;
    font-weight: 700;
    max-width: auto;
    /* font-size: 2em; */
    font-size: clamp(2.2rem, 50%, 3rem);
    letter-spacing: -0.02em;
    line-height: 36px;
}

.metadata {
    margin-bottom: 30px;
    margin-top: 12px;
}

.metadata p {
    line-height: 14px;
    font-size: 0.8em;
    text-align: left;
    color: #616161;
    font-family: var(--textfont);
    font-weight: 400;
    margin-bottom: 2px;
    margin-top: 4px;
}

.post__content {
    font-size: clamp(1rem, 50%, 1.25rem);
    color: var(--textcolor);
}

.post__back {
    display: in-line;
    text-align: left;
    display: block;
    margin-bottom: 25px;
}

.post__title {
    font-size: 56px;
    font-family: var(--textfont);
    text-align: left;
    align-self: center;
    font-weight: 700;
    margin-bottom: 10px;
    max-width: auto;
}

.post__date, .post__camera {
    font-size: 0.8em;
    text-align: left;
    color: #616161;
    font-family: var(--textfont);
    font-weight: 400;
}

.post__content hr {
    width: 10%;
}

.post__content h1 {
    /* font-size: 2em; */
    font-size: clamp(2.2rem, 50%, 3rem);
    color: #000;
    font-weight: 600;
    margin-top: 16px;
    margin-bottom: -10px;
    font-family: var(--textfont);
    margin-bottom: 0px;
    padding-bottom: 0px;
    margin-top: 3rem;
    letter-spacing: -0.02em;
}

.post__content h2 {
    font-size: clamp(1.65rem, 40%, 3rem);
    color: #000;
    font-weight: 500;
    margin-top: 5px;
    font-family: var(--textfont);
    line-height: 1.25;
    margin-top: 3rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.post__content h3 {
    font-size: clamp(1.42rem, 50%, 3rem);
    color: #000;
    font-weight: 400;
    font-family: var(--textfont);
    line-height: 32px;
    letter-spacing: -0.02em;
    margin-bottom: 0px;
    padding-bottom: 0px;
    margin-top: 2rem;
}

.post__content h4 {
    font-size: clamp(1.15rem, 20%, 3rem);
    color: #000;
    font-weight: 500;
    margin-top: 5px;
    margin-bottom: -10px;
    font-family: var(--textfont);
    margin-bottom: -4px;
    padding-bottom: 0px;
    margin-top: 1.5rem;
}

.post__content p {
    font-family: var(--textfont);
    font-weight: 400;
    line-height: 1.5;
    padding-bottom: 12px;
    word-wrap: break-word;
    padding-bottom: 0px;
    margin-bottom: 0px;
    margin-top: 0px;
    margin-top: 0.65rem;
}

.post__content p a {
    line-height: 24px;
    font-weight: 400;
    font-style: normal;
    color: var(--linkcolor);
    font-family: var(--textfont);
}

.post__content a {
    line-height: 24px;
    font-weight: 400;
    font-style: normal;
    font-size: 1rem;
    color: var(--linkcolor);
    font-family: var(--textfont);
}

.post__content a:hover {
    text-decoration: underline solid #4a4a4a;
    color: #4a4a4a;
}

.post__content table a {
    line-height: 18px;
}

.post__content strong {
    font-family: var(--textfont);
    padding-bottom: 10px;
}

.post__content em {
    font-style: italic;
}

.post__content ul {
    font-family: var(--textfont);
    list-style: disc;
    padding-bottom: 10px;
    line-height: 1.3em;
    padding-left: 8px;
    margin-bottom: 0px;
    padding-bottom: 0px;
    margin-top: 0px;
}

/* Margin if h2 preceeds a ul in post */
.post__content h1 + ol ,
.post__content h2 + ol ,
.post__content h1 + ul ,
.post__content h2 + ul {
        margin-top: 0px;
}


.post__content p + ol {
    margin-top: 2px;
}

.post__content ul li {
    padding-top: 8px;
}

.post__content ol {
    list-style: decimal;
    padding-bottom: 10px;
    line-height: 1.65em;
    padding-left: 8px;
    margin-bottom: 0px;
}

.post__content li {
    padding-top: 3px;
    padding-bottom: 3px;
    padding-left: 2px;
    margin-left: 12px;
}

.post__content img {
    margin: 8px auto;
    width: calc(100% + 64px);
    margin-left: -32px;
    margin-right: -32px;
    border-radius: 0;
}

@media screen and (max-width: 768px) {
    .post__content img {
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
}

.post__content .note {
    background: #d8f2fd;
    display: block;
    padding: 14px;
    font-style: italic;
    margin-left: -32px;
    margin-right: -32px;
    padding-left: 32px;
    padding-right: 32px;

    a {
        font-style: inherit;
    }
}

@media only screen and (max-width: 768px) {
    .post__content .note {
        margin-left: 0;
        margin-right: 0;
        padding-left: 14px;
        padding-right: 14px;
    }
}


/* inline code blocks */
.post__content code {
    padding: 1.5px 5px 2.5px 5px;
    font-size: 14px;
    word-wrap: break-word;
    font-family: "courier", monospace;
    font-weight: 300;
    overflow: hidden;
    margin-bottom: 10px;
    color: #2b2b2b;
    background: #e9ecef;
    border-radius: 5px;
}

.post__content sup {
    vertical-align: super;
    font-size: 8pt;
}

.post__content pre {
    border-top: 2px var(--bordercolor) solid;
    border-bottom: 2px var(--bordercolor) solid;
    background: #e9ecef;
    font-family: "courier", monospace;
    font-size: 1rem;
    font-weight: 300;
    font-weight: 400;
    max-width: none;
    overflow-x: auto;
    padding: 25px 32px;
    margin-top: 1rem;
    margin-bottom: 1rem;
    margin-left: -32px;
    margin-right: -32px;
}

@media only screen and (max-width: 768px) {
    .post__content pre {
        margin-left: 0;
        margin-right: 0;
        padding-left: 25px;
        padding-right: 25px;
    }
}

.post__content li pre {
    margin-left: calc(-32px - 22px);
    margin-right: -32px;
    padding-left: calc(32px + 22px);
    padding-right: 32px;
}

@media only screen and (max-width: 768px) {
    .post__content li pre {
        margin-left: -22px;
        margin-right: 0;
        padding-left: 22px;
        padding-right: 25px;
    }
}

.post__content pre code {
    padding-left: 0px;
    background: none;
}

.post__content .lineno {
    color: #bbb;
    padding-right: 8px;
    border-right: 1px solid var(--bordercolor);
    margin-right: 10px;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.about__back {
    display: block;
    text-align: left;
}

.about__title {
    font-size: 1.5em;
    font-weight: 500;
    margin-top: 20px;
    margin-bottom: 10px;
}

.about__content {
    margin-top: 20px;
}

.about__content h1 {
    font-size: clamp(2rem, 50%, 3rem);
    font-style: italic;
    margin-top: 30px;
    margin-bottom: 5px;
}

.about__content p {
    font-size: 12pt;
    line-height: 24px;
    margin-bottom: 10px;
    font-weight: 400;
}

.image-grid {
    column-count: 1;
    column-gap: 8px;
    margin-left: -32px;
    margin-right: -32px;
}

@media only screen and (max-width: 768px) {
    .image-grid {
        margin-left: 0;
        margin-right: 0;
    }
}

.image-grid img {
    all: unset;
    object-fit: cover;
    position: relative;
    width: 100%;
    margin-bottom: 8px;

    width: 100%;
    height: auto;
    display: block;
    content-visibility: auto;
    contain-intrinsic-size: 300px auto;
    margin-bottom: 1rem;
}

.image-grid a {
    border-bottom: unset;
}