/* ===== Northward Scale Lab — Global Styles ===== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
--bg: #06060a;
--bg-alt: #0d0d15;
--card: #12121c;
--border: #23232f;
--text: #f5f5f7;
--text-dim: #9797ac;
--text-dimmer: #6b6b80;
--accent: #ff9d4d;
--accent-2: #ffb877;
--lime: #c8ff4d;
--radius: 14px;
--max-width: 820px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
background: var(--bg);
color: var(--text);
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
line-height: 1.7;
-webkit-font-smoothing: antialiased;
background-image:
radial-gradient(circle at 15% 0%, rgba(255,157,77,0.14), transparent 45%),
radial-gradient(circle at 85% 20%, rgba(200,255,77,0.06), transparent 40%);
background-repeat: no-repeat;
}

h1, h2, h3, h4 {
font-family: 'Space Grotesk', 'Inter', sans-serif;
font-weight: 700;
line-height: 1.2;
letter-spacing: -0.01em;
}

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

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.wide { max-width: 1120px; }

.text-dim { color: var(--text-dim); }
.text-dimmer { color: var(--text-dimmer); }
.small { font-size: 0.85rem; }
.accent { color: var(--accent-2); }

/* Nav */
.nav {
position: sticky; top: 0; z-index: 100;
background: rgba(6,6,10,0.85);
backdrop-filter: blur(10px);
border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.logo { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.15rem; letter-spacing: 0.02em; display: flex; align-items: center; gap: 9px; }
.logo span { color: var(--accent-2); }
.logo-mark { height: 28px; width: auto; display: block; border-radius: 6px; }
.footer .logo-mark { height: 32px; border-radius: 7px; }
.nav-links { display: flex; gap: 28px; font-size: 0.95rem; font-weight: 500; }
.nav-links a { color: var(--text-dim); transition: color 0.15s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.5rem; cursor: pointer; }
.nav-mobile { display: none; flex-direction: column; gap: 4px; padding: 12px 24px 20px; border-top: 1px solid var(--border); }
.nav-mobile a { padding: 10px 0; color: var(--text-dim); font-weight: 500; }
.nav-mobile.open { display: flex; }

/* Buttons */
.btn {
display: inline-flex; align-items: center; justify-content: center; gap: 8px;
padding: 12px 24px; border-radius: 999px; font-weight: 600; font-size: 0.9rem;
cursor: pointer; border: 1px solid var(--border); background: transparent; color: var(--text);
transition: border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { border-color: var(--accent-2); color: var(--accent-2); }

/* Page hero */
.page-hero { padding: 70px 0 50px; }
.eyebrow {
display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em;
text-transform: uppercase; color: var(--accent-2);
background: rgba(255,157,77,0.1); border: 1px solid rgba(255,157,77,0.25);
padding: 6px 16px; border-radius: 999px; margin-bottom: 24px;
}
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 16px; }
.page-hero p { color: var(--text-dim); font-size: 1.05rem; max-width: 600px; }

/* Post list */
section { padding: 20px 0 90px; }
.post-list { display: flex; flex-direction: column; gap: 4px; }
.post-item {
display: block; padding: 26px 0; border-bottom: 1px solid var(--border);
}
.post-item:hover h3 { color: var(--accent-2); }
.post-date { font-size: 0.82rem; color: var(--text-dimmer); margin-bottom: 8px; display: block; }
.post-item h3 { font-size: 1.3rem; margin-bottom: 8px; transition: color 0.15s; }
.post-item p { color: var(--text-dim); font-size: 0.95rem; }

.empty-state {
border: 1px dashed var(--border); border-radius: var(--radius);
padding: 40px; text-align: center; color: var(--text-dim);
}

/* Post page */
.post-header { padding: 70px 0 20px; border-bottom: 1px solid var(--border); }
.post-header .post-date { margin-bottom: 16px; }
.post-header h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); margin-bottom: 0; }
.post-body { padding: 50px 0 90px; font-size: 1.08rem; }
.post-body p { margin-bottom: 22px; color: var(--text); }
.post-body h2 { font-size: 1.5rem; margin: 40px 0 16px; }
.post-body h3 { font-size: 1.2rem; margin: 32px 0 14px; }
.post-body ul, .post-body ol { margin: 0 0 22px 24px; color: var(--text); }
.post-body li { margin-bottom: 8px; }
.post-body blockquote {
border-left: 3px solid var(--accent); padding-left: 20px; margin: 28px 0;
color: var(--text-dim); font-style: italic;
}
.post-body a { color: var(--accent-2); text-decoration: underline; }
.post-footer { padding: 30px 0 80px; border-top: 1px solid var(--border); }

/* About */
.about-body { font-size: 1.05rem; color: var(--text-dim); }
.about-body p { margin-bottom: 20px; }

/* Footer */
.footer { padding: 50px 0 40px; border-top: 1px solid var(--border); }
.footer-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.footer-links { display: flex; gap: 20px; font-size: 0.9rem; color: var(--text-dim); flex-wrap: wrap; }
.footer-links a:hover { color: var(--text); }

@media (max-width: 700px) {
.nav-links { display: none; }
.nav-toggle { display: block; }
}
