:root {
    --black: #020202;
    --black-2: #101010;
    --white: #f4f4f4;
    --gray: #b3b3b3;
    --gold: #d4af37;
    --gold-soft: rgba(212, 175, 55, 0.12);
    --border: rgba(212, 175, 55, 0.18);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: radial-gradient(circle at top left, rgba(212, 175, 55, 0.12), transparent 25%),
                radial-gradient(circle at bottom right, rgba(212, 175, 55, 0.08), transparent 20%),
                linear-gradient(180deg, var(--black) 0%, #070707 100%);
    color: var(--white);
    min-height: 100vh;
}

a {
    color: var(--white);
    text-decoration: none;
}

.page-wrapper {
    padding-top: 88px;
}

.page-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 28px 40px;
    min-height: calc(100vh - 128px);
}

.sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.18);
}

.sidebar h2 {
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gold);
    margin-bottom: 18px;
}

.nav-group {
    margin-bottom: 24px;
}

.nav-group button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border: none;
    background: transparent;
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    padding: 14px 0;
    cursor: pointer;
}

.nav-group button:hover {
    color: var(--gold);
}

.nav-group button::after {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-left: 12px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.25s ease, color 0.25s ease;
}

.nav-group button[data-open="true"]::after {
    transform: rotate(-135deg);
}

.nav-items {
    list-style: none;
    padding-left: 0;
    margin-top: 8px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s ease;
}

.nav-items.open {
    max-height: 480px;
}

.nav-items li {
    margin-bottom: 10px;
}

.nav-items li a {
    display: block;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255,255,255,0.02);
    color: var(--gray);
    font-size: 0.95rem;
}

.nav-items li a:hover,
.nav-items li a.active {
    color: var(--white);
    background: rgba(212, 175, 55, 0.12);
}

.content {
    min-width: 0;
}

.content-header,
.hero {
    margin: 0 0 32px;
    padding: 24px;
    border-radius: 24px;
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid rgba(255,255,255,0.06);
}

.breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    color: var(--gray);
    font-size: 0.95rem;
}

.breadcrumb a {
    color: var(--white);
}

.breadcrumb span {
    opacity: 0.65;
}

.content .eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.08);
    color: var(--gold);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.content h1,
.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.8rem, 4vw, 3.8rem);
    line-height: 1.02;
    margin-bottom: 18px;
}

.content p.lead,
.hero p,
.card p,
.card ol {
    color: var(--gray);
    line-height: 1.85;
    margin-bottom: 20px;
}

.content p.lead {
    width: 100%;
    max-width: none;
    font-size: 1.05rem;
}

.card {
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 30px;
    margin-bottom: 24px;
    box-shadow: 0 14px 48px rgba(0, 0, 0, 0.16);
    scroll-margin-top: 120px;
}

.card h2 {
    font-size: 1.35rem;
    margin-bottom: 16px;
}

.card ul,
.card ol {
    padding: 0;
    margin: 0;
}

.card li {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--white);
}

.card li span {
    color: var(--gold);
    font-size: 0.9rem;
    line-height: 1.6;
}

.card li p {
    margin: 0;
    color: var(--gray);
    font-size: 0.96rem;
    line-height: 1.75;
}

.article-post {
    width: 100%;
    padding: clamp(24px, 4vw, 52px);
}

.article-post h2 {
    margin-top: 54px;
    margin-bottom: 18px;
    padding-top: 26px;
    border-top: 1px solid rgba(212, 175, 55, 0.16);
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3vw, 2.45rem);
    line-height: 1.12;
}

.article-post h2:first-of-type {
    margin-top: 24px;
}

.article-post h3 {
    margin-top: 30px;
    margin-bottom: 12px;
    color: var(--white);
    font-family: 'Playfair Display', serif;
    font-size: 1.45rem;
    line-height: 1.2;
}

.article-post > p {
    max-width: 980px;
    color: var(--gray);
    font-size: 1rem;
    line-height: 1.85;
}

.article-post strong {
    color: var(--white);
}

.article-post ul,
.article-post ol {
    max-width: 980px;
    margin: 8px 0 24px;
    padding-left: 24px;
}

.article-post li {
    display: list-item;
    margin-bottom: 10px;
    padding-left: 6px;
    color: var(--gray);
    line-height: 1.7;
}

.article-post ul li::marker,
.article-post ol li::marker {
    color: var(--gold);
    font-weight: 700;
}

