/*
 * Studio Gallery - Free multi-page HTML/CSS gallery template
 * Source: https://templates.inuno.app
 * Copyright (c) 2026 templates.inuno.app
 *
 * Free license note:
 * This free template may be used privately and commercially,
 * but the attribution/backlink to https://templates.inuno.app must remain.
 */

:root {
    --ink: #17151c;
    --muted: #6b6472;
    --paper: #f8f4ed;
    --panel: #fffdf9;
    --panel-soft: #eee7dc;
    --line: rgba(23, 21, 28, 0.14);
    --coral: #e8664f;
    --blue: #1642a2;
    --green: #627d62;
    --gold: #c59a47;
    --shadow: 0 24px 70px rgba(35, 31, 28, 0.16);
    --radius: 8px;
    --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--paper);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        linear-gradient(100deg, rgba(22, 66, 162, 0.12), transparent 38%),
        linear-gradient(135deg, #f8f4ed, #ffffff 46%, #efe8dd);
    color: var(--ink);
    font-family: var(--font);
    letter-spacing: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

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

button {
    color: inherit;
    cursor: pointer;
}

.page {
    width: min(1260px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header,
.brand,
.nav,
.actions,
.site-footer,
.filter-bar {
    display: flex;
    align-items: center;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    justify-content: space-between;
    gap: 16px;
    min-height: 74px;
    padding: 10px 0;
    background: color-mix(in srgb, var(--paper) 88%, transparent);
    backdrop-filter: blur(18px);
}

.brand {
    gap: 10px;
    margin-left: 8px;
    min-width: 180px;
    font-weight: 950;
}

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: var(--radius);
    background: var(--blue);
    color: #ffffff;
    font-size: 13px;
}

.nav {
    gap: 4px;
}

.nav a,
.header-action,
.secondary,
.filter-bar button,
.text-link {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.66);
    font-weight: 900;
}

.nav a {
    padding: 10px 12px;
    color: var(--muted);
    font-size: 14px;
}

.nav a:hover,
.nav a[aria-current="page"],
.filter-bar button:hover,
.filter-bar button.is-active {
    background: var(--ink);
    color: #ffffff;
}

.header-action {
    display: inline-grid;
    min-height: 42px;
    place-items: center;
    padding: 0 14px;
}

.hero,
.stats-strip,
.feature-grid,
.page-title,
.art-grid,
.artist-hero,
.artist-list,
.timeline,
.contact-layout {
    display: grid;
    gap: 16px;
}

.hero {
    grid-template-columns: minmax(0, 0.85fr) minmax(380px, 1fr);
    min-height: 660px;
    padding: 14px 0 16px;
}

.hero-copy,
.hero-image,
.stats-strip > div,
.feature-grid article,
.page-title,
.art-card,
.artist-hero,
.artist-list article,
.timeline article,
.contact-copy,
.contact-form {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--panel) 86%, transparent);
    box-shadow: var(--shadow);
}

.hero-copy,
.page-title,
.contact-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(28px, 5vw, 72px);
}

.hero-image,
.feature-image,
.artist-image,
.art-image {
    background-image:
        linear-gradient(135deg, rgba(23, 21, 28, 0.08), rgba(23, 21, 28, 0.18)),
        url("../img/studio-gallery-art.webp");
    background-repeat: no-repeat;
    background-size: 170%;
}

.hero-image {
    position: relative;
    min-height: 620px;
    background-position: 46% 48%;
}

