/* ==========================================================================
   Galerie Lumen — Base / Reset / Fonts / Body
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Cormorant:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Inter:wght@300;400;500;600&family=Space+Mono:wght@400;700&display=swap');

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
}

body {
    font-family: var(--gl-font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gl-text);
    background-color: var(--gl-bg-deep);
    overflow-x: hidden;
    position: relative;
}

/* Canvas texture overlay — replaces film-grain */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.5'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 120px;
    mix-blend-mode: overlay;
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

input, textarea, select {
    font-family: inherit;
    border: none;
    outline: none;
    background: none;
    color: inherit;
}

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

ul, ol {
    list-style: none;
}

/* Selection */
::selection {
    background: var(--gl-accent);
    color: var(--gl-bg-deep);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--gl-bg-deep);
}

::-webkit-scrollbar-thumb {
    background: var(--gl-text-faint);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gl-text-dim);
}

/* Typography helpers */
.display-text {
    font-family: var(--gl-font-display);
}

.heading-text {
    font-family: var(--gl-font-heading);
}

.mono-text {
    font-family: var(--gl-font-mono);
}

em {
    font-family: var(--gl-font-display);
    font-style: italic;
    color: var(--gl-accent);
}

/* Screen-reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