.article-highlight {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 30px;
    align-items: center;
    max-width: 720px;
    margin: 26px 0;
    padding: 20px 24px;
    border-left: 3px solid var(--gold);
    border-radius: 4px 14px 14px 4px;
    background: rgba(212, 175, 55, 0.08);
}

.article-highlight strong {
    color: var(--gold);
    font-size: 1.05rem;
    letter-spacing: 0.04em;
}

.article-signature {
    display: grid;
    gap: 8px;
    margin-top: 56px;
    padding-top: 24px;
    border-top: 1px solid rgba(212, 175, 55, 0.28);
}

.article-signature strong {
    color: var(--gold);
    font-size: 1.05rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.article-signature em {
    color: var(--gray);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 32px;
}

.post-card {
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 360px;
    overflow: hidden;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: #111;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.post-card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: var(--gold);
    content: '';
}

.post-card:hover {
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.32);
    transform: translateY(-5px);
}

.post-card__topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    min-height: 54px;
}

.post-card__label {
    padding-top: 4px;
    color: var(--gold);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.post-card__number {
    color: rgba(212, 175, 55, 0.2);
    font-family: 'Playfair Display', serif;
    font-size: 3.1rem;
    line-height: 0.75;
}

.post-card__content {
    flex: 1;
    padding-top: 30px;
}

.post-card h2 {
    max-width: 390px;
    margin-bottom: 14px;
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.45rem, 2.4vw, 1.9rem);
    line-height: 1.08;
}

.post-card h2 a {
    transition: color 0.2s ease;
}

.post-card h2 a:hover {
    color: var(--gold);
}

.post-card p {
    margin: 0;
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.65;
}

.post-card__subtitle {
    margin-bottom: 14px;
    color: var(--white) !important;
    font-size: 0.93rem !important;
    font-weight: 600;
}

.post-card__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.post-card__link span {
    color: var(--gold);
    font-size: 1.25rem;
    line-height: 0.8;
    transition: transform 0.2s ease;
}

.post-card__link:hover {
    color: var(--gold);
}

.post-card__link:hover span {
    transform: translate(3px, -3px);
}

.tips {
    display: grid;
    gap: 16px;
    margin-top: 8px;
}

.tip {
    border-radius: 18px;
    background: rgba(212, 175, 55, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.16);
    padding: 18px;
}

.tip strong {
    display: block;
    margin-bottom: 10px;
    color: var(--white);
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 10px;
}

.note {
    margin-top: 24px;
    padding: 20px;
    border-radius: 20px;
    background: rgba(212,175,55,0.08);
    border: 1px solid rgba(212,175,55,0.16);
    color: var(--white);
}

.mobile-nav {
    display: none;
    position: fixed;
    inset: 72px 20px auto auto;
    z-index: 1200;
    width: calc(100% - 40px);
    max-width: 360px;
    background: rgba(10, 10, 10, 0.98);
    border: 1px solid rgba(212, 175, 55, 0.14);
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
}

.mobile-nav.open {
    display: block;
}

.mobile-nav .nav-group {
    margin-bottom: 18px;
}

.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1100;
}

.overlay.open {
    display: block;
}

.site-footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(212, 175, 55, 0.16);
}

.site-footer .footer {
    padding: 24px 20px 18px;
    background: transparent;
    color: var(--white);
}

.site-footer .footer-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.site-footer .footer-logo {
    margin-bottom: 12px;
}

.site-footer .footer-logo img {
    height: 28px;
    opacity: 0.72;
}

.site-footer .footer-text,
.site-footer .footer-rule {
    display: none;
}

.site-footer .footer-bottom {
    margin: 0;
    color: rgba(244, 244, 244, 0.45);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
}

#scrollRail {
    display: none !important;
}

@media (max-width: 980px) {
    .page-shell {
        grid-template-columns: 1fr;
        padding: 120px 20px 30px;
    }

    .sidebar {
        display: none;
    }

    .mobile-menu-button {
        display: inline-flex;
    }
}

@media (max-width: 700px) {
    .page-shell {
        padding-top: 100px;
    }

    .content h1,
    .hero h1 {
        font-size: 2.5rem;
    }

    .card {
        padding: 22px;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .post-card {
        min-height: 0;
        padding: 22px;
    }

    .post-card__content {
        padding-top: 20px;
    }
}
