:root {
    --color:#091411;
    
    --link:#710c00;
    --linkhover:#02533c;
    
    --boxbg:rgb(159,250,214,0.6);
    --boxcolor:#091411;
}

@media (prefers-color-scheme: dark) {
    :root {
        --color:#e2e3b8;
        
        --link:#feb82c;
        --linkhover:#fbfd7d;
        
        --boxbg:rgb(9,18,16,0.6);
        --boxcolor:#e2e3b8;
    }
}

* { margin: 0; padding: 0; transition: color 0.5s ease, opacity 0.5s ease;}
img { margin:5px; max-width:100%; }

body { 
    color:var(--color);
    background:#0a2a1f;
    background:linear-gradient(0deg, #0a2a1f 0%, #0f5f45 70%) no-repeat;
    font: 1rem 'Atkinson Hyperlegible', sans-serif; 
    letter-spacing:.35px;
    min-height:100vh;
}

main {
    padding:10px;
    width:calc(90% - 60px);
    max-width: 900px;
    margin:auto;
    display:flex;
    align-items:center;
    gap:20px;
}

#main-image {
    height:90vh;
    width:auto;
}

#desc {
    padding:10px;
}

a {
    color:var(--link);
}

a:hover, a:focus {
    color: var(--linkhover);
}

p {
    margin:10px 0px 10px 0px;
    line-height:1.5;
}

main h1 {
    font-size:2em;
    font-weight:bold;
    margin:5px 0 5px 0;
}

main .caption {
    background:var(--boxbg);
    padding: 10px;
    color:var(--boxcolor);
    border-radius:5px;
    box-shadow:5px 5px 0 rgb(0,0,0.5);
}

@media (prefers-color-scheme: dark) {
    img {
        opacity:0.8;
    }
    
    img:hover {
        opacity:1;
    }
}

@media screen and (max-width: 900px) {
    main {
        display:block;
        text-align:center;
        width:calc(100% - 60px);
    }
    
    #main-image {
        height:auto;
        width:calc(100% - 90px);
    }
    
    #desc {
        margin-bottom:10px;
    }
}