/* =============================================================================
   1. CSS CUSTOM PROPERTIES
   ============================================================================= */

:root {
    /* Colours */
    --color-white: #ffffff;
    --color-bg-primary: #ffffff;
    --color-bg-secondary: #f0efed;
    --color-accent: #7a6e65;
    --color-text-primary: #1a1a1a;
    --color-text-secondary: #6a5f56;
    /* Borders and dividers */
    --color-border: #e0e0e0;

    /* Fonts */
    --font-serif: 'Cormorant Garamond', Ubuntu, sans-serif;
    --font-sans-primary: 'Montserrat', sans-serif;
    --font-sans-secondary: 'Ubuntu', sans-serif;

    /* Typographic scale */
    --text-xs: 13px;
    --text-sm: 15px;
    --text-base: 18px;
    --text-md: 20px;
    --text-lg: 26px;
    --text-xl: 34px;

    /* Line heights */
    --leading-tight: 1.2;
    --leading-body: 1.6;
    --leading-loose: 1.8;

    /* Spacing */
    --max-width: 1200px;
    --max-width-wide: 1400px;
    /* Reading measure — single source of truth for any longform prose container
       (home intro, studio intro, essays, articles, video descriptions, contact
       copy, section indexes). Change here to widen/narrow every reading column. */
    --max-width-reading: 1040px;
    --page-padding: 40px;
}


/* =============================================================================
   2. CSS RESET AND BASE STYLES
   ============================================================================= */

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

html {
    -webkit-text-size-adjust: 100%;
}

img,
video {
    display: block;
    max-width: 100%;
}

button,
input,
textarea,
select {
    font: inherit;
}

a {
    color: inherit;
}


/* =============================================================================
   4. TYPOGRAPHY
   ============================================================================= */

body {
    font-family: var(--font-sans-secondary);
    font-size: 16px;
    font-weight: 300;
    line-height: var(--leading-loose);
    color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans-primary);
    line-height: var(--leading-tight);
    color: var(--color-text-primary);
}

blockquote {
    font-family: var(--font-serif);
    font-size: var(--text-md);
    line-height: var(--leading-loose);
}

p {
    margin-bottom: 0;
}


/* =============================================================================
   5. LAYOUT AND GRID
   ============================================================================= */

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--page-padding);
}

.container--wide {
    max-width: var(--max-width-wide);
    margin: 0 auto;
    padding: 0 var(--page-padding);
}


/* =============================================================================
   6. NAVIGATION AND HEADER
   ============================================================================= */

header {
    background-color: var(--color-bg-primary);
    padding: 28px 0;
}

.header-container {
    max-width: var(--max-width-wide);
    margin: 0 auto;
    padding: 0 var(--page-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Artist name in header — serif instance */
.site-name {
    font-family: var(--font-sans-primary);
    font-size: var(--text-xl);
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-primary);
    text-decoration: none;
}

.site-name:hover {
    color: var(--color-accent);
}

nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

nav a {
    font-family: var(--font-sans-primary);
    font-size: var(--text-sm);
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

nav a:hover {
    color: var(--color-accent);
}

nav a[aria-current="page"] {
    color: var(--color-accent);
    border-bottom: 1px solid var(--color-accent);
    padding-bottom: 1px;
}

/* Hamburger — hidden on desktop */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 1px;
    background-color: var(--color-text-primary);
    transition: all 0.2s ease;
}

/* Footer */
footer {
    background-color: var(--color-bg-secondary);
    padding: 40px 0;
    margin-top: 120px;
}

.footer-container {
    max-width: var(--max-width-wide);
    margin: 0 auto;
    padding: 0 var(--page-padding);
    text-align: center;
}

.footer-container p {
    font-family: var(--font-sans-secondary);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}


/* =============================================================================
   7. HOMEPAGE AND CAROUSEL
   ============================================================================= */

.homepage {
    margin: 0;
    padding: 0;
}

/* Carousel */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 70vh;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    animation: carousel-fade 25s infinite;
}

.carousel-slide:nth-child(1) { animation-delay: 0s; }
.carousel-slide:nth-child(2) { animation-delay: 5s; }
.carousel-slide:nth-child(3) { animation-delay: 10s; }
.carousel-slide:nth-child(4) { animation-delay: 15s; }
.carousel-slide:nth-child(5) { animation-delay: 20s; }

