/* Ashport — parchment + gold ledger
   Palette mirrors the app theme:
     page    #f6f3ec   card    #fbf8f1
     text    #1a1612   text-2  #3a352c   muted #6e6a65
     border  #e6e0d0   accent  #C5A059   accent-hover #B08E47
*/

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

:root {
    --page: #f6f3ec;
    --card: #fbf8f1;
    --text: #1a1612;
    --text-2: #3a352c;
    --muted: #6e6a65;
    --border: #e6e0d0;
    --accent: #C5A059;
    --accent-hover: #B08E47;
    --shadow: 0 1px 2px rgba(26, 22, 18, 0.04), 0 4px 16px rgba(26, 22, 18, 0.04);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    background-color: var(--page);
    color: var(--text);
    font-family: 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 17px;
    line-height: 1.65;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 720px; margin: 0 auto; padding: 0 24px; }

/* ── Header ───────────────────────────────────────── */
.site-header {
    border-bottom: 1px solid var(--border);
    background: var(--card);
}
.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    max-width: 1080px;
    margin: 0 auto;
}
.brand {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--accent);
    text-decoration: none;
}
.brand:hover { color: var(--accent-hover); }
.site-nav { display: flex; gap: 28px; align-items: center; }
.site-nav a {
    color: var(--text-2);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.15s;
}
.site-nav a:hover { color: var(--accent); }

/* ── Hero ─────────────────────────────────────────── */
.hero {
    padding: 96px 24px 80px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    background:
        radial-gradient(circle at 50% 0%, rgba(197, 160, 89, 0.08), transparent 60%),
        var(--page);
}
.hero h1 {
    font-size: clamp(40px, 6vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.025em;
    font-weight: 800;
    color: var(--text);
    max-width: 820px;
    margin: 0 auto 22px;
}
.hero .lead {
    font-size: 19px;
    line-height: 1.5;
    color: var(--text-2);
    max-width: 640px;
    margin: 0 auto 36px;
}
.hero .divider {
    width: 80px;
    height: 1px;
    margin: 0 auto 24px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

/* ── Buttons ──────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.1s, background-color 0.15s, border-color 0.15s;
    cursor: pointer;
    border: 1px solid transparent;
    white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #1a1410; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ── Section ──────────────────────────────────────── */
.section { padding: 80px 0; }
.section-tight { padding: 56px 0; }
.section h2 {
    font-size: 32px;
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text);
}
.section .section-lead {
    color: var(--muted);
    font-size: 16px;
    margin-bottom: 36px;
    max-width: 640px;
}

/* ── Insight cards (landing + blog index) ─────────── */
.insight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.insight-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 26px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: border-color 0.15s, transform 0.1s, box-shadow 0.15s;
    box-shadow: var(--shadow);
}
.insight-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(26, 22, 18, 0.06), 0 12px 28px rgba(26, 22, 18, 0.08);
}
.insight-card .meta {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}
.insight-card h3 {
    font-size: 19px;
    line-height: 1.3;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}
.insight-card p {
    color: var(--text-2);
    font-size: 14.5px;
    line-height: 1.55;
    flex: 1;
}
.insight-card .read-more {
    margin-top: 18px;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
}

/* ── Article (blog post) ──────────────────────────── */
.article-header {
    padding: 64px 0 32px;
    border-bottom: 1px solid var(--border);
}
.back-link {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    margin-bottom: 24px;
    transition: color 0.15s;
}
.back-link:hover { color: var(--accent); }
.article-header h1 {
    font-size: clamp(30px, 4.5vw, 44px);
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 20px;
}
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    color: var(--muted);
    font-size: 13px;
}
.article-meta .category {
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 11px;
}
.article-meta .dot { width: 3px; height: 3px; background: var(--border); border-radius: 50%; }

.article-body {
    padding: 48px 0 64px;
    font-size: 17px;
    line-height: 1.75;
    color: var(--text-2);
}
.article-body p { margin-bottom: 1.4em; }
.article-body h2 {
    font-size: 26px;
    line-height: 1.25;
    letter-spacing: -0.015em;
    font-weight: 800;
    color: var(--text);
    margin: 2.4em 0 0.7em;
}
.article-body h3 {
    font-size: 19px;
    line-height: 1.3;
    font-weight: 700;
    color: var(--text);
    margin: 1.8em 0 0.5em;
}
.article-body strong { color: var(--text); font-weight: 700; }
.article-body em { color: var(--text); }
.article-body a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: rgba(197, 160, 89, 0.4);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.15s;
}
.article-body a:hover { text-decoration-color: var(--accent); }
.article-body ul, .article-body ol {
    margin: 0 0 1.6em 1.4em;
    padding: 0;
}
.article-body li { margin-bottom: 0.6em; }
.article-body ul li::marker { color: var(--accent); }
.article-body blockquote {
    margin: 2em 0;
    padding: 8px 0 8px 24px;
    border-left: 3px solid var(--accent);
    color: var(--text);
    font-style: italic;
    font-size: 18px;
    line-height: 1.6;
}
.article-body hr {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin: 3em 0;
}

/* ── CTA box at end of article ────────────────────── */
.article-cta {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 32px;
    margin: 24px 0 32px;
    text-align: center;
    box-shadow: var(--shadow);
}
.article-cta h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--text);
    font-weight: 800;
    letter-spacing: -0.01em;
}
.article-cta p {
    color: var(--text-2);
    font-size: 15px;
    margin-bottom: 22px;
}

/* ── Related posts strip ──────────────────────────── */
.related {
    border-top: 1px solid var(--border);
    padding: 56px 0 80px;
}
.related h3 {
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
    margin-bottom: 24px;
}

/* ── Footer ───────────────────────────────────────── */
.site-footer {
    border-top: 1px solid var(--border);
    background: var(--card);
    padding: 40px 0;
    color: var(--muted);
    font-size: 13px;
}
.site-footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
}
.site-footer a { color: var(--muted); text-decoration: none; transition: color 0.15s; }
.site-footer a:hover { color: var(--accent); }

@media (max-width: 600px) {
    body { font-size: 16px; }
    .site-header-inner { padding: 16px 20px; }
    .site-nav { gap: 16px; }
    .hero { padding: 64px 20px 56px; }
    .section { padding: 56px 0; }
    .article-body { font-size: 16px; }
}
