@font-face {
    font-family: 'Tiempos';
    src: url('../type/tiempos-text-web-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Tiempos';
    src: url('../type/tiempos-text-medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
  
:root {
    --background-color: 255, 255, 255;
    --text-color: 15, 10, 10;
    --shadow-color: rgba(15, 10, 10, 0.4);
    --block-background-color: #e0e0e0;
    --button-background-color: #fff;
    --border-radius: 0.25rem;
    --link-color: #0070f3;
    --media-border-color: rgba(0, 0, 0, .15);
    --header-background-color: 15, 16, 17;
    --header-shadow-color: 35, 37, 41;
    --header-text-color: 250, 250, 250;
}
@media (prefers-color-scheme: dark) {
    :root {
        --background-color: 15, 16, 17; /*0f0f0f 17191c  block: 262626*/
        --block-background-color: #232529;
        --text-color: 230, 230, 230;
        --shadow-color: rgba(0, 0, 0, 0.8);
        --header-text-color: 230, 230, 230;
    }
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Lato", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 0.96rem;
    line-height: 1;
}
@media (prefers-color-scheme: dark) {
    * {
        font-weight: 300;
    }
}

body {
    margin: 1rem;
    background-color: rgba(var(--background-color), 1);
    color: rgba(var(--text-color), 1);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background-color: var(--block-background-color);
    border-radius: var(--border-radius);
}

@media (prefers-color-scheme: dark) {
    nav {
        box-shadow: inset -0.075rem -0.075rem 0.25rem rgba(var(--text-color), 0.08), inset 0 0 0.25rem 0.125rem rgba(0, 0, 0, 0.08);
    }
}
nav ul {
    list-style: none;
    display: flex;
    gap: 0.5rem;
}
nav a, h2 {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    text-decoration: none;
    color: inherit;
    padding: 0.35rem 0.85rem 0.35rem 0.5rem;
    border-radius: var(--border-radius);
    transition: background-color 0.2s ease;
    font-weight: 700;
    cursor: pointer;
}

@media (prefers-color-scheme: dark) {
    nav a, h2 {
        font-weight: 400;
    }
}

nav a.current {
    background-color: rgba(var(--background-color), 0.7);
    box-shadow: 0.125rem 0.125rem 0.25rem rgba(var(--text-color), 0.08);
}
nav a:hover {
    background-color: rgba(var(--background-color), 1);
    box-shadow: 0.125rem 0.125rem 0.25rem rgba(var(--text-color), 0.1);
}
@media (prefers-color-scheme: dark) {
    nav a.current {
        background-color: rgba(var(--background-color), 0.6);
        color: rgba(var(--text-color), 0.75);
        box-shadow: -0.125rem -0.125rem 0.35rem rgba(var(--text-color), 0.08), inset 0 0 0.25rem 0.125rem rgba(0,0,0, 0.08);
        /* box-shadow: inset 0 0 0.25rem 0.125rem rgba(0,0,0, 0.08); */
    }
    nav a.current::before {
        opacity: 0.75;
    }
    nav a:hover {
        background-color: rgba(var(--background-color), 0.9);
        box-shadow: -0.125rem -0.125rem 0.25rem rgba(var(--text-color), 0.08);
    }
}
nav a::before, h2::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

@media (prefers-color-scheme: dark) {
    nav a::before, h2::before {
        filter: invert(1);
    }
}

h2.no-icon::before {
    display: none;
}
.nav-left li:nth-child(1) a::before {
    background-image: url('../icons/featured.svg');
}
.nav-left li:nth-child(2) a::before {
    background-image: url('../icons/information.svg');
}
.nav-left li:nth-child(3) a::before {
    background-image: url('../icons/writing.svg');
}
/* .nav-right li:nth-child(1) a::before {
    background-image: url('../icons/logo-vc.svg');
} */
.nav-right li:nth-child(1) a::before {
    background-image: url('../icons/nonlinear.svg');
}
.nav-right li:nth-child(2) a::before {
    background-image: url('../icons/particular.svg');
}
.nav-right li:nth-child(3) a::before {
    background-image: url('../icons/active-matrix.svg');
}
.nav-left li a::before,
.nav-right li a::before,
.nav-center li a::before {
    position: relative;
    top: -0.25px;
}

header {
    display: block;
    text-align: center;
    border-radius: var(--border-radius);
    background-color: rgba(var(--header-background-color), 1);
    color: rgba(var(--header-text-color), 1);
    padding: 8.5vw 2rem; /*8rem 2rem*/
    position: relative;
    overflow: hidden;
}
header .block #stage canvas {
    filter: saturate(3);
}

@media (prefers-color-scheme: dark) {
    header {
        box-shadow: inset 0 0 15rem 0.25rem rgba(var(--header-shadow-color), 0.45);
        outline: 1px solid rgba(250, 250, 250, 0.03);
        outline-offset: -1px;
    }
    header .block #stage canvas {
        filter: saturate(2);
    }
}

header a {
    color: inherit;
    text-decoration: none;
}
#stage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}
#stage canvas {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
header h1 {
    position: relative;
    z-index: 1;
    font-size: 2.85vw; /*2rem*/
    line-height: 1.25;
    font-family: 'Tiempos', serif;
    font-weight: 400;
    filter: drop-shadow(0 0 2rem var(--text-color));
}

.section-break {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}
.featured-work-heading {
    flex-direction: column;
    gap: 0.75rem;
}
.featured-work-heading h2 {
    margin: 0;
}
.portfolio-view-inline {
    background-color: rgba(224, 224, 224, 0.25);
    border-radius: 0.25rem;
    overflow: hidden;
    backdrop-filter: blur(0.25rem) brightness(1.25);
}
.writing-break-thanks {
    padding-top: 0.4rem !important;
}
h2.featured::before {
    background-image: url('../icons/featured.svg');
}
h2.information::before {
    background-image: url('../icons/information.svg');
}
h2.writing::before {
    background-image: url('../icons/writing.svg');
}
h2.peace::before {
    background-image: url('../icons/peace.svg');
}
h2.featured, 
h2.information,
h2.peace,
h2.no-icon {
    cursor: auto;
}

main {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

section.block {
    background-color: var(--block-background-color);
    border-radius: var(--border-radius);
    height: 94.5vh;
    min-height: 550px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    outline-offset: -1px;
}

main > section.block:not(#first-work-item) {
    content-visibility: auto;
    contain-intrinsic-size: auto 94.5vh;
}

@media (max-width: 700px) {
    section.block {
        height: auto;
        min-height: 50px;
    }
    main > section.block:not(#first-work-item) {
        contain-intrinsic-size: auto 80vh;
    }
}
section.block .post {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 1rem 2rem;
    text-decoration: none;
    color: black;
    position: relative;
}

section.block .post .media {
    height: 100%;
    width: 100%;
    flex: 1;
    min-height: 0;
    object-fit: contain;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.35s ease;
}

@media (max-width: 700px) {
    section.block .post .media {
        flex-direction: column;
        gap: 1.5rem;
    }
}
section.block .post .media.is-visible {
    opacity: 1;
}
section.block .post .media img, 
section.block .post .media video {
    max-height: 100%;
    max-width: 100%;
    height: auto;
    width: auto;
    object-fit: contain;
    flex: 0 1 auto;
}

section.block .post .media img.placeholder-image {
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: blur(5px);
}

section.block .post .media img:only-child,
section.block .post .media video:only-child {
    max-width: 100%;
    max-height: 100%;
}

@media (max-width: 700px) {
    section.block .post .media img, 
    section.block .post .media video {
        max-height: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        width: auto !important;
    }
    section.block .post .media img.placeholder-image {
        width: 100% !important;
    }
}

/* For multiple images, constrain width to share space */
section.block .post .media:has(img:nth-child(2):last-child) img,
section.block .post .media:has(video:nth-child(2):last-child) video {
    max-width: calc(50% - 0.5rem);
}

section.block .post .media:has(img:nth-child(3):last-child) img,
section.block .post .media:has(video:nth-child(3):last-child) video {
    max-width: calc(33.333% - 0.667rem);
}

section.block .post .media:has(img:nth-child(4):last-child) img,
section.block .post .media:has(video:nth-child(4):last-child) video {
    max-width: calc(25% - 0.75rem);
}

@media (max-width: 700px) {
    section.block .post .media:has(img:nth-child(2):last-child) img,
    section.block .post .media:has(video:nth-child(2):last-child) video {
        max-width: 100%;
    }
    section.block .post .media:has(img:nth-child(3):last-child) img,
    section.block .post .media:has(video:nth-child(3):last-child) video {
        max-width: 100%;
    }
    section.block .post .media:has(img:nth-child(4):last-child) img,
    section.block .post .media:has(video:nth-child(4):last-child) video {
        max-width: 100%;
    }
}

section.block .post p,
.site-copyright {
    text-align: center;
    flex-shrink: 0;
    font-size: 0.96rem;
    font-weight: inherit;
    color: rgba(var(--text-color), 0.5);
}
section.block .post p.title {
    /* margin-top: 0.25rem; */
    margin-top: 0.1rem;
    margin-bottom: 1rem;
}
section.block .post p.caption {
    margin-top: 1.2rem;
    /* margin-bottom: 0.2rem; */
}
/* section.block .post .media img.dropshadow, 
section.block .post .media video.dropshadow {
    filter: drop-shadow(0 0.5rem 1rem rgba(15,10,10, 0.8));
} */

.dropshadow {
    filter: drop-shadow(0 0.5rem 1rem var(--shadow-color));
}

section.block .post:not(:has(.caption)) .media {
    margin-bottom: 1rem;
}

.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.loading-image-dark,
.loading-image-light {
    width: 27px;
    height: 27px;
}

.loading-image-dark {
    display: none;
}

.loading-image-light {
    display: inline-block;
}

@media (prefers-color-scheme: dark) {
    .loading-image-dark {
        display: inline-block;
    }
    .loading-image-light {
        display: none;
    }
}

.block-loader {
    /* position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

.block-loader img {
    width: 27px;
    height: 27px;
    object-fit: contain;
}

.block-loader-dark {
    display: none;
}

.block-loader-single {
    display: block;
}

.block-loader-light {
    display: block;
}

@media (prefers-color-scheme: dark) {
    .block-loader-dark {
        display: block;
    }

    .block-loader-light {
        display: none;
    }
}

/* section a.block, section div.block {
    padding: 2rem;
    padding-top: 3rem;
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    flex-wrap: wrap;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
section a.block > div, section div.block > div {
    min-width: 18%;
    display: flex;
    justify-content: center;
    align-items: center;
} */

section.information-header {
    height: auto;
    min-height: 100px;
}

section.information-header .post {
    padding-top: 2rem;
}

section.information-header .post .media {
    aspect-ratio: 3 / 1;
    min-height: 0;
}

@media (max-width: 700px) {
    section.information-header .post {
        padding: 1.2rem 1rem !important;
    }

    section.information-header .post .media {
        aspect-ratio: 1 / 1;
        margin-bottom: 0 !important;
    }

    section.information-header .post .media img:nth-child(2),
    section.information-header .post .media img:nth-child(3) {
        display: none;
    }
}

section.portrait-block .post {
    padding-top: 2rem;
}

/* Set max-widths based on number of media items */
/* section a.block:has(> div:nth-child(2)) > div,
section div.block:has(> div:nth-child(2)) > div {
    max-width: calc(50% - 0.5rem);
}

section a.block:has(> div:nth-child(3)) > div,
section div.block:has(> div:nth-child(3)) > div {
    max-width: calc(33.333% - 0.667rem);
}

section a.block:has(> div:nth-child(4)) > div,
section div.block:has(> div:nth-child(4)) > div {
    max-width: calc(25% - 0.75rem);
}

section a.block:has(> div:nth-child(5)) > div,
section div.block:has(> div:nth-child(5)) > div {
    max-width: calc(33.333% - 0.667rem);
}

section a.block:has(> div:nth-child(7)) > div,
section div.block:has(> div:nth-child(7)) > div {
    max-width: calc(25% - 0.75rem);
}

section a.block:has(> div:nth-child(9)) > div,
section div.block:has(> div:nth-child(9)) > div {
    max-width: calc(20% - 0.8rem);
}

section a img, section a video, section div img, section div video {
    max-width: 100%;
    max-height: 75vh;
    width: auto;
    height: auto;
} */

.border {
    border: 1px solid rgba(var(--text-color), 0.1);
}
/* Tooltip styles */
section.block {
    position: relative;
}
header section.block {
    position: static;
}
.tooltip {
    position: fixed;
    padding: 0.25rem 0.4rem 0.2rem 0.4rem;
    background-color: rgba(var(--background-color), 0.7);
    color: rgba(var(--text-color), 1);
    font-size: 0.65rem;
    line-height: 1.25;
    text-align: left;
    border-radius: calc(var(--border-radius) / 2);
    opacity: 0;
    backdrop-filter: blur(0.5rem);
    pointer-events: none;
    z-index: 1000;
    white-space: nowrap;
    box-shadow: 0.125rem 0.125rem 0.25rem rgba(var(--text-color), 0.08);
}

/* Only show icon for header tooltip */
.tooltip.header-tooltip {
    display: flex;
    align-items: center;
    gap: 0.1rem;
    padding: 0.2rem 0.4rem 0.1rem 0.2rem;
}

.tooltip.header-tooltip::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    position: relative;
    bottom: 0.05rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url('../icons/information.svg');
}

/* .title {
    position: absolute;
    top: 1.4rem;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(var(--text-color), 0.5);
    padding: 0 2rem;
}

.caption {
    position: absolute;
    bottom: 1.4rem;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(var(--text-color), 0.5);
    padding: 0 2rem;
} */
/* Add spacing only when caption is present */
/* .block:has(.caption) {
    padding-bottom: 3rem;
} */

section.biography {
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}
section.biography p {
    text-wrap: pretty;
}
section.biography p, section.biography a {
    font-size: 1.5rem;
    line-height: 1.5;
    max-width: 60ch;
    font-family: 'Tiempos', serif;
    font-weight: 400;
}

section.biography a {
    color: inherit;
    text-decoration-line: underline;
    text-decoration-color: rgba(var(--text-color), 0.25);
}
section.biography a:hover {
    color: #0b3fce;
    text-decoration-color: #0b3fce;
}
@media (prefers-color-scheme: dark) {
    section.biography a:hover {
        color: #0f43d2;
        text-decoration-color: #0f43d2;
    }
}

/* Writing — post and index share the biography column/type */
.writing-post-content,
.writing-index .writing-list {
    width: 100%;
    /* Resolve 60ch once against Tiempos at the body-copy size. Children can then
       use different fonts without changing the physical width of the column. */
    font-family: 'Tiempos', serif;
    font-size: 1.5rem;
    max-width: 60ch;
    box-sizing: border-box;
}

.writing-post-content {
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 1.5rem;
}
.writing-post-content > p,
.writing-post-content > h2,
.writing-post-content > h3,
.writing-post-content > h4,
.writing-post-content > ul,
.writing-post-content > ol,
.writing-post-content > blockquote,
.writing-post-content > pre,
.writing-post-content > hr,
.writing-post-content > .post-embed {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

section.biography.writing-post {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
    margin-top: 0;
}
.writing-post-header {
    display: flex;
    width: 100%;
    max-width: none;
    /* min-height: clamp(18rem, 55vh, 34rem); */
    padding: 8rem 0 6.5rem 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background-color: var(--block-background-color);
    border-radius: var(--border-radius);
    text-align: center;
}
.writing-post-heading-content {
    display: flex;
    width: 100%;
    align-items: center;
    flex-direction: column;
    gap: 0.75rem;
    /* transform: translateY(-0.75rem); */
}
.writing-post .writing-title {
    display: flex;
    /* max-width: 22ch; */
    align-items: center;
    flex-direction: column;
    gap: 0.12em;
    font-family: 'Tiempos', serif;
    font-weight: 400;
    font-size: 2.25rem;
    line-height: 1.25;
    text-wrap: balance;
}
.writing-post .writing-title-line {
    display: block;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: 1.25;
}
.writing-post .writing-title-line:last-child {
    position: relative;
}
.writing-post .writing-title-line > sup {
    position: absolute;
    top: -0.3em;
    left: calc(100% + 0.08em);
    font-size: 0.5em;
    line-height: 1;
    vertical-align: baseline;
}
.writing-post .writing-date {
    width: auto;
    font-family: "Lato", sans-serif;
    font-size: 0.96rem;
    color: rgba(var(--text-color), 0.5);
    margin-top: 0;
    text-align: center;
}

.writing-post h2,
.writing-post h3,
.writing-post h4 {
    font-family: 'Lato', sans-serif;
    font-size: 1.5rem;
    font-weight: 100;
    /* opacity: 0.5; */
    /* line-height: 1.3; */
    text-wrap: pretty;
    margin: 0;
    margin-top: 1.5rem;
    padding: 0;
    gap: 0;
    border-top: 2px solid rgba(var(--text-color), 0.25);
    border-radius: 0;
    padding-top: 1rem;
}

.writing-post h2::before {
    display: none;
    
}

.writing-post .post-secondary-text {
    color: rgba(var(--text-color), 0.25);
    opacity: 1;
}
.writing-post .post-secondary-text a:hover {
    opacity: 1;
}

.writing-post ul,
.writing-post ol {
    padding-left: 1.5rem;
    margin: 0;
}
.writing-post li {
    font-size: 1.5rem;
    line-height: 1.5;
    font-family: 'Tiempos', serif;
    font-weight: 400;
    margin-bottom: 0.5rem;
    text-wrap: pretty;
}

/* Inline emphasis: keep the serif (the global `*` rule otherwise forces Lato) */
.writing-post strong,
.writing-post b {
    font-family: 'Tiempos', serif;
    font-weight: 500;
}
.writing-post em,
.writing-post i {
    font-family: 'Tiempos', serif;
    font-style: italic;
}
.writing-post h2 em,
.writing-post h2 i {
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.writing-post blockquote {
    margin: 0;
    padding-left: 1.25rem;
    border-left: 2px solid rgba(var(--text-color), 0.2);
}
.writing-post blockquote p {
    color: rgba(var(--text-color), 0.7);
    font-style: italic;
}

.writing-post code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.9em;
    background-color: rgba(var(--text-color), 0.06);
    padding: 0.1em 0.3em;
    border-radius: 0.25rem;
}
.writing-post pre {
    background-color: rgba(var(--text-color), 0.06);
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
}
.writing-post pre code {
    background: none;
    padding: 0;
    font-size: 0.85rem;
}

.writing-post img {
    max-width: 100%;
    height: auto;
    border-radius: 0.25rem;
}

.writing-post .post-embed {
    align-self: center;
}
.writing-post .post-embed iframe,
.writing-post .post-embed video,
.writing-post .post-embed canvas {
    display: block;
    width: 100%;
    max-width: 100%;
}

/* Hand-built tweet used in the speculative-work essay */
.writing-post .tweet-mockup {
    position: relative;
    display: block;
    width: 100%;
    max-width: 550px;
    margin: 0;
    padding: 0.625rem;
    overflow: hidden;
    color: #0f1419;
    background: transparent;
    border: 0;
    border-radius: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    text-decoration: none;
}
.writing-post .tweet-mockup * {
    font-family: inherit;
}
.writing-post .tweet-mockup:hover {
    color: #0f1419;
    text-decoration: none;
}
.tweet-author {
    min-height: 1.2rem;
}
.writing-post .tweet-avatar {
    position: absolute;
    top: 0.625rem;
    left: 0.625rem;
    width: 2.375rem;
    height: 2.375rem;
    padding: 0;
    border-radius: 50%;
    object-fit: cover;
}
.tweet-author-line,
.quoted-tweet-author {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.35rem;
    font-size: 1rem;
    line-height: 1.25;
    white-space: nowrap;
}
.tweet-author-line {
    margin-left: 2.875rem;
}
.tweet-author-line strong,
.quoted-tweet-author strong {
    flex: 0 0 auto;
    color: #0f1419;
    font-weight: 700;
}
.tweet-handle,
.tweet-separator,
.tweet-mockup time {
    min-width: 0;
    overflow: hidden;
    color: #536471;
    text-overflow: ellipsis;
}
.tweet-handle {
    /* Preserve room for descenders while retaining horizontal ellipsis clipping. */
    padding-bottom: 0.15em;
    margin-bottom: -0.15em;
}
.writing-post .tweet-copy {
    width: auto;
    max-width: none;
    margin: 0.2rem 0 0.7rem 2.875rem;
    color: #0f1419;
    font-family: inherit;
    font-size: 0.96875rem;
    font-weight: 400;
    line-height: 1.2;
}
.quoted-tweet {
    margin-left: 2.875rem;
    overflow: hidden;
    border: 1px solid #cfd9de;
    border-radius: 0.875rem;
}
.quoted-tweet-author {
    padding: 0.75rem 0.75rem 0;
}
.writing-post .quoted-tweet-avatar {
    flex: 0 0 auto;
    width: 1.5rem;
    height: 1.5rem;
    padding: 0;
    border-radius: 50%;
    object-fit: cover;
}
.verified-badge {
    display: block;
    flex: 0 0 auto;
    width: 1rem;
    height: 1rem;
    color: #1d9bf0;
    fill: currentColor;
}
.writing-post .quoted-tweet-copy {
    width: auto;
    max-width: none;
    margin: 0.25rem 0.75rem 0;
    color: #0f1419;
    font-family: inherit;
    font-size: 0.96875rem;
    font-weight: 400;
    line-height: 1.3;
}
.writing-post .quoted-tweet-copy + .quoted-tweet-copy {
    margin-top: 1.25rem;
}
.writing-post .quoted-tweet-media {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    margin-top: 0.5rem;
    border-radius: 0;
}

@media (prefers-color-scheme: dark) {
    .writing-post .tweet-mockup,
    .writing-post .tweet-mockup:hover {
        color: #e7e9ea;
        background: transparent;
    }
    .tweet-author-line strong,
    .quoted-tweet-author strong,
    .writing-post .tweet-copy,
    .writing-post .quoted-tweet-copy {
        color: #e7e9ea;
    }
    .tweet-handle,
    .tweet-separator,
    .tweet-mockup time {
        color: #71767b;
    }
    .quoted-tweet {
        border-color: #2f3336;
    }
}

.writing-post .post-embed-placeholder {
    padding: 2rem;
    border: 1px dashed rgba(var(--text-color), 0.2);
    border-radius: 0.5rem;
    color: rgba(var(--text-color), 0.5);
    text-align: center;
}
.writing-post .twitter-tweet {
    margin-left: auto !important;
    margin-right: auto !important;
}

.writing-post sup {
    font-family: 'Tiempos', serif;
    font-size: 0.75em;
    line-height: 0;
}
section.biography.writing-post sup a {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    text-decoration: none;
    opacity: 0.5;
    transition: color 0.2s ease, opacity 0.2s ease;
}
section.biography.writing-post sup a:hover {
    color: #0b3fce;
    text-decoration: none;
    opacity: 1;
}
@media (prefers-color-scheme: dark) {
    section.biography.writing-post sup a:hover {
        color: #0f43d2;
    }
}

.writing-post hr {
    border: none;
    border-top: 1px solid rgba(var(--text-color), 0.15);
}

.writing-index .writing-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}
section.biography.writing-index {
    margin-top: 0;
    margin-bottom: 0;
}
.writing-index .writing-list-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.writing-index .writing-card {
    display: flex;
    width: 100%;
    max-width: none;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    text-decoration: none;
}
.writing-index .writing-card:hover {
    text-decoration: none;
}
.writing-index .writing-card.has-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    border-radius: inherit;
}
.writing-index .writing-card.no-thumbnail {
    color: #fff;
    background: rgb(15, 10, 10);
}
.writing-index .writing-card.no-thumbnail:hover {
    color: #fff;
}
.writing-index .writing-card-title {
    max-width: 80%;
    color: inherit;
    font-family: 'Tiempos', serif;
    font-size: clamp(1.75rem, 5vw, 3rem);
    font-weight: 400;
    line-height: 1.25;
    text-align: center;
    text-wrap: balance;
}
.writing-index .writing-list-date {
    align-self: flex-start;
    font-family: "Lato", sans-serif;
    font-size: 0.96rem;
    color: rgba(var(--text-color), 0.5);
}
@media (prefers-color-scheme: dark) {
    .writing-index .writing-card-title {
        font-weight: 500;
    }
    .writing-index .writing-card.no-thumbnail {
        color: #000;
        background: rgb(230, 230, 230);
    }
    .writing-index .writing-card.no-thumbnail:hover {
        color: #000;
    }
}

@media (max-width: 700px) {
    .writing-post .tweet-mockup {
        padding: 1rem;
    }
    .tweet-author-line,
    .quoted-tweet-author {
        font-size: 0.95rem;
    }
    .quoted-tweet {
        margin-left: 0;
    }
    .quoted-tweet-author {
        padding: 1rem 1rem 0;
    }
    .writing-post .quoted-tweet-copy {
        margin-right: 1rem;
        margin-left: 1rem;
    }
    section.biography.writing-post {
        padding: 0;
    }
    .writing-post-content {
        padding-inline: 1rem;
    }
    .writing-post-header {
        padding-inline: 1.5rem;
    }
    .writing-post .writing-title {
        max-width: 100%;
        min-width: 0;
        font-size: 1.75rem;
    }
    .writing-post .writing-title-line {
        max-width: 100%;
    }
    .writing-post .writing-title-line > sup {
        position: static;
        vertical-align: super;
        line-height: 0;
        margin-left: 0.08em;
    }
    .writing-post h2 { font-size: 1.25rem; }
    .writing-post h3 { font-size: 1.3rem; }
    .writing-post h4 { font-size: 1.15rem; }
    .writing-post li {
        font-size: 1.25rem;
    }
}

nav.contact .nav-left li:nth-child(1) a::before,
.reveal-nav.reveal-nav-center .nav-center li:nth-child(1) a::before {
    background-image: url('../icons/email.svg');
}
nav.contact .nav-left li:nth-child(2) a::before,
.reveal-nav.reveal-nav-center .nav-center li:nth-child(2) a::before {
    background-image: url('../icons/instagram.svg');
}
nav.contact .nav-left li:nth-child(3) a::before,
.reveal-nav.reveal-nav-center .nav-center li:nth-child(3) a::before {
    background-image: url('../icons/threads.svg');
}

.external-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.external-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 33.333%;
    height: 225px;
    padding: 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    position: relative;
}
.external-links a img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.external-links a button {
    margin: 0.5rem 0.5rem 0 0;
    padding: 0.4rem;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    cursor: pointer;
    border: none;
    position: absolute;
    top: 0;
    right: 0;
}
.external-links a span {
    font-size: 0.86rem;
    font-weight: 700;
}
.nonlinear {
    background: #111;
    padding: 3rem !important;
}
.particular {
    background: #0b3fce;
}
.particular button {
    color: rgba(234,74,42, 0.85);
    background-color: rgba(234,74,42, 0.35);
}
.particular button span {
    filter: brightness(1.1);
}
.activematrix {
    background: #111;
    padding: 4rem !important;
}
.nonlinear button,
.activematrix button {
    color: rgba(var(--background-color), 0.75);
    background-color: rgba(var(--background-color), 0.15);
}

