/* main.css */

/* Outline:
   - Global
   - Elements
   - Width
   - Dynamism
   - Classes
 */

/* Global */

::selection {
  background: #fbb;
}

/* Elements */

a {
  color: #a00;
}

a:active, a:hover, a:focus {
  color: #800;
}

body {
  font-family: -apple-system, 'BlinkMacSystemFont', 'HelveticaNeue', Helvetica, sans-serif;
}

h1 {
    font-size: 3rem;
    padding-top: 6rem;
}

h2 {
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.6;
    padding-bottom: 1rem;
}

html, body, .content {
    background-color: #fefefe;
}

/* Width */

@media (max-width: 575.98px) {
    .header, .container.main, .container.photos {
        margin-left: 1.5rem!important;
        margin-right: 1.5rem!important;
        width: auto;
    }

    .hidden-small {
        opacity: 0;
    }

    .footer {
        padding-right: 3rem!important;
        text-align: right;
    }

    .links {
        flex-direction: column-reverse!important;
    }
}

@media (min-width: 992px) {
    .container.main {
        max-width: 50rem;
    }
}

/* Dynamism */

@media (max-width: 991.98px) {
    .small-only {
        display: inline-block;
    }
    .large-only {
        display: none;
    }
    .photo {
        border-radius: 0.7em;
        border: 0.4em solid #fefefe;
    }
}

@media (min-width: 992px) {
    .small-only {
        display: none;
    }
    .large-only {
        display: inline-block;
    }
    .photo {
        border-radius: 1.4em;
        border: 0.7em solid #fefefe;
    }
}

/* Classes */

.secondary {
    color: #777; /* 🤞 */
}

.tertiary {
    color: #ddd;
}

.quaternary {
    font-size: 0.5rem;
}

.hidden {
    opacity: 0;
}

.links>div {
    padding-left: 0.5rem!important;
    padding-right: 0.5rem!important;
}

.about {
    font-size: 1.1rem;
    line-height: 1.667rem;
}

/* https://css-tricks.com/creating-sliding-effects-using-sticky-positioning/
   https://stackoverflow.com/a/39278236/2546659 */

.floating {
    position: relative;
    z-index: 0;
}

.photo {
    box-shadow: 0em 0.7em 1.4em 0em rgba(0, 0, 0, 0.3);
}

.sticky {
    position: sticky;
    z-index: -1;
}

.sticky.header {
    top: 0;
}

.container.main, .container.photos {
    padding-bottom:6rem;
}

.container.main, .container.main > .container {
    padding-top:6rem;
}

.container.photos > .container {
    padding-bottom:6rem;
    background-color: #fefefe;
}

.content {
    box-shadow: 0 0 1.5rem 0 #0003;
}

.sticky.footer {
    bottom: 2rem;
    max-width: 100%;
}
