/* ==========================================================================
   TechArcade Ghost Theme — screen.css
   Inspired by Quanta Magazine's editorial layout
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Variables & Reset
   -------------------------------------------------------------------------- */

:root {
    --color-bg: #0e0e0e;
    --color-text: #e8e8e8;
    --color-text-secondary: #888888;
    --color-accent: #f07030;
    --color-accent-hover: #e8650a;
    --color-border: rgba(255, 255, 255, 0.08);
    --color-card-bg: #161616;
    --color-sidebar-bg: #161616;
    --color-header-bg: #000000;
    --color-header-text: #ffffff;
    --font-serif: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    --max-width: 1200px;
    --content-width: 720px;
    --gap: 2rem;
    --radius: 8px;
    --radius-sm: 4px;
    --transition: 0.18s ease;
}

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

html {
    font-size: 18px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color-scheme: dark;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

/* --------------------------------------------------------------------------
   2. Header & Navigation
   -------------------------------------------------------------------------- */

.site-header {
    background: var(--color-header-bg);
    color: var(--color-header-text);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.site-header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    height: 60px;
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* --------------------------------------------------------------------------
   Topics Bar
   -------------------------------------------------------------------------- */

.topics-bar {
    background: var(--color-header-bg);
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.topics-bar-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    height: 40px;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.topics-bar-inner::-webkit-scrollbar {
    display: none;
}

.topics-bar-label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    flex-shrink: 0;
    padding-right: 0.5rem;
    border-right: 1px solid rgba(255,255,255,0.12);
}

.topics-bar .nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.topics-bar .nav li {
    flex-shrink: 0;
}

.topics-bar .nav li a {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255,255,255,0.6);
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    white-space: nowrap;
    transition: all var(--transition);
    letter-spacing: 0.02em;
    text-transform: capitalize;
}

.topics-bar .nav li a:hover {
    color: #fff;
    background: rgba(255,255,255,0.08);
}

.topics-bar .nav li a.is-active {
    color: #fff;
    background: var(--color-accent);
    font-weight: 600;
}

.topics-bar .nav li.nav-current a {
    color: var(--color-accent);
    background: rgba(255,140,0,0.12);
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   End Topics Bar
   -------------------------------------------------------------------------- */

.site-logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    padding: 2px 6px 2px 2px;
    margin: -2px -6px -2px -2px;
    text-decoration: none;
}

/* Shimmer sweep — a white gleam slides left→right on hover */
.site-logo-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: -80%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        100deg,
        transparent 0%,
        rgba(255, 255, 255, 0.22) 50%,
        transparent 100%
    );
    transform: skewX(-15deg);
    pointer-events: none;
}

.site-logo-link:hover::after {
    animation: logo-shimmer 0.55s ease forwards;
}

@keyframes logo-shimmer {
    0%   { left: -80%; }
    100% { left: 140%; }
}

.site-logo {
    height: 36px;
    width: auto;
}

.site-title-text {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    display: inline-flex;
    gap: 0.3em;
}

.site-title-tech {
    color: #ffffff;
}

.site-title-arcade {
    color: var(--color-accent);
}

.site-nav {
    flex: 1;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-list li a {
    display: block;
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.75);
    transition: color var(--transition);
}

.nav-list li a:hover,
.nav-item-active a {
    color: #ffffff;
}

.site-header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.search-toggle {
    background: none;
    border: none;
    color: rgba(255,255,255,0.75);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    transition: color var(--transition);
}

.search-toggle:hover { color: #fff; }

.btn-header {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 0.45rem 1.1rem;
    border-radius: 20px;
    transition: all var(--transition);
}

.btn-header-primary {
    background: var(--color-accent);
    color: #fff;
}

.btn-header-primary:hover {
    background: var(--color-accent-hover);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
}

.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: rgba(255,255,255,0.8);
    transition: all 0.2s;
}

.mobile-nav {
    display: none;
    background: #111;
    border-top: 1px solid rgba(255,255,255,0.08);
}

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

.mobile-nav-list {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mobile-nav-list li a {
    display: block;
    padding: 0.6rem 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.mobile-subscribe-btn {
    color: var(--color-accent) !important;
    font-weight: 600 !important;
}

/* --------------------------------------------------------------------------
   3. Search (Ghost Sodo Search — triggered via data-ghost-search)
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   4. Hero Post (Homepage Featured)
   -------------------------------------------------------------------------- */

.hero-post {
    position: relative;
    overflow: hidden;
    background: #000;
}

.hero-post-image-wrap {
    position: relative;
    height: 520px;
    overflow: hidden;
}

.hero-post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.75;
}

.hero-post-content-wrap {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
    padding: 4rem 0 0;
}

.hero-post-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 2rem 2.5rem;
    color: #fff;
}

