:root {
    --primary-color: #ffb703;
    --hover-color: #fb8500;
    --text-color: #f2f2f2;
    --bg-color: #111111;
    --header-bg: #1a1a1a;
    --link-color: #ffb703;
    --font-family: "Verdana", "Trebuchet MS", sans-serif;
    --line: rgba(255, 255, 255, 0.14);
}

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

body {
    max-width: 1080px;
    margin: 0 auto;
    padding: 26px 18px 70px;
    font-family: var(--font-family);
    line-height: 1.75;
    color: var(--text-color);
    min-height: 100vh;
    background:
        repeating-linear-gradient(0deg, rgba(255,255,255,0.02), rgba(255,255,255,0.02) 1px, transparent 1px, transparent 28px),
        linear-gradient(180deg, #080808 0%, #121212 60%, #1a1a1a 100%);
}

header,
main,
.site-footer {
    width: 100%;
}

header {
    margin-bottom: 24px;
    border: 1px solid var(--line);
    border-left: 6px solid var(--primary-color);
    padding: 24px;
    background: linear-gradient(135deg, rgba(255, 183, 3, 0.08), rgba(0, 0, 0, 0.7));
    box-shadow: 0 12px 32px rgba(0,0,0,0.4);
    position: relative;
}

header::before {
    content: "FEATURED";
    position: absolute;
    top: 0;
    right: 0;
    padding: 4px 10px;
    font-size: 0.72rem;
    letter-spacing: 0.09em;
    font-weight: 700;
    background: var(--primary-color);
    color: #131313;
}

header h1 {
    font-size: clamp(2rem, 4.8vw, 3rem);
    line-height: 1.08;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

header h1 a {
    color: #fff;
    text-decoration: none;
}

header p {
    margin-top: 10px;
    color: #cfcfcf;
}

header nav {
    margin-top: 14px;
}

header nav a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
}

main {
    display: grid;
    gap: 14px;
}

.post {
    padding: 18px 20px 20px;
    border: 1px solid var(--line);
    background: #151515;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.post::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--hover-color));
}

.post:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 183, 3, 0.5);
}

.post h2 {
    margin-bottom: 9px;
    font-size: clamp(1.24rem, 2vw, 1.72rem);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.post h2 a {
    text-decoration: none;
    color: #fff;
}

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

.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 9px;
    font-size: 0.85rem;
    color: #bcbcbc;
}

.meta span::before {
    content: "▸";
    color: var(--primary-color);
    margin-right: 6px;
}

.excerpt {
    color: #dddddd;
}

.pagination {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.pagination a {
    text-decoration: none;
    color: #fff;
    border: 1px solid var(--line);
    padding: 8px 12px;
    min-width: 40px;
    text-align: center;
    background: #1b1b1b;
    transition: all 0.2s ease;
}

.pagination a:hover,
.pagination a.active {
    color: #111;
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.article-title {
    font-size: clamp(1.75rem, 3.5vw, 2.6rem);
    line-height: 1.15;
    margin-bottom: 12px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.content {
    padding: 18px 18px;
    border: 1px solid var(--line);
    background: #141414;
}

.content h1,
.content h2,
.content h3 {
    margin: 20px 0 12px;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.content p { margin-bottom: 14px; }

.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 9999;
}

.reading-progress span {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary-color), var(--hover-color));
}

.article-disclaimer {
    margin-top: 18px;
    padding: 13px 14px;
    border: 1px dashed rgba(255, 183, 3, 0.45);
    background: #101010;
}

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

.article-nav .nav-link {
    text-decoration: none;
    color: #efefef;
    border: 1px solid var(--line);
    padding: 12px 12px;
    background: #111111;
}

.article-nav .nav-link span {
    display: block;
    font-size: 0.82rem;
    color: #bbbbbb;
}

.article-nav .nav-link strong {
    display: block;
    margin-top: 4px;
    line-height: 1.36;
}

.article-nav .nav-link:hover {
    border-color: var(--primary-color);
}

.related-posts {
    margin-top: 20px;
}

.related-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.related-item {
    border: 1px solid var(--line);
    padding: 12px;
    background: #131313;
}

.related-item h4 a {
    color: #fff;
    text-decoration: none;
}

.related-item p {
    margin-top: 6px;
    margin-bottom: 0;
    color: #d7d7d7;
    font-size: 0.92rem;
}

.site-footer {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    color: #bfbfbf;
}

.site-footer nav {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.site-footer a {
    color: var(--primary-color);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--hover-color);
}

.hero,
.social-proof,
.category-nav,
.featured-picks,
.reading-history,
.story-feed-header,
.faq-seo {
    border: 1px solid var(--line);
    padding: 14px 16px;
    background: #131313;
}

.hero-actions { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.hero-btn {
    text-decoration: none;
    color: #f8f8f8;
    border: 1px solid var(--line);
    padding: 6px 11px;
}
.hero-btn.primary {
    background: var(--primary-color);
    color: #111;
    border-color: var(--primary-color);
}

.social-proof { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; }
.social-proof strong { display: block; font-size: 1.35rem; }
.social-proof span { font-size: 0.88rem; color: #cfcfcf; }

.category-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.category-pill {
    border: 1px solid var(--line);
    color: #f0f0f0;
    background: #161616;
    padding: 5px 10px;
    cursor: pointer;
}
.category-pill.active {
    color: #111;
    border-color: var(--primary-color);
    background: var(--primary-color);
}

.featured-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.featured-item {
    border: 1px solid var(--line);
    background: #151515;
    padding: 12px;
}
.featured-item h4 a { color: #fff; text-decoration: none; }
.featured-item p { margin-top: 6px; margin-bottom: 0; color: #d7d7d7; font-size: 0.92rem; }

.story-feed-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.story-search {
    min-width: 220px;
    border: 1px solid var(--line);
    background: #101010;
    color: #fff;
    padding: 8px 12px;
}

#reading-history-list { display: grid; gap: 8px; }
.history-item {
    border: 1px solid var(--line);
    background: #141414;
    padding: 10px 11px;
}
.history-item h4 a { color: #fff; text-decoration: none; }
.history-empty { color: #c7c7c7; }
.faq-seo details + details { margin-top: 8px; }

@media (max-width: 768px) {
    body { padding: 14px 10px 52px; }
    header { padding: 16px; }
    .post { padding: 14px 14px 16px; }
    .content { padding: 14px; }
    .excerpt, .content { font-size: 0.97rem; }
}
