: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);
    --sr66color-fl180: rgb(0, 233, 240);
    --sr66color-fl430: rgb(0, 75, 200);
    --sr66color-relaxing-sky: rgb(0, 168, 200);
}

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

@view-transition {
  navigation: auto;
}

::view-transition-group(root) {
  animation-duration: 1000ms;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.5s ease;
}

a img {
    filter: saturate(35%);
    transition: filter 0.5s ease;
}

a:hover {
    color: var(--sr66color-fl430);
}

a:hover img {
    filter: saturate(100%);
}

a:hover .keyword-tile-index-size {
    border: solid 1px var(--sr66color-fl430);
}

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;
}

#conditional-visibility {
    display: inherit;
}

#conditional-visibility.hidden {
    display: none;
}

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

.in-text-icon {
    aspect-ratio: 1 / 1;
    filter: saturate(0%);
    height: 1.1rem;
    margin-left: 0.2rem;
    object-fit: contain;
    vertical-align: text-bottom;
    width: 1.1rem;
}

.keywords {
    font-family: var(--font-sans-serif);
    margin-bottom: 1rem;
}

.keyword-tile-detail-size {
    border: solid 1px black;
    border-radius: 6px;
    font-size: 0.8rem;
    line-height: 1.75rem;
    padding: 0.2rem;
    white-space: nowrap;
}

.keyword-tile-index-size {
    border: solid 1px black;
    border-radius: 6px;
    font-size: 0.6rem;
    line-height: 1.1rem;
    padding: 0.15rem;
    white-space: nowrap;
}

/* Convert the list into a horizontal layout using Flexbox */
.nav-list {
    display: flex;
    justify-content: center; /* Centers the navigation items horizontally */
    line-height: 0;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
    white-space: nowrap;
    width: 100%;
}

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

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

.nav-list-decoration {
    border-bottom: solid 1px black;
    font-weight: bold;
    margin-left: 1rem;
    margin-right: 1rem;
    min-width: 8.5rem;
    width: 30%;
}

.nav-list-link:hover {
    background-color: var(--sr66color-fl430);
    color: white;
    opacity: 1;
}

.nav-list-link {
    color: black;
    font-family: var(--font-sans-serif);
    font-size: 1rem;
    font-weight: bold;
    opacity: 0.25;
    padding: 0 1.5rem;
    transition: background-color 0.5s ease;
    transition: color 0.5s ease;
    transition: opacity 0.5s ease;
}

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

.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;
    filter: saturate(0%);
    object-fit: contain;
    opacity: 0.68;
    transition: filter 0.5s ease;
    transition: opacity 0.5s ease;
    vertical-align: text-bottom;
    width: 1.5rem;
}

.site-header-icon:hover {
    opacity: 1.00;
}

.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-bar {
        background-color: lightgray;
        margin-bottom: 1.5rem;
    }

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

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

    .nav-list-decoration {
        display: none;
    }

    .site-date {
        display: block;
        float: none;
        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 {
        line-height: 0.7rem;
    }

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