@font-face {
    font-family: "CrimsonPro";
    src: url("/fonts/CrimsonPro-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "CrimsonPro";
    src: url("/fonts/CrimsonPro-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "CrimsonPro";
    src: url("/fonts/CrimsonPro-Italic.ttf") format("truetype");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

:root {
    --bg-color: #fdfbf7;
    --text-color: #1a1a1a;
    --meta-color: #666666;
    --border-color: rgba(0, 0, 0, 0.08);
    --font-body: 'Lora', serif;
    --font-heading: 'Playfair Display', serif;
    --max-width-content: 1300px;
}

[data-theme="dark"] {
    --bg-color: #111111;
    --text-color: #e2e2e2;
    --meta-color: #999999;
    --border-color: rgba(255, 255, 255, 0.08);
}

* {
    box-sizing: border-box;
    font-family: "CrimsonPro", serif !important;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.85;
    margin: 0;
    transition: background-color 0.3s ease;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    max-width: 100%;
}

.elegant-navbar {
    width: 100%;
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.4rem 0;
}

.nav-content {
    max-width: var(--max-width-content);
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.nav-section {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-right {
    justify-content: flex-end;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-color);
    opacity: 0.7;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
}

.nav-link:hover {
    opacity: 1;
    letter-spacing: 2px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--text-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
}

.nav-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    font-style: italic;
    color: var(--text-color);
    line-height: 1;
    text-decoration: none;
}

.theme-switch {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.75rem;
    color: var(--text-color);
    opacity: 0.4;
    transition: opacity 0.3s ease;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#theme-toggle .icon-sun { display: none; }
[data-theme="dark"] #theme-toggle .icon-sun { display: inline; }
[data-theme="dark"] #theme-toggle .icon-moon { display: none; }

.mobile-menu-toggle { display: none; }
.mobile-menu { display: none; }

main {
    max-width: var(--max-width-content);
    margin: 6rem auto;
    padding: 0 1.5rem;
}

.article-header {
    text-align: center;
    margin-bottom: 5rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 7vw, 3.8rem);
    font-weight: 400;
    font-style: italic;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.date-meta {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--meta-color);
    letter-spacing: 1px;
}

.article-content {
    font-size: 1.15rem;
    color: var(--text-color);
}

.article-content p {
    margin-bottom: 2rem;
}

.article-content > p:first-of-type::first-letter {
    float: left;
    font-family: var(--font-heading);
    font-size: 5.2rem;
    line-height: 0.8;
    margin-top: 0.1em;
    padding-right: 12px;
    font-weight: 400;
    color: var(--text-color);
}

.page-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 3rem;
    text-align: center;
}

.clean-list {
    list-style: none;
    padding: 0;
}

.clean-list li {
    border-bottom: 1px solid var(--border-color);
}

.clean-list a {
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    font-family: var(--font-heading);
    font-size: 1.25rem;
}

.clean-list a:hover { opacity: 0.6; }

.clean-list .date {
    font-size: 0.9rem;
    font-family: var(--font-body);
    color: var(--meta-color);
}

footer {
    text-align: center;
    padding: 6rem 0 3rem 0;
    font-size: 0.85rem;
    color: var(--meta-color);
    font-family: var(--font-heading);
}

.home-hero-image {
    display: flex;
    justify-content: center;
    margin-bottom: 3.5rem;
}

.home-hero-image img {
    max-width: 280px;
    height: auto;
    border-radius: 2px;
    opacity: 0.95;
}

.section-label {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    opacity: 0.5;
    text-align: center;
}

.vier-null-vier {
    font-family: var(--font-heading);
    font-size: 15rem;
    font-weight: 400;
    margin-bottom: 3rem;
    text-align: center;
}

/* handyyy */
@media (max-width: 768px) {
    .nav-content {
        display: flex;
        justify-content: space-between;
        padding: 0 1rem;
    }

    .nav-section { display: none; }

    .nav-center {
        flex-direction: row;
        gap: 0.8rem;
        align-items: center;
    }

    .nav-brand { font-size: 1.2rem; }

    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 4px;
        background: none;
        border: none;
        cursor: pointer;
    }

    .mobile-menu-toggle span {
        width: 18px;
        height: 1px;
        background-color: var(--text-color);
        display: block;
    }

    .mobile-menu {
        flex-direction: column;
        background-color: var(--bg-color);
        border-top: 1px solid var(--border-color);
        padding: 1.5rem 2rem;
        gap: 1.2rem;
    }

    .mobile-menu.active { display: flex; }
    
    main { margin: 3rem auto; }
    .hero-title { font-size: 2.2rem; }
}

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