:root {
    --wood: #3d2b1f;
    --paper: #e6d7bc;
    --paper-light: #f4e9d5;
    --crimson: #741220;
    --gold: #b08d46;
    --ink: #3d2b1f;
    --heading: 'Cinzel', Georgia, serif;
    --text: 'Alegreya', Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background-color: var(--wood);
    background-image:
        linear-gradient(rgba(61, 43, 31, .8), rgba(61, 43, 31, .8)),
        url('https://www.transparenttextures.com/patterns/wood-pattern.png');
    font: 1.35rem/1.55 var(--text);
}

.site-header {
    padding: 5rem 1.25rem 4.5rem;
    color: var(--paper-light);
    text-align: center;
    background-color: var(--wood);
    background-image:
        linear-gradient(rgba(244, 233, 213, .16), rgba(61, 43, 31, .34)),
        url('https://www.transparenttextures.com/patterns/wood-pattern.png');
    background-size: auto, auto;
    background-position: center;
    border-bottom: 5px double var(--gold);
    box-shadow: 0 10px 30px rgba(0,0,0,.5);
}
.logo-frame { width: min(400px, 80vw); margin: 0 auto; padding: 10px; }
.main-logo, .footer-logo { display: block; width: 100%; height: auto; }
.main-logo { filter: drop-shadow(0 4px 5px rgba(0,0,0,.72)); }
.header-subtitle, .section-label {
    margin: 0 0 .5rem;
    color: var(--gold);
    font: 700 1.3rem/1.3 'Alegreya SC', var(--text);
    letter-spacing: .12em;
    text-transform: uppercase;
}
h1, h2 { font-family: var(--heading); line-height: 1.15; }
h2 { margin: 0 0 1rem; color: var(--crimson); font-size: clamp(1.7rem, 4vw, 2.5rem); }
.lead { max-width: 700px; margin: 1.5rem auto 1.75rem; font-size: 1.3rem; }

.button {
    display: inline-block;
    padding: .8rem 1.25rem;
    color: var(--paper-light);
    background: var(--crimson);
    border: 1px solid var(--gold);
    border-radius: 4px;
    font: 700 1rem/1.2 var(--heading);
    text-decoration: none;
    transition: transform .2s ease, background .2s ease;
}
.button:hover, .button:focus-visible { transform: translateY(-2px); background: #95182b; }
.button-light { background: var(--paper-light); color: var(--crimson); border-color: var(--paper-light); }

.site-nav {
    position: sticky; top: 0; z-index: 10;
    display: flex; align-items: center; justify-content: center; gap: 1rem;
    min-height: 74px;
    padding: .55rem max(1.25rem, calc((100% - 1100px) / 2));
    background: var(--crimson);
    border-bottom: 2px solid var(--gold);
}
.nav-links { display: flex; justify-content: center; flex-wrap: nowrap; gap: .1rem .8rem; width: max-content; }
.site-nav a { display: block; padding: .95rem 1.15rem; color: var(--paper-light); font-family: var(--heading); font-size: 1.2rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--gold); }
.nav-socials { display: flex; align-items: center; gap: .35rem; margin-left: 0; }
.nav-socials a { padding: .6rem; line-height: 0; }
.nav-socials svg { width: 1.8rem; height: 1.8rem; fill: none; stroke: currentColor; stroke-width: 1.8; }
.nav-socials svg path:not(.play) { stroke: currentColor; }
.nav-socials svg .play { fill: currentColor; stroke: none; }

