:root {
    --background-color: white;
    --primary-text-color: black;
    --secondary-text-color: #616161;
    --link-text-color: blue;
    --hover-color: #eeeeee;

    /* Yellow Highlight */
    --color-amber-700: oklch(0.555 0.163 48.998);
    --color-yellow-200: oklch(0.945 0.129 101.54);
    --color-violet-700: oklch(0.491 0.27 292.581);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

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

header {
    display: flex;
    flex-direction: row;
    margin-left: 10%;
    margin-top: 2em;
}

footer {
    display: flex;
    flex-direction: row-reverse;
    margin-right: 10%;
    margin-bottom: 2em;
}

time {
    margin-left: auto;
    color: var(--secondary-text-color);
}

a, a:hover, a:visited, a:active {
    color: inherit;
    text-decoration: none;
   }

.blogPost {
    transition: background-color 0.3s ease;
    border-radius: 5px;
    padding-right: 1em;
    padding-left: 1em;
    padding-bottom: 1em;
    margin-bottom: 1em;
}

.blogPost:hover {
    background-color: var(--hover-color); /* Light grey background on hover */
}

.postAndTime {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.pageContent {
    display: flex;
    flex-direction: column;
    align-items: left;
    width: 50%;
}

.excerpt p {
    margin-top: 0em;
    margin-bottom: 0.5em;
}

/* Custom class for link attention */
.link_attention {
    text-decoration: underline;
}

.link_attention:hover {
    text-decoration: none;
}

/* "custom-gradient" defines the nlj trademark lifting underlines */ 
.custom-gradient {
    background-image: linear-gradient(to right, var(--color-yellow-200), var(--color-yellow-200)); /* from-yellow-200 to-yellow-200 */
    background-size: 100% 0.2em;
    background-position: 0 88%;
    background-repeat: no-repeat;
    transition: all 200ms; /* motion-safe:transition-all motion-safe:duration-200 */
}

.custom-gradient:hover,
.custom-gradient:focus {
    background-size: 100% 100%;
}

@media (prefers-reduced-motion: no-preference) {
    .custom-gradient {
        transition: all 200ms;
    }
}

/* Dark mode styles */
@media (prefers-color-scheme: dark) {
    :root {
        --background-color: #121212;
        --primary-text-color: #FFFFF0;
        --secondary-text-color: #cccccc;
        --link-text-color: lightblue;
        --hover-color: #333333;
    }

    body {
        background-color: black;
        color: var(--primary-text-color);
    }


    .custom-gradient {
        background-image: linear-gradient(to right, var(--color-amber-700), var(--color-violet-700)); /* dark:from-amber-700 dark:to-violet-700 */
    }
}