.hero-post-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
    padding: 0.2rem 0.65rem;
    border: 1px solid var(--color-accent);
    border-radius: 20px;
}

.hero-post-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
}

.hero-post-title a {
    color: #fff;
    transition: opacity var(--transition);
}

.hero-post-title a:hover { opacity: 0.85; }

.hero-post-excerpt {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.05rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.5;
    margin-bottom: 1.25rem;
    max-width: 580px;
}

.hero-post-meta {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-post-read-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: #fff;
    transition: color var(--transition);
}

.hero-post-read-link:hover { color: var(--color-accent); }

.read-arrow {
    font-size: 1.4rem;
    line-height: 1;
    color: var(--color-accent);
}

.hero-post-author {
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
}

.hero-post-author a {
    color: rgba(255,255,255,0.8);
    transition: color var(--transition);
}

.hero-post-author a:hover { color: #fff; }

/* --------------------------------------------------------------------------
   5. Homepage Layout — editorial dynamic layout
   -------------------------------------------------------------------------- */

.home-wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3rem 2rem 5rem;
}

/* Section chrome */
.home-section {
    padding: 2.5rem 0;
    border-top: 1px solid var(--color-border);
}

.home-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.home-section-label {
    font-family: var(--font-serif);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    padding-left: 0.75rem;
    border-left: 3px solid var(--color-accent);
    line-height: 1;
}

.home-section-label.is-link {
    color: var(--color-text);
    transition: color var(--transition);
}

.home-section-label.is-link:hover {
    color: var(--color-accent);
}

.home-section-see-all {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--color-accent);
    transition: opacity var(--transition);
    white-space: nowrap;
}

.home-section-see-all:hover { opacity: 0.75; }

/* ── Featured row: big card (60%) + picks list (40%) ── */
.featured-row {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2.5rem;
    padding: 2.5rem 0;
    border-top: 1px solid var(--color-border);
}

.featured-picks {
    display: flex;
    flex-direction: column;
}

.picks-list {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* ── 3-column grid ── */
.home-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* ── Category split: big (60%) + list (40%) ── */
.category-split {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2.5rem;
}

.category-split-reverse {
    grid-template-columns: 340px 1fr;
}

/* --------------------------------------------------------------------------
   6. Post Grid (tag / author archive pages)
   -------------------------------------------------------------------------- */

.post-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 2.5rem;
}

.post-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.post-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

/* Whole-card hover: orange border + lift */
.post-card:has(a:hover) {
    border-color: var(--color-accent) !important;
    transform: translateY(-5px);
    box-shadow: 0 10px 28px rgba(255, 103, 31, 0.18);
}

.post-card:has(a:hover) .post-card-image {
    transform: scale(1.04);
}

.post-card-image-link {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    margin-bottom: 1rem;
}

.post-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.post-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-card-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.post-card-tag:hover {
    text-decoration: underline;
}

.post-card-title {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0;
    margin-bottom: 0.6rem;
}

.post-card-title a {
    color: var(--color-text);
    transition: color var(--transition);
}

/* Stretched link — covers the entire card so any click navigates to the post */
.post-card-title a::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}

.post-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
}

.post-card-image-link {
    margin-bottom: 0;
}

.post-card-content {
    padding: 1.25rem;
}

.post-card-title a:hover {
    color: var(--color-accent);
}

.post-card-excerpt {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    line-height: 1.55;
    margin-bottom: 0.85rem;
    flex: 1;
}

.post-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-border);
    position: relative;
    z-index: 2;
}

.post-card-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-card-author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.post-card-author-name {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.72rem;
    color: #999;
}

/* Large card variant (post-card-lg.hbs) */
.post-card-lg .post-card-image-link {
    aspect-ratio: 16 / 10;
}

.post-card-lg .post-card-title {
    font-size: 1.35rem;
    line-height: 1.25;
    margin-bottom: 0.75rem;
}

.post-card-lg .post-card-excerpt {
    font-size: 0.88rem;
    -webkit-line-clamp: 3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Small horizontal card (post-card-sm.hbs) */
.post-card-sm {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0.75rem;
    border-bottom: 1px solid var(--color-border);
    border-radius: var(--radius);
    position: relative;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    margin: 0 -0.75rem;
}

.post-card-sm:last-child {
    border-bottom: none;
}

.post-card-sm:has(a:hover) {
    background: var(--color-card-bg);
    border-color: var(--color-accent) !important;
    outline: 1.5px solid var(--color-accent);
    transform: translateX(4px);
}

.post-card-sm-title a::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}

