:root{
  --charcoal:#1B1B1B; --ink:#F3EBDD; --amber:#FFC857;
  --amber-50p:rgba(255,200,87,0.5);
  --amber-35p:rgba(255,200,87,0.35);
  --amber-20p:rgba(255,200,87,0.2);
  --amber-10p:rgba(255,200,87,0.1);
  --amber-5p:rgba(255,200,87,0.05);
}
html{
    background:var(--charcoal);
    position: relative;

    &::before {
        content: "";
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background:url('lamplight-bg1.png');
        pointer-events: none;
        z-index: -100;
    }
}
body{
    color:var(--ink);
    font-family:"Inter", system-ui, sans-serif;
    height:100%; width:100%;
    
    transform: translateZ(0);

    &::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background:url('lamplight-bg1.png');
        pointer-events: none;
        z-index: -100;
    }

    &::after {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to bottom right, rgba(255, 244, 227, 0.74), rgba(0, 0, 0, 0.089));
        opacity: 1.0;
        mix-blend-mode: overlay;
        pointer-events: none;
    }
}

body,html { padding:0 ; margin:0; }

.wordmark{
  font-family:"Milonga", serif;
  font-size: 1em;
  font-kerning:normal; text-rendering:optimizeLegibility;
  margin: 0; padding:0;
  user-select:none;
}

.wordmark .tld{
  opacity:.56;                   /* let “.io” recede slightly */
}

/* We want the top nav bar to push down the content when we're scrolled to the top
    but to stay fixed at the top of the viewport when we scroll down. */
header.topnav {
    position: sticky;
    top: 0;
    width: 100%;
    background: rgba(27, 27, 27, 0.8); /* Semi-transparent background */
    backdrop-filter: blur(10px); /* Blur effect for the background */
    z-index: 10; /* Ensure it stays above other content */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Optional shadow for depth */
    border-bottom: 1px solid var(--amber-20p);
}

.nav-container {
    max-width: 1200px; /* Limit the width of the nav content */
    margin: 0 auto; /* Center the nav content */
    display: flex;
    justify-content: space-between; /* Space between logo and links */
    align-items: center; /* Vertically center items */
}

.col-1200 {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: row;

    /* We always want it to fill all the available width until it hits the max-width */
    width: 100%;
}

ul.nav-links {
    list-style: none;
    margin: 0;
    display: flex;
    justify-content: flex-end; /* Align links to the right */
    gap: 1.5em; /* Space between links */
}

ul.nav-links li {
    position: relative; /* For positioning the underline pseudo-element */
}

ul.nav-links li a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease; /* Smooth color transition on hover */
    height: 4em;
    line-height: 4em;
    display: block;
    padding: 0 1em;

    /* Underline effect using a pseudo-element */
    &::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 2px; /* Thickness of the underline */
        background-color: var(--amber); /* Color of the underline */
        transform: scaleX(0); /* Start with no width */
        transform-origin: bottom right; /* Origin for the scaling effect */
        transition: transform 0.3s ease; /* Smooth transition for the scaling */
    }

    /* On hover, we will put a subtle underline */
    position: relative;
    &:hover::after {
        transform: scaleX(1);
    }
}

/* On all but the last link in nav, add a vertical separator */
ul.nav-links li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 20%; /* Center the separator vertically */
    right: calc(-1.5em / 2); /* Position it at the right edge of the link */
    width: 1px; /* Width of the separator */
    height: 60%; /* Height of the separator */
    background-color: var(--amber); /* Color of the separator */
    opacity: 0.3; /* Slightly faded */
    pointer-events: none; /* Ensure it doesn't interfere with link clicks */
}

.aside {
    /* Align items to the left inside the aside */
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    align-content: center;

}

.content {
    /* Center the content both vertically and horizontally */
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    width: 100%;
    position: relative;

    /* We can do this all in css without javascript. Our navbar is sticky. If we scroll down and it stops taking space, we want to fill the space it left behind. */
    min-height: calc(100vh - 4em); /* Full viewport height minus the nav height */
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-start; /* Align items to the left */
    align-items: flex-start; /* Align items to the top */
    flex-direction: column;
    width: 100%;
    box-sizing: border-box; /* Include padding in width calculations */
    position: relative;
    border-left: 1px solid var(--amber-20p);
    border-right: 1px solid var(--amber-20p);

    &::after {
        content: "";
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
        background: linear-gradient(to bottom right, rgba(255, 244, 227, 0.74), rgba(0, 0, 0, 0.089));
        mix-blend-mode: overlay;
        opacity: 0.5;
        z-index: -1;
    }
}

.logo-header {
    font-size:clamp(44px, 8vw, 104px);
    align-items: center;
    text-align: center; /* Center text inside the content div */
    padding-bottom: 0.1em;
    border-bottom: 1px solid var(--amber-10p);
}

.body-text {
    position: relative;
    flex-grow: 1; /* Allow this section to grow and fill available space */
    flex-direction: column;
}

.body-text-inner {
    padding: 1em 2em;
    text-align: justify;
}

.logo {
    /* Inside content, sized just slightly smaller than 'i' */
    /* Positioned above the wordmark */
    vertical-align: middle;
    width: 1.6em; height:1.6em;
    position: relative;
    user-select: none;
}

.logo-container {
    /* Create a radial gradient about halfway down the logo */
    position: relative;
    margin-left: 0.5em;
}

.logo-container::after {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    width: 220%; height: 220%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle at center, rgb(255, 232, 103) 0%, rgba(255, 174, 0, 0.733) 20%, rgba(255, 123, 0, 0.384) 40%, rgba(255, 123, 0, 0.0) 50%);
    border-radius: 50%;
    mix-blend-mode: screen;
    opacity: 0.1;
    z-index: 2;
}

.darker-5 {
    position: relative;

    &::before {
        content: "";
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(27, 27, 27, 0.05);
        mix-blend-mode: multiply;
        backdrop-filter: blur(5px);
        z-index: -1;
    }
}

.darker-10 {
    position: relative;

    &::before {
        content: "";
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(27, 27, 27, 0.1);
        mix-blend-mode: multiply;
        backdrop-filter: blur(5px);
        z-index: -1;
    }
}

.darker-20 {
    position: relative;

    &::before {
        content: "";
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(27, 27, 27, 0.2);
        mix-blend-mode: multiply;
        backdrop-filter: blur(5px);
        z-index: -1;
    }
}

.vsep {
    width: 1px; /* Vertical separator width */
    height: 1.4em; /* Match the logo height */
    margin: 0 0.5em 0 0; /* Space around the separator */
    background: var(--ink);
    opacity: 0.56; /* Slightly faded */
}