/* TONOPTIK - Minimalist Art Portfolio */

/* CSS Custom Properties for Light/Dark Mode */
:root {
    --bg-color: #ffffff;
    --text-primary: #4c4c4c;
    --text-secondary: #727272;
    --text-tertiary: #999999;
    --border-color: #ffffff;
    --separator-color: #f0f0f0;
    --logo-invert: 0;
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #000000;
        --text-primary: #b3b3b3;
        --text-secondary: #8d8d8d;
        --text-tertiary: #666666;
        --border-color: #000000;
        --separator-color: #1a1a1a;
        --logo-invert: 1;
    }
}

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

body {
    font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;
    font-size: 12px;
    color: var(--text-primary);
    background: var(--bg-color);
    padding: 0 40px 40px 40px;
    line-height: 1.4;
}

.container {
    max-width: 600px;
    margin: 0 auto;
}

/* Header */
header {
    padding: 0;
    margin-bottom: 5px;
}

.logo {
    display: block;
}

.logo img {
    max-width: 100%;
    height: auto;
    filter: invert(var(--logo-invert));
    border: none;
}

/* Navigation */
nav {
    margin-bottom: 5px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

nav ul li a {
    display: inline-block;
    padding: 0.6em 1em;
    font-size: 18px;
    color: var(--text-secondary);
    text-decoration: none;
    border-left: 1px solid var(--border-color);
}

nav ul li:first-child a {
    border-left: none;
    padding-left: 0;
}

nav ul li a:hover,
nav ul li a.active {
    text-decoration: underline;
}

/* Main Content */
main {
    padding: 0;
}

/* Page Title */
h1 {
    font-size: 22px;
    font-weight: normal;
    color: var(--text-primary);
    margin-bottom: 0.5em;
}

h2 {
    font-size: 18px;
    font-weight: normal;
    color: var(--text-primary);
    margin: 1.5em 0 0.5em 0;
}

h3 {
    font-size: 14px;
    font-weight: normal;
    color: var(--text-secondary);
    margin: 1.5em 0 0.5em 0;
}

.subtitle {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-bottom: 1.5em;
    font-style: italic;
}

/* Links */
a {
    color: var(--text-tertiary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Content */
p {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 1em;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    border: 1px solid var(--border-color);
}

/* Featured Content */
.featured {
    position: relative;
    text-align: center;
    padding: 0;  /* Removed padding to move content closer to menu */
    min-height: 450px; /* Reserve space to prevent layout shift */
}

.featured img {
    max-width: 100%;
    height: auto;
    filter: invert(var(--logo-invert));
    border: none;
}

/* WebGL Hero Canvas */
.hero-canvas {
    max-width: 100%;
    height: auto;
    display: none;
    margin: 0 auto;
    filter: invert(var(--logo-invert)); /* Dark mode support */
}

/* Reduced motion: hide WebGL animation */
@media (prefers-reduced-motion: reduce) {
    .hero-canvas {
        display: none !important;
    }
}

/* Gallery Grid */
.gallery {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.gallery-item {
    text-align: center;
}

.gallery-item img {
    max-width: 100%;
    margin-bottom: 10px;
}

.gallery-item a {
    display: block;
    font-size: 14px;
    color: var(--text-tertiary);
}

/* Installation Detail Pages */
.installation-detail {
    text-align: left;
    padding: 20px 0;
}

.installation-detail img {
    max-width: 100%;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.installation-detail p {
    font-size: 13px;
    margin-top: 0;
    margin-bottom: 1em;
    text-align: left;
}

.installation-detail ul {
    margin-left: 20px;
    margin-bottom: 1em;
}

.installation-detail ul li {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 0.5em;
}

.video-link {
    margin-top: 1.5em;
}

/* About Page */
.about-image {
    margin-bottom: 20px;
}

.about-text {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-primary);
}

.exhibition-list {
    margin-top: 20px;
    font-size: 13px;
    line-height: 1.8;
}

/* Video/Audio Embeds */
.embed-container {
    margin: 20px 0;
}

.embed-container iframe {
    max-width: 100%;
}

.video-title {
    font-size: 14px;
    color: var(--text-tertiary);
    text-align: center;
    margin-top: 10px;
    margin-bottom: 60px;
}

/* Releases */
.releases {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.release {
    padding: 15px 0;
    border-bottom: 1px solid var(--separator-color);
}

.release:last-child {
    border-bottom: none;
}

.release img {
    max-width: 400px;
    width: 100%;
    margin-bottom: 15px;
    display: block;
}

.release h3 {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.release-info {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: 5px;
}

.release a {
    font-size: 12px;
    color: var(--text-tertiary);
}

/* Responsive */
@media (max-width: 680px) {
    body {
        padding: 20px;
    }

    nav ul li a {
        font-size: 16px;
        padding: 0.5em 0.8em;
    }

    .featured {
        min-height: 300px;
    }
}
