/* madera.bn1.cz — minimalistický design, dřevo & craft vibes */

:root {
    --color-bg: #faf8f5;
    --color-text: #2c2420;
    --color-muted: #8a7e76;
    --color-accent: #b8956a;
    --color-surface: #f0ebe4;
    --color-border: #ddd5cb;
    --font-body: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-display: Georgia, 'Times New Roman', serif;
    --max-width: 900px;
}

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

html {
    font-size: 18px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}

/* Hero */

.hero {
    text-align: center;
    padding: 6rem 2rem 4rem;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: lowercase;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.tagline {
    font-size: 1.1rem;
    color: var(--color-muted);
    font-style: italic;
}

/* Sections */

main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

section {
    margin-bottom: 4rem;
}

h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
}

/* 3D Viewer */

.viewer-wrapper {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.viewer-placeholder {
    text-align: center;
    color: var(--color-muted);
}

.viewer-placeholder p {
    margin-bottom: 0.5rem;
}

.viewer-placeholder .hint {
    font-size: 0.8rem;
}

.viewer-placeholder code {
    background: var(--color-bg);
    padding: 0.15em 0.4em;
    border-radius: 3px;
    font-size: 0.85em;
}

/* AR button */

.ar-btn {
    background: var(--color-accent);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    cursor: pointer;
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
}

.ar-btn:hover {
    opacity: 0.9;
}

/* Gallery */

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

.gallery-grid img {
    width: 100%;
    border-radius: 6px;
    border: 1px solid var(--color-border);
}

.gallery-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    background: var(--color-surface);
    border: 1px dashed var(--color-border);
    border-radius: 8px;
    color: var(--color-muted);
}

/* About */

.about p {
    max-width: 600px;
    color: var(--color-text);
}

/* Footer */

footer {
    text-align: center;
    padding: 2rem;
    color: var(--color-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--color-border);
}

footer a {
    color: var(--color-accent);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive */

@media (max-width: 600px) {
    html {
        font-size: 16px;
    }

    .hero {
        padding: 4rem 1.5rem 3rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .viewer-wrapper {
        height: 350px;
    }

    main {
        padding: 0 1.5rem 3rem;
    }
}