.post-card-sm .post-card-tag {
    position: relative;
    z-index: 2;
}

.post-card-sm-content {
    flex: 1;
    min-width: 0;
}

.post-card-sm .post-card-tag {
    margin-bottom: 0.3rem;
}

.post-card-sm-title {
    font-family: var(--font-serif);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0;
    margin-bottom: 0.4rem;
}

.post-card-sm-title a {
    color: var(--color-text);
    transition: color var(--transition);
}

.post-card-sm-title a:hover {
    color: var(--color-accent);
}

.post-card-sm-meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    color: #888;
}

.post-card-sm-dot { opacity: 0.4; }

.post-card-sm-image-link {
    flex-shrink: 0;
    display: block;
    width: 80px;
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.post-card-sm-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.post-card-sm-image-link:hover .post-card-sm-image {
    transform: scale(1.06);
}

/* ── Responsive: homepage ── */
@media (max-width: 900px) {
    .featured-row,
    .category-split,
    .category-split-reverse {
        grid-template-columns: 1fr;
    }

    .home-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .home-grid-3 {
        grid-template-columns: 1fr;
    }

    .home-wrap {
        padding: 2rem 1.25rem 4rem;
    }
}

/* --------------------------------------------------------------------------
   7. Sidebar
   -------------------------------------------------------------------------- */

.home-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.sidebar-widget {
    padding: 1.5rem;
    background: var(--color-sidebar-bg);
    border: 1px solid var(--color-border);
    border-top: 3px solid var(--color-accent);
    border-radius: var(--radius);
}

.sidebar-widget-title {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
}

.sidebar-about p {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.sidebar-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.sidebar-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.3rem 0.7rem;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    color: var(--color-text-secondary);
    transition: all var(--transition);
}

.sidebar-tag:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: rgba(232,101,10,0.04);
}

.tag-count {
    font-size: 0.65rem;
    opacity: 0.6;
}

.sidebar-newsletter p {
    font-size: 0.82rem;
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.sidebar-subscribe-btn {
    display: block;
    text-align: center;
    background: var(--color-accent);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 0.7rem 1rem;
    border-radius: 2px;
    transition: background var(--transition);
}

.sidebar-subscribe-btn:hover {
    background: var(--color-accent-hover);
}

/* Footer social links */
.footer-social {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 1.25rem;
}

.footer-social-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.45);
    transition: color var(--transition);
}

.footer-social-link:hover {
    color: var(--color-accent);
}

/* Sidebar social links */
.sidebar-social-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-social-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.82rem;
    color: var(--color-text-secondary);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border);
    transition: color var(--transition);
}

.sidebar-social-link:last-child {
    border-bottom: none;
}

.sidebar-social-link:hover {
    color: var(--color-accent);
}

.sidebar-social-link svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.sidebar-social-link:hover svg {
    opacity: 1;
}

/* --------------------------------------------------------------------------
   8. Pagination
   -------------------------------------------------------------------------- */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    grid-column: 1 / -1;
}

.pagination a,
.pagination .page-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 2px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--color-text);
    background: var(--color-card-bg);
    transition: all var(--transition);
}

.pagination a:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.pagination .page-number {
    font-weight: 700;
    border-color: var(--color-accent);
    background: var(--color-accent);
    color: #fff;
}

/* --------------------------------------------------------------------------
   9. Single Post
   -------------------------------------------------------------------------- */

.post-template {
    padding-bottom: 4rem;
}

/* --------------------------------------------------------------------------
   Post Hero (feature image with overlaid title)
   -------------------------------------------------------------------------- */

.post-hero {
    position: relative;
    width: 100%;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    margin-bottom: 0;
}

.post-hero-image-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.post-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.post-hero-image-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10,10,10,0) 0%,
        rgba(10,10,10,0.25) 35%,
        rgba(10,10,10,0.78) 70%,
        rgba(10,10,10,0.93) 100%
    );
}

.post-hero-content-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
}

.post-hero-content {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 3rem 2rem 2.5rem;
}

.post-hero-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 1rem;
    padding: 0.2rem 0.65rem;
    border: 1px solid var(--color-accent);
    border-radius: 20px;
    transition: all var(--transition);
}

