:root {
    --section-hue: 229;
    --section-sat: 33%;
    --section-light-start: 7.6%;
    --section-light-end: 15.7%;
    --page-light: 10%;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: Arial, sans-serif;
    background-color: #0d0f1a;
    color: #d9d5ea;
    scroll-behavior: smooth;
}
#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background-color: #fcc466;
    width: 0%;
    z-index: 1001;
    transition: width 0.1s linear;
}
#headerLogo {
    width: 4rem;
}
nav {
    background-color: #0a0c14;
    position: fixed;
    padding: 1rem 2rem;
    overflow: auto;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 2rem;
}
nav a {
    color: #cdc9e6;
    text-decoration: none;
    font-size: 1.1rem;
}
nav a:hover {
    color: #fcc466;
}
nav a.active {
    color: #fcc466;
    border-bottom: 2px solid #fcc466;
}
section {
    min-height: 100vh;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: hsl(var(--section-hue) var(--section-sat) calc(
        var(--section-light-start)
        + (var(--section-light-end) - var(--section-light-start)) * var(--index, 0) / max(var(--count, 2) - 1, 1)
    ));
}
section h1 {
    font-size: 2.5rem;
    color: #fcc466;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateX(100px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
section p {
    max-width: 600px;
    color: #b9b4d4;
    text-align: center;
    line-height: 1.6;
    font-size: 1.1rem;
    opacity: 0;
    transform: translateX(-100px);
    transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}
section.visible h1 {
    opacity: 1;
    transform: translateX(0);
}
section.visible p {
    opacity: 1;
    transform: translateX(0);
}
.article-grid {
    width: 100%;
    max-width: 1000px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.article-card {
    display: block;
    background-color: hsl(var(--section-hue) var(--section-sat) calc(var(--section-light-start) + 5%));
    border: 1px solid hsl(var(--section-hue) var(--section-sat) 24%);
    border-radius: 8px;
    padding: 1.5rem;
    text-decoration: none;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease 0.25s, transform 0.6s ease 0.25s, border-color 0.2s ease, box-shadow 0.2s ease;
}
section.visible .article-card {
    opacity: 1;
    transform: translateY(0);
}
.article-card:hover {
    border-color: #fcc466;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.article-card h2 {
    color: #fcc466;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}
.card-date {
    display: block;
    color: #8f8aa8;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}
.card-excerpt {
    color: #b9b4d4;
    line-height: 1.5;
    font-size: 0.95rem;
}
.article-page {
    min-height: 100vh;
    background-color: hsl(var(--section-hue) var(--section-sat) var(--page-light));
    padding: 8rem 2rem 4rem;
    display: flex;
    justify-content: center;
}
article {
    width: 100%;
    max-width: 720px;
}
.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    color: #cdc9e6;
    text-decoration: none;
    font-size: 1rem;
}
.back-link:hover {
    color: #fcc466;
}
article h1 {
    color: #fcc466;
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}
.article-date {
    display: block;
    color: #8f8aa8;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}
article p,
article li {
    color: #d9d5ea;
    line-height: 1.8;
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}
article h2 {
    color: #fcc466;
    font-size: 1.6rem;
    margin: 2rem 0 1rem;
}
article h3 {
    color: #e5e1f2;
    font-size: 1.3rem;
    margin: 1.5rem 0 0.75rem;
}
article a {
    color: #fcc466;
}
article ul,
article ol {
    margin: 0 0 1.2rem 1.5rem;
}
article blockquote {
    border-left: 3px solid #fcc466;
    padding-left: 1rem;
    margin: 1.5rem 0;
    color: #b9b4d4;
    font-style: italic;
}
article code {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 0.15em 0.4em;
    border-radius: 4px;
    font-size: 0.9em;
}
