﻿:root {
    --bg: #ffffff;
    --text: #555555;
    --title: #555555;
    --accent: #900000;
    --accent-hover: #ff0505;
    --line: #e6e6e6;
    --sidebar-width: clamp(230px, 20vw, 320px);
    --gutter: clamp(1rem, 2.6vw, 2.6rem);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Cabin", sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 2px solid currentColor;
    transition: color .25s ease, border-color .25s ease;
}

a:hover,
a:focus-visible {
    color: var(--accent-hover);
    border-color: currentColor;
}

h1, h2, h3 {
    margin: 0 0 1rem;
    color: var(--title);
    font-family: "Roboto Condensed", sans-serif;
    font-weight: 700;
    line-height: 1.25;
}

h1 {
    font-size: clamp(2rem, 4vw, 2.9rem);
    text-transform: uppercase;
    letter-spacing: .01em;
}

h2 {
    font-size: clamp(1.35rem, 2.2vw, 1.8rem);
    text-transform: uppercase;
}

p {
    margin: 0 0 1rem;
}

.site-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    border-right: 1px solid var(--line);
    background: #fff;
    overflow-y: auto;
    z-index: 1000;
}

.sidebar-inner {
    min-height: 100%;
    padding: 1.5rem var(--gutter);
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.sidebar-brand a {
    border-bottom: 0;
    color: var(--title);
    font-family: "Roboto Condensed", sans-serif;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: 1rem;
}

.brand-logo-link {
    display: inline-flex;
    align-items: center;
    border-bottom: 0;
}

.brand-logo {
    display: block;
    width: auto;
    max-width: min(360px, 100%);
    max-height: 140px;
    height: auto;
}

.sidebar-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.sidebar-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--title);
    margin: 4px auto;
}

.sidebar-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-menu li {
    margin-bottom: .55rem;
}

.sidebar-menu a {
    border-bottom: 0;
    font-family: "Roboto Condensed", sans-serif;
    font-size: .95rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--title);
}

.sidebar-menu a.active,
.sidebar-menu a:hover {
    color: var(--accent);
}

.sidebar-meta {
    margin-top: auto;
    font-size: .9rem;
}

.sidebar-socials {
    display: flex;
    gap: .6rem;
    margin-top: .8rem;
}

.sidebar-socials a {
    border: 1px solid var(--line);
    border-radius: 999px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--title);
}

.sidebar-socials a:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.site-main {
    margin-left: var(--sidebar-width);
    padding: 1.5rem var(--gutter) 2rem;
}

.intro-block {
    text-align: center;
    max-width: 980px;
    margin: 2.2rem auto 2.5rem;
}

.intro-block .lead {
    font-size: 1.35rem;
    line-height: 1.5;
}

.home-logo-wrap {
    margin: 0 0 1rem;
}

.home-logo {
    display: block;
    width: auto;
    max-width: min(460px, 95%);
    max-height: 160px;
    height: auto;
    margin: 0 auto;
}

.image-stream {
    max-width: 1240px;
    margin: 0 auto;
}

.home-featured-stream {
    max-width: 860px;
}

.home-featured-stream .stream-image-link {
    max-height: 62vh;
    overflow: hidden;
}

.home-featured-stream .stream-item img {
    width: auto;
    max-width: 100%;
    max-height: 62vh;
    margin: 0 auto;
    object-fit: contain;
}

.stream-item {
    margin-bottom: 2rem;
}

.stream-image-link {
    display: block;
    border: 0;
}

.stream-item img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-stream .stream-item img,
.artwork-carousel .artwork-slide img {
    width: auto;
    max-width: 100%;
    max-height: 85vh;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
}

.stream-caption {
    margin-top: .6rem;
    text-align: center;
    font-size: .95rem;
}

.gallery-head {
    max-width: 1240px;
    margin: .6rem auto 1.2rem;
}

.gallery-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: .7rem 1rem;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem .8rem;
}

.filter-bar button {
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    font-family: "Roboto Condensed", sans-serif;
    text-transform: uppercase;
    color: var(--title);
    letter-spacing: .05em;
    padding: .1rem 0;
}

.filter-bar button:hover,
.filter-bar button.active {
    color: var(--accent);
    border-bottom-color: currentColor;
}

.view-toggle {
    display: flex;
    gap: .6rem;
}

.view-toggle button {
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    font-family: "Roboto Condensed", sans-serif;
    text-transform: uppercase;
    color: var(--title);
    letter-spacing: .05em;
    padding: .1rem 0;
}

.view-toggle button:hover,
.view-toggle button.active {
    color: var(--accent);
    border-bottom-color: currentColor;
}