@keyframes carousel-fade {
    0%   { opacity: 0; }
    4%   { opacity: 1; }
    20%  { opacity: 1; }
    24%  { opacity: 0; }
    100% { opacity: 0; }
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Artist name display beneath carousel — sans-serif display instance */
.audience-pathways {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 80px var(--page-padding);
    text-align: center;
}

.audience-pathways h2 {
    font-family: var(--font-sans-primary);
    font-size: var(--text-xl);
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-primary);
    margin-bottom: 16px;
}

.audience-pathways > p {
    font-family: var(--font-sans-secondary);
    font-size: var(--text-md);
    color: var(--color-text-secondary);
    margin-bottom: 64px;
}

.home-intro {
    max-width: var(--max-width-reading);
    margin: 0 auto 64px;
}

.home-intro p {
    margin-bottom: 1.2em;
}

.home-intro hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 2em auto;
    max-width: 120px;
}

.pathways {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 960px;
    margin: 0 auto;
}

.pathway {
    padding: 40px 30px;
    background-color: var(--color-bg-secondary);
    text-decoration: none;
    color: var(--color-text-primary);
    transition: opacity 0.2s ease;
}

.pathway:hover {
    opacity: 0.75;
}

.pathway h3 {
    font-family: var(--font-sans-primary);
    font-size: var(--text-base);
    font-weight: 400;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.pathway p {
    font-family: var(--font-sans-secondary);
    color: var(--color-text-secondary);
}


/* =============================================================================
   8. PORTFOLIO GRID AND CARDS
   ============================================================================= */

.portfolio-page {
    max-width: var(--max-width-wide);
    margin: 0 auto;
    padding: 80px var(--page-padding);
}

.portfolio-page h1 {
    font-family: var(--font-sans-primary);
    font-size: var(--text-xl);
    font-weight: 400;
    margin-bottom: 60px;
    text-align: center;
}

/* Filters */
.filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 0;
    margin-bottom: 56px;
}

.filter-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
}

/* Vertical rule separator between groups */
.filter-group + .filter-group {
    padding-left: 48px;
    margin-left: 48px;
    border-left: 1px solid #d4d0cd;
    /* Constrain rule height by using line-height on the group */
}

.filter-option {
    font-family: var(--font-sans-primary);
    font-size: var(--text-sm);
    font-weight: 400;
    color: var(--color-text-secondary);
    background: none;
    border: none;
    padding: 0;
    margin-right: 20px;
    cursor: pointer;
    text-transform: capitalize;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.filter-option:last-child {
    margin-right: 0;
}

.filter-option:hover {
    opacity: 0.6;
}

.filter-option.active {
    color: var(--color-accent);
    border-bottom: 1px solid var(--color-accent);
    padding-bottom: 1px;
}

/* Portfolio grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

/* Card */
.work-card {
    position: relative;
    background-color: var(--color-bg-primary);
}

.work-card a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.work-card .card-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 5;
}

.work-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s ease;
}

.work-card a:hover img {
    opacity: 0.92;
}

/* Card caption */
.card-caption {
    padding: 12px 0 0;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.card-caption-body {
    flex: 1;
    min-width: 0;
}

.card-caption h3 {
    font-family: var(--font-sans-primary);
    font-size: var(--text-base);
    font-weight: 400;
    line-height: var(--leading-tight);
    color: var(--color-text-primary);
    margin-bottom: 4px;
}

.card-caption h3 a {
    text-decoration: none;
    color: inherit;
}

.card-medium,
.card-dimensions {
    font-family: var(--font-sans-secondary);
    font-size: var(--text-sm);
    font-weight: 400;
    color: var(--color-text-secondary);
    line-height: var(--leading-body);
}

/* Like button + status dot stack in top-right corner of card */
.card-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: transparent;
    margin-top: 2px;
}

