:root {
    --body-font: 'Montserrat', sans-serif;
    --title-font: 'Barlow Semi Condensed', sans-serif;
    --quote-font: 'Lora', sans-serif;

    --body-color: #202020;
    --body-bg: #F8F8F8;
    --body-accent: #9F6AF6;
    
    --header-color: #FFFFFF;
    --header-bg: #9F6AF6;
    --header-image: linear-gradient( #9F6AF6, #6845A0 );

    --footer-color: #FFFFFF;
    --footer-bg: #9F6AF6;
    --footer-image: linear-gradient( #9F6AF6, #6845A0 );

    --bottombar-color: #D0D0D0;
    --bottombar-bg: #404040;
}

html { scroll-behavior: smooth; }

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var( --body-bg );
    font-family: var( --body-font );
    font-size: 1rem;
    font-weight: 400;
    font-style: normal;
    color: var( --body-color );
    line-height: 1;
}

a { 
    color: inherit;
    text-decoration: none;
}

strong { font-weight: 500; }
em { font-style: italic; }
q { font-style: italic; }
q::before, q::after { content: '"'; }

blockquote { 
    padding: 20px;
    margin-bottom: 1em;
    font-family: var( --quote-font );
    font-size: 1.5rem;
    background-color: #EEE6F9;
    border-left: 4px solid var( --body-accent );
}

.flex-center {
    display: flex;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 1280px;
}

.menu-ul { display: flex; }

.row {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

[class*='col-'] { width: 100%; }

/* -------- Header ---------------------------------------------------------------- */

#header-wrapper {
    background-color: var( --header-bg );
    background-image: var( --header-image );
    color: var( --header-color );
}

#header-items {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

#header-branding {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 10px;
}

.site-logo { 
    height: 50px;
    border: 1px solid var( --header-color );
    border-radius: 50%;
}

.site-title {
    font-family: var( --title-font );
    font-size: 2.5rem;
    font-weight: 600;
}

#header-menu { display: none; }
#header-menu a {
    display: flex;
    align-items: center;
    height: 70px;
    padding: 0 1em;
    font-weight: 500;
    text-transform: uppercase;
    transition: all .2s ease;
}
#header-menu a:hover {
    background-color: var( --header-color );
    color: var( --header-bg );
}

/* -------- Hero ---------------------------------------------------------------- */

#hero-wrapper {
    position: relative;
    background-color: #00000080;
    color: #FFFFFF;
    overflow: hidden;
}

#hero-video {
    position: absolute;
    z-index: -1;
    bottom: 0;
    left: 50%;
    transform: translateX( -50% );
    min-width: 100%;
    min-height: 100%;
}

#hero-items { padding: 30px; }

.hero-title {
    font-size: clamp( 1.5rem, 4vw + 1rem, 4rem );
    font-weight: 600;
}

#hero-text {
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: center;
    line-height: 1.5;
    border-radius: 10px;
}

#hero-text strong { color: var( --body-accent ); }

/* -------- Main ---------------------------------------------------------------- */

#main-wrapper { flex: 1; }

#main-items { padding: 30px; }

.section-title {
    margin-bottom: 15px;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    color: var( --body-accent );
}

.section-content {
    padding-bottom: 30px;
    margin-bottom: 30px;
    line-height: 1.5;
    border-bottom: 1px solid #D0D0D0;
}

.section-content p { margin-bottom: 1em; }

section.blog-post {
    padding: 0;
    margin: 0;
    border-bottom: none;
}

section.blog-post .section-title { display: none; }

/* -------- Footer ---------------------------------------------------------------- */

#footer-wrapper {
    background-color: var( --footer-bg );
    background-image: var( --footer-image );
    color: var( --footer-color );
}

#footer-items {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 30px;
}

/* -------- Bottombar ---------------------------------------------------------------- */

#bottombar-wrapper {
    background-color: var(--bottombar-bg );
    color: var( --bottombar-color );
    font-size: .75rem;
}

#bottombar-items {
    display: flex;
    justify-content: center;
    padding: 15px 0;
}

/* -------- Articles ---------------------------------------------------------------- */

.entry-item {
    display: flex;
    flex-direction: column;
    margin: 0 0 30px;
}
.entry-item:last-of-type { margin-bottom: 0; }

.entry-image-wrap {
    display: block;
    width: 100%;
    height: 240px;
    margin: 0 0 15px;
    overflow: hidden;
    border-radius: 5px;
}