@media (prefers-color-scheme: dark) {
    .nonlinear,
    .nonlinear button,
    .activematrix,
    .activematrix button {
        filter: invert(1) brightness(0.92);
    }
}

.media-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.media-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 33.333%;
    /* height: 225px; */
    padding: 1rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    position: relative;
    background-color: var(--block-background-color);
    color: rgba(var(--text-color), 1);
}
.media-links a div {
    text-align: center;
    display: block;
}
.media-links a div span {
    color: rgba(var(--text-color), 0.5);
}

.reveal-nav {
    position: fixed;
    top: 1rem;
    background-color: rgba(224, 224, 224, 0.25);
    border-radius: 0.25rem;
    z-index: 1000;
    transform: translateY(calc(-100% - 1.1rem));
    overflow: hidden;
    transition: transform 0.3s ease-in-out, background-color 0.2s ease;
    /* backdrop-filter: blur(0.5rem) brightness(1.05); */
    backdrop-filter: blur(0.25rem) brightness(1.25);
    /* background-color: rgba(255, 255, 255, 0.35); */
}
.reveal-nav.reveal-nav-left {
    left: 2rem;
}
.reveal-nav.reveal-nav-right {
    right: 2rem;
}
.reveal-nav.reveal-nav-center {
    left: 50%;
    transform: translateX(-50%) translateY(calc(-100% - 1.1rem));
}
/* Portfolio view switcher; Information keeps its contact menu icons. */
.reveal-nav.reveal-nav-center.portfolio-view .nav-center a[href="/"]::before,
.portfolio-view-inline .nav-center a[href="/"]::before {
    background-image: url('../icons/scroll.svg');
}
.reveal-nav.reveal-nav-center.portfolio-view .nav-center a[href="/pan"]::before,
.portfolio-view-inline .nav-center a[href="/pan"]::before {
    background-image: url('../icons/pan.svg');
}

