/* =====================================================
   2nd International Egodocumental Network Conference
   Main stylesheet
===================================================== */
/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Lora:wght@400;500;600;700&family=Source+Sans+3:wght@400;500;600;700&display=swap');

/* ---------- Variables ---------- */

:root{

    --primary:#B32025;
    --primary-dark:#8E171C;

    --header-bg:#1E2A38;

    --menu-bg:#FCFCFB;
    --menu-text:#27313B;

    --text:#202020;
    --text-light:#666666;

    --background:#FFFFFF;
    --background-light:#F7F7F5;

    --border:#DEDEDE;

    --shadow:0 8px 25px rgba(0,0,0,.07);

    --transition:.28s ease;

    --max-width:1200px;
    
    --font-size-body:19px;
    --font-size-paragraph:21px;

}

/* ---------- Base ---------- */

*,
*::before,
*::after{
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{

    font-family:"Lora", Georgia, serif;

    font-size:var(--font-size-body);

    line-height:1.8;

    color:var(--text);

    background:var(--background);
}
p{

    font-size:1.1rem;      /* ok. 21 px */

    line-height:1.9;

    margin-bottom:1.5rem;

}

img{

    max-width:100%;
    height:auto;
    display:block;

}

.container{

    width:min(92%, var(--max-width));

    margin:auto;

}

/* ---------- Typography ---------- */

h1,
h2,
h3,
h4{

    margin-top:0;

    font-family:"Cormorant Garamond", Georgia, serif;

    font-weight:500;

    line-height:1.3;

}

h1{
    font-size:4rem;
    line-height:1.25;
    margin-bottom:1rem;
}

h2{
    font-size:2.4rem;
    line-height:1.3;
    margin-bottom:0.8rem;
}

h3{
    font-size:2rem;
    line-height:1.35;
    margin-bottom:0.6rem;
}

/* ---------- Header ---------- */

header{

    background:var(--header-bg);

    color:#fff;

    border-bottom:4px solid var(--primary);

}

header a{

    color:#fff;

    text-decoration:none;

}

/* =====================================================
   MENU
===================================================== */

nav.left{

    position:sticky;

    top:0;

    z-index:1000;

    background:rgba(252,252,251,.97);

    backdrop-filter:blur(8px);

    border-bottom:1px solid var(--border);

    box-shadow:0 2px 8px rgba(0,0,0,.05);

    display:flex;

    justify-content:center;

}

/* kontener menu */

nav.left ul{

    display:flex;

    justify-content:center;

    align-items:center;

    flex-wrap:wrap;

    gap:0;

    margin:0;

    padding:0;

    list-style:none;

    width:fit-content;

}

/* element listy */

nav.left li{

    margin:0;

    padding:0;

}

/* linki oraz span */

nav.left a,
nav.left span{

    position:relative;

    display:block;

    padding:20px 28px;

    color:var(--menu-text);

    text-decoration:none;

    font-weight:600;

    cursor:pointer;

    transition:
        color .28s ease;

}

/* animowane podkreślenie */

nav.left a::after,
nav.left span::after{

    content:"";

    position:absolute;

    left:50%;

    bottom:0;

    width:0;

    height:3px;

    background:var(--primary);

    transition:
        width .30s ease,
        left .30s ease;

}

/* hover */

nav.left a:hover,
nav.left span:hover{

    color:var(--primary);

}

nav.left a:hover::after,
nav.left span:hover::after{

    left:18px;

    width:calc(100% - 36px);

}

/* aktywna pozycja */

nav.left .active,
nav.left .selected,
nav.left .current{

    color:var(--primary);

}

nav.left .active::after,
nav.left .selected::after,
nav.left .current::after{

    left:18px;

    width:calc(100% - 36px);

}

/* focus */

nav.left a:focus-visible{

    outline:2px solid var(--primary);

    outline-offset:4px;

}

/* ---------- Hero ---------- */

.hero{

    padding:100px 0;

}

.hero h1{

    max-width:900px;

}

.hero p{

    max-width:800px;

    font-size:1.25rem;

    color:var(--text-light);

}

.hero .date{

    color:var(--primary);

    font-weight:700;

    text-transform:uppercase;

    letter-spacing:.05em;

}

/* ---------- Buttons ---------- */

.btn{

    display:inline-block;

    padding:15px 34px;

    border-radius:4px;

    background:var(--primary);

    color:#fff;

    text-decoration:none;

    transition:
        background .3s ease,
        transform .2s ease,
        box-shadow .2s ease;

}

.btn:hover{

    background:var(--primary-dark);

    transform:translateY(-2px);

    box-shadow:0 8px 18px rgba(0,0,0,.15);

}

.btn-outline{

    background:transparent;

    color:var(--primary);

    border:2px solid var(--primary);

}

.btn-outline:hover{

    background:var(--primary);

    color:#fff;

}

/* ---------- Sections ---------- */

section{

    padding:80px 0;

}

section:nth-of-type(even){

    background:var(--background-light);

}

/* ---------- Cards ---------- */

.card{

    background:#fff;

    border:1px solid var(--border);

    padding:35px;

    box-shadow:var(--shadow);

    transition:
        transform .25s ease,
        box-shadow .25s ease;

}

.card:hover{

    transform:translateY(-6px);

    box-shadow:0 12px 30px rgba(0,0,0,.12);

}

/* ---------- Tables ---------- */

table{

    width:100%;

    border-collapse:collapse;

}

th{

    background:var(--primary);

    color:#fff;

    text-align:left;

}

th,
td{

    padding:18px;

    border-bottom:1px solid var(--border);

}

/* ---------- Footer ---------- */

footer{

    background:var(--header-bg);

    color:rgba(255,255,255,.8);

    padding:60px 0;

}

footer a{

    color:#fff;

    text-decoration:none;

}

footer a:hover{

    color:var(--primary);

}

/* ---------- Responsive ---------- */

@media (max-width:900px){

    h1{
        font-size:3rem;
    }

    h2{
        font-size:2.2rem;
    }

    nav.right ul{

        flex-direction:column;

        width:100%;

    }

    nav.right a,
    nav.right span{

        text-align:center;

        padding:16px 20px;

    }

}

@media (max-width:600px){

    body{
        font-size:17px;
    }

    h1{
        font-size:2.4rem;
    }

    h2{
        font-size:1.9rem;
    }

    section{
        padding:60px 0;
    }

}

/* Szerokość głównej zawartości */



#content{

    width:100%;

    max-width:none;

}