/*
 * Northscope Design System
 * Shared styles for all pages — imported via /static/northscope.css
 */

/* === Design Tokens === */
:root {
    --bg-primary: #0f172a;
    --bg-secondary: #f8f7f4;
    --bg-tertiary: #f0eeeb;
    --bg-card: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-on-dark: #e8e6e1;
    --text-heading-on-dark: #f8f7f4;
    --accent: #b8955a;
    --accent-hover: #a07d45;
    --border-subtle: #e5e2dc;
    --footer-bg: #0a1120;
    --navy-800: #1e293b;
    --navy-700: #334155;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* === Base Typography === */
body {
    font-family: 'DM Sans', sans-serif;
    color: var(--text-primary);
    background: var(--bg-secondary);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: 'EB Garamond', serif;
    font-weight: 400;
    letter-spacing: 0.01em;
}

a { color: inherit; }

/* === Accent Bar === */
.accent-bar {
    height: 3px;
    background: var(--accent);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
}

/* === Site Header === */
.site-header {
    position: fixed;
    top: 3px;
    left: 0;
    right: 0;
    height: 64px;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wordmark {
    font-family: 'EB Garamond', serif;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--text-heading-on-dark);
    text-decoration: none;
}

.header-cta {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: 0.03em;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
}

.header-cta::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.header-cta:hover::after { width: 100%; }

/* === CTA Button === */
.cta-btn {
    display: inline-block;
    background: transparent;
    border: 1.5px solid var(--accent);
    color: var(--accent);
    padding: 16px 48px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

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

.cta-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

/* === Sections === */
.section { padding: 6rem 0; }

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-prose { max-width: 680px; margin: 0 auto; }

/* === Site Footer === */
.site-footer {
    background: var(--footer-bg);
    border-top: 1px solid rgba(184, 149, 90, 0.2);
    padding: 3.5rem 0 2.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-wordmark {
    font-family: 'EB Garamond', serif;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--text-heading-on-dark);
    margin-bottom: 0.5rem;
}

.footer-grid p, .footer-grid li {
    font-size: 0.85rem;
    color: var(--text-on-dark);
    line-height: 1.8;
}

.footer-grid .footer-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-heading-on-dark);
    margin-bottom: 0.5rem;
}

.footer-grid a {
    color: var(--text-on-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-grid ul { list-style: none; }
.footer-grid ul li { margin-bottom: 0.25rem; }

.footer-bottom {
    max-width: 1100px;
    margin: 2.5rem auto 0;
    padding: 1.5rem 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    font-size: 0.8rem;
    color: rgba(232, 230, 225, 0.45);
}

/* === Reveal Animation === */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === Mobile === */
@media (max-width: 768px) {
    .section { padding: 3rem 0; }
    .section-inner { padding: 0 1.5rem; }
    .header-inner { padding: 0 1.5rem; }
    .wordmark { font-size: 0.9rem; }
    .cta-btn { width: 100%; text-align: center; }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1.5rem;
    }

    .footer-bottom { padding: 1.5rem 1.5rem 0; }
}