.main-content { width: min(1100px, calc(100% - 2rem)); margin: 50px auto; }
.paper-card, .support-card, .future-note { margin-bottom: 60px; padding: 50px; border-radius: 2px; }
.paper-card, .future-note { background: var(--paper); background-image: url('https://www.transparenttextures.com/patterns/p6.png'); border: 1px solid #c4af83; box-shadow: 5px 5px 20px rgba(0,0,0,.4), inset 0 0 50px rgba(130,100,60,.2); position: relative; }
.paper-card::before, .future-note::before { content: ''; position: absolute; inset: 10px; border: 1px solid rgba(130,100,60,.15); pointer-events: none; }
.paper-card p, .future-note p { max-width: 700px; margin: .75rem auto; }
.paper-card h2, .future-note h2 { text-align: center; }
.paper-card .section-label, .future-note .section-label { text-align: center; }
.support-card { display: flex; align-items: center; justify-content: space-between; gap: 2rem; color: var(--paper-light); background: var(--crimson); border: 1px solid var(--gold); box-shadow: 5px 8px 24px rgba(0,0,0,.25); }
.support-card h2 { color: var(--paper-light); }
.support-card p { margin-bottom: 0; }
.support-card > div { flex: 1; }

.games-area { margin-bottom: 60px; }
.section-heading {
    margin: 0 0 2rem;
    color: var(--paper-light);
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}
.grid-container { display: flex; flex-wrap: wrap; gap: 20px; }
.game-item {
    position: relative;
    display: flex;
    flex: 1 1 280px;
    min-width: 0;
    min-height: 420px;
    align-items: flex-end;
    overflow: hidden;
    background-position: center;
    background-size: cover;
    border: 2px solid var(--gold);
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(0,0,0,.6);
    transition: transform .3s ease, box-shadow .3s ease;
}
.game-item.featured-boardgames {
    flex-basis: 100%;
    min-height: 380px;
    border-width: 3px;
}
.game-item:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(0,0,0,.8); }
.game-content {
    width: 100%;
    padding: 25px 20px;
    color: var(--paper-light);
    text-align: center;
    background: rgba(116,18,32,.95);
    border-top: 2px solid var(--gold);
    transform: translateY(calc(100% - 112px));
    transition: transform .4s ease-in-out;
}
.game-content h3 { margin: 0 0 10px; color: var(--paper-light); font: 700 1.6rem/1.2 var(--heading); }
.game-content p { margin: 0; font-size: 1.3rem; line-height: 1.45; opacity: 0; transition: opacity .4s ease-in-out; }
.game-item:hover .game-content, .game-item:focus-within .game-content { transform: translateY(0); }
.game-item:hover .game-content p, .game-item:focus-within .game-content p { opacity: 1; }

.hours-card { text-align: center; }
.notice { font-style: italic; }
.hours-list { max-width: 540px; margin: 1.5rem auto 0; }
.hours-list div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px dotted rgba(52,38,28,.4); }
.hours-list dt { font-weight: 700; }
.hours-list dd { margin: 0; }

.social-section { padding: 2.5rem 1rem; color: var(--paper-light); text-align: center; }
.social-section h2 { color: var(--paper-light); }
.social-section p { max-width: 650px; margin: 0 auto 1.25rem; }
.social-links { display: flex; justify-content: center; flex-wrap: wrap; gap: .75rem; }
.social-links span, .social-links a { padding: .65rem 1rem; color: var(--paper-light); border: 1px solid var(--gold); border-radius: 999px; font-family: var(--heading); font-size: 1rem; text-decoration: none; }
.social-links a:hover, .social-links a:focus-visible { color: var(--gold); }
.future-note { text-align: center; }
.site-footer { padding: 2.5rem 1rem; color: var(--ink); text-align: center; background: var(--paper-light); border-top: 4px solid var(--crimson); }
.footer-logo { width: min(190px, 55vw); margin: 0 auto 1rem; }
.site-footer p { margin: 0; font-size: 1rem; }

@media (max-width: 640px) {
    body {
        font-size: 1.2rem;
    }
    .site-nav {
        display: none;
    }
    .support-card { align-items: stretch; flex-direction: column; gap: 1rem; }
    .support-card .button { align-self: flex-start; }
    .game-item, .game-item.featured-boardgames { min-height: 360px; }
    .game-content { transform: translateY(0); }
    .game-content p { opacity: 1; font-size: 1.15rem; }
    .hours-list div { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; }
}

/* This temporary landing page intentionally uses no decorative photos. */
#site, #o-nas, #startovac, #hry, #oteviraci-doba { scroll-margin-top: 5rem; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.hours-list dt, .hours-list dd { overflow-wrap: anywhere; }
.site-footer .footer-logo { max-height: 120px; object-fit: contain; }
/* Navigace je určena jen pro počítače; na telefonech a užších displejích se skryje. */
@media (max-width: 1024px) {
    .site-nav { display: none; }
}
@media (max-width: 640px) {
    .main-content { margin-top: 2rem; }
    .site-nav a { min-height: 2.25rem; }
}