/* Keep the view switcher clear of the side menus on narrow screens. */
@media (max-width: 900px) {
    .reveal-nav.portfolio-view {
        display: none;
    }
}

.reveal-nav.reveal-nav-center.visible {
    transform: translateX(-50%) translateY(0);
}

.reveal-nav.visible {
    transform: translateY(0);
}

:is(.reveal-nav, .portfolio-view-inline) ul {
    border-radius: 0.25rem;
    padding: 0.25rem;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
    list-style: none;
    margin: 0;
    display: flex;
    flex-direction: row;
    gap: 0.2rem;
    /* background-color: transparent !important; */
    backdrop-filter: brightness(1.1);
}

:is(.reveal-nav, .portfolio-view-inline) ul li a.active, 
:is(.reveal-nav, .portfolio-view-inline) ul li a:hover {
    background-color: rgba(var(--background-color), 0.5);
    border-radius: calc(var(--border-radius) * 0.75);
    box-shadow: 0.125rem 0.125rem 0.25rem rgba(var(--text-color), 0.1);
}
:is(.reveal-nav, .portfolio-view-inline) ul li a {
    display: inline-block;
    margin: 0;
    /* padding: 0 0.4rem 0.2rem 0.2rem; */
    padding: 0.2rem 0.4rem 0.2rem 0.2rem;
    font-size: 0.86rem;
    text-decoration: none;
    color: rgba(var(--text-color), 1);
    font-weight: 700;
    cursor: pointer;
    position: relative;
    display: flex;
  align-items: center;
  justify-content: center;
}

