/* Variables */

:root {
    --textColor: #04151F; /* Ink Black */
    --pageBackground:  #FBFBFA; /* Bright Snow */
    --boldColor: #C0737A; /* Dusty Rose */
    --highlightColor: #478566; /* Jungle Teal */
}

/* Fonts */

@font-face {
    font-family: 'EB Garamond';
    src: url('fonts/EBGaramond-VariableFont_wght.woff2') format('woff2');
    font-style: normal;
    font-display: swap;
    font-weight: 400 800;
}

@font-face {
    font-family: 'EB Garamond';
    src: url('fonts/EBGaramond-Italic-VariableFont_wght.woff2') format('woff2');
    font-style: italic;
    font-weight: 400 800;
    font-display: swap;
}

@font-face {
    font-family: 'Tilt Warp';
    src: url('fonts/TiltWarp-Regular-VariableFont_XROT,YROT.woff2') format('woff2');
    font-style: normal;
    font-display: swap;
    font-weight: 400;
}

@font-face {
    font-family: 'Cedarville Cursive';
    src: url('fonts/CedarvilleCursive-Regular.woff2') format('woff2');
    font-style: normal;
    font-display: swap;
    font-weight: 400;
}

/* Full Body Properties */

body {
    background-color: var(--pageBackground);
    color: var(--textColor);
}

/* General Site Content */

.siteContent {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    grid-template-areas:
        "header header"
        "main  sidebar"
        "footer footer";
    gap: 24px;
    margin: 0 auto;
    max-width: 1250px;
}

hr {
    border: 0;
    border-bottom: 1px dashed white;
    background: #999;
}

/* Header */

.header {
    grid-area: header;
}

.header h1 {
    font-family: "Tilt Warp";
    font-size: 4rem;
    color: var(--boldColor);
    filter: drop-shadow(5px 5px black);
}

.header h3 {
    margin-top: -40px;
    font-family: "Cedarville Cursive";
    font-size: 2rem;
}

/* Main Content & Posts */

.main {
    grid-area: main;
    font-family: "EB Garamond";
}

.main p {
    font-size: 1.3rem;
}

.main h2 a{
    font-family: "Tilt Warp";
    font-size: 1.6rem;
    color: var(--textColor);
    margin-bottom: -10px;
    padding: 7px;
    border-left: 8px solid var(--highlightColor);
    text-decoration: none;
    text-underline-offset: 3px;
}

.main h2 a:hover {
    text-decoration: var(--boldColor) underline;
}

.mainPageTimestamp {
    font-family: "Cedarville Cursive";
}

.continue a {
    color: var(--highlightColor);
}

.continue a:hover {
    color: var(--boldColor);
}

.endofPost a {
    color: var(--textColor);
    text-decoration: 2px var(--highlightColor) underline;
    text-underline-offset: 3px;
}

.endofPost a:hover {
    text-decoration: 2px var(--boldColor) underline;
}

.endofPost ul {
    list-style-type: none;
    margin-left: -40px;
}

/* Individual Posts on their Own Page */

.postTitle {
    font-family: "Tilt Warp";
    border-left: 8px solid var(--highlightColor);
}

.postTitle h1 {
    margin-left: 5px;
    font-size: 1.6rem;
}


.timestamp {
    font-family: "Cedarville Cursive";
}

.postNavigation a {
    color: var(--textColor);
    font-size: 1.5rem;
}

.postNavigation a:hover {
    text-decoration: var(--boldColor) underline;
}

.emoji {
    text-decoration: none;
}


/* Sidebar */

.sidebar {
    grid-area: sidebar;
    border-left: 1px dashed gray;
    padding-left: 20px;
    font-family: "EB Garamond";
    font-size: 1.1rem;
}

.sidebarHeading {
    border-left: 8px solid var(--boldColor);
}

.sidebarHeading h3 {
    padding: 5px;
    margin-left: 2px;
    font-family: "Tilt Warp";
}

.sidebarContent ul {
    list-style-type: none;
    margin-left: -40px;
}

.sidebar a {
    color: var(--textColor);
    text-decoration: var(--highlightColor) 2px underline;
    text-underline-offset: 2px;
}

.sidebar a:hover {
    color: var(--textColor);
    text-decoration: var(--boldColor) 2px underline;
    text-underline-offset: 2px;
}

/* Footer */

.footer {
    grid-area: footer;
    text-align: center;
    font-family: "EB Garamond";
}

.footer a {
    color: var(--textColor);
    text-decoration: 2px var(--boldColor) underline;
}

.footer a:hover {
    text-decoration: 2px var(--highlightColor) underline;
}

.vibes {
    font-family: "Cedarville Cursive";
}


/* Post Archive */

.archive li {
    font-size: 1.3rem;
}

.archive a {
    color: var(--textColor);
    text-decoration: 1px var(--boldColor) underline;
    text-underline-offset: 2px;
}

.archive a:hover {
    text-decoration: 1px var(--highlightColor) underline;
}


/* Mobile Media Query */

@media screen and (max-width: 768px) {
    .siteContent {
        grid-template-areas:
        "header header"
        "main  main"
        "sidebar sidebar"
        "footer footer";
    }

    .sidebar {
        border-left: none;
    }
}
