/* Simon Vale - mindpattern.dev
   Design System
   ============================================ */

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

:root {
    --deep-blue: #0a0f1a;
    --soft-blue: #1a2332;
    --medium-blue: #243044;
    --gold: #c9a962;
    --gold-dim: rgba(201, 169, 98, 0.6);
    --silver: #a8b4c4;
    --text: #e8eaed;
    --text-muted: #8899aa;
    --text-dim: #5a6a7a;

    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', -apple-system, sans-serif;

    --max-width: 720px;
    --max-width-wide: 1000px;
}

body {
    background: var(--deep-blue);
    color: var(--text);
    font-family: var(--font-sans);
    font-weight: 300;
    line-height: 1.7;
    min-height: 100vh;
}

/* Typography
   -------------------------------------------- */

h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
    letter-spacing: 0.02em;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--text);
}

/* Layout
   -------------------------------------------- */

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-header {
    padding: 2rem 2rem;
    border-bottom: 1px solid var(--soft-blue);
}

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

.site-title {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--text);
    letter-spacing: 0.05em;
}

.site-title:hover {
    color: var(--gold);
}

.site-nav {
    display: flex;
    gap: 2rem;
}

.site-nav a {
    color: var(--silver);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.25rem 0;
    border-bottom: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

main {
    flex: 1;
    padding: 4rem 2rem;
}

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

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

.site-footer {
    padding: 2rem;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-dim);
    border-top: 1px solid var(--soft-blue);
}

/* Page Headers
   -------------------------------------------- */

.page-header {
    text-align: center;
    margin-bottom: 4rem;
}

.page-header h1 {
    margin-bottom: 0.5rem;
}

.page-header .subtitle {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--gold);
    font-size: 1.1rem;
}

/* Article Styles
   -------------------------------------------- */

.article-header {
    margin-bottom: 3rem;
    text-align: center;
}

.article-header h1 {
    margin-bottom: 1rem;
}

.article-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.article-content {
    font-size: 1.05rem;
}

.article-content p:first-of-type::first-letter {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    float: left;
    line-height: 1;
    padding-right: 0.5rem;
    color: var(--gold);
}

.article-content blockquote {
    border-left: 2px solid var(--gold-dim);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--silver);
}

.article-content img {
    max-width: 100%;
    height: auto;
    margin: 2rem 0;
    border-radius: 4px;
}

.article-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--soft-blue);
    text-align: center;
}

.back-link {
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Column List
   -------------------------------------------- */

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

.column-item {
    padding: 2rem 0;
    border-bottom: 1px solid var(--soft-blue);
}

.column-item:first-child {
    padding-top: 0;
}

.column-item h2 {
    margin-bottom: 0.5rem;
}

.column-item h2 a {
    color: var(--text);
}

.column-item h2 a:hover {
    color: var(--gold);
}

.column-item .excerpt {
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.column-item .meta {
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* Art Gallery
   -------------------------------------------- */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 4px;
    background: var(--soft-blue);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(10, 15, 26, 0.9));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.gallery-item .title {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--text);
}

/* About Page
   -------------------------------------------- */

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

.about-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 4px;
    overflow: hidden;
    background: var(--soft-blue);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-content h1 {
    margin-bottom: 1.5rem;
}

.about-content .tagline {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--gold);
    margin-bottom: 2rem;
}

/* Placeholder state */
.placeholder {
    background: var(--soft-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-size: 0.85rem;
}

/* Responsive
   -------------------------------------------- */

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 1rem;
    }

    .site-nav {
        gap: 1.5rem;
    }

    h1 {
        font-size: 2rem;
    }

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

    .about-image {
        max-width: 250px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .site-nav {
        gap: 1rem;
    }

    .site-nav a {
        font-size: 0.7rem;
    }

    main {
        padding: 2rem 1.5rem;
    }
}
