:root {
    --bg: #1a120b;
    --panel: #2c1f16;
    --panel2: #3d2c21;
    --text: #f7f0e9;
    --muted: rgba(247, 240, 233, 0.7);
    --muted-light: #d4c9bc;
    --line: rgba(210, 150, 100, 0.25);
    --accent: #ff9966;
    --accent2: #cc7f4d;
    --ok: #66cc99;
    --shadow: 0 20px 30px rgba(0, 0, 0, 0.7);
    --radius: 16px;
    --radius2: 22px;
    --max: 1200px;
    --rainbow: linear-gradient(90deg,
        #ffaa66 0%,
        #ffbb77 25%,
        #ff9966 50%,
        #ff8866 75%,
        #ffaa77 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, li {
    list-style: none;
}

.wrap-w-st {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.skip {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip:focus {
    left: 16px;
    top: 16px;
    width: auto;
    height: auto;
    padding: 12px 20px;
    background: var(--panel);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    z-index: 9999;
}

header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(26, 18, 11, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.top-stripe {
    height: 3px;
    background: var(--rainbow);
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 220px;
}

.brand img {
    height: 65px;
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 4px;
}

nav a {
    display: inline-flex;
    padding: 8px 16px;
    color: var(--muted);
    font-weight: 500;
    border-radius: 30px;
    transition: all 0.2s ease;
    position: relative;
    font-size: 14px;
    white-space: nowrap;
    background: transparent;
    border: 1px solid transparent;
}

nav a:hover {
    color: var(--text);
    background: rgba(255, 170, 100, 0.15);
    border-color: rgba(255, 170, 100, 0.3);
}

nav a.active {
    color: var(--text);
    background: rgba(255, 170, 100, 0.2);
    border-color: rgba(255, 170, 100, 0.4);
}

.menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    background: rgba(255, 170, 100, 0.1);
    border: 1px solid rgba(255, 170, 100, 0.3);
    border-radius: 30px;
    color: var(--text);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.menu-btn:hover {
    background: rgba(255, 170, 100, 0.2);
}

.menu-btn svg {
    width: 22px;
    height: 22px;
}

.mobile-nav {
    display: none;
    padding: 10px 0 20px;
    gap: 10px;
    flex-wrap: wrap;
}

.mobile-nav.show {
    display: flex;
}

.mobile-nav a {
    display: inline-block;
    padding: 10px 18px;
    background: rgba(255, 170, 100, 0.08);
    border: 1px solid rgba(255, 170, 100, 0.2);
    border-radius: 40px;
    color: var(--muted-light);
    font-weight: 500;
    font-size: 14px;
    transition: 0.2s;
}

.mobile-nav a:hover {
    background: rgba(255, 170, 100, 0.15);
    color: var(--text);
    border-color: rgba(255, 170, 100, 0.4);
}

.hero {
    padding: 30px 0 20px;
}

.hero-main {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius2);
    padding: 30px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.hero-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--rainbow);
    border-radius: var(--radius2) var(--radius2) 0 0;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 30px;
    background: rgba(255, 170, 100, 0.15);
    border: 1px solid rgba(255, 170, 100, 0.3);
    color: var(--text);
    font-size: 12px;
    margin-bottom: 12px;
}

.hero-main h1 {
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 15px;
    letter-spacing: -0.02em;
}

.hero-main p {
    color: var(--muted-light);
    font-size: 16px;
    margin: 0;
}

.hero-side {
    background: var(--panel2);
    border: 1px solid var(--line);
    border-radius: var(--radius2);
    padding: 24px;
    box-shadow: var(--shadow);
}

.notice {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid rgba(102, 204, 153, 0.3);
    background: rgba(102, 204, 153, 0.08);
    color: var(--text);
    font-size: 13px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: transparent;
    border: 2px solid rgba(255, 170, 100, 0.5);
    border-radius: 40px;
    color: var(--text);
    font-weight: 600;
    font-size: 15px;
    transition: 0.2s ease;
    white-space: nowrap;
    cursor: pointer;
    letter-spacing: 0.3px;
}

.btn:hover {
    background: rgba(255, 170, 100, 0.15);
    border-color: #ffaa66;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 170, 100, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, #ffaa66, #ff8866);
    border: 2px solid transparent;
    color: #1a120b;
    font-weight: 700;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ffbb77, #ff9966);
    border-color: transparent;
    box-shadow: 0 5px 20px rgba(255, 170, 100, 0.4);
}

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 170, 100, 0.08);
    border: 1px solid rgba(255, 170, 100, 0.2);
    border-radius: 30px;
    color: var(--muted-light);
    font-size: 13px;
    font-weight: 500;
}

.chip::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #ffaa66;
    border-radius: 50%;
}

