@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;700&family=Montserrat:wght@400;500;600&display=swap');

:root {
    --background: #050505;
    --card-background: rgba(0, 0, 0, 0.65);
    --accent: #b28540;
    --accent-secondary: #6d081c;
    --text: #f8f8f2;
    --border: rgba(255, 255, 255, 0.12);
    --overlay: rgba(0, 0, 0, 0.6);
    --hero-image: url('/static/media/horribleHabsburger.jpg');
    --font-primary: 'Cormorant Garamond', 'Times New Roman', serif;
    --font-secondary: 'Montserrat', system-ui, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(120deg, rgba(5, 5, 5, 0.85), rgba(5, 5, 5, 0.65)),
        var(--hero-image) center/cover fixed;
    color: var(--text);
    font-family: var(--font-secondary, 'Montserrat'), system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.page-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.6) 100%);
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 3vw;
    background: rgba(10, 10, 10, 0.6);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 5;
}

header h1 {
    margin: 0;
    font-family: var(--font-primary, 'Cormorant Garamond'), serif;
    font-size: clamp(1.9rem, 2.5vw, 2.6rem);
    letter-spacing: 0.1em;
}

nav {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

nav a.active {
    border-color: var(--accent);
    color: var(--accent);
}

nav a:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
}

nav a.lang-link {
    border-color: rgba(255, 255, 255, 0.15);
    font-size: 0.85rem;
}

main {
    flex: 1;
    padding: 2rem 3vw 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero {
    display: grid;
    gap: 1.2rem;
}

.hero-meta {
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
}

.hero h2 {
    margin-top: 0;
    font-size: clamp(2rem, 3vw, 2.8rem);
    letter-spacing: 0.04em;
    font-family: var(--font-primary, 'Cormorant Garamond'), serif;
}

.hero p {
    margin: 0.4rem 0;
    line-height: 1.7;
}

.hero-cta {
    display: inline-flex;
    justify-content: center;
}

.hero-cta .cta {
    padding: 0.75rem 1.6rem;
    border-radius: 999px;
    border: 1px solid var(--accent);
    color: var(--text);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.panel {
    background: var(--card-background);
    border-radius: 1.1rem;
    padding: 1.8rem;
    border: 1px solid var(--border);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
}

.panel h3 {
    margin-top: 0;
    font-family: var(--font-primary, 'Cormorant Garamond'), serif;
    font-size: 1.8rem;
}

.panel p,
.panel li,
.panel span {
    color: rgba(255, 255, 255, 0.92);
}

.section-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.section-list section h4 {
    margin: 0;
    font-family: var(--font-primary, 'Cormorant Garamond'), serif;
    font-size: 1.3rem;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.article-card {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 1rem;
    padding: 1.3rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.article-card.featured {
    border-color: var(--accent);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.35);
}

.article-card h4 {
    margin: 0;
    font-size: 1.1rem;
}

.article-card p {
    margin: 0;
    line-height: 1.6;
}

.article-card .article-meta {
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.article-card .article-cta {
    font-size: 0.85rem;
    color: var(--accent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
    gap: 1.5rem;
}

.aside-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.aside-panel h4 {
    margin: 0;
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.timeline {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.timeline li {
    padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.9rem;
}

.download-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.download-list li a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
}

.download-list li a:hover {
    color: var(--accent);
}

.categories .pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.8rem;
}

.pill {
    padding: 0.4rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

footer {
    padding: 1.2rem 3vw 1.6rem;
    border-top: 1px solid var(--border);
    background: rgba(10, 10, 10, 0.6);
    text-align: center;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

footer p {
    margin: 0;
}

@media (max-width: 900px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    nav {
        justify-content: center;
    }
}
