@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible+Mono:ital,wght@0,200..800;1,200..800&family=Atkinson+Hyperlegible:ital,wght@0,400;0,700;1,400;1,700&display=swap');
/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Typography and colors */
:root {
    /* --bg-color: #e8e6e1; */
    --bg-color: #e8e6e1;
    --text-color: #1a1a1a;
    --link-underline: #4a7c59;
}

body {
    font-family: 'Atkinson Hyperlegible', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Layout */
main {
    max-width: 600px;
    margin: 0 auto;
    padding: 80px 24px 120px;
}

/* Header */
header {
    margin-bottom: 60px;
}

h1 {
    font-size: 18px;
    font-weight: 600;
}

/* Sections */
section {
    margin-bottom: 60px;
}

section h2:first-child {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

section .see-all-link {
    font-family: 'Atkinson Hyperlegible Mono', monospace;
    text-transform: uppercase;
    font-size: 10px;
    font-weight: 400;
    background-color: #c9d7cd;
    padding: 2px 10px;
    border-radius: 30px;
    border-bottom: none;
}

.intro {
    margin-bottom: 80px;
}

.intro p {
    margin-bottom: 24px;
}

.intro p:last-child {
    margin-bottom: 0;
}

/* Section headings */
h2 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

/* Lists */
ul {
    list-style: none;
    margin-bottom: 40px;
}

li {
    margin-bottom: 8px;
}

li:last-child {
    margin-bottom: 0;
}

/* Links */
a {
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px solid var(--link-underline);
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.7;
}

.cta-link {
    border-bottom-width: 1px;
}

/* Container (alternate to main) */
.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 80px 24px 120px;
}

/* Breadcrumb navigation */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 40px;
}

.breadcrumbs a {
    border-bottom: none;
    opacity: 0.6;
    flex-shrink: 0;
    white-space: nowrap;
}

.breadcrumbs a:hover {
    opacity: 1;
}

.breadcrumbs span {
    opacity: 0.4;
    flex-shrink: 0;
    white-space: nowrap;
}

.breadcrumbs span:last-child {
    opacity: 1;
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Link cards (for section indexes) */
.links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.link-card {
    border: 1px solid rgba(26, 26, 26, 0.1);
    padding: 24px;
    transition: all 0.2s ease;
}

.link-card:hover {
    border-color: var(--link-underline);
    transform: translateY(-2px);
}

.link-card a {
    border-bottom: none;
}

.link-card h2 {
    margin-bottom: 8px;
}

.link-card p {
    opacity: 0.7;
    font-size: 15px;
}

.link-card img {
    width: 100%;
    height: auto;
    margin-bottom: 16px;
}

/* Design list with thumbnails */
.design-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.design-item {
    display: flex;
    align-items: center;
    gap: 24px;
    border-bottom: none;
    transition: opacity 0.2s ease;
}

.design-item:hover {
    opacity: 0.7;
}

.design-thumb {
    width: 140px;
    height: auto;
    border-radius: 20px;
    flex-shrink: 0;
    border: 1px solid #d3d1ce;
}

.design-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.design-content h2 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.design-content p {
    opacity: 0.7;
    font-size: 15px;
    line-height: 1.6;
}

.design-divider {
    height: 1px;
    background-color: #D3D1CE;
    margin: 0;
}

/* Essay pages */
.essay {
    margin-bottom: 80px;
}

.essay-date {
    font-size: 14px;
    opacity: 0.6;
    margin-bottom: 24px;
}

.essay h1 {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 32px;
}

.essay p {
    margin-bottom: 24px;
}

.essay img {
    width: 100%;
    height: auto;
    margin: 40px 0 0 0;
}

.essay figcaption {
    font-size: 12px;
    font-family: 'Atkinson Hyperlegible Mono', monospace;
    opacity: 0.6;
    text-align: center;
    margin-top: 12px;
    margin-bottom: 40px;
}

.essay .inset {
    background-color: #f9f7e8;
    border-left: 3px solid var(--link-underline);
    padding: 24px;
    margin: 40px 0;
}

.essay iframe {
    width: 100%;
    margin: 40px 0;
    border: none;
}

/* Project pages */
.project-header {
    margin-bottom: 48px;
}

.project-title {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 16px;
}

.project-subhead {
    font-size: 18px;
    opacity: 0.7;
    margin-bottom: 16px;
}

.project-meta {
    font-size: 14px;
    opacity: 0.6;
    margin-bottom: 8px;
}

.project-content p {
    margin-bottom: 24px;
}

.project-content img {
    width: 100%;
    height: auto;
    margin: 40px 0 0 0;
}

.project-content figcaption {
    font-size: 12px;
    font-family: 'Atkinson Hyperlegible Mono', monospace;
    opacity: 0.6;
    text-align: center;
    margin-top: 12px;
    margin-bottom: 40px;
}

.project-media,
.project-gallery {
    margin: 48px 0;
}

.project-media img,
.project-gallery img {
    width: 100%;
    height: auto;
    margin-bottom: 16px;
}

/* Video players */
custom-video-player,
video {
    width: 100%;
    margin: 40px 0 0 0;
}

/* Video grid for mobile-first vertical videos */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 48px 0;
}

.video-grid custom-video-player {
    margin: 0;
}

/* Intro section with headshot */
.intro-with-headshot {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 60px;
}

.intro-text {
    order: 2;
}

.headshot {
    order: 1;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
}

.headshot img {
    width: 100%;
    height: auto;
    border-radius: 50%;
}

/* Blog/Are.na styles */
.channel-header {
    margin-bottom: 48px;
}

.channel-title {
    font-size: 24px;
    margin-bottom: 16px;
}

.view-toggle {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.view-toggle button {
    background: none;
    border: 1px solid rgba(26, 26, 26, 0.2);
    padding: 8px 16px;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-toggle button.active,
.view-toggle button:hover {
    border-color: var(--link-underline);
    background-color: rgba(74, 124, 89, 0.1);
}

.channel-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 48px;
}

.load-more {
    display: block;
    margin: 0 auto;
    padding: 12px 24px;
    background: none;
    border: 1px solid rgba(26, 26, 26, 0.2);
    font-family: inherit;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.load-more:hover {
    border-color: var(--link-underline);
    background-color: rgba(74, 124, 89, 0.1);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 600px) {
    main,
    .container {
        padding: 60px 20px 80px;
    }

    header {
        margin-bottom: 48px;
    }

    section {
        margin-bottom: 48px;
    }

    .intro {
        margin-bottom: 60px;
    }

    .intro p {
        margin-bottom: 20px;
    }

    h2 {
        margin-bottom: 12px;
    }

    .essay h1,
    .project-title {
        font-size: 24px;
    }

    .breadcrumbs {
        font-size: 13px;
        margin-bottom: 32px;
    }

    .link-card {
        padding: 20px;
    }

    .video-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 400px) {
    body {
        font-size: 15px;
    }

    main,
    .container {
        padding: 48px 16px 64px;
    }

    .essay h1,
    .project-title {
        font-size: 22px;
    }
}