.post-hero-tag:hover {
    background: var(--color-accent);
    color: #fff;
}

.post-hero-title {
    color: #ffffff !important;
    font-size: clamp(2rem, 5vw, 3.2rem);
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
    margin-bottom: 0.75rem;
}

.post-hero-excerpt {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.55;
    margin-bottom: 1.25rem;
    max-width: 640px;
}

.post-hero-byline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.18);
}

.post-hero-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-hero-author .post-author-avatar {
    border: 2px solid rgba(255,255,255,0.5);
}

.post-hero-author .post-author-name {
    color: rgba(255,255,255,0.9);
}

.post-hero-meta {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.65);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.post-hero-caption {
    position: relative;
    z-index: 1;
    text-align: center;
    font-size: 0.72rem;
    color: #888;
    font-style: italic;
    padding: 0.5rem 2rem;
    margin: 0;
}

.post-header {
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 0;
}

.post-header-inner {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 3.5rem 2rem 2.5rem;
}

.post-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 1rem;
    padding: 0.2rem 0.65rem;
    border: 1px solid var(--color-accent);
    border-radius: 20px;
    transition: all var(--transition);
}

.post-tag:hover {
    background: var(--color-accent);
    color: #fff;
}

.post-title {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.post-subtitle {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.post-byline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--color-border);
}

.post-authors {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.post-author-name {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-text);
}

.post-meta {
    font-size: 0.8rem;
    color: #999;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.separator { opacity: 0.4; }

.post-feature-image-wrap {
    max-width: 900px;
    margin: 0 auto;
}

.post-feature-image {
    width: 100%;
    display: block;
}

.post-feature-image-wrap figcaption {
    text-align: center;
    font-size: 0.75rem;
    color: #999;
    font-style: italic;
    margin-top: 0.5rem;
    padding: 0 2rem;
}

.post-content-wrap {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* --------------------------------------------------------------------------
   10. Post Body Content (gh-content)
   -------------------------------------------------------------------------- */

.gh-content {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    line-height: 1.75;
    color: #d4d4d4;
}

.gh-content > * + * {
    margin-top: 1.5em;
}

.gh-content h2 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.015em;
    color: #f0f0f0;
    margin-top: 2.5em;
    margin-bottom: 0.75em;
    padding-bottom: 0.5em;
    border-bottom: 2px solid var(--color-border);
}

.gh-content h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.25;
    margin-top: 2em;
    margin-bottom: 0.6em;
}

.gh-content h4 {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 1.8em;
    margin-bottom: 0.5em;
    color: var(--color-text-secondary);
}

.gh-content p {
    margin-bottom: 0;
}

.gh-content a {
    color: var(--color-accent);
    text-decoration: underline;
    text-decoration-color: rgba(232,101,10,0.3);
    text-underline-offset: 3px;
    transition: text-decoration-color var(--transition);
}

.gh-content a:hover {
    text-decoration-color: var(--color-accent);
}

.gh-content blockquote {
    border-left: 3px solid var(--color-accent);
    padding: 1rem 0 1rem 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    font-size: 1.15rem;
    color: #aaa;
}

.gh-content code {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.85em;
    background: #1e1e2e;
    padding: 0.15em 0.4em;
    border-radius: 3px;
    color: #f38ba8;
}

.gh-content pre {
    background: #1e1e2e;
    color: #cdd6f4;
    padding: 1.5rem;
    border-radius: 4px;
    overflow-x: auto;
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 2rem 0;
}

.gh-content pre code {
    background: none;
    color: inherit;
    padding: 0;
    font-size: inherit;
}

.gh-content ul, .gh-content ol {
    padding-left: 1.5em;
}

.gh-content ul { list-style: disc; }
.gh-content ol { list-style: decimal; }

.gh-content li + li { margin-top: 0.4em; }

.gh-content hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 3rem 0;
}

.gh-content figure {
    margin: 2rem 0;
}

.gh-content figure img {
    width: 100%;
    border-radius: 2px;
}

.gh-content figcaption {
    text-align: center;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    color: #999;
    font-style: normal;
    margin-top: 0.5rem;
}

/* Ghost Cards */
.gh-content .kg-card {
    margin: 2.5rem 0;
}

/* Required: kg-width-wide and kg-width-full */
.gh-content .kg-width-wide {
    position: relative;
    width: 85vw;
    min-width: 100%;
    margin: 2.5rem auto;
    transform: translateX(calc(50% - 50vw * 0.85));
}

