/* Powell Up — Blog Post Shared Stylesheet
   Light theme to match main site (powellup.com)
   ─────────────────────────────────────────── */

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

@media (pointer: fine) and (prefers-reduced-motion: no-preference) {
    html body, html body * { cursor: none !important; }
    .btn-primary, .btn-nav, .newsletter-btn, .nav-hamburger, button { cursor: pointer !important; }
}

@media (prefers-reduced-motion: reduce), (pointer: coarse) {
    html body, html body * { cursor: auto !important; }
}

:root {
    --bg:           #F8F8F6;
    --surface:      #F1F1EF;
    --surface-2:    #E9E9E6;
    --line:         rgba(0,0,0,0.08);
    --line-2:       rgba(0,0,0,0.13);
    --white:        #0D0D0B;
    --gray:         #ADADAA;
    --gray-lt:      #5A5A56;
    --gray-md:      #9A9A96;
    --accent:       #1C3A5E;
    --accent-2:     #2B538A;
    --accent-dim:   rgba(28,58,94,0.07);
    --accent-glow:  rgba(28,58,94,0.18);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before {
    content: '';
    position: fixed; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
    opacity: 0.18; pointer-events: none; z-index: 0;
}

* { position: relative; z-index: 1; }

.container     { max-width: 1100px; margin: 0 auto; padding: 0 48px; }
.post-container { max-width: 740px; margin: 0 auto; padding: 0 48px; }

/* ── Custom cursor ── */
.c-dot {
    position: fixed; width: 6px; height: 6px;
    background: var(--white); border-radius: 50%;
    pointer-events: none; z-index: 10000;
    transform: translate(-50%,-50%); transition: opacity 0.15s;
}
.c-ring {
    position: fixed; width: 32px; height: 32px;
    border: 1px solid rgba(0,0,0,0.18); border-radius: 50%;
    pointer-events: none; z-index: 10000;
    transform: translate(-50%,-50%);
    transition: width .3s cubic-bezier(.34,1.56,.64,1),
                height .3s cubic-bezier(.34,1.56,.64,1),
                border-color .25s;
}
.c-ring.hovered {
    width: 52px; height: 52px;
    border-color: rgba(28,58,94,0.55);
}

/* ── Scroll progress bar ── */
.scroll-bar {
    position: fixed; top: 60px; left: 0;
    height: 1px; width: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transform-origin: left; transform: scaleX(0);
    z-index: 99; pointer-events: none;
    box-shadow: 0 0 8px var(--accent-glow);
}

/* ── Nav — dark glass ── */
nav {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 100; padding: 0 48px; height: 60px;
    display: flex; align-items: center; justify-content: space-between;
    background: rgba(13,14,19,0.92);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 28px; width: auto; display: block; }
.nav-right { display: flex; align-items: center; gap: 28px; }
.nav-link {
    font-family: 'DM Mono', monospace;
    font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
    color: rgba(255,255,255,0.45); text-decoration: none; transition: color 0.2s;
}
.nav-link:hover { color: rgba(255,255,255,0.9); }
.btn-nav {
    font-family: 'DM Mono', monospace;
    font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
    color: #0D0E13; background: #F0F0F2;
    padding: 8px 18px; border-radius: 2px;
    text-decoration: none; font-weight: 500; display: inline-block;
    transition: box-shadow 0.3s;
}
.btn-nav:hover { box-shadow: 0 0 20px rgba(92,159,255,0.22); }

/* ── Post header ── */
.post-header {
    padding: 120px 0 56px;
    border-bottom: 1px solid var(--line);
}

.post-back {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: 'DM Mono', monospace; font-size: 10px;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--gray); text-decoration: none;
    margin-bottom: 36px; display: block;
    transition: color 0.2s;
}
.post-back:hover { color: var(--accent); }

.post-tag {
    font-family: 'DM Mono', monospace; font-size: 10px;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px; display: block;
}

.post-header h1 {
    font-family: 'Syne', sans-serif; font-weight: 800;
    font-size: clamp(28px, 4vw, 52px);
    letter-spacing: -0.03em; line-height: 1.08;
    color: var(--white); margin-bottom: 28px;
}

.post-meta {
    display: flex; align-items: center; gap: 20px;
    font-family: 'DM Mono', monospace; font-size: 10px;
    letter-spacing: 0.07em; text-transform: uppercase;
    color: var(--gray);
}
.post-meta span { display: flex; align-items: center; gap: 6px; }
.post-meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--gray); opacity: 0.5; }

/* ── Article body ── */
.post-body {
    padding: 64px 0 72px;
}

.post-body p {
    font-size: 16px; font-weight: 300;
    color: var(--gray-lt); line-height: 1.9;
    margin-bottom: 24px;
}

.post-body h2 {
    font-family: 'Syne', sans-serif; font-weight: 700;
    font-size: clamp(18px, 2.2vw, 26px);
    letter-spacing: -0.02em; line-height: 1.2;
    color: var(--white); margin: 52px 0 16px;
}

.post-body h2:first-child { margin-top: 0; }

.post-body ul, .post-body ol {
    margin: 0 0 24px 24px; padding: 0;
}