:is(.reveal-nav, .portfolio-view-inline) a::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    position: relative;
    top: 0.5px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.reveal-nav.reveal-nav-right a {
    padding: 0.2rem;
}

@media (prefers-color-scheme: dark) {
    .reveal-nav,
    .portfolio-view-inline {
        background-color: rgba(35, 37, 41, 0.35);
        backdrop-filter: blur(0.25rem) brightness(2);
    }
    :is(.reveal-nav, .portfolio-view-inline) ul {
        backdrop-filter: brightness(1.3);
    }
    :is(.reveal-nav, .portfolio-view-inline) ul li a.active, 
    :is(.reveal-nav, .portfolio-view-inline) ul li a:hover {
        background-color: rgba(var(--background-color), 0.5);
        /* background-color: transparent !important;
        backdrop-filter: brightness(0.1); */
        border-radius: calc(var(--border-radius) * 0.75);
        box-shadow: -0.125rem -0.125rem 0.25rem rgba(var(--text-color), 0.1);
    }
    :is(.reveal-nav, .portfolio-view-inline) ul li a:hover {
        opacity: 1;
    }
    :is(.reveal-nav, .portfolio-view-inline) ul li a {
        color: rgba(var(--text-color), 1);
        opacity: 0.9;

    }
    :is(.reveal-nav, .portfolio-view-inline) a::before {
        filter: invert(1);
    }
}