.gh-content .kg-width-full {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.gh-content .kg-width-wide img,
.gh-content .kg-width-full img {
    width: 100%;
}

.gh-content .kg-image-card img {
    margin: 0 auto;
    border-radius: 2px;
}

.gh-content .kg-embed-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gh-content .kg-bookmark-card {
    border: 1px solid var(--color-border);
    border-radius: 4px;
    overflow: hidden;
}

.gh-content .kg-bookmark-container {
    display: flex;
    text-decoration: none;
    color: inherit;
}

.gh-content .kg-bookmark-content {
    flex: 1;
    padding: 1rem;
}

.gh-content .kg-bookmark-title {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
}

.gh-content .kg-bookmark-description {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    margin-top: 0.25rem;
}

.gh-content .kg-bookmark-thumbnail img {
    width: 140px;
    height: 100%;
    object-fit: cover;
}

/* Callout cards */
.gh-content .kg-callout-card {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: #1a1a2e;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   11. Post Footer (tags, author box)
   -------------------------------------------------------------------------- */

.post-tags-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
    font-size: 0.8rem;
}

.post-tags-label {
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.7rem;
    color: var(--color-text-secondary);
}

.post-tag-link {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    transition: all var(--transition);
}

.post-tag-link:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.post-author-box {
    margin-top: 2.5rem;
    padding: 2rem;
    background: var(--color-sidebar-bg);
    border: 1px solid var(--color-border);
    border-top: 3px solid var(--color-accent);
    border-radius: var(--radius);
}

.author-box {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.author-box-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-box-name {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.author-box-name a { color: var(--color-text); }
.author-box-name a:hover { color: var(--color-accent); }

.author-box-bio {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    line-height: 1.55;
}

/* --------------------------------------------------------------------------
   12. Related Posts
   -------------------------------------------------------------------------- */

.related-posts-section {
    background: #111111;
    border-top: 1px solid var(--color-border);
    padding: 3.5rem 0;
    margin-top: 0;
}

.related-posts-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.related-posts-title {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--color-border);
}

.related-posts-title a {
    color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   13. Comments
   -------------------------------------------------------------------------- */

.post-comments-wrap {
    padding: 3rem 0;
    border-top: 1px solid var(--color-border);
}

.post-comments-inner {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* --------------------------------------------------------------------------
   14. Tag & Author Pages
   -------------------------------------------------------------------------- */

/* ---- Tag Hero ---- */
.tag-hero {
    position: relative;
    overflow: hidden;
    padding: 4.5rem 0 3.5rem;
    background: var(--color-header-bg);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    text-align: center;
}

.tag-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.tag-hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.12;
    filter: blur(2px);
}

.tag-hero-inner {
    position: relative;
    z-index: 1;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.tag-hero-eyebrow {
    display: block;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.6rem;
}

.tag-hero-name {
    font-family: var(--font-serif);
    font-size: clamp(2.8rem, 8vw, 5.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 0.6rem;
    line-height: 1.05;
    text-transform: capitalize;
}

.tag-hero-description {
    font-size: 1rem;
    color: rgba(255,255,255,0.55);
    max-width: 520px;
    line-height: 1.65;
    margin: 0 auto 0.75rem;
}

.tag-hero-count {
    display: inline-block;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.3);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ---- Tag Content ---- */
.tag-content-wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3rem 2rem 5rem;
}

/* Featured first post */
.tag-featured-wrap {
    margin-bottom: 0;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--color-border);
}

.tag-featured-wrap .post-card-lg .post-card-title {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
}

/* Section blocks */
.tag-grid-section {
    padding: 2.5rem 0 0;
    border-top: 1px solid var(--color-border);
    margin-top: 2.5rem;
}

/* Grid inherits .home-grid-3 */
.tag-grid {
    margin-top: 0;
}

/* 2-column wide split section */
.tag-split-section {
    padding-top: 2.5rem;
}

.tag-split-header {
    margin-bottom: 1.5rem;
}

.tag-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.tag-split .post-card-lg .post-card-image-link {
    aspect-ratio: 16 / 10;
}

@media (max-width: 768px) {
    .tag-split {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .tag-hero-name {
        font-size: clamp(2.2rem, 10vw, 3.5rem);
    }
}

/* ---- Author header (unchanged style) ---- */
.author-header {
    background: var(--color-header-bg);
    color: #fff;
    padding: 3.5rem 0;
}

.author-header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.author-header-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.author-name {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.author-bio {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.7);
    max-width: 600px;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.author-post-count {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.06em;
}

.author-content-wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Author profile */
.author-profile-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.author-social {
    display: flex;
    gap: 1rem;
    margin: 0.75rem 0;
}

.author-social a {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-accent);
    letter-spacing: 0.03em;
}

/* --------------------------------------------------------------------------
   15. Page Template
   -------------------------------------------------------------------------- */

.page-header {
    border-bottom: 1px solid var(--color-border);
}

.page-header-inner {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 3.5rem 2rem 2.5rem;
}

.page-title {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.page-subtitle {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin-top: 0.75rem;
}

.page-feature-image-wrap {
    max-width: 900px;
    margin: 2rem auto 0;
}

.page-feature-image {
    width: 100%;
}

.page-content-wrap {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* --------------------------------------------------------------------------
   16. Error Page
   -------------------------------------------------------------------------- */

.error-template {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-content {
    text-align: center;
    padding: 2rem;
}

.error-code {
    font-family: var(--font-serif);
    font-size: 6rem;
    font-weight: 900;
    line-height: 1;
    color: var(--color-border);
    margin-bottom: 1rem;
}

.error-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.error-description {
    font-size: 1rem;
    color: var(--color-text-secondary);
    max-width: 480px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.error-home-btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--color-accent);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    border-radius: 2px;
    transition: background var(--transition);
}

.error-home-btn:hover { background: var(--color-accent-hover); }

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */

.site-footer {
    background: var(--color-header-bg);
    color: rgba(255,255,255,0.75);
    margin-top: 0;
}

.site-footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3rem 2rem 2rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo-link { display: block; margin-bottom: 1rem; }

.footer-logo {
    height: 32px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-title-text {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 800;
    display: inline-flex;
    gap: 0.3em;
}

.footer-title-tech {
    color: #ffffff;
    transition: color 0.22s ease;
}

.footer-title-arcade {
    color: var(--color-accent);
    transition: color 0.22s ease;
}

.footer-logo-link:hover .footer-title-tech {
    color: var(--color-accent);
}

.footer-logo-link:hover .footer-title-arcade {
    color: #ffffff;
}

.footer-description {
    font-size: 0.85rem;
    line-height: 1.65;
    color: rgba(255,255,255,0.5);
    max-width: 320px;
}

.footer-nav-heading {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin-bottom: 1rem;
}

.footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-nav ul li a {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    transition: color var(--transition);
}

.footer-nav ul li a:hover { color: #fff; }

.footer-subscribe p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.footer-subscribe-btn {
    display: inline-block;
    padding: 0.55rem 1.25rem;
    background: var(--color-accent);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    border-radius: 2px;
    transition: background var(--transition);
}

.footer-subscribe-btn:hover { background: var(--color-accent-hover); }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1.5rem;
}

.footer-copyright {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.35);
}

.footer-copyright a {
    color: rgba(255,255,255,0.5);
    transition: color var(--transition);
}

.footer-copyright a:hover { color: rgba(255,255,255,0.8); }

.footer-secondary-nav {
    display: flex;
    gap: 1.5rem;
}

.footer-secondary-nav a {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.35);
    transition: color var(--transition);
}

.footer-secondary-nav a:hover { color: rgba(255,255,255,0.7); }

/* --------------------------------------------------------------------------
   18. Responsive — Tablet
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
    .home-content-wrap {
        grid-template-columns: 1fr 260px;
        gap: 3rem;
    }

    .post-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

/* --------------------------------------------------------------------------
   19. Responsive — Mobile
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
    html { font-size: 16px; }

    .site-nav { display: none; }
    .mobile-menu-toggle { display: flex; }
    .btn-header { display: none; }

    .hero-post-image-wrap { height: 300px; }

    .home-content-wrap {
        grid-template-columns: 1fr;
        padding: 2rem 1.25rem;
        gap: 2rem;
    }

    .home-sidebar {
        order: 2;
    }

    .post-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .post-grid-3 {
        grid-template-columns: 1fr;
    }

    .post-header-inner,
    .page-header-inner {
        padding: 2rem 1.25rem 1.5rem;
    }

    .post-hero {
        min-height: 380px;
    }

    .post-hero-content {
        padding: 2rem 1.25rem 2rem;
    }

    .post-hero-title {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
    }

    .post-content-wrap,
    .page-content-wrap {
        padding: 2rem 1.25rem;
    }

    .related-posts-inner {
        padding: 0 1.25rem;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .author-header {
        padding: 2rem 0;
    }

    .tag-content-wrap, .author-content-wrap {
        padding: 2rem 1.25rem;
    }

    .tag-hero {
        padding: 2.5rem 0 2rem;
    }

    .tag-hero-title {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .tag-featured-post {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .tag-list-post {
        grid-template-columns: 90px 1fr;
        gap: 0.9rem;
    }

    .topics-bar-inner {
        padding: 0 1.25rem;
    }

    .mobile-nav-divider {
        height: 1px;
        background: rgba(255,255,255,0.08);
        margin: 0.5rem 0;
        list-style: none;
    }

    .hero-post-content {
        padding: 1.5rem 1.25rem 2rem;
    }
}

@media (max-width: 480px) {
    .hero-post-image-wrap { height: 240px; }

    .post-byline {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .footer-secondary-nav {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
}

/* --------------------------------------------------------------------------
   Members Page
   -------------------------------------------------------------------------- */

.members-template {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
}

.members-content {
    max-width: 520px;
    width: 100%;
    text-align: center;
}

.members-title {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.members-description {
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.65;
    margin-bottom: 2rem;
}

.members-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.members-btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    border-radius: 3px;
    transition: all var(--transition);
}

.members-btn-primary {
    background: var(--color-accent);
    color: #fff;
}

.members-btn-primary:hover { background: var(--color-accent-hover); }

.members-btn-secondary {
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
}

.members-btn-secondary:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.members-account .members-btn {
    background: var(--color-accent);
    color: #fff;
}

.members-account .members-btn:hover { background: var(--color-accent-hover); }

/* ==========================================================================
   About Page
   ========================================================================== */

.about-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

/* Hero */
.about-hero {
    border-bottom: 1px solid var(--color-border);
    padding: 5rem 2rem 4rem;
}

.about-hero-inner {
    max-width: 760px;
    margin: 0 auto;
}

.about-hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    color: var(--color-text);
}

.about-hero-lead {
    font-size: 1.15rem;
    line-height: 1.75;
    color: var(--color-text-secondary);
    max-width: 620px;
}

/* Pillars */
.about-pillars {
    padding: 4rem 2rem;
    border-bottom: 1px solid var(--color-border);
}

.about-pillars-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.about-pillar {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 2rem;
}

.about-pillar-icon {
    font-size: 1.75rem;
    display: block;
    margin-bottom: 1rem;
}

.about-pillar-title {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--color-text);
}

.about-pillar-text {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.65;
    margin: 0;
}

/* Founder */
.about-founder {
    padding: 5rem 2rem;
    border-bottom: 1px solid var(--color-border);
}

.about-founder-inner {
    max-width: 680px;
    margin: 0 auto;
}

.about-founder-name {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    color: var(--color-text);
}

.about-founder-bio {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
}

.about-founder-social {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.75rem;
    flex-wrap: wrap;
}

.about-social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    transition: color var(--transition);
}

.about-social-link:hover { color: var(--color-accent); }

/* Newsletter CTA */
.about-newsletter {
    padding: 5rem 2rem;
    text-align: center;
}

.about-newsletter-inner {
    max-width: 560px;
    margin: 0 auto;
}

.about-newsletter-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.about-newsletter-desc {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
}

.about-subscribe-btn {
    display: inline-block;
    background: var(--color-accent);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.85rem 2rem;
    border-radius: 4px;
    transition: background var(--transition);
    letter-spacing: 0.02em;
}

.about-subscribe-btn:hover { background: var(--color-accent-hover); color: #fff; }

@media (max-width: 768px) {
    .about-pillars-inner { grid-template-columns: 1fr; }
    .about-hero { padding: 3rem 1.25rem 2.5rem; }
    .about-founder, .about-newsletter { padding: 3rem 1.25rem; }
}

/* ==========================================================================
   Reading Progress Bar
   ========================================================================== */

/* --------------------------------------------------------------------------
   Header social icons
   -------------------------------------------------------------------------- */

.header-social {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-right: 0.25rem;
}

.header-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: rgba(255,255,255,0.55);
    transition: color var(--transition), background var(--transition);
}

.header-social-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.08);
}