.image-note {
    position: absolute;
    right: 20px;
    bottom: 20px;
    width: min(280px, calc(100% - 40px));
    padding: 18px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.eyebrow,
.stats-strip span,
.feature-grid span,
.art-meta span,
.artist-list span,
.timeline span,
.contact-form span {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 18px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    max-width: 820px;
    margin-bottom: 20px;
    font-size: clamp(46px, 7vw, 92px);
    line-height: 0.94;
}

h2 {
    margin-bottom: 10px;
    font-size: clamp(26px, 4vw, 48px);
    line-height: 1;
}

p {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.65;
}

.actions {
    flex-wrap: wrap;
    gap: 10px;
}

.primary,
.secondary,
.text-link {
    display: inline-grid;
    min-height: 46px;
    width: fit-content;
    place-items: center;
    padding: 0 18px;
    border-radius: var(--radius);
    font-weight: 950;
}

.primary {
    border: 0;
    background: linear-gradient(135deg, var(--coral), #f28b38);
    color: #ffffff;
}

.stats-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stats-strip > div,
.feature-grid article,
.artist-list article,
.timeline article {
    padding: 24px;
}

.stats-strip strong {
    display: block;
    margin-bottom: 8px;
    font-size: clamp(32px, 4vw, 58px);
}

.feature-grid {
    grid-template-columns: 1.05fr 0.95fr;
    margin: 16px 0;
}

.feature-image {
    min-height: 320px;
}

.feature-image-a {
    background-position: 12% 15%;
}

.feature-image-b {
    background-position: 76% 68%;
}

.page-title {
    min-height: 360px;
    margin: 14px 0 16px;
}

.filter-bar {
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.filter-bar button {
    min-height: 42px;
    padding: 0 14px;
}

.art-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 16px;
}

.art-card {
    position: relative;
    overflow: hidden;
}

.art-card.is-hidden {
    display: none;
}

.art-image {
    display: block;
    min-height: 280px;
    border-bottom: 1px solid var(--line);
}

.crop-painting { background-position: 0 0; }
.crop-sculpture { background-position: 0 80%; }
.crop-photo { background-position: 98% 0; }
.crop-ceramic { background-position: 100% 46%; }
.crop-space { background-position: 82% 92%; }
.crop-texture { background-position: 46% 100%; }

.art-meta {
    padding: 20px 56px 22px 20px;
}

.art-meta h2 {
    font-size: 28px;
}

.star-button {
    position: absolute;
    right: 14px;
    bottom: 18px;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    color: var(--gold);
    font-size: 26px;
    line-height: 1;
}

.star-button.is-liked {
    background: var(--gold);
    color: #ffffff;
}

.artist-hero {
    grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.7fr);
    margin: 14px 0 16px;
    padding: clamp(28px, 5vw, 64px);
}

.artist-image {
    min-height: 420px;
    background-size: 190%;
    background-position: 49% 44%;
}

.artist-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.artist-list h2 {
    font-size: 34px;
}

.timeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 16px 0;
}

.timeline strong {
    display: block;
    margin-bottom: 8px;
    font-size: 22px;
}

.contact-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.55fr);
    min-height: 620px;
    padding: 14px 0 16px;
}

.contact-list {
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 16px 0 0;
    list-style: none;
}

.contact-list li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.64);
}

.contact-form {
    display: grid;
    align-content: start;
    gap: 14px;
    padding: 24px;
}

.contact-form label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-weight: 850;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    color: var(--ink);
    padding: 13px 14px;
}

.site-footer {
    justify-content: space-between;
    gap: 16px;
    padding: 24px 0 34px;
    color: var(--muted);
    font-size: 14px;
}

.site-footer a {
    color: var(--ink);
    font-weight: 900;
}
.site-footer > div {
    display: grid;
    gap: 6px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}



@media (max-width: 620px) {
    .footer-links {
        justify-content: flex-start;
    }
}

.toast {
    position: fixed;
    right: 18px;
    bottom: 18px;
    transform: translateY(16px);
    opacity: 0;
    pointer-events: none;
    border-radius: var(--radius);
    background: var(--ink);
    color: #ffffff;
    padding: 12px 16px;
    font-weight: 900;
    transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
    transform: translateY(0);
    opacity: 1;
}

@media (max-width: 900px) {
    .site-header,
    .hero,
    .feature-grid,
    .artist-hero,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .site-header {
        display: grid;
    }

    .nav {
        flex-wrap: wrap;
    }

    .hero {
        min-height: 0;
    }

    .hero-image {
        min-height: 420px;
    }

    .stats-strip,
    .art-grid,
    .artist-list,
    .timeline {
        grid-template-columns: 1fr;
    }

    .contact-list li {
        display: grid;
    }
}

