/* Milwaukee Cyber Ghost mkec_ghost_theme 2.5.0 */

:root {
    --navy: #0d2240;
    --navy-2: #12355f;
    --cyan: #00a8e1;
    --gold: #f7a800;
    --gold-deep: #df9600;
    --ink: #14243a;
    --muted: #5d6878;
    --line: #dce3ea;
    --soft: #f4f7fa;
    --warm: #faf8f3;
    --paper: #fff;
    --site-width: 1000px;
    --shadow: 0 8px 24px rgba(13, 34, 64, .12);
    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; scrollbar-gutter: stable; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--gh-font-body, var(--font));
    font-size: 17px;
    line-height: 1.68;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--cyan); }
button, input, textarea, select { font: inherit; }

.site-wrapper { min-height: 100vh; overflow: hidden; }
.wide-container, .narrow-container, .main { width: min(calc(100% - 48px), var(--site-width)); margin-inline: auto; }
.main { padding: 72px 0 90px; }
.main.wide-container { width: min(calc(100% - 48px), var(--site-width)); }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; left: 1rem; top: -100px; z-index: 1000; padding: .65rem .9rem;
    background: var(--navy); color: #fff;
}
.skip-link:focus { top: 1rem; color: #fff; }

/* Header */
.site-header { position: relative; z-index: 20; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 88px; gap: 40px; }
.brand { display: inline-flex; align-items: center; gap: 13px; color: var(--navy); text-decoration: none; flex: 0 1 auto; }
.brand:hover { color: var(--navy); }
.brand-logo { width: auto; max-width: min(418px, 46vw); height: 59px; object-fit: contain; object-position: left center; }
.brand-name { font-size: 24px; font-weight: 800; letter-spacing: -.025em; text-transform: uppercase; white-space: nowrap; }
.brand-mark {
    position: relative; display: grid; align-content: center; gap: 3px; width: 48px; height: 48px;
    padding: 12px 8px 8px; overflow: hidden; border-radius: 50%; background: var(--navy);
}
.brand-mark::before { content: ""; position: absolute; inset: 0 0 auto; height: 13px; background: var(--gold); }
.brand-mark i { display: block; height: 4px; background: var(--cyan); transform: skewX(-14deg); }
.site-navigation .nav, .footer-nav .nav { display: flex; align-items: center; gap: 38px; margin: 0; padding: 0; list-style: none; }
.site-navigation a { color: var(--navy); font-size: 13px; font-weight: 700; letter-spacing: .035em; text-decoration: none; text-transform: uppercase; }
.site-navigation a:hover, .site-navigation .nav-current a { color: var(--cyan); }
.site-navigation .nav-contact a {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border-radius: 5px;
    background: var(--gold); color: var(--navy);
    box-shadow: 0 0 0 4px rgba(247,168,0,.18), 0 8px 20px rgba(247,168,0,.30);
    transition: background .18s ease, box-shadow .18s ease;
}
.site-navigation .nav-contact a:hover, .site-navigation .nav-contact.nav-current a {
    background: #ffba24; color: var(--navy);
    box-shadow: 0 0 0 5px rgba(247,168,0,.24), 0 10px 26px rgba(247,168,0,.38);
}
.nav-toggle { display: none; padding: 8px; border: 0; background: transparent; cursor: pointer; }
.nav-toggle > span:not(.sr-only) { display: block; width: 25px; height: 2px; margin: 5px 0; background: var(--navy); }

/* Shared type and controls */
.eyebrow, .kicker, .section-label {
    margin: 0 0 14px; color: var(--gold-deep); font-size: 13px; font-weight: 800;
    letter-spacing: .045em; line-height: 1.4; text-transform: uppercase;
}
h1, h2, h3, h4, h5, h6 { color: var(--navy); font-family: var(--gh-font-heading, var(--font)); }
.button {
    display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 48px; padding: 0 24px;
    border: 1px solid transparent; border-radius: 5px; font-size: 13px; font-weight: 800; letter-spacing: .025em;
    text-decoration: none; text-transform: uppercase; transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--navy); color: #fff; box-shadow: 0 8px 20px rgba(13,34,64,.13); }
.button-primary:hover { background: var(--navy-2); color: #fff; }
.button-secondary { border-color: #9aa9b9; background: #fff; color: var(--navy); }
.button-secondary:hover { border-color: var(--navy); color: var(--navy); }
.button-gold { background: var(--gold); color: var(--navy); }
.button-gold:hover { background: #ffba24; color: var(--navy); }
.text-link { color: var(--navy); font-size: 14px; font-weight: 600; text-decoration: none; }
.text-link:hover { color: var(--cyan); }
.text-link.strong { font-weight: 800; }

/* Homepage hero (settings-driven) */
.home-hero { background: #fff; padding: 40px 0 44px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px; align-items: center; }
.hero-content .eyebrow { color: var(--gold); margin-bottom: 22px; }
.hero-content h1 {
    margin: 0 0 18px; font-size: clamp(2.25rem, 3.5vw, 3.55rem); font-weight: 650; letter-spacing: -.045em; line-height: 1.08;
}
.hero-intro { margin: 0 0 16px; color: var(--muted); font-size: 19px; line-height: 1.5; }
.hero-intro strong { color: var(--navy); font-weight: 700; }
.hero-intro sup { font-size: .55em; line-height: 0; vertical-align: super; }
.hero-slogan { margin: 0 0 28px; color: var(--muted); font-size: 19px; font-style: italic; line-height: 1.45; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-actions .button { min-height: 44px; padding: 0 20px; }
.hero-actions .button-primary {
    background: var(--navy); color: var(--gold);
    box-shadow: 0 0 0 4px rgba(0,168,225,.25), 0 8px 22px rgba(0,168,225,.25);
}
.hero-actions .button-primary:hover { background: var(--navy-2); color: #ffba24; transform: none; box-shadow: 0 0 0 5px rgba(0,168,225,.25), 0 10px 28px rgba(0,168,225,.25); }
.hero-actions .button-secondary { border-color: var(--navy); background: #fff; }
.hero-actions .button-secondary:hover { border-color: var(--cyan); color: var(--cyan); transform: none; }

/* Photo frame: works for any photo, any crop */
.hero-media {
    position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 12px;
    background: var(--soft); box-shadow: 0 18px 44px rgba(13,34,64,.16);
}
.hero-media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(13,34,64,.10); pointer-events: none; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-media.focus-top img { object-position: center 15%; }
.hero-media.focus-bottom img { object-position: center 85%; }
.hero-placeholder {
    display: grid; place-items: center; width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--navy), #1c5588); color: rgba(255,255,255,.75);
    font-size: 15px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}

/* Home page content (edited in Ghost → Pages → Home) */
.home-page { padding: 16px 0 40px; }
.home-content > h2:first-child, .home-content > h3:first-child { margin-top: .4em; }
.home-content { max-width: none; }
.home-content > :first-child { margin-top: 0; }
.home-content h1 { margin: 0 0 24px; max-width: 18ch; font-size: clamp(2.3rem, 3.6vw, 3.6rem); font-weight: 750; letter-spacing: -.045em; line-height: 1.06; }
.home-content .kg-width-wide, .home-content .kg-width-full { max-width: var(--site-width); margin-inline: auto; }

/* Writing ----------------------------------------------------------- */
.writing { padding: 56px 0 88px; border-top: 1px solid var(--line); }
.writing-heading { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 32px; }
.writing-heading h2 { margin: 0; font-size: 1.35rem; font-weight: 750; letter-spacing: -.02em; }

.featured-post {
    display: grid; grid-template-columns: 1.15fr .85fr; gap: 0; overflow: hidden; margin-bottom: 8px;
    border-radius: 16px; background: var(--navy); color: #fff; text-decoration: none;
    box-shadow: 0 18px 44px rgba(13,34,64,.18);
}
.featured-body { padding: 52px 56px; }
.featured-meta { margin: 0 0 20px; color: var(--gold); font-size: 14px; font-weight: 700; }
.featured-post h3 {
    margin: 0 0 18px; color: #fff; font-size: clamp(1.8rem, 3vw, 2.7rem);
    font-weight: 750; letter-spacing: -.035em; line-height: 1.1;
}
.featured-excerpt { margin: 0 0 30px; max-width: 52ch; color: rgba(255,255,255,.78); font-size: 17px; line-height: 1.6; }
.featured-read {
    display: inline-block; padding-bottom: 3px; border-bottom: 2px solid var(--gold);
    color: #fff; font-size: 15px; font-weight: 700; transition: border-color .18s ease, color .18s ease;
}
.featured-post:hover .featured-read { color: var(--cyan); border-color: var(--cyan); }
.featured-image img { width: 100%; height: 100%; object-fit: cover; }

.post-ledger { border-top: 1px solid var(--line); margin-top: 40px; }
.ledger-item {
    display: grid; grid-template-columns: 96px 1fr; gap: 28px; padding: 28px 16px;
    margin: 0 -16px; border-bottom: 1px solid var(--line); border-radius: 10px;
    transition: background .18s ease;
}
.ledger-item:hover { background: var(--soft); }
.ledger-date { color: var(--navy); font-size: 15px; font-weight: 750; line-height: 1.3; }
.ledger-date span { display: block; color: var(--muted); font-size: 13px; font-weight: 500; }
.ledger-body h3 { margin: 0 0 8px; font-size: 1.3rem; font-weight: 700; letter-spacing: -.025em; line-height: 1.25; }
.ledger-body h3 a { color: var(--navy); text-decoration: none; }
.ledger-item:hover h3 a { color: var(--cyan); }
.ledger-body p { margin: 0; max-width: 64ch; color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.ledger-meta { margin-top: 10px !important; font-size: 13px; color: var(--muted); }

/* Pages, posts, and archives */
.page-header, .article-header { padding: 14px 0 42px; border-bottom: 1px solid var(--line); }
.page-header h1, .article-header h1, .error-page h1 {
    max-width: 18ch; margin: 0; font-size: clamp(2.25rem, 3.5vw, 3.55rem); font-weight: 650; letter-spacing: -.045em; line-height: 1.08;
}
.page-header > p:last-child, .article-deck { max-width: 680px; margin: 20px 0 0; color: var(--muted); font-size: 19px; line-height: 1.55; }
.article-meta, .post-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.article-meta { margin-top: 24px; }
.post-card-meta a { color: inherit; text-decoration: none; }
.article-feature-image { width: 100%; margin: 40px 0 50px; }
.article-feature-image img { width: 100%; border-radius: 3px; }
.article-feature-image figcaption { margin-top: 9px; color: var(--muted); font-size: 12px; text-align: left; }
.tag-link { display: inline-block; text-decoration: none; }
.article-footer { margin-top: 48px; padding: 28px 0; border-top: 1px solid var(--line); }
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-list a { padding: 5px 9px; background: var(--soft); font-size: 12px; text-decoration: none; }

.post-list { border-top: 1px solid var(--line); }
.archive-list { margin-top: 44px; }
.post-card { padding: 32px 0 34px; border-bottom: 1px solid var(--line); }
.post-card-title { margin: 9px 0 11px; font-size: clamp(1.35rem, 3vw, 1.75rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.2; }
.post-card-title a { color: inherit; text-decoration: none; }
.post-card-title a:hover { color: var(--cyan); }
.post-card p { margin: 0 0 14px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.pagination { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 36px 0; color: var(--muted); font-size: 13px; }
.pagination > :last-child { text-align: right; }
.pagination a { font-weight: 700; text-decoration: none; }
.author-image { width: 86px; height: 86px; margin-bottom: 24px; border-radius: 50%; object-fit: cover; }
.error-page { padding: 40px 0; }

/* Contact template */
.contact-header { max-width: 820px; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 70px; padding-top: 42px; }
.contact-primary { min-width: 0; }
.contact-intro { margin-bottom: 30px; }
.contact-card { align-self: start; padding: 34px; background: var(--soft); border-top: 5px solid var(--gold); }
.contact-card h2 { margin: 0 0 12px; font-size: 28px; letter-spacing: -.03em; }
.contact-card p { margin: 0 0 24px; color: var(--muted); font-size: 15px; }
.contact-card .contact-secondary { margin: 28px 0 2px; color: var(--navy); font-size: 13px; font-weight: 800; letter-spacing: .025em; text-transform: uppercase; }
.contact-detail { display: block; margin-top: 9px; font-size: 14px; }
.contact-form-shell { min-height: 360px; padding: 34px; border: 1px solid var(--line); background: #fff; }
.contact-form .contact-form-field { margin-bottom: 20px; }
.contact-form .button { margin-top: 6px; }
.contact-form .honeypot { position: absolute; left: -9999px; }
.contact-form label { display: block; margin-bottom: 7px; color: var(--navy); font-size: 14px; font-weight: 700; }
.contact-form input:not([type="checkbox"]):not([type="radio"]),
.contact-form select,
.contact-form textarea {
    width: 100% !important; min-height: 48px; padding: 11px 13px; border: 1px solid #a9b5c2; border-radius: 4px;
    background: #fff; color: var(--ink); font: inherit;
}
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 3px solid rgba(0,168,225,.22); border-color: var(--cyan); }
.contact-form-fallback { padding: 34px; border: 1px solid var(--line); background: var(--soft); }
.contact-form-fallback h2 { margin: 0 0 10px; font-size: 28px; }
.contact-form-fallback p { margin: 0 0 22px; color: var(--muted); }

/* Ghost editor content */
.gh-content { color: var(--ink); font-size: 18px; line-height: 1.78; }
.gh-content > * { max-width: 100%; }
.gh-content h2, .gh-content h3, .gh-content h4 { font-weight: 700; letter-spacing: -.03em; line-height: 1.2; }
.gh-content h2 { margin: 2.1em 0 .65em; font-size: 2rem; }
.gh-content h3 { margin: 1.8em 0 .6em; font-size: 1.45rem; }
.gh-content h4 { margin: 1.6em 0 .5em; font-size: 1.15rem; }
.gh-content p, .gh-content ul, .gh-content ol { margin: 0 0 1.35em; }
.gh-content ul, .gh-content ol { padding-left: 1.35em; }
.gh-content li + li { margin-top: .4em; }
.gh-content a { color: var(--navy); text-decoration-color: var(--cyan); }
.gh-content blockquote { margin: 2em 0; padding: .2em 0 .2em 1.25em; border-left: 4px solid var(--gold); color: var(--navy); font-size: 1.14em; }
.gh-content hr { margin: 3em 0; border: 0; border-top: 1px solid var(--line); }
.gh-content pre { overflow-x: auto; padding: 20px; border-radius: 4px; background: var(--navy); color: #fff; font-size: 14px; line-height: 1.55; }
.gh-content code { font-size: .9em; }
.gh-content :not(pre) > code { padding: .12em .32em; border-radius: 3px; background: var(--soft); }
.gh-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.gh-content th, .gh-content td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.gh-content .kg-card { margin-top: 2em; margin-bottom: 2em; }
.gh-content .kg-image-card, .gh-content .kg-image-card.kg-width-wide, .gh-content .kg-image-card.kg-width-full { width: 100%; max-width: var(--site-width); margin-left: 0; margin-right: auto; }
.gh-content .kg-image-card img { width: 100%; margin: 0; }
.gh-content .kg-image-card figcaption { width: 100%; margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; text-align: left; }
.gh-content .kg-gallery-image img { width: 100%; }
.gh-content .kg-button-card .kg-btn { display: inline-block; padding: 11px 18px; border-radius: 4px; background: var(--navy); color: #fff; font-size: 14px; font-weight: 750; text-decoration: none; }
.gh-content .kg-button-card .kg-btn:hover { background: var(--navy-2); color: #fff; }
.gh-content .kg-file-card, .gh-content .kg-product-card, .gh-content .kg-bookmark-card, .gh-content .kg-toggle-card { border: 1px solid var(--line); border-radius: 4px; box-shadow: none; }
.gh-content iframe { max-width: 100%; }

/* Footer */
.site-footer { padding: 54px 0 24px; background: #081a31; color: rgba(255,255,255,.72); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 60px; align-items: start; }
.footer-brand { color: #fff; font-size: 20px; font-weight: 800; letter-spacing: -.02em; text-decoration: none; text-transform: uppercase; }
.footer-brand:hover { color: #fff; }
.footer-grid p { max-width: 390px; margin: 9px 0 0; font-size: 13px; }
.footer-nav .nav { align-items: flex-start; flex-direction: column; gap: 8px; }
.footer-nav a, .footer-contact a { color: rgba(255,255,255,.75); font-size: 13px; text-decoration: none; }
.footer-nav a:hover, .footer-contact a:hover { color: #fff; }
.footer-nav a[href="#/portal/"] {
    display: inline-flex; align-items: center; margin-top: 6px; padding: 8px 14px;
    border: 1px solid var(--cyan); border-radius: 5px; color: #fff; font-weight: 700;
    transition: background .18s ease, color .18s ease;
}
.footer-nav a[href="#/portal/"]:hover { background: var(--cyan); color: var(--navy); }
.footer-contact { display: flex; flex-direction: column; gap: 8px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 42px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.13); }
.footer-bottom p { margin: 0; font-size: 11px; }
.ghost-credit a { color: inherit; }

/* Responsive */
@media (max-width: 1000px) {
    .site-navigation .nav { gap: 24px; }
    .page-header h1, .article-header h1, .error-page h1 { font-size: clamp(2.2rem, 5vw, 3.25rem); }
    .footer-grid { grid-template-columns: 1.4fr 1fr; }
    .footer-contact { grid-column: 2; }
}

@media (max-width: 780px) {
    .wide-container, .narrow-container, .main, .main.wide-container { width: min(calc(100% - 32px), var(--site-width)); }
    .main { padding: 52px 0 70px; }
    .header-row { min-height: 74px; }
    .brand-logo { height: 50px; max-width: min(325px, 70vw); }
    .brand-name { font-size: 19px; }
    .brand-mark { width: 41px; height: 41px; }
    .nav-toggle { display: block; }
    .site-navigation {
        display: none; position: absolute; inset: 74px 0 auto; padding: 12px 16px 18px;
        border-bottom: 1px solid var(--line); background: #fff; box-shadow: 0 14px 24px rgba(13,34,64,.10);
    }
    .site-navigation.is-open { display: block; }
    .site-navigation .nav { align-items: stretch; flex-direction: column; gap: 0; }
    .site-navigation li { border-bottom: 1px solid var(--line); }
    .site-navigation li:last-child { border-bottom: 0; }
    .site-navigation a, .site-navigation .nav-contact a { display: block; min-height: auto; padding: 14px 8px; background: transparent; box-shadow: none; color: var(--navy); }
    .site-navigation .nav-contact a:hover { background: transparent; color: var(--cyan); }
    .contact-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
    .footer-contact { grid-column: auto; }
}

@media (max-width: 560px) {
    body { font-size: 16px; }
    .hero-actions { flex-direction: column; }
    .hero-actions .button { width: 100%; }
    .page-header h1, .article-header h1, .error-page h1 { font-size: clamp(2.1rem, 10.5vw, 2.7rem); }
    .contact-card { padding: 26px; }
    .contact-form-shell, .contact-form-fallback { padding: 22px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; gap: 28px; }
    .hero-content h1 { font-size: clamp(2.1rem, 6vw, 2.8rem); }
    .hero-media { order: -1; max-width: 520px; aspect-ratio: 5 / 4; }
    .featured-post { grid-template-columns: 1fr; }
    .featured-image { order: -1; max-height: 260px; }
    .featured-body { padding: 36px 32px; }
}
@media (max-width: 560px) {
    .ledger-item { grid-template-columns: 1fr; gap: 6px; }
    .ledger-date span { display: inline; margin-left: 6px; }
    .featured-body { padding: 28px 22px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