/* --------------------------------------------------------------------------
   Post share buttons (in hero byline + bottom row)
   -------------------------------------------------------------------------- */

.post-hero-share {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.post-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.85);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    font-family: var(--font-sans);
}

.post-share-btn:hover {
    background: rgba(255,255,255,0.18);
    color: #fff;
    border-color: rgba(255,255,255,0.4);
}

/* Bottom share row */
.post-share-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2.5rem 0 1.5rem;
    padding: 1.25rem 1.5rem;
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

.post-share-row-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
}

.post-share-row-btns {
    display: flex;
    gap: 0.6rem;
}

.post-share-row-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.45rem 1rem;
    border-radius: 20px;
    border: 1px solid var(--color-border);
    background: transparent;
    color: var(--color-text);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    font-family: var(--font-sans);
}

.post-share-row-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: rgba(240,112,48,0.06);
}

.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--color-accent);
    z-index: 1000;
    transition: width 0.1s linear;
    pointer-events: none;
}

/* ==========================================================================
   Sticky Reading Header
   ========================================================================== */

.reading-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: rgba(14, 14, 14, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-100%);
    transition: transform 0.25s ease;
    pointer-events: none;
}

.reading-header.is-visible {
    transform: translateY(0);
    pointer-events: auto;
}

.reading-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.75rem 2rem;
}

