/* Straight Business theme
   Brand: deep navy + one warm amber accent. Plain, high-contrast, readable. */

:root {
    --navy: #0f1f3d;
    --navy-2: #182c52;
    --amber: var(--ghost-accent-color, #f5a623);
    --ink: #1a2233;
    --muted: #5b6577;
    --line: #e3e7ee;
    --paper: #ffffff;
    --paper-2: #f5f7fa;
    --radius: 12px;
    --max: 1160px;
    --narrow: 720px;
    --wide: 1040px;
    /* Ghost admin -> Design -> Brand -> Typography sets these; system stack otherwise. */
    --font: var(--gh-font-body, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);
    --font-heading: var(--gh-font-heading, var(--font));
}

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

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

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font);
    font-size: 18px;
    line-height: 1.65;
}

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

a { color: var(--navy); text-decoration-color: var(--amber); text-underline-offset: 3px; }
a:hover { color: var(--navy-2); }

h1, h2, h3 { font-family: var(--font-heading); line-height: 1.2; letter-spacing: -0.01em; color: var(--navy); }
h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 0.5em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.2rem; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.container-narrow { width: 100%; max-width: var(--narrow); margin: 0 auto; padding: 0 20px; }
.container-wide { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 20px; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 100; background: var(--amber); color: var(--navy); padding: 8px 12px; }

