:root {
    --glass: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.5);
    --accent: #6d4c41; 
    --text: #2c3e50;
    --max-width: 1000px;
}

html { 
    scroll-behavior: smooth; 
    font-size: 16px; /* Baza dla rem */
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(-45deg, #f3e5f5, #e8f5e9, #fff3e0, #e1f5fe);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- FLEXIBILE MENU --- */
.glass-menu {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 0 20px;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    width: auto;
    max-width: 90%;
}

.glass-menu ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 5px;
    margin: 0;
    padding: 0;
}

.glass-menu a {
    text-decoration: none;
    color: #444;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    padding: 15px 12px;
    display: block;
    transition: 0.3s;
}

.glass-menu a:hover { color: var(--accent); }

/* --- FLUID CONTAINER --- */
.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 100px auto 50px;
    padding: 20px;
}

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

h1 {
    font-size: clamp(2.5rem, 8vw, 4rem); /* Elastyczny rozmiar czcionki */
    color: var(--accent);
    margin: 0;
    letter-spacing: -2px;
}

.tagline {
    font-size: 1.2rem;
    color: #7f8c8d;
    font-weight: 300;
}

.glass-card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: clamp(1.5rem, 5vw, 3rem);
    margin-bottom: 2rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.03);
}

h2 {
    color: var(--accent);
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.story-text {
    line-height: 1.8;
    font-size: 1.15rem;
    margin: 0;
}

/* --- CIEKAWOSTKI --- */
.chow-info ul { list-style: none; padding: 0; }
.chow-info li {
    margin-bottom: 1.2rem;
    padding-left: 40px;
    position: relative;
    font-size: 1.1rem;
}
.chow-info li::before {
    content: '🐾';
    position: absolute;
    left: 0;
    font-size: 1.3rem;
}

/* --- MODERN GALLERY --- */
.gallery-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
    justify-items: center;
}

.polaroid {
    background: #fff;
    padding: 15px 15px 40px 15px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
    position: relative;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin: 0;
}

.polaroid img {
    width: 100%;
    height: auto;
    display: block;
}

.polaroid figcaption {
    font-family: 'Kalam', cursive;
    text-align: center;
    margin-top: 1.5rem;
    font-size: 1.5rem;
    color: #5d4037;
}

.polaroid::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 35px;
    background: rgba(109, 76, 65, 0.15);
    backdrop-filter: blur(2px);
    z-index: 2;
}

.polaroid:nth-child(odd) { transform: rotate(-2deg); }
.polaroid:nth-child(even) { transform: rotate(2deg); }

.polaroid:hover {
    transform: rotate(0deg) scale(1.05);
    z-index: 10;
}

footer {
    text-align: center;
    padding: 4rem 0;
    opacity: 0.6;
}

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

/* RWD - smartfony */
@media (max-width: 600px) {
    .container { width: 95%; padding: 10px; }
    .glass-menu a { padding: 12px 8px; font-size: 0.75rem; }
    .gallery-wrapper { grid-template-columns: 1fr; }
}