.reading-header-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.reading-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    background: none;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 0.35rem 0.75rem;
    cursor: pointer;
    transition: color var(--transition), border-color var(--transition);
    position: relative;
    white-space: nowrap;
    flex-shrink: 0;
}

.reading-share-btn:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
}

.reading-share-copied {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: var(--color-accent);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 3px;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.reading-share-copied.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reading-header-progress-track {
    height: 2px;
    background: var(--color-border);
}

.reading-header-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--color-accent);
    transition: width 0.1s linear;
}

/* ==========================================================================
   Post Subscribe CTA
   ========================================================================== */

@keyframes cta-float-1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50%       { transform: translateY(-22px) rotate(90deg); }
}
@keyframes cta-float-2 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50%       { transform: translateY(18px) rotate(-60deg); }
}
@keyframes cta-float-3 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33%       { transform: translateY(-14px) rotate(45deg); }
    66%       { transform: translateY(10px) rotate(-30deg); }
}
@keyframes cta-float-4 {
    0%, 100% { transform: translateY(0px) rotate(0deg) scale(1); }
    50%       { transform: translateY(-18px) rotate(180deg) scale(1.15); }
}
@keyframes cta-float-5 {
    0%, 100% { transform: translateY(0px) scale(1); }
    50%       { transform: translateY(16px) scale(0.85); }
}
@keyframes cta-btn-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(240, 112, 48, 0.5); }
    50%       { box-shadow: 0 0 0 10px rgba(240, 112, 48, 0); }
}
@keyframes cta-arrow-bounce {
    0%, 100% { transform: translateX(0); }
    50%       { transform: translateX(5px); }
}