.status-dot--available { background-color: #7fa864; }
.status-dot--reserved  { background-color: #8e7965; }
.status-dot--sold      { background-color: #b35454; }

.like-btn {
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--color-border);
    transition: color 0.15s ease;
    margin-top: 8px;
}

.like-btn:hover {
    color: var(--color-text-secondary);
}

.like-btn.liked {
    color: var(--color-accent);
}

.like-icon {
    display: block;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.like-btn.liked .like-icon {
    fill: currentColor;
}

/* Site-wide selection strip — sits directly below content, separated
   by a subtle rule. Page containers collapse their bottom padding when
   the strip is visible (see rules below) so the strip reads as part of
   the content's tail rather than a detached footer island. */
#selection-strip {
    display: none;
    max-width: var(--max-width-wide);
    margin: 0 auto;
    padding: 12px var(--page-padding) 16px;
    text-align: right;
    border-top: 1px solid var(--color-border);
}

/* Collapse bottom padding of listing/index page containers when the
   strip is visible, so the rule sits directly after the last content
   element. Single-page layouts (essay/article/video/portfolio) are
   excluded — they host the strip inside their bottom back-nav via the
   .page-end-nav teleport below. Contact is deliberately excluded too,
   since the strip is hidden there. */
body:has(#selection-strip.visible) .portfolio-page,
body:has(#selection-strip.visible) .studio-index,
body:has(#selection-strip.visible) .studio-subsection,
body:has(#selection-strip.visible) .taxonomy-page,
body:has(#selection-strip.visible) .pricelist-page,
body:has(#selection-strip.visible) .not-found-page {
    padding-bottom: 24px;
}

/* Enquire link makes no sense on the contact page — hide the strip. */
body:has(.contact-page) #selection-strip {
    display: none;
}

/* Single-page layouts host the strip inside their bottom back-nav row
   (marked with .page-end-nav) so it shares a line with the back link.
   Reset the site-wide strip styles once it's inside the nav. */
.page-end-nav #selection-strip {
    margin: 0;
    padding: 0;
    max-width: none;
    border-top: none;
    text-align: right;
}

.page-end-nav #selection-strip.visible {
    display: inline-block;
}

#selection-strip.visible {
    display: block;
}

#selection-strip-link {
    display: inline-block;
    padding: 4px 8px;
    text-decoration: none;
    font-family: var(--font-sans-primary);
    font-size: var(--text-xs);
    font-weight: 400;
    letter-spacing: 0.08em;
    color: var(--color-text-secondary);
    transition: color 0.2s ease;
}

#selection-strip-link:hover {
    color: var(--color-accent);
}


/* =============================================================================
   9. PORTFOLIO SINGLE PAGE
   ============================================================================= */

.work-page {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 80px var(--page-padding);
}

.work-image {
    margin-bottom: 48px;
}

.work-image img {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Thumbnail strip — hero swaps on click, arrows cycle */
.work-thumbstrip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 16px 0 48px;
}

.work-thumbstrip__list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.work-thumb {
    flex: 0 0 auto;
    width: 60px;
    height: 60px;
    padding: 0;
    border: 1px solid var(--color-border);
    background: var(--color-bg-primary);
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.15s ease, border-color 0.15s ease;
}

.work-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.work-thumb:hover {
    opacity: 1;
}

.work-thumb:focus-visible {
    opacity: 1;
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.work-thumb.is-active {
    opacity: 1;
    border-color: var(--color-accent);
}

.work-thumbstrip__arrow {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--color-text-secondary);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.15s ease;
}

.work-thumbstrip__arrow:hover {
    color: var(--color-text-primary);
}

.work-thumbstrip__arrow:focus-visible {
    color: var(--color-text-primary);
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Caption row: metadata on the left, like-button balanced on the right */
.caption-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.caption-block {
    position: relative;
    max-width: 560px;
    flex: 1;
    min-width: 0;
}

.caption-actions {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.like-btn--caption {
    margin-top: 0;
    margin-right: -19px;
    padding: 8px;
    color: var(--color-text-secondary);
    opacity: 0.45;
    transition: opacity 0.15s ease, color 0.15s ease;
}

.like-btn--caption:hover {
    opacity: 1;
    color: var(--color-text-primary);
}

.like-btn--caption .like-icon {
    width: 32px;
    height: 32px;
}

.status-dot--caption {
    width: 10px;
    height: 10px;
    margin-top: 0;
}

.caption-status-line {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.caption-status-word {
    white-space: nowrap;
    font-family: var(--font-sans-secondary);
    font-size: var(--text-sm);
    font-weight: 400;
    color: var(--color-text-secondary);
    line-height: 1;
}

.caption-block h2 {
    font-family: var(--font-sans-primary);
    font-size: var(--text-lg);
    font-weight: 400;
    line-height: var(--leading-tight);
    color: var(--color-text-primary);
    margin-bottom: 16px;
}

.caption-medium,
.caption-substrate,
.caption-dimensions,
.caption-status {
    font-family: var(--font-sans-secondary);
    font-size: var(--text-sm);
    font-weight: 400;
    color: var(--color-text-secondary);
    line-height: var(--leading-body);
}

/* Artist statement / body text on single artwork page */
.work-body {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
}


/* Work / article back navigation */
.work-nav {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
}

.work-nav a {
    font-family: var(--font-sans-primary);
    font-size: var(--text-sm);
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.work-nav a:hover {
    color: var(--color-text-primary);
}


/* =============================================================================
   10. STUDIO SECTION
   ============================================================================= */

.studio-index {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 80px var(--page-padding);
}

.studio-index h1 {
    font-size: var(--text-xl);
    font-weight: 400;
    margin-bottom: 40px;
    text-align: center;
}

.studio-intro {
    max-width: var(--max-width-reading);
    margin: 0 auto 80px;
}

.studio-intro p {
    margin-bottom: 1.2em;
}

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

/* Studio overview groups: Essays / Practice / Documents on /studio/. */
.studio-section {
    max-width: var(--max-width-reading);
    margin: 0 auto;
    padding: 56px 0;
}

.studio-section + .studio-section {
    border-top: 1px solid var(--color-border);
}

.studio-section:first-of-type {
    padding-top: 0;
}

.studio-section:last-of-type {
    padding-bottom: 0;
}

.studio-section__heading {
    font-family: var(--font-sans-primary);
    font-size: var(--text-lg);
    font-weight: 400;
    color: var(--color-text-primary);
    margin: 0 0 48px;
}

.studio-subsection {
    max-width: 960px;
    margin: 0 auto;
    padding: 80px var(--page-padding);
}

.studio-subsection h1 {
    font-size: var(--text-xl);
    font-weight: 400;
    margin-bottom: 60px;
    text-align: center;
}

.essay-list,
.article-list,
.video-list {
    max-width: var(--max-width-reading);
    margin: 0 auto;
}

.essay-preview,
.article-preview,
.video-preview {
    margin-bottom: 56px;
}

.essay-preview:last-child,
.article-preview:last-child,
.video-preview:last-child {
    margin-bottom: 0;
}

.essay-preview h2, .essay-preview h3,
.article-preview h2, .article-preview h3,
.video-preview h2, .video-preview h3 {
    font-family: var(--font-sans-primary);
    font-size: var(--text-md);
    font-weight: 400;
    margin-bottom: 8px;
}

.essay-preview h2 a, .essay-preview h3 a,
.article-preview h2 a, .article-preview h3 a,
.video-preview h2 a, .video-preview h3 a {
    text-decoration: none;
    color: var(--color-text-primary);
    transition: color 0.2s ease;
}

.essay-preview h2 a:hover, .essay-preview h3 a:hover,
.article-preview h2 a:hover, .article-preview h3 a:hover,
.video-preview h2 a:hover, .video-preview h3 a:hover {
    color: var(--color-accent);
}

.essay-preview p,
.article-preview p,
.video-preview p {
    font-family: var(--font-sans-secondary);
    font-size: var(--text-sm);
    line-height: var(--leading-loose);
    color: var(--color-text-secondary);
}

/* Practice and essay lists: thumbnail + text row */
.article-preview--with-thumb,
.essay-preview--with-thumb {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.article-thumb-link {
    flex-shrink: 0;
    display: block;
}

.article-thumb {
    height: 80px;
    width: auto;
    display: block;
}

.article-preview__body {
    flex: 1;
    min-width: 0;
}

.essay-page,
.article-page,
.video-page {
    max-width: var(--max-width-reading);
    margin: 0 auto;
    padding: 80px var(--page-padding);
}

.essay-page h1,
.article-page h1,
.video-page h1 {
    font-family: var(--font-sans-primary);
    font-size: var(--text-xl);
    font-weight: 400;
    margin-bottom: 12px;
}

/* ── Longform prose — shared rules (typography inherits from body) ── */
.essay-content,
.article-content,
.video-description {
    margin-bottom: 88px;
}

.essay-content p,
.article-content p,
.video-description p,
.work-body p,
.collated-block__prose p {
    margin-bottom: 20px;
}

.essay-content p:last-child,
.article-content p:last-child,
.video-description p:last-child,
.work-body p:last-child,
.collated-block__prose p:last-child {
    margin-bottom: 0;
}

.essay-content h2,
.article-content h2 {
    font-family: var(--font-sans-primary);
    font-size: var(--text-md);
    font-weight: 400;
    margin: 40px 0 16px;
}

/* Blockquotes in all prose containers */
.essay-content blockquote,
.article-content blockquote,
.work-body blockquote,
.collated-block__prose blockquote {
    font-family: var(--font-serif);
    font-size: var(--text-md);
    line-height: var(--leading-loose);
    margin: 40px 0;
    color: var(--color-text-secondary);
}

/* Blockquote citations — italic-only last paragraph */
.essay-content blockquote p > em:only-child,
.article-content blockquote p > em:only-child,
.work-body blockquote p > em:only-child,
.collated-block__prose blockquote p > em:only-child {
    font-size: var(--text-sm);
    line-height: 1.4;
    display: block;
    margin-top: 12px;
}

/* Article inline images — full column width with spacing */
/* Excludes floated images (handled by JS-assigned classes) */
.article-content p:has(> img):not(.img-float--left):not(.img-float--right),
.essay-content   p:has(> img):not(.img-float--left):not(.img-float--right) {
    margin-top: 48px;
    margin-bottom: 0;
}

.article-content img,
.essay-content img {
    width: 100%;
}

/* Italic-only paragraphs treated as image captions */
.article-content p:has(> em:only-child),
.essay-content   p:has(> em:only-child) {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    margin-top: 10px;
    margin-bottom: 40px;
}

/* Article images: small editorial thumbnails.
   On desktop, JS rearranges images into an .article-grid__images column;
   on mobile (no JS rearrangement), the float keeps thumbnails next to text. */
.article-figure {
    float: left;
    clear: left;
    max-width: 220px;
    margin: 8px 32px 24px 0;
}

/* Two-column independent flow (desktop only).
   Images and prose flow in separate columns; neither column wraps under the other. */
@media (min-width: 768px) {
    .article-grid {
        display: grid;
        grid-template-columns: 220px 1fr;
        column-gap: 40px;
        align-items: start;
    }

    .article-grid__images > .article-figure {
        float: none;
        clear: none;
        max-width: 100%;
        margin: 0 0 32px 0;
    }

    .article-grid__text > * {
        min-width: 0;
    }
}

.article-figure img {
    width: 100%;
    height: auto;
    display: block;
    cursor: zoom-in;
    transition: opacity 0.15s ease, box-shadow 0.15s ease;
}

.article-figure img:hover,
.article-figure img:focus-visible {
    opacity: 0.88;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
    outline: none;
}

/* Archival images (low-resolution masters): keep clickable but no hover affordance,
   since clicking won't reveal additional detail. */
.article-figure img[data-archival="true"] {
    cursor: default;
}

.article-figure img[data-archival="true"]:hover,
.article-figure img[data-archival="true"]:focus-visible {
    opacity: 1;
    box-shadow: none;
}

@media (max-width: 768px) {
    .article-figure {
        float: none;
        max-width: 100%;
        margin: 32px 0;
    }
}

.article-figure p {
    margin: 0;
}

.article-figure figcaption {
    margin-top: 8px;
    font-size: var(--text-sm);
    font-style: italic;
    color: var(--color-text-secondary);
    line-height: var(--leading-body);
}


/* Clearfix so article/essay content expands past floated children */
.article-content::after,
.essay-content::after {
    content: '';
    display: table;
    clear: both;
}

/* Image lightbox: opens on click of any .article-figure img.
   Sized to ~85% of viewport with absolute caps so 4K monitors don't upscale. */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(20, 20, 20, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 32px;
}

.lightbox[hidden] {
    display: none;
}

.lightbox__figure {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    max-width: min(90vw, 1400px);
}

.lightbox__image {
    max-width: 100%;
    max-height: min(80vh, 1400px);
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.lightbox__caption {
    color: rgba(255, 255, 255, 0.92);
    font-style: italic;
    font-size: var(--text-sm);
    text-align: center;
    max-width: 600px;
    line-height: var(--leading-body);
    margin: 0;
}

.lightbox__caption[hidden] {
    display: none;
}

.lightbox__archival {
    color: rgba(255, 255, 255, 0.65);
    font-size: var(--text-xs, 0.8rem);
    text-align: center;
    margin: 0;
}

.lightbox__archival[hidden] {
    display: none;
}

.lightbox__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox__close:hover,
.lightbox__close:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    outline: none;
}

/* Callout / pull-quote block */
.callout {
    margin: 40px 0;
    padding: 20px 28px;
    border-left: 2px solid var(--color-accent);
    background-color: var(--color-bg-secondary);
    font-family: var(--font-sans-secondary);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: var(--leading-loose);
}

.callout p {
    margin-bottom: 0;
}

/* ── Essay header with optional thumbnail ── */
.essay-header--with-image {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 40px;
}

.essay-header__image {
    max-height: 150px;
    width: auto;
    flex-shrink: 0;
    display: block;
}

.essay-header__text {
    flex: 1;
    min-width: 0;
}

.essay-subtitle {
    font-family: var(--font-sans-secondary);
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    margin-top: 8px;
    margin-bottom: 0;
    font-style: italic;
}

@media (max-width: 640px) {
    .essay-header--with-image {
        flex-direction: column;
    }
}

.essay-nav,
.article-nav,
.video-nav {
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.essay-nav--top,
.article-nav--top,
.video-nav--top,
.work-nav--top {
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 20px;
    margin-bottom: 48px;
    border-top: none;
    border-bottom: 1px solid var(--color-border);
}

.essay-nav a,
.article-nav a,
.video-nav a {
    font-family: var(--font-sans-secondary);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.essay-nav a:hover,
.article-nav a:hover,
.video-nav a:hover {
    color: var(--color-text-primary);
}

.video-embed {
    margin-bottom: 40px;
}

.youtube-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.youtube-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


/* =============================================================================
   10b. COLLATED ESSAY LAYOUT
   ============================================================================= */

.collated-essay {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 80px var(--page-padding);
}

.collated-essay__title {
    font-family: var(--font-sans-primary);
    font-size: var(--text-xl);
    font-weight: 400;
    margin-bottom: 80px;
}

.collated-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
    margin-bottom: 80px;
}

/* Reversed: prose left, image right */
.collated-block--reversed {
    direction: rtl;
}

.collated-block--reversed > * {
    direction: ltr;
}

.collated-block__image img {
    width: 100%;
    display: block;
}

.collated-block__caption {
    margin-top: 14px;
}

.collated-caption__title {
    font-family: var(--font-sans-primary);
    font-size: var(--text-sm);
    font-weight: 400;
    color: var(--color-text-primary);
    margin-bottom: 4px;
}

.collated-caption__meta {
    font-family: var(--font-sans-secondary);
    font-size: var(--text-base);
    font-weight: 400;
    color: var(--color-text-secondary);
    line-height: var(--leading-body);
}

.collated-block__prose {
    padding-top: 8px;
}


.collated-rule {
    border: none;
    border-top: 1px solid var(--color-bg-secondary);
    margin: 0 0 80px;
}

/* =============================================================================
   12. CONTACT PAGE
   ============================================================================= */

.contact-page {
    max-width: var(--max-width-reading);
    margin: 0 auto;
    padding: 80px var(--page-padding);
}

.contact-page h1 {
    font-size: var(--text-xl);
    font-weight: 400;
    margin-bottom: 56px;
    text-align: center;
}

.contact-form-container {
    max-width: 560px;
    margin: 0 auto;
}

.contact-note {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    margin-bottom: 32px;
    line-height: var(--leading-body);
}

/* Selected-artworks panel on contact page */
#liked-works-panel {
    margin-bottom: 40px;
    padding: 20px 22px;
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
}

.liked-works-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.liked-works-header h2 {
    font-family: var(--font-sans-primary);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
}

.liked-works-add {
    font-size: var(--text-xs);
    color: var(--color-accent);
    text-decoration: none;
}
.liked-works-add:hover { text-decoration: underline; }

.liked-works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 100px));
    gap: 10px;
}

.liked-thumb {
    position: relative;
    width: 100px;
    background-color: var(--color-bg-primary);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
}

.liked-thumb-link {
    display: block;
    color: inherit;
    text-decoration: none;
}
.liked-thumb-link:hover .liked-thumb-title { text-decoration: underline; }
.liked-thumb-link:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.liked-thumb img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    display: block;
}

.liked-thumb-title {
    font-family: var(--font-sans-secondary);
    font-size: 11px;
    color: var(--color-text-primary);
    padding: 4px 6px;
    line-height: 1.25;
}

.liked-thumb-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: none;
    background-color: rgba(26, 26, 26, 0.72);
    color: var(--color-white);
    font-size: 11px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.liked-thumb-remove:hover { background-color: var(--color-accent); }

.liked-thumb.is-excluded { opacity: 0.35; filter: grayscale(0.9); }
.liked-thumb.is-excluded .liked-thumb-title { text-decoration: line-through; }

.required-note {
    font-family: var(--font-sans-secondary);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    margin-bottom: 32px;
}

.contact-form-container label {
    display: block;
    margin-bottom: 24px;
    font-family: var(--font-sans-secondary);
    font-size: var(--text-base);
    font-weight: 400;
    color: var(--color-text-primary);
}

.contact-form-container input,
.contact-form-container textarea {
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    border: 1px solid var(--color-border);
    border-radius: 0;
    font-family: var(--font-sans-secondary);
    font-size: var(--text-base);
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    transition: border-color 0.2s ease;
}

.contact-form-container input:focus,
.contact-form-container textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 1px var(--color-accent);
}

.contact-form-container textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form-container small {
    display: block;
    margin-top: 4px;
    font-size: var(--text-xs);
    color: var(--color-text-secondary);
}

.contact-form-container .required {
    color: var(--color-accent);
}

.cf-turnstile {
    margin-bottom: 32px;
}

.contact-form-container .button-container {
    text-align: center;
    margin-top: 40px;
}

.contact-form-container button {
    font-family: var(--font-sans-primary);
    font-size: var(--text-sm);
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background-color: var(--color-accent);
    color: var(--color-white);
    padding: 14px 48px;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.contact-form-container button:hover {
    opacity: 0.82;
}


/* =============================================================================
   13. UTILITY CLASSES
   ============================================================================= */

/* Accessibility */
.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;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 40px;
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    font-family: var(--font-sans-secondary);
    font-size: var(--text-sm);
    letter-spacing: 0.03em;
    padding: 10px 20px;
    border: 1px solid var(--color-border);
    text-decoration: none;
    z-index: 9999;
    transition: top 0.15s ease;
}

.skip-link:focus {
    top: 10px;
}

/* Focus styles */
:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

/* Taxonomy pages */
.taxonomy-page {
    max-width: var(--max-width-wide);
    margin: 0 auto;
    padding: 80px var(--page-padding);
}

.taxonomy-page h1 {
    font-size: var(--text-xl);
    font-weight: 400;
    margin-bottom: 60px;
    text-align: center;
}

.taxonomy-terms {
    max-width: var(--max-width-reading);
    margin: 0 auto;
    padding: 80px var(--page-padding);
}

.taxonomy-terms h1 {
    font-size: var(--text-xl);
    font-weight: 400;
    margin-bottom: 60px;
    text-align: center;
}

.term-list {
    list-style: none;
}

.term-list li {
    margin-bottom: 12px;
}

.term-list a {
    font-family: var(--font-sans-secondary);
    font-size: var(--text-base);
    color: var(--color-text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.term-list a:hover {
    color: var(--color-accent);
}

/* 404 page */
.not-found-page {
    max-width: 560px;
    margin: 0 auto;
    padding: 160px var(--page-padding);
    text-align: center;
}

.not-found-page h1 {
    font-family: var(--font-sans-primary);
    font-size: var(--text-xl);
    font-weight: 400;
    letter-spacing: 0.03em;
    color: var(--color-text-primary);
    margin-bottom: 20px;
}

.not-found-page p {
    font-family: var(--font-sans-secondary);
    font-size: var(--text-base);
    font-style: italic;
    color: var(--color-text-secondary);
    margin-bottom: 40px;
}

.not-found-page a {
    font-family: var(--font-sans-secondary);
    font-size: var(--text-sm);
    letter-spacing: 0.05em;
    color: var(--color-text-secondary);
    text-decoration: none;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 2px;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.not-found-page a:hover {
    color: var(--color-text-primary);
    border-color: var(--color-accent);
}


/* =============================================================================
   14. MEDIA QUERIES
   ============================================================================= */

/* Tablet — below 1024px */
@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pathways {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile — below 768px */
@media (max-width: 768px) {
    :root {
        --page-padding: 20px;
    }

    /* Header collapses */
    .header-container {
        position: relative;
        flex-wrap: wrap;
        gap: 0;
    }

    .nav-toggle {
        display: flex;
    }

    nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 16px 0 8px;
    }

    nav.is-open {
        display: flex;
    }

    nav a {
        padding: 10px 0;
        width: 100%;
    }

    /* Carousel */
    .hero-carousel {
        height: 50vh;
    }

    /* Portfolio grid: 1 column */
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    /* Homepage pathways: 1 column */
    .pathways {
        grid-template-columns: 1fr;
    }

    /* Collated essay: single column, image → caption → prose */
    .collated-block,
    .collated-block--reversed {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: 0;
    }

    .collated-block__prose {
        margin-top: 32px;
        padding-top: 0;
    }

    .collated-essay__title {
        margin-bottom: 48px;
    }

    .collated-block {
        margin-bottom: 56px;
    }

    .collated-rule {
        margin-bottom: 56px;
    }

    /* Portfolio page heading — reduce vertical space */
    .portfolio-page {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .portfolio-page h1 {
        margin-bottom: 32px;
    }

    /* Filter controls — stack vertically, remove separator rule */
    .filters {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px 0;
    }

    .filter-group + .filter-group {
        padding-left: 0;
        margin-left: 0;
        border-left: none;
    }

    /* Article image layout: stack everything on mobile */
    .img-float--left,
    .img-float--right {
        float: none;
        width: 100%;
        margin: 32px 0 0;
    }

    .img-float--left img,
    .img-float--right img {
        max-height: none;
    }

    .article-figure--center {
        max-width: 100%;
    }
}

/* ── Private pricelist (/good-things-happen/) ───────────────────────────── */

.pricelist-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px var(--page-padding);
}

.pricelist-gate {
    max-width: 420px;
    margin: 40px auto;
    text-align: center;
}

.pricelist-gate h1 {
    font-family: var(--font-sans-primary);
    font-weight: 400;
    font-size: var(--text-lg);
    margin-bottom: 12px;
}

.pricelist-gate__hint {
    color: var(--color-text-secondary);
    margin-bottom: 20px;
}

.pricelist-gate form {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.pricelist-gate input {
    flex: 1;
    min-width: 220px;
    padding: 10px 12px;
    font-size: 16px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    background: var(--color-bg-primary);
    color: var(--color-text-primary);
}

.pricelist-gate__error {
    margin-top: 14px;
    color: #b64a3c;
    min-height: 1.4em;
}

.pricelist-toolbar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.pricelist-toolbar h1 {
    font-family: var(--font-sans-primary);
    font-weight: 400;
    font-size: var(--text-lg);
    margin: 0 8px 0 0;
}

.pricelist-toolbar input[type="search"] {
    flex: 1;
    min-width: 200px;
    max-width: 360px;
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    background: var(--color-bg-primary);
    color: var(--color-text-primary);
}

.pricelist-count {
    font-size: 13px;
    color: var(--color-text-secondary);
}

.pricelist-toolbar .btn-ghost {
    margin-left: auto;
}

.pricelist-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.pricelist-table th,
.pricelist-table td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
    vertical-align: top;
}

.pricelist-table th:last-child,
.pricelist-table td:last-child {
    border-right: none;
}

.pricelist-table th {
    font-weight: 500;
    color: var(--color-text-secondary);
    background: var(--color-bg-secondary);
    cursor: pointer;
    user-select: none;
    position: sticky;
    top: 0;
    white-space: nowrap;
}

.pricelist-table th[data-direction="asc"]::after  { content: ' ▲'; font-size: 10px; }
.pricelist-table th[data-direction="desc"]::after { content: ' ▼'; font-size: 10px; }

.pricelist-table td.num,
.pricelist-table th.num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.pricelist-table tr[data-status="sold"]     td { opacity: 0.55; }
.pricelist-table tr[data-status="reserved"] td { color: var(--color-text-secondary); }
.pricelist-table .status { text-transform: capitalize; }
.pricelist-table .status--available { color: #2f7a3f; font-weight: 500; }
.pricelist-table .status--reserved  { color: #a97020; }
.pricelist-table .status--sold      { color: var(--color-text-secondary); }

/* Mobile: collapse rows into stacked cards */
@media (max-width: 720px) {
    .pricelist-table,
    .pricelist-table thead,
    .pricelist-table tbody,
    .pricelist-table tr,
    .pricelist-table td {
        display: block;
        width: 100%;
    }
    .pricelist-table thead { display: none; }
    .pricelist-table tr {
        border: 1px solid var(--color-border);
        border-radius: 4px;
        padding: 12px 14px;
        margin-bottom: 12px;
        background: var(--color-bg-primary);
    }
    .pricelist-table td {
        border: none;
        padding: 4px 0;
        display: flex;
        justify-content: space-between;
        gap: 16px;
    }
    .pricelist-table td::before {
        content: attr(data-label);
        color: var(--color-text-secondary);
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        flex-shrink: 0;
    }
    .pricelist-table td:empty { display: none; }
}