.entry-image {
    display: block;
    width: 100%;
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.entry-header { flex: 1; }

.entry-title {
    margin-bottom: 2rem;
    font-family: var( --title-font );
    font-size: clamp( 1.5rem, 2vw + 1rem, 2rem );
    font-weight: 600;
}

.entry-excerpt { margin-bottom: 15px; }
.entry-excerpt h2 { 
    margin-bottom: 1em;
    font-size: clamp( 1rem, 1vw + 1rem, 1.25rem );
    font-weight: 500;
}
.entry-excerpt ul, .entry-excerpt ol { margin: 0 1.5em 1em; }
.entry-excerpt ul { list-style-type: disc; }
.entry-excerpt ol { list-style-type: decimal; }
.entry-excerpt li { margin: .5em 0; }

.entry-meta { 
    display: flex;
    gap: .25em;
    font-size: .9rem;
}

.entry-author, .entry-date {
    display: flex;
    flex-wrap: nowrap;
    gap: .25em;
}

/* -------- Widgets ---------------------------------------------------------------- */

.widget { 
    display: flex;
    flex-direction: column;
    margin: 0 0 30px;
 }
.widget:last-of-type { margin-bottom: 0; }

.widget-title {
    margin-bottom: 15px;
    font-size: .9rem;
    font-weight: 500;
    text-transform: uppercase;
}

.widget-content { 
    font-size: .9rem;
    line-height: 1.5;
}

.widget.About {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.widget-image {
    display: block;
    aspect-ratio: 1 / 1;
}

.widget.About .widget-image {
    width: 48px;
    height: 48px;
    margin: 0 0 15px;
    border-radius: 50%;
}

.widget.About .widget-body {
    flex: 1; 
    text-align: center;
}

.widget.Photo .widget-photo-wrap {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    margin-bottom: 7px;
    background-color: transparent;
    border-radius: 5px;
    overflow: hidden;
}
.widget.Photo .widget-photo {
    display: block;
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
.widget.Photo .widget-caption {
    font-size: .9rem;
    font-weight: 500;
    font-style: italic;
}

/* -------- Slider ---------------------------------------------------------------- */

#slide-overlay {
    display: none;
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #00000060;
    backdrop-filter: blur( 5px );
}

#slide-wrapper {
    position: fixed;
    z-index: 200;
    top: 0;
    right: -330px;
    width: 300px;
    height: 100%;
    background-color: var( --body-bg );
    border-left: 4px solid var( --body-accent );
    box-shadow: 0 0 30px 0 #000000;
    transition: all .2s ease;
}

#slide-wrapper.open { right: 0; }

#slide-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 50px;
}

#slide-open, #slide-close { 
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
}

#slide-menu a {
    display: flex;
    align-items: center;
    height: 45px;
    padding: 0 30px;
    text-transform: uppercase;
}

/* -------- Back-2-Top ---------------------------------------------------------------- */

#b2t-wrapper {
    position: fixed;
    z-index: 1000;
    bottom: -60px;
    right: 0;
    padding: 16px;
    transition: all .2s ease;
}
#b2t-wrapper.show { bottom: 0; }

#b2t-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    font-size: 30px;
    color: var( --body-bg );
    background-color: var( --body-accent );
    border-radius: 50%;
    box-shadow: 0 0 8px 0 #00000080;
}

/* -------- Responsive ---------------------------------------------------------------- */

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and ( min-width: 600px ) {
    
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and ( min-width: 768px ) {

    .row { flex-direction: row; }
    .col-1 { width: 8.33%; }
    .col-2 { width: 16.66%; }
    .col-3 { width: 25%; }
    .col-4 { width: 33.33%; }
    .col-5 { width: 41.66%; }
    .col-6 { width: 50%; }
    .col-7 { width: 58.33%; }
    .col-8 { width: 66.66%; }
    .col-9 { width: 75%; }
    .col-10 { width: 83.33%; }
    .col-11 { width: 91.66%; }
    .col-12 { width: 100%; }
    
    #header-menu { display: inline; }
    #slide-open { display: none; }
    #slide-wrapper { display: none; }

    #main-items { padding: 60px; }

    #footer-items { flex-direction: row; padding: 60px; }

    .blog-post .entry-item { flex-direction: column; }
    .blog-post .entry-image-wrap { width: 100%; height: auto; aspect-ratio: 16 / 6; margin: 0 0 30px; }

    .widget.About { flex-direction: row; justify-content: space-between; }
    .widget.About .widget-image { margin: 0 15px 0; }
    .widget.About .widget-body { text-align: left; }
}   

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and ( min-width: 992px ) {
    
    .entry-item { flex-direction: row; justify-content: space-between; }
    .entry-image-wrap { width: 340px; height: 170px; margin: 0 30px 0 0; }
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and ( min-width: 1200px ) {

    #hero-items { padding: 120px; }
}