.gallery-stream.is-mosaic {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.gallery-stream.is-mosaic .stream-item {
    margin: 0;
}

.gallery-stream.is-mosaic .stream-image-link {
    display: block;
}

.gallery-stream.is-mosaic .stream-item img {
    width: 100%;
    max-width: 100%;
    max-height: none;
    height: auto;
    object-fit: cover;
}

.gallery-stream.is-mosaic .stream-caption {
    margin-top: .5rem;
    font-size: .88rem;
}

.artwork-panel {
    max-width: 860px;
    margin: 0 auto 2.2rem;
}

.artwork-carousel {
    position: relative;
    outline: none;
}

.artwork-carousel-track {
    position: relative;
}

.artwork-slide {
    display: none;
    margin: 0;
}

.artwork-slide.is-active {
    display: block;
}

.artwork-carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 1.9rem;
    line-height: 1;
    cursor: pointer;
}

.artwork-carousel-control.prev {
    left: .7rem;
}

.artwork-carousel-control.next {
    right: .7rem;
}

.artwork-carousel-dots {
    display: flex;
    justify-content: center;
    gap: .45rem;
    margin-top: .7rem;
}

.artwork-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 0;
    background: #c6c6c6;
    cursor: pointer;
    padding: 0;
}

.artwork-carousel-dot.is-active {
    background: var(--accent);
}

.artwork-meta {
    list-style: none;
    margin: 1rem 0;
    padding: 0;
    border-top: 1px solid var(--line);
}

.artwork-meta li {
    padding: .6rem 0;
    border-bottom: 1px solid var(--line);
}

.artwork-meta span {
    display: inline-block;
    min-width: 120px;
    font-family: "Roboto Condensed", sans-serif;
    text-transform: uppercase;
}

.artwork-actions {
    margin-top: 1.4rem;
}

.artwork-sections {
    margin-top: 1.4rem;
}

.artwork-section {
    border-top: 1px solid var(--line);
    padding: .9rem 0 .2rem;
}

.artwork-section h3 {
    margin: 0 0 .45rem;
    font-size: 1.02rem;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.artwork-section p {
    margin: 0;
}

.simple-page {
    max-width: 900px;
    margin: .8rem auto 2rem;
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.2rem 2rem;
    align-items: start;
}

.about-text {
    min-width: 0;
}

.about-portrait {
    margin: 0;
}

.about-portrait img {
    display: block;
    width: clamp(130px, 18vw, 190px);
    height: clamp(130px, 18vw, 190px);
    border-radius: 999px;
    object-fit: cover;
    object-position: center;
    border: 2px solid var(--line);
}

.contact-form {
    display: grid;
    gap: .55rem;
}

.contact-form label {
    font-family: "Roboto Condensed", sans-serif;
    text-transform: uppercase;
    font-size: .9rem;
    margin-top: .5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid #bfbfbf;
    border-radius: 0;
    padding: .7rem .75rem;
    font: inherit;
    color: var(--text);
    background: #fff;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 0;
    border-color: var(--accent);
}

.contact-form button {
    margin-top: .5rem;
    justify-self: start;
    border: 1px solid var(--accent);
    background: #fff;
    color: var(--accent);
    padding: .6rem 1.1rem;
    font-family: "Roboto Condensed", sans-serif;
    text-transform: uppercase;
}

.contact-form button:hover {
    background: var(--accent);
    color: #fff;
}

.site-footer {
    margin-left: var(--sidebar-width);
    border-top: 1px solid var(--line);
    padding: 1.3rem var(--gutter) 2rem;
}

.footer-inner {
    max-width: 1240px;
    margin: 0 auto;
    text-align: center;
}

.footer-inner p {
    margin: .3rem 0;
}

.footer-inner span {
    margin: 0 .5rem;
    color: #9b9b9b;
}

.footer-copy {
    font-size: .9rem;
}

@media (max-width: 1024px) {
    .site-sidebar {
        position: sticky;
        width: 100%;
        height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .sidebar-inner {
        min-height: 0;
        gap: 1rem;
    }

    .sidebar-toggle {
        display: inline-block;
    }

    .brand-logo {
        max-height: 104px;
    }

    .sidebar-menu {
        display: none;
    }

    body.nav-open .sidebar-menu {
        display: block;
    }

    .sidebar-meta {
        display: none;
    }

    body.nav-open .sidebar-meta {
        display: block;
    }

    .site-main,
    .site-footer {
        margin-left: 0;
    }

    .artwork-carousel-control {
        width: 36px;
        height: 36px;
        font-size: 1.6rem;
    }

    .about-layout {
        grid-template-columns: 1fr;
    }

    .about-portrait {
        order: -1;
        justify-self: center;
        margin-bottom: .6rem;
    }

    .gallery-stream.is-mosaic {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .8rem;
    }
}
