:root {
    color-scheme: light;
    --background-color: #ffffff;
    --text-color: #000000;
    --muted-color: #6b7280;
    --border-color: rgba(0, 0, 0, 0.82);
    --button-border-color: rgba(0, 0, 0, 0.16);
    --button-bg-hover: rgba(0, 0, 0, 0.05);
    --button-bg-active: rgba(0, 0, 0, 0.1);
    --soft-line-color: rgba(0, 0, 0, 0.08);
    --surface-color: rgba(0, 0, 0, 0.03);
}

html.dark {
    color-scheme: dark;
    --background-color: #0f1115;
    --text-color: #f5f5f5;
    --muted-color: #a1a1aa;
    --border-color: rgba(255, 255, 255, 0.32);
    --button-border-color: rgba(255, 255, 255, 0.22);
    --button-bg-hover: rgba(255, 255, 255, 0.08);
    --button-bg-active: rgba(255, 255, 255, 0.14);
    --soft-line-color: rgba(255, 255, 255, 0.1);
    --surface-color: rgba(255, 255, 255, 0.04);
}

html {
    min-height: 100%;
    background-color: var(--background-color);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100%;
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: "Open Sans", sans-serif;
    font-weight: 300;
    line-height: 1.72;
    transition: background-color 0.25s ease, color 0.25s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

img {
    display: block;
    width: 100%;
    height: auto;
}

a,
a:visited,
a:active {
    color: var(--text-color);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.12em;
    transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

a:hover {
    color: var(--text-color);
    text-decoration: none;
}

button {
    font: inherit;
}

hr {
    border: 0;
    border-top: 1px solid var(--button-border-color);
}

.section-rule {
    margin: 0 0 1rem;
    opacity: 1;
}

.container {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.site-title {
    margin: 0 0 10px;
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.2;
    text-align: left;
}

.site-title a {
    text-decoration: none;
}

.site-title a:hover {
    text-decoration: underline;
}

.site-path {
    margin: 0 0 10px;
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.1;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.05em;
}

.site-path a {
    text-decoration: none;
}

.site-path a:hover {
    text-decoration: underline;
}

.site-path-line {
    display: block;
    max-width: 100%;
}

.site-path-current {
    font-weight: 500;
    overflow-wrap: anywhere;
}

body.project-detail .site-path {
    gap: 0.15rem;
}

body.project-detail .site-path-line:not(.site-path-current) {
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.15;
    color: var(--muted-color);
}

body.project-detail .site-path-current {
    font-size: clamp(1.85rem, 5vw, 2.5rem);
    line-height: 0.98;
    letter-spacing: -0.03em;
    color: var(--text-color);
}

html.js body.project-detail .site-path-current[data-typing-state="pending"] {
    visibility: hidden;
}

.header {
    border-bottom: solid 1px var(--border-color);
    padding: 1rem 0;
    padding-left: 0.5rem;
}

.menu {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 1.1rem;
}

.menu a[aria-current="page"] {
    text-decoration: none;
    font-weight: 500;
}

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

.eyebrow {
    margin: 0 0 0.85rem;
    color: var(--muted-color);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.page-summary,
.project-summary {
    margin: 1.25rem 0 0;
    font-size: 1.05rem;
    color: var(--muted-color);
}

.project-summary-secondary {
    margin: 1rem 0 0;
    color: var(--muted-color);
}

.projects-home .page-intro {
    padding: 1rem 0 0.8rem;
    border-bottom: 1px solid var(--soft-line-color);
}

.projects-home .page-summary {
    margin-top: 0;
}

.projects-home .page-summary-secondary {
    margin-top: 1rem;
}

.project-list {
    margin: 0;
    padding: 0.85rem 0 0;
    list-style: none;
}

.project-list-item {
    border-bottom: 1px solid var(--soft-line-color);
}

.project-link {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.2rem;
    align-items: start;
    padding: 1.45rem 0;
    text-decoration: none !important;
}

.project-list-item:first-child .project-link {
    padding-top: 1.05rem;
}

.project-link:hover {
    background: transparent;
}

.project-link-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.45rem;
    margin-bottom: 0.45rem;
}

.project-link-copy h2 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 500;
    line-height: 1.2;
}

.project-link-status {
    color: var(--muted-color);
    font-size: 0.92rem;
    line-height: 1.2;
}

.project-link-copy p {
    margin: 0;
    color: var(--muted-color);
}

.project-link-arrow {
    align-self: center;
    color: var(--muted-color);
    font-size: 1.1rem;
    transition: transform 0.25s ease, color 0.25s ease;
}

.project-link:hover .project-link-arrow,
.project-link:focus-visible .project-link-arrow {
    transform: translateX(4px);
    color: var(--text-color);
}

.project-link:hover .project-link-copy h2,
.project-link:focus-visible .project-link-copy h2 {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.12em;
}

.project-header {
    padding-top: 1rem;
    padding-bottom: 1.8rem;
    border-bottom: 1px solid var(--soft-line-color);
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 1rem;
    color: var(--muted-color);
    font-size: 0.86rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.project-meta span {
    position: relative;
}

.project-meta span + span::before {
    content: "/";
    position: absolute;
    left: -0.55rem;
    color: var(--button-border-color);
}

.project-title {
    margin: 0;
    max-width: 12ch;
    font-size: clamp(2.45rem, 5.5vw, 4.5rem);
    font-weight: 500;
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.project-note {
    margin: 1.4rem 0 0;
    padding-left: 1rem;
    border-left: 1px solid var(--border-color);
    color: var(--muted-color);
}

.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem 1.2rem;
    margin: 1.4rem 0 0;
    padding: 0;
    list-style: none;
}

.project-links a {
    text-decoration: none;
}

.project-links a:hover {
    text-decoration: underline;
}

.project-links a::after {
    content: " \2197";
}

.project-figure {
    margin: 2rem 0 0;
}

.project-figure img {
    background: var(--surface-color);
}

.project-figure--hero img {
    border-top: 1px solid var(--soft-line-color);
    border-bottom: 1px solid var(--soft-line-color);
}

.project-header + .project-figure--hero img {
    border-top: 0;
}

.project-figure--support {
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
}

.photo-caption {
    margin: 0;
    padding: 0.6rem 0 0;
    color: var(--muted-color);
    font-size: 0.85rem;
    text-align: right;
}

.project-article {
    max-width: 46rem;
    margin: 0 auto;
    padding-top: 2.4rem;
}

.project-article section + section {
    margin-top: 3rem;
}

.project-article h2 {
    margin: 0 0 1rem;
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1.15;
}

.project-article h3 {
    margin: 1.5rem 0 0.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.35;
}

.project-article p {
    margin: 0;
}

.project-article p + p,
.project-article p + ul,
.project-article p + ol,
.project-article p + .table-wrap,
.project-article p + blockquote,
.project-article ul + p,
.project-article ol + p,
.project-article blockquote + p,
.project-article .table-wrap + p {
    margin-top: 1rem;
}

.project-article ul,
.project-article ol {
    margin: 1rem 0 0;
    padding-left: 1.35rem;
}

.project-article li + li {
    margin-top: 0.45rem;
}

.project-article blockquote {
    margin: 1rem 0 0;
    padding-left: 1rem;
    border-left: 1px solid var(--button-border-color);
    color: var(--muted-color);
}

.project-article hr {
    margin: 2.25rem 0;
}

.table-wrap {
    margin-top: 1.25rem;
    overflow-x: auto;
}

.project-article table {
    width: 100%;
    border-collapse: collapse;
    min-width: 34rem;
}

.project-article th,
.project-article td {
    padding: 0.9rem 0;
    border-top: 1px solid var(--button-border-color);
    vertical-align: top;
    text-align: left;
}

.project-article th {
    color: var(--muted-color);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.project-article td {
    padding-right: 1rem;
}

footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-bottom: 1rem;
}

.footer-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.my-copyright {
    order: 1;
    text-align: left;
    color: var(--muted-color);
    font-size: small;
    margin: 0.5rem;
}

.my-copyright p {
    margin: 0;
}

.footer-nav {
    order: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0 0.5rem;
    font-size: small;
}

.footer-nav a {
    color: var(--muted-color);
    text-decoration: none;
}

.footer-nav a:hover {
    text-decoration: underline;
}

.footername {
    text-align: right;
    font-size: 1.25rem;
    line-height: normal;
}

.footername a {
    text-decoration: none !important;
}

html.js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

html.js [data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    html.js [data-reveal],
    html.js [data-reveal].is-visible {
        opacity: 1;
        transform: none;
        transition: none;
    }

    body,
    a,
    .project-link-arrow {
        transition: none;
    }
}

@media screen and (max-width: 820px) {
    .container {
        max-width: 100%;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .header {
        padding-left: 0;
    }

    .project-link {
        grid-template-columns: 1fr auto;
        gap: 0.8rem;
    }

    .project-link-arrow {
        align-self: start;
        margin-top: 0.2rem;
    }
}

@media screen and (max-width: 600px) {
    .menu {
        flex-direction: column;
        gap: 10px;
    }

    .site-path {
        font-size: clamp(1.75rem, 8vw, 2rem);
    }

    .page-title {
        max-width: none;
    }

    .project-title {
        max-width: none;
        font-size: clamp(2.25rem, 12vw, 3.2rem);
    }

    .project-link {
        grid-template-columns: 1fr;
    }

    .project-link-arrow {
        display: none;
    }

    .project-article table {
        min-width: 31rem;
    }

    footer {
        gap: 1rem;
    }
}