.post-body li {
    font-size: 15px; font-weight: 300;
    color: var(--gray-lt); line-height: 1.8;
    margin-bottom: 8px;
}

.post-body strong { color: var(--white); font-weight: 500; }

.post-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.post-body a:hover { color: var(--accent-2); }

.post-editorial-note {
    font-size: 14px; font-weight: 400; color: var(--gray-lt); line-height: 1.65;
    border-left: 3px solid var(--accent);
    padding: 14px 18px; margin-bottom: 28px;
    background: var(--surface);
}

.post-related {
    border-top: 1px solid var(--line);
    padding: 40px 0 8px;
    margin-top: -16px;
}

.post-related-title {
    font-family: 'Syne', sans-serif; font-weight: 700;
    font-size: 14px; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--gray);
    margin-bottom: 16px;
}

.post-related-list {
    list-style: none; margin: 0 0 20px; padding: 0;
}

.post-related-list li { margin-bottom: 10px; }

.post-related-list a {
    font-size: 16px; font-weight: 500; color: var(--accent);
    text-decoration: none;
}
.post-related-list a:hover { color: var(--accent-2); text-decoration: underline; }

.post-related-cta {
    font-family: 'DM Mono', monospace; font-size: 10px;
    letter-spacing: 0.06em; text-transform: uppercase; color: var(--gray);
}
.post-related-cta a { color: var(--gray-lt); text-decoration: underline; }
.post-related-cta a:hover { color: var(--accent); }

/* Callout / pull quote */
.post-callout {
    border-left: 2px solid var(--accent);
    padding: 18px 24px;
    background: var(--accent-dim);
    border-radius: 0 4px 4px 0;
    margin: 32px 0;
}
.post-callout p { margin: 0; color: var(--gray-lt); font-size: 15px; }

/* Post divider */
.post-divider {
    width: 40px; height: 1px;
    background: var(--line-2); margin: 52px 0;
}

/* ── CTA ── */
.post-cta {
    padding: 72px 0 88px;
    border-top: 1px solid var(--line);
    text-align: center;
    position: relative; overflow: visible;
}

.post-cta::before {
    content: '';
    position: absolute;
    bottom: -60px; left: 50%;
    transform: translateX(-50%);
    width: 160%; height: 240%;
    background:
        radial-gradient(ellipse 40% 18% at 50% 116%, rgba(28,58,94,0.10) 0%, rgba(43,83,138,0.04) 40%, transparent 68%),
        radial-gradient(ellipse 80% 40% at 50% 114%, rgba(28,58,94,0.05) 0%, rgba(28,58,94,0.02) 42%, transparent 72%),
        radial-gradient(ellipse 140% 70% at 50% 112%, rgba(28,58,94,0.025) 0%, rgba(28,58,94,0.01) 52%, transparent 80%);
    pointer-events: none;
}

.post-cta-label {
    font-family: 'DM Mono', monospace; font-size: 11px;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--gray); margin-bottom: 20px; display: block;
}

.post-cta h2 {
    font-family: 'Syne', sans-serif; font-weight: 800;
    font-size: clamp(26px, 3.5vw, 46px);
    letter-spacing: -0.03em; line-height: 1.08;
    color: var(--white); margin-bottom: 16px;
}

.post-cta p {
    font-size: 14px; font-weight: 300;
    color: var(--gray-lt); line-height: 1.8;
    max-width: 360px; margin: 0 auto 36px;
}

.btn-primary {
    font-family: 'DM Mono', monospace; font-size: 11px;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: #F8F8F6; background: var(--accent);
    padding: 14px 28px; border-radius: 2px;
    text-decoration: none; font-weight: 500;
    display: inline-block;
    transition: box-shadow 0.3s, background 0.2s;
}
.btn-primary:hover {
    background: var(--accent-2);
    box-shadow: 0 0 28px var(--accent-glow), 0 0 60px rgba(28,58,94,0.08);
}

/* ── Footer ── */
footer { padding: 36px 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; }
.footer-logo { display: flex; align-items: center; text-decoration: none; }
.footer-logo img { height: 22px; width: auto; opacity: 0.6; filter: invert(1); transition: opacity 0.2s; }
.footer-logo:hover img { opacity: 0.85; }
.footer-links { display: flex; gap: 28px; list-style: none; }
.footer-links a {
    font-family: 'DM Mono', monospace; font-size: 10px;
    letter-spacing: 0.07em; text-transform: uppercase;
    color: var(--gray); text-decoration: none; transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }
.footer-copy { font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: 0.05em; color: var(--gray); }

/* ── Fade in ── */
.fi { opacity: 0; transform: translateY(18px); transition: opacity 0.65s ease, transform 0.65s ease; }
.fi.show { opacity: 1; transform: translateY(0); }

/* ── Responsive ── */
@media (max-width: 700px) {
    nav { padding: 0 20px; }
    .container, .post-container { padding: 0 20px; }
    .nav-link { display: none; }
    .post-meta { flex-wrap: wrap; gap: 10px; }
    .footer-inner { flex-direction: column; gap: 18px; text-align: center; }
    .footer-links { flex-wrap: wrap; justify-content: center; }
    .c-dot, .c-ring { display: none; }
}