.post-subscribe-cta {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #111111 0%, #1a1a1a 50%, #0f0f0f 100%);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 5rem 2rem;
    text-align: center;
}

.post-subscribe-cta-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.cta-shape {
    position: absolute;
    color: var(--color-accent);
    opacity: 0.12;
}

.cta-shape-1 { width: 90px; top: 10%; left: 5%;  animation: cta-float-1 7s ease-in-out infinite; }
.cta-shape-2 { width: 70px; top: 60%; left: 12%; animation: cta-float-2 9s ease-in-out infinite; }
.cta-shape-3 { width: 55px; top: 20%; right: 8%; animation: cta-float-3 8s ease-in-out infinite; }
.cta-shape-4 { width: 45px; top: 65%; right: 5%; animation: cta-float-4 6s ease-in-out infinite; }
.cta-shape-5 { width: 80px; top: 40%; right: 20%; animation: cta-float-5 11s ease-in-out infinite; }

.post-subscribe-cta-inner {
    position: relative;
    z-index: 1;
    max-width: 560px;
    margin: 0 auto;
}

.cta-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.cta-title {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3.5vw, 2.1rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.cta-desc {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
}

.cta-subscribe-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--color-accent);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    letter-spacing: 0.02em;
    transition: background var(--transition), transform 0.15s ease;
    animation: cta-btn-pulse 2.5s ease-in-out infinite;
}

.cta-subscribe-btn:hover {
    background: var(--color-accent-hover);
    color: #fff;
    transform: translateY(-2px);
}

.cta-subscribe-btn:hover .cta-btn-arrow {
    animation: cta-arrow-bounce 0.5s ease infinite;
}

@media (max-width: 768px) {
    .reading-header-inner { padding: 0.65rem 1rem; }
    .post-subscribe-cta { padding: 3.5rem 1.25rem; }
    .cta-shape-2, .cta-shape-5 { display: none; }
}
