/* Import Google Fonts - Premium Modern Stack */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400;1,600&display=swap');

:root {
    /* Premium Light Palette - "Paper & Gold" */
    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.9);

    --text-main: #1e293b;
    --text-muted: #475569;
    --text-light: #94a3b8;

    /* Gold/Bronze Accents */
    --accent-primary: #b45309;
    --accent-secondary: #d97706;
    --accent-gradient: linear-gradient(135deg, #b45309 0%, #d97706 100%);

    --border-color: #e2e8f0;
    --glass-border: 1px solid rgba(226, 232, 240, 0.8);

    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --card-hover-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    --glow: 0 0 20px rgba(251, 191, 36, 0.1);
    /* Kept for potential future use or if other elements still use it */

    --font-heading: 'Outfit', sans-serif;
    --font-serif: 'Cormorant Garamond', serif;
    --font-body: 'Outfit', sans-serif;

    --container-width: 900px;
    --header-height: 80px;
}

/* Base Reset & Typography */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-page);
    /* Subtle texture pattern for editorial feel */
    background-image:
        radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 32px 32px;
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    line-height: 1.2;
    margin-bottom: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
}

a:hover {
    color: var(--accent-secondary);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
}

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Glassmorphism Header */
.site-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.site-header h1 {
    font-size: 1.5rem;
    margin: 0;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-main);
}

.site-header h1 a {
    color: inherit;
    background: none;
    -webkit-text-fill-color: initial;
    text-decoration: none;
}

.site-header h1 a:hover {
    opacity: 0.7;
    text-decoration: none;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

main {
    padding: 4rem 0;
    min-height: 100vh;
    animation: fadeInUp 0.8s ease-out;
}

/* Blog Post Container */
.blog-post {
    background: var(--bg-card);
    padding: 5rem;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}

/* Top Accent Line */
.blog-post::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--accent-gradient);
}

/* Post Header */
.post-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.post-category {
    font-family: var(--font-heading);
    color: var(--accent-primary);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 0.5rem 1rem;
    background: rgba(180, 83, 9, 0.08);
    /* Light amber tint */
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 2rem;
}

.post-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--text-main);
    background: none;
    -webkit-text-fill-color: initial;
    text-shadow: none;
}

.post-meta {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-family: var(--font-serif);
    font-style: italic;
    opacity: 0.8;
    /* Kept for consistency, though not explicitly changed */
}

/* Content Styling */
.post-content {
    font-size: 1.125rem;
    color: var(--text-main);
}

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

.post-content p.lead {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-main);
    margin-bottom: 4rem;
    border-left: 3px solid var(--accent-primary);
    padding-left: 2rem;
    font-style: italic;
    background: linear-gradient(to right, rgba(180, 83, 9, 0.03), transparent);
    border-radius: 0 8px 8px 0;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.post-content h2 {
    font-size: 2rem;
    margin-top: 5rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
    color: var(--text-main);
}

/* Lists */
.post-content ul {
    list-style: none;
    margin-bottom: 3rem;
    padding-left: 0;
}

.post-content li {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    position: relative;
    color: var(--text-muted);
}

.post-content li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: bold;
}

.post-content li strong {
    color: var(--text-main);
    font-weight: 700;
}

/* Modern clean Tables */
.table-responsive {
    width: 100%;
    margin: 4rem 0;
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    background: #fff;
}

thead {
    background: #f1f5f9;
}

th {
    text-align: left;
    padding: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
}

td {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
    vertical-align: middle;
}

tr:last-child td {
    border-bottom: none;
}

/* Hover Effect for Table Rows */
tbody tr {
    transition: background-color 0.2s ease;
}

tbody tr:hover {
    background: #f8fafc;
}

/* Numerical Rank Accent */
td:first-child {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--accent-primary);
    width: 80px;
    font-size: 1.1rem;
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 6rem 0;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    background: #fff;
    position: relative;
}

.site-footer p {
    color: var(--text-muted);
    font-size: 0.875rem;
    /* opacity: 0.6; - Removed as per new instruction */
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    :root {
        --container-width: 100%;
        --header-height: 70px;
    }

    body {
        background-size: 100% 100%;
    }

    .blog-post {
        padding: 2rem 1.5rem;
        background: #fff;
        border: none;
        border-bottom: 1px solid var(--border-color);
        box-shadow: none;
        border-radius: 0;
    }

    .blog-post::before {
        height: 4px;
    }

    .post-title {
        font-size: 2.25rem;
    }

    .post-content p.lead {
        font-size: 1.25rem;
        padding-left: 1.5rem;
        border-left-width: 3px;
    }

    .table-responsive {
        margin: 2rem -1.5rem;
        width: calc(100% + 3rem);
        border-radius: 0;
        border-right: none;
        border-left: none;
    }

    th,
    td {
        padding: 1rem;
        font-size: 0.85rem;
    }
}