/* Reset and Base Styles */
:root {
    --bg-color: #f9f9f9;
    --text-color: #000000;
    --link-color: #000000;
    --bg-highlight-color: #0051ff;
    --text-inverse-color: #ffffff;
    --font-mono: "JetBrains Mono", "Roboto Mono", "Menlo", "Monaco",
        "Courier New", monospace;
    --spacing-unit: 1rem;
}

* {
    box-sizing: border-box;
}

ul {
    padding-left: 0;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-mono);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.28rem;
    font-size: 0.8rem; /* Monospace tends to look larger, 14px is a good base similar to reference */
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: underline;
    text-underline-offset: 0.32em;
    color: var(--link-color);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

a:hover {
    border-bottom: 1px solid var(--text-color);
    background-color: var(--bg-highlight-color);
    padding: 0.08rem;
    color: var(--text-inverse-color);
}

/* Navigation */
.top-nav {
    position: sticky;
    z-index: 10;
    top: 0;
    background: var(--bg-color);
    padding-left: 1rem;
    padding-right: 1rem;
}

.top-nav ul {
    list-style: none;
    margin-top: 0;
    display: flex;
    flex-wrap: none;
    overflow-x: auto;
    white-space: nowrap;
    gap: 24px;
}

.top-nav a {
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.top-nav a:hover {
    border-bottom: none; /* Custom hover for nav */
    text-decoration: underline;
}

/* Layout */
.container {
    max-width: 40rem; /* Tighter constraint for readability */
    margin: 0 0;
    padding: 1rem;
}
a
/* Sections */
section {
    scroll-margin-top: 100px; /* Offset for sticky nav */
}

.section-header {
    margin-bottom: 0.5rem;
}

.section-header h2 {
    font-size: 1.1rem;
    font-weight: bold;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-body {
    padding-left: 0; /* Aligned left, minimalist */
    margin-bottom: 2.4rem;
}

/* Lists */
.styled-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.styled-list li {
    margin-bottom: 0.16rem;
    position: relative;
    padding-left: 1rem;
}

.styled-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    opacity: 0.5;
}

/* Footer Links */
.footer-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: items-start;
    padding-right: 1rem;
    padding-left: 0;
    gap: 1rem;
}

.footer-meta {
    /* position to the bottom of the page always */

    bottom: 0;
    font-size: 0.8rem;
    opacity: 0.5;
    margin-top: 4rem;
    border-top: 1px solid #eee;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    .top-nav ul {
        gap: 16px;
        justify-content: flex-start;
    }
}
