:root {
    --border-radius: 12px;
    --font-mono: ui-monospace, Menlo, Monaco, 'Cascadia Mono', 'Segoe UI Mono',
    'Roboto Mono', 'Oxygen Mono', 'Ubuntu Monospace', 'Source Code Pro',
    'Fira Mono', 'Droid Sans Mono', 'Courier New', monospace;
    --font-sans-serif: Arial, Helvetica, sans-serif;
    --font-serif: 'Playfair Display', 'Times', 'Times New Roman', 'Serif';
    --foreground-rgb: rgb(0, 0, 0);
    --background-start-rgb: rgb(219, 219, 219);
    --background-end-rgb: rgb(255, 255, 255);
}

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}


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

a:hover {
  color: blue;
}

a:hover img {
    opacity: 1; /* 0 is transparent, 1 is fully opaque */
    transition: opacity 0.3s ease; /* Adds a smooth fade effect */
}

html,
body {
    font-family: var(--font-serif);
    letter-spacing: 0.025em;
    max-width: 100vw;
    overflow-x: hidden;
    padding: 1.5rem 2rem;
}

body {
    background: linear-gradient(
        to bottom,
        transparent,
        var(--background-end-rgb)
    )
    var(--background-start-rgb);
    color: var(--foreground-rgb);
}

footer {
    margin-top: 4rem;
    width: 100%;
}

hr {
    border: 1.3px solid black;
    color: rgb(var(--foreground-rgb));
    margin-bottom: 0.5rem;
}

.current-section {
    color: white;
    font-family: var(--font-sans-serif);
    font-weight: bold;
    background-color: black;
}

.footnote {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-align: center;
}

.grid {
    margin-bottom: 1.5rem;
}

.in-text-icon {
    aspect-ratio: 1 / 1;
    height: 1.1rem;
    object-fit: contain;
    opacity: 0.5;
    vertical-align: text-bottom;
    width: 1.1rem;
}

.nav-bar {
    background-color: lightgray;
}
/* Convert the list into a horizontal layout using Flexbox */
.nav-list {
    display: flex;
    justify-content: center; /* Centers the navigation items horizontally */
    list-style-type: none; /* Removes bullet points */
    margin-bottom: 1rem;
    margin-top: 0.5rem;
    width: 100%;
}

/* Style the individual link items */
.nav-list a {
    display: block;
    font-family: var(--font-sans-serif);
    font-size: 1rem;
    font-weight: bolder;
    padding: 0 1.5rem;
    text-align: center;
    text-decoration: none; /* Removes text underlines */
    transition: opacity 0.3s ease;
}

.nav-list .current-section a {
    background-color: black;
    color: white;
    opacity: 1;
}

.nav-list a:not(.current-section) {
    color: black;
    opacity: 0.5;
}

/* Add interactive visual feedback on hover */
.nav-list a:hover {
    color: blue;
    opacity: 1;
}

/* Add a vertical separator between items, except for the last */
nav ul li:not(:last-child) {
  border-right: 1px solid black; 
}

.page-nav-link {
    font-family: var(--font-sans-serif);
    font-size: 1rem;
}
  
.page-nav-link-block {
    margin: 1rem 0;
}

.site-date {
    font-family: var(--font-sans-serif);
    font-size: 1rem;
    float: left;
}

.site-header-2-columns {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: 5rem auto;
    margin-bottom: 0.6rem;
}

.site-header-block  {
    align-items: inherit;
    display: block;
    max-width: var(--max-width);
    padding-bottom: 1.2rem;
}

.site-header-date-weather-line {
    padding-bottom: 1.5rem;
}

.site-header-left-column {
  display: flex;
  flex-direction: column; /* Optional: ensures children stack vertically */
  align-items: center;    /* Centers image horizontally in column mode */
  justify-content: center;
}

.site-header-profile-pic {
    height: 5rem;
    object-fit: cover;
    opacity: 0.82;
    text-align: center;
    vertical-align: top;
    width: 5rem;
}

.site-header-subtitle-line {
    font-family: var(--font-sans-serif);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.site-header-subtitle {
    font-family: var(--font-sans-serif);
    font-size: 1.2rem;
    font-weight: bold;
}
.site-header-title {
    font-family: var(--font-serif);
    font-size: 3.2rem;
    font-weight: bold;
}

.site-weather {
    float: right;
    font-family: var(--font-sans-serif);
    font-size: 1rem;

}

.site-header-icon {
    height: 1.5rem;
    object-fit: contain;
    opacity: 0.58;
    vertical-align: text-bottom;
    width: 1.5rem;
}

.site-header-icon-block {
    float: right;
}

/* Tablet and Smaller Desktop */
@media (min-width: 900px) {

    /* this is not currently in use */
    .small-screen-element {
        display: none;
    }
}

/* Mobile */
@media (max-width: 900px) {

    /* this is not currently in use */
    .big-screen-element {
        display: none;
    }

    .nav-list {
        margin-bottom: 0.5rem;
        margin-top: 0.5rem;
    }

    .nav-list a {
        padding: 0 1rem;
    }

    .site-date {
        display: block;
        float: none;
        /* font-size: 0.8rem; */
        font-weight: bold;
        margin-bottom: 0;
        margin-top: 1rem;
        padding: 0;
        text-align: center;
        width: 100%;
    }

    .site-header-2-columns {
        display: block;
        margin-bottom: 0;
    }

    .site-header-block  {
        padding-bottom: 0.6rem;
        margin-bottom: 0
    }

    .site-header-date-weather-line {
        font-size: 0.9rem;
        line-height: 1.4rem;
        padding-bottom: 0;
    }

    .site-header-icon-block {
        display: block;
        float: none;
    }

    .site-header-left-column {
        text-align: center;
    }
    .site-header-subtitle-line {
        display: inline-block;
        line-height: 2.2rem;
        text-align: center;
        width: 100%;
    }

    .site-header-title {
        font-size: 2.7rem;
        text-align: center;
    }

    .site-weather {
        display: block;
        float: none;
        font-size: 0.9rem;
        margin-bottom: 1rem;
        text-align: center;
    }

}

@media (max-width: 510px) {

    .nav-list a {
        font-size: 0.8rem;
        padding: 0 0.5rem;
    }    
}