.section {
    margin: 40px 0;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 20px;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.section-header .sub {
    color: var(--muted-light);
    font-size: 14px;
    margin: 5px 0 0;
}

.grid {
    column-count: 4;
    column-gap: 20px;
    margin: 20px 0;
}

.post {
    break-inside: avoid;
    margin-bottom: 20px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: 0.3s ease;
    display: inline-block;
    width: 100%;
    position: relative;
}

.post:hover {
    border-color: #ffaa66;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.post-thumb {
    display: block;
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
    position: relative;
}

.post-thumb img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.post:hover .post-thumb img {
    opacity: 0.9;
}

.post-info {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    padding: 8px 12px;
    background: rgba(44, 31, 22, 0.95);
    backdrop-filter: blur(4px);
    text-align: center;
    border-radius: 30px;
    border: 1px solid rgba(255, 170, 100, 0.3);
    z-index: 2;
}

.post-title {
    font-size: 13px;
    margin: 0;
    color: var(--text);
    font-weight: 600;
    letter-spacing: 0.3px;
}

.post-content {
    padding: 16px;
}

.post-content .post-title {
    font-size: 16px;
    margin: 0 0 8px;
}

.post-meta {
    font-size: 13px;
    color: var(--muted-light);
    margin: 0 0 12px;
}

.post-actions-w-st {
    display: flex;
    gap: 8px;
}

.post-actions-w-st .btn {
    padding: 8px 16px;
    font-size: 13px;
    flex: 1;
}

.section .article-w-st {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius2);
    padding: 28px;
    margin: 40px 0;
    width: 100%;
}

.section .article-w-st:first-child {
    margin-right: 10px;
}

@media (min-width: 1025px) {
    .section .article-w-st {
        width: calc(50% - 10px);
        display: inline-block;
        vertical-align: top;
    }
}

.article-w-st h2 {
    font-size: 24px;
    margin: 0 0 15px;
}

.article-w-st h3 {
    font-size: 18px;
    margin: 25px 0 12px;
}

.article-w-st p {
    color: var(--muted-light);
    font-size: 16px;
    margin: 0 0 20px;
    line-height: 1.6;
}

.article-thumbs-w-st {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin: 25px 0;
}

.article-thumb {
    flex: 0 0 200px;
    max-width: 100%;
}

.article-thumb .post-thumb {
    border-radius: var(--radius);
    border: 1px solid var(--line);
}

.card {
    border: 1px solid var(--line);
    border-radius: var(--radius2);
    background: var(--panel);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin: 20px 0;
}

.card-pad {
    padding: 24px;
}

.title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 20px;
    letter-spacing: -0.4px;
}

.links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.pill {
    display: inline;
    padding: 0;
    border: none;
    background: none;
    color: var(--muted-light);
    font-size: 16px;
    font-weight: 400;
    transition: color 0.2s ease;
    border-bottom: 1px solid transparent;
}

.pill:hover {
    color: #ffaa66;
    background: none;
    border-bottom: 1px solid #ffaa66;
}

footer {
    border-top: 1px solid var(--line);
    background: #1a120b;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-grid {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-info {
    flex: 0 1 350px;
}

.footer-info p {
    color: var(--muted-light);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.footer-link-w-sts {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
    flex: 1;
    justify-content: flex-start;
}

.footer-col {
    min-width: 140px;
}

.footer-col h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 20px;
    color: #ffaa66;
    letter-spacing: 0.5px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    color: var(--muted-light);
    font-size: 14px;
    transition: color 0.2s ease;
    border-bottom: 1px solid transparent;
}

.footer-col a:hover {
    color: #ffaa66;
    border-bottom: 1px solid #ffaa66;
}

.footer-stamp {
    margin-top: 25px;
    max-width: 160px;
    border-radius: 12px;
    overflow: hidden;
}

.footer-stamp:hover {
    opacity: 0.9;
}

.footer-stamp img {
    width: 100%;
    height: auto;
    display: block;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 170, 100, 0.2);
    color: var(--muted-light);
    font-size: 13px;
}

@media (max-width: 1100px) {
    .grid {
        column-count: 3;
    }
}

@media (max-width: 1024px) {
    .grid {
        column-count: 2;
    }
    
    .section .article-w-st {
        width: 100%;
        margin-right: 0;
    }
}

@media (max-width: 920px) {
    nav {
        display: none;
    }
    
    .menu-btn {
        display: flex;
    }
    
    .section-header {
        padding: 0 5px;
    }
    
    .footer-grid {
        flex-direction: column-reverse;
    }
    
    .footer-link-w-sts {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .hero-main {
        padding: 24px;
    }
    
    .hero-main h1 {
        font-size: 32px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 10px;
    }
    
    .article-w-st {
        padding: 20px;
    }
    
    .grid {
        column-count: 2;
        column-gap: 12px;
    }
    
    .post-info {
        bottom: 8px;
        left: 8px;
        right: 8px;
        padding: 6px 10px;
    }
    
    .post-info .post-title {
        font-size: 12px;
    }
    
    .footer-link-w-sts {
        gap: 40px;
    }
    
    .links {
        gap: 15px;
    }
    
    .pill {
        font-size: 14px;
    }
}

@media (max-width: 640px) {
    .grid {
        column-count: 1;
    }
    
    .article-thumb {
        flex: 0 0 100%;
    }
    
    .post-actions-w-st {
        flex-direction: column;
    }
    
    .title {
        font-size: 28px;
    }
    
    .card-pad {
        padding: 20px;
    }
    
    .footer-link-w-sts {
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .hero-main {
        padding: 20px;
    }
    
    .hero-main h1 {
        font-size: 28px;
    }
    
    .hero-side {
        padding: 20px;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .btn-group .btn {
        width: 100%;
    }
    
    .post-info {
        bottom: 10px;
        left: 10px;
        right: 10px;
        padding: 8px 12px;
    }
    
    .post-info .post-title {
        font-size: 13px;
    }
    
    .links {
        gap: 12px;
    }
    
    .pill {
        font-size: 14px;
        display: inline-block;
        margin: 0;
    }
    
    .footer-link-w-sts {
        flex-direction: column;
        gap: 25px;
    }
}