/* Buttons */
.button {
    display: inline-block;
    background: var(--amber);
    color: var(--navy);
    font-weight: 700;
    text-decoration: none;
    padding: 0.8em 1.4em;
    border-radius: 999px;
    border: 2px solid var(--amber);
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.15s ease;
}
.button:hover { color: var(--navy); transform: translateY(-1px); }
.button-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.button-ghost:hover { color: #fff; border-color: #fff; }

/* Header */
.site-header { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 50; }
.site-header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 20px; }
.site-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.15rem; }
.site-logo { max-height: 40px; width: auto; }
.site-icon { width: 36px; height: 36px; border-radius: 50%; }
.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav .nav { display: flex; list-style: none; margin: 0; padding: 0; gap: 4px; }
.site-nav .nav a { color: #fff; text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: 0.95rem; font-weight: 600; }
.site-nav .nav a:hover, .site-nav .nav-current a { background: var(--navy-2); color: var(--amber); }
.search-button { background: none; border: 0; color: #fff; cursor: pointer; padding: 8px; display: flex; }
.search-button:hover { color: var(--amber); }
.nav-toggle, .nav-burger { display: none; }

@media (max-width: 860px) {
    .nav-burger { display: block; width: 32px; height: 24px; position: relative; cursor: pointer; }
    .nav-burger span, .nav-burger span::before, .nav-burger span::after {
        position: absolute; left: 0; width: 100%; height: 3px; background: #fff; border-radius: 2px; content: "";
    }
    .nav-burger span { top: 10px; }
    .nav-burger span::before { top: -9px; }
    .nav-burger span::after { top: 9px; }
    .site-nav {
        display: none; position: absolute; top: 68px; left: 0; right: 0;
        background: var(--navy); flex-direction: column; align-items: stretch; padding: 12px 20px 20px;
    }
    .site-nav .nav { flex-direction: column; }
    .nav-toggle:checked ~ .site-nav { display: flex; }
}

/* Hero */
.hero { background: var(--navy); color: #fff; padding: 72px 0 80px; }
.hero-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.hero-headline { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); }
.hero-sub { font-size: 1.2rem; color: rgba(255, 255, 255, 0.85); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-image { border-radius: var(--radius); }
@media (max-width: 860px) {
    .hero { padding: 48px 0 56px; }
    .hero-inner { grid-template-columns: 1fr; }
}

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: var(--paper-2); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-head h2 { margin: 0; }
.section-more { font-weight: 700; text-decoration: none; white-space: nowrap; }
.page-head { margin-bottom: 32px; }
.page-lede { color: var(--muted); font-size: 1.15rem; max-width: 40em; margin: 0; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow 0.15s ease, transform 0.15s ease; }
.card:hover { box-shadow: 0 10px 30px rgba(15, 31, 61, 0.1); transform: translateY(-2px); }
.card-link { display: block; color: inherit; text-decoration: none; height: 100%; }
.card-image { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.card-body { padding: 18px 20px 22px; }
.card-tag, .article-tag {
    display: inline-block; margin: 0 0 8px; font-size: 0.78rem; font-weight: 800;
    letter-spacing: 0.06em; text-transform: uppercase; color: #9a6400; text-decoration: none;
}
.card-title { margin: 0 0 8px; }
.card-excerpt { margin: 0 0 10px; color: var(--muted); font-size: 0.98rem; }
.card-meta { margin: 0; font-size: 0.85rem; color: var(--muted); }

.tool-grid, .series-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.tool-card, .series-card {
    display: block; padding: 22px; border-radius: var(--radius); text-decoration: none; color: inherit;
    background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--amber);
}
.tool-card h3, .series-card h3 { margin: 0 0 8px; }
.tool-card p, .series-card p { margin: 0 0 12px; color: var(--muted); font-size: 0.98rem; }
.tool-card-go { font-weight: 700; color: var(--navy); }
.tool-card:hover, .series-card:hover { box-shadow: 0 10px 30px rgba(15, 31, 61, 0.1); }

/* Band */
.band { background: var(--navy); color: #fff; padding: 48px 0; }
.band-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.band h2 { color: #fff; margin: 0; }

/* Article */
.article { padding: 56px 0 72px; }
.article-head { margin-bottom: 32px; }
.article-title { font-size: clamp(2rem, 4.2vw, 2.9rem); }
.article-lede { font-size: 1.25rem; color: var(--muted); margin: 0 0 12px; }
.article-meta { font-size: 0.9rem; color: var(--muted); margin: 0; }
.article-image { margin: 0 auto 40px; }
.article-image img { border-radius: var(--radius); width: 100%; }
.article-image figcaption { font-size: 0.85rem; color: var(--muted); text-align: center; margin-top: 8px; }
.article-foot { margin-top: 48px; }

.tool-head, .sales-hero { background: var(--paper-2); padding: 48px 0 32px; margin: -56px 0 40px; }

/* Content (Ghost editor output) */
.gh-content > * + * { margin-top: 1.25em; }
.gh-content h2 { margin-top: 2em; }
.gh-content h3 { margin-top: 1.6em; }
.gh-content > p:first-child strong:only-child { font-weight: 600; }
.gh-content blockquote { margin-left: 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--amber); color: var(--navy); font-size: 1.15rem; }
.gh-content ul, .gh-content ol { padding-left: 1.3em; }
.gh-content li + li { margin-top: 0.4em; }
.gh-content table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.gh-content th, .gh-content td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; }
.gh-content th { color: var(--navy); }
.gh-content hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.gh-content code { background: var(--paper-2); padding: 2px 6px; border-radius: 4px; font-size: 0.9em; }

/* Ghost editor card widths (required by Ghost) */
.kg-width-wide { position: relative; width: min(var(--wide), 100vw - 40px); left: 50%; transform: translateX(-50%); max-width: none; }
.kg-width-full { position: relative; width: 100vw; left: 50%; transform: translateX(-50%); max-width: none; }
.kg-width-full img { border-radius: 0; }
.kg-image-card img, .kg-gallery-card img { border-radius: 8px; }

/* Article footer */
.cta-box {
    background: var(--navy); color: #fff; border-radius: var(--radius); padding: 28px;
    display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.cta-box-text { margin: 0; font-size: 1.1rem; font-weight: 600; max-width: 30em; }
.disclaimer { font-size: 0.85rem; color: var(--muted); margin-top: 24px; }
.series-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.series-nav-link { display: block; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; font-weight: 700; }
.series-nav-link span { display: block; font-size: 0.8rem; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.series-nav-next { grid-column: 2; text-align: right; }
@media (max-width: 600px) {
    .series-nav { grid-template-columns: 1fr; }
    .series-nav-next { grid-column: 1; }
}

/* Free tool signup */
.signup { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 28px; margin-bottom: 40px; }
.signup-title { font-weight: 800; font-size: 1.25rem; margin: 0 0 16px; }
.signup-fields { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 12px; align-items: end; }
.signup-field span { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 4px; color: rgba(255, 255, 255, 0.85); }
.signup-field input { width: 100%; padding: 0.75em 0.9em; border-radius: 8px; border: 0; font: inherit; font-size: 1rem; }
.signup-note { font-size: 0.82rem; color: rgba(255, 255, 255, 0.7); margin: 14px 0 0; }
.signup-note a { color: var(--amber); }
.signup-status { margin: 14px 0 0; font-weight: 600; color: var(--amber); }
.signup-done .signup-fields { display: none; }
.signup-hp { position: absolute; left: -9999px; }
.tools-upsell { margin-top: 48px; }
@media (max-width: 700px) {
    .signup-fields { grid-template-columns: 1fr; }
}

/* Pagination */
.pagination { display: flex; justify-content: space-between; align-items: center; margin-top: 40px; color: var(--muted); }
.pagination a { font-weight: 700; text-decoration: none; }

/* Error */
.error-page { text-align: center; }
.error-code { font-size: 5rem; font-weight: 800; color: var(--amber); margin: 0; line-height: 1; }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.8); padding: 48px 0 24px; font-size: 0.95rem; }
.site-footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-title { color: #fff; font-weight: 800; font-size: 1.15rem; margin: 0 0 6px; }
.footer-tagline { margin: 0 0 12px; max-width: 28em; }
.footer-youtube { color: var(--amber); font-weight: 700; }
.footer-nav .nav { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, auto); gap: 6px 32px; }
.footer-nav a { color: rgba(255, 255, 255, 0.8); text-decoration: none; }
.footer-nav a:hover { color: var(--amber); }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, 0.15); margin-top: 32px; padding-top: 16px; font-size: 0.82rem; color: rgba(255, 255, 255, 0.6); }
.footer-legal p { margin: 0; }