@media (max-width: 520px) {
    .page {
        width: min(100% - 20px, 1260px);
    }

    .hero-copy,
    .page-title,
    .contact-copy,
    .artist-hero {
        padding: 24px;
    }

    h1 {
        font-size: 42px;
    }

    .hero-image,
    .artist-image {
        min-height: 300px;
    }
}
/* Unified modern demo footer */
.demo-footer {
    align-items: center;
    gap: 18px;
}

.footer-brand-block {
    min-width: min(100%, 280px);
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.footer-legal a {
    display: inline-grid;
    min-height: 36px;
    place-items: center;
    border: 1px solid var(--line, rgba(0, 0, 0, 0.14));
    border-radius: var(--radius, 8px);
    background: color-mix(in srgb, var(--panel, #fff) 78%, transparent);
    padding: 0 11px;
    font-weight: 900;
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.footer-social a {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--line, rgba(0, 0, 0, 0.14));
    border-radius: var(--radius, 8px);
    background: var(--ink, #111);
    color: var(--panel, #fff);
    transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.footer-social a:hover {
    transform: translateY(-2px);
    background: var(--accent, var(--yellow, var(--lime, #dfff00)));
    color: var(--ink, #111);
}

.footer-social svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

@media (max-width: 760px) {
    .demo-footer,
    .footer-legal,
    .footer-social {
        justify-content: flex-start;
    }
}
/* Neutral footer support pages */
.info-page {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
    gap: 14px;
    min-height: calc(100vh - 180px);
    padding: 18px 0 28px;
}

.info-hero,
.info-list article,
.info-form {
    border: 1px solid var(--line, rgba(0, 0, 0, 0.14));
    border-radius: var(--radius, 8px);
    background: var(--panel, rgba(255, 255, 255, 0.78));
    box-shadow: var(--shadow, 0 18px 58px rgba(0, 0, 0, 0.08));
}

.info-hero {
    display: flex;
    min-height: 420px;
    flex-direction: column;
    justify-content: center;
    padding: clamp(28px, 5vw, 56px);
}

.info-hero p {
    margin: 0 0 12px;
    color: var(--accent, currentColor);
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
}

.info-hero h1 {
    max-width: 12ch;
    margin: 0 0 14px;
    font-size: clamp(34px, 5vw, 68px);
    line-height: 0.98;
}

.info-hero span,
.info-list p {
    color: var(--muted, #666);
    line-height: 1.65;
}

.info-list {
    display: grid;
    gap: 12px;
}

.info-list article {
    padding: clamp(20px, 3vw, 34px);
}

.info-list h2 {
    margin: 0 0 10px;
    font-size: clamp(20px, 2vw, 28px);
}

.info-list p {
    margin: 0;
}

.info-form {
    display: grid;
    align-content: center;
    gap: 16px;
    padding: clamp(22px, 4vw, 44px);
}

.info-form label {
    display: grid;
    gap: 8px;
    color: var(--muted, #666);
    font-weight: 850;
}

.info-form input,
.info-form textarea {
    width: 100%;
    border: 1px solid var(--line, rgba(0, 0, 0, 0.14));
    border-radius: var(--radius, 8px);
    background: color-mix(in srgb, var(--panel, #fff) 84%, white);
    color: var(--ink, #111);
    padding: 13px 14px;
}

.info-form button {
    width: fit-content;
    border: 1px solid var(--line, rgba(0, 0, 0, 0.14));
    border-radius: var(--radius, 8px);
    background: var(--ink, #111);
    color: var(--panel, #fff);
    padding: 13px 18px;
    font-weight: 950;
    cursor: pointer;
}

@media (max-width: 820px) {
    .info-page {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .info-hero {
        min-height: auto;
    }
}