/* .reveal-nav li:nth-child(1) a::before {
    background-image: url('../icons/featured.svg');
}
.reveal-nav li:nth-child(2) a::before {
    background-image: url('../icons/information.svg');
} */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 700px) {
    body {
        margin: 0.5rem;
    }
    .nav-right {
        display: none;
    }
    header h1 {
        font-size: 7.3vw;
        line-height: 1.36;
    }
    header a h1 br {
        display: none;
    }
    .reveal-nav,
    .portfolio-view-inline {
        display: none;
    }
    section a.block, section div.block, .caption, .title {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    section a.block, section div.block {
        flex-direction: column;
    }
    section a.block:has(> div:nth-child(2)) > div,
    section div.block:has(> div:nth-child(2)) > div {
        max-width: 100%;
    }

    section a.block:has(> div:nth-child(3)) > div,
    section div.block:has(> div:nth-child(3)) > div {
        max-width: 100%;
    }

    section a.block:has(> div:nth-child(4)) > div,
    section div.block:has(> div:nth-child(4)) > div {
        max-width: 100%;
    }

    section a.block:has(> div:nth-child(5)) > div,
    section div.block:has(> div:nth-child(5)) > div {
        max-width: 100%;
    }

    section a.block:has(> div:nth-child(7)) > div,
    section div.block:has(> div:nth-child(7)) > div {
        max-width: 100%;
    }

    section a.block:has(> div:nth-child(9)) > div,
    section div.block:has(> div:nth-child(9)) > div {
        max-width: 100%;
    }

    section.block .media {
        padding: var(--mobile-padding, 0);
    }

    section.block .post {
        padding: 1rem 1rem;
    }
    section.block .post p,
    .site-copyright {
        font-size: 1.2rem;
        line-height: 1.25;
        text-wrap: balance;
    }
    p.title {
        top: 1.2rem;
    }
    p.caption {
        bottom: 1.1rem;
    }

    section.biography p, section.biography a {
        font-size: 1.25rem;
    }
    .external-links {
        flex-direction: column;
    }
    .external-links a {
        width: 100%;
    }
    .information section a.block, .information section div.block {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    section.biography {
        margin: 1rem auto;
        padding: 0 1rem;
    }
    nav.contact a {
        font-size: 1rem;
    }
    nav.contact a::before {
        height: 24px;
        width: 24px;
    }

}

/* Permalink button revealed after hovering a project block (matches reveal-nav styling) */
.block-permalink {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    z-index: 10;
    padding: 0.25rem;
    background-color: rgba(224, 224, 224, 0.25);
    border-radius: 0.25rem;
    backdrop-filter: blur(0.25rem) brightness(1.25);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out,
        background-color 0.2s ease, backdrop-filter 0.2s ease;
}
.block-permalink.visible {
    opacity: 1;
    visibility: visible;
}
.block-permalink:hover {
    background-color: rgba(224, 224, 224, 0.35);
    backdrop-filter: blur(0.25rem) brightness(1.45);
}
.block-permalink a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 0.4rem;
    font-size: 0.86rem;
    text-decoration: none;
    color: rgba(var(--text-color), 1);
    font-weight: 700;
}
@media (prefers-color-scheme: dark) {
    .block-permalink {
        background-color: rgba(35, 37, 41, 0.35);
        backdrop-filter: blur(0.25rem) brightness(2);
    }
    .block-permalink:hover {
        background-color: rgba(35, 37, 41, 0.45);
        backdrop-filter: blur(0.25rem) brightness(2.5);
    }
    .block-permalink a {
        opacity: 0.9;
    }
    .block-permalink:hover a {
        opacity: 1;
    }
}
@media (max-width: 700px) {
    .block-permalink {
        display: none;
    }
}
/* Give the square Notarize pair equal display areas regardless of source resolution. */
@media (min-width: 701px) {
    section.block .post .media img[alt="Notarize Branding"] {
        width: auto;
        height: 80%;
        flex: 0 1 auto;
    }
}
@media (max-width: 700px) {
    section.block .post .media img[alt="Notarize Branding"] {
        width: 100% !important;
    }
}

/* Keep the secondary navigation compact before its labels start wrapping. */
nav .nav-label {
    font: inherit;
}
@media (min-width: 701px) and (max-width: 1000px) {
    nav .nav-right a {
        padding: 0.5rem;
        gap: 0;
    }
    nav .nav-right .nav-label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }
}

.site-copyright { padding: 0.75rem 1rem 0.25rem; opacity: 0.5; }
@media (prefers-color-scheme: dark) {
    .site-copyright { opacity: 0.25; }
}
