/* ==========================================================================
   Colonel theme for brianmichelson.com
   Palette (all text pairs meet WCAG AA):
     black #15150F · gold #E8B923 (on dark only) · olive #4B5320
     brass #7A5A00 (gold-toned text on light) · off-white #F6F3EA · grey #55554A
   ========================================================================== */

:root {
    --black: #15150F;
    --ink: #1E1E18;
    --gold: #E8B923;
    --olive: #4B5320;
    --olive-dark: #3A4018;
    --brass: #7A5A00;
    --paper: #F6F3EA;
    --card: #FFFDF7;
    --chip: #E7E4D3;
    --line: #DAD5C5;
    --muted: #55554A;
    --muted-on-dark: #B8B5A8;
    --soft-on-dark: #D8D5C8;
    --placeholder: #2E3120;

    --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
    --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

    --radius: 4px;
    --container: 1280px;
    --gutter: clamp(16px, 5vw, 80px);
    --measure: 720px;

    /* Ghost's editor cards (buttons, callouts) pick this up */
    --ghost-accent-color: var(--olive);
}

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

html {
    font-size: 125%;          /* 1rem = 20px: larger than usual for easy reading */
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

a { color: var(--olive); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--black); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--olive); outline-offset: 3px; border-radius: 2px; }
.site-header :focus-visible, .site-footer :focus-visible, .hero :focus-visible { outline-color: var(--gold); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; color: var(--black); line-height: 1.2; margin: 0; }

.visually-hidden {
    position: absolute !important; 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: 16px; top: -100px; z-index: 100;
    background: var(--gold); color: var(--black); font-weight: 700;
    padding: 12px 20px; border-radius: var(--radius); text-decoration: none;
}
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.site-main { flex: 1 0 auto; outline: none; }

.star { width: 1em; height: 1em; fill: currentColor; }

/* ---------- Shared bits ---------- */
.eyebrow {
    margin: 0;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--brass);
}
.eyebrow-gold { color: var(--gold); }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 52px; padding: 12px 26px;
    font-family: var(--sans); font-size: 0.95rem; font-weight: 700; line-height: 1.2;
    border-radius: var(--radius); border: 2px solid transparent;
    text-decoration: none; cursor: pointer;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; }
.btn-sm { min-height: 46px; padding: 8px 18px; font-size: 0.85rem; }
.btn-gold { background: var(--gold); color: var(--black); }
.btn-gold:hover { background: #F2C94A; color: var(--black); }
.btn-olive { background: var(--olive); color: #fff; }
.btn-olive:hover { background: var(--olive-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--olive); border-color: var(--olive); }
.btn-outline:hover { background: var(--olive); color: #fff; }
.btn-outline-light { background: transparent; color: var(--paper); border-color: var(--paper); }
.btn-outline-light:hover { background: var(--paper); color: var(--black); }
.btn-light { background: var(--paper); color: var(--black); }
.btn-light:hover { background: #fff; color: var(--black); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

.tag-chip {
    display: inline-block;
    font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.3;
    padding: 6px 12px; border-radius: 3px;
    background: var(--chip); color: var(--olive); text-decoration: none;
}
a.tag-chip:hover { background: var(--olive); color: #fff; }
.tag-chip.is-active { background: var(--olive); color: #fff; }

.stars-divider { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--brass); margin: 0 auto; }
.stars-rule { flex: 0 1 120px; height: 1px; background: currentColor; }
.stars-sm .star { width: 12px; height: 12px; }
.stars-lg .star { width: 18px; height: 18px; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; font-size: 0.85rem; color: var(--muted); }

/* ---------- Header ---------- */
.site-header { background: var(--black); border-top: 4px solid var(--gold); position: relative; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 88px; }

.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; padding: 8px 0; }
.brand-star { color: var(--gold); display: flex; }
.brand-star .star { width: 26px; height: 26px; }
.brand-text { display: flex; flex-direction: column; gap: 2px; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--paper); line-height: 1.15; }
.brand-rank { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); line-height: 1.3; }
.brand:hover .brand-name { color: #fff; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.nav-list { display: flex; align-items: center; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav-list a {
    display: block; padding: 8px 0; border-bottom: 2px solid transparent;
    color: var(--paper); font-size: 0.9rem; font-weight: 600; text-decoration: none;
}
.nav-list a:hover { color: var(--gold); }
.nav-item.is-current a, .nav-list a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }

.search-btn {
    display: inline-flex; align-items: center; gap: 8px;
    min-width: 44px; min-height: 44px; padding: 0 12px;
    background: transparent; color: var(--paper);
    border: 1px solid var(--muted); border-radius: var(--radius);
    font: inherit; font-size: 0.85rem; cursor: pointer;
}
.search-btn:hover { border-color: var(--gold); color: var(--gold); }
.search-btn svg, .nav-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.search-label { display: none; }

.nav-toggle {
    display: none; width: 48px; height: 48px; align-items: center; justify-content: center;
    background: transparent; color: var(--paper); border: 1px solid var(--muted); border-radius: var(--radius); cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 900px) {
    .header-inner { min-height: 72px; }
    .brand-name { font-size: 0.9rem; }
    .brand-rank { font-size: 0.5rem; }
    .brand-star .star { width: 20px; height: 20px; }
    .nav-toggle { display: inline-flex; }
    .site-nav {
        display: none; position: absolute; left: 0; right: 0; top: 100%;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--black); border-top: 1px solid #3A3A30; padding: 8px var(--gutter) 24px;
    }
    .site-nav.is-open { display: flex; }
    .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
    .nav-list a { padding: 14px 0; border-bottom: 1px solid #2A2A22; font-size: 1.05rem; }
    .nav-item.is-current a, .nav-list a[aria-current="page"] { border-bottom-color: #2A2A22; }
    .search-btn { margin-top: 16px; justify-content: center; min-height: 52px; font-size: 1rem; }
    .search-label { display: inline; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: var(--muted-on-dark); padding: 64px 0 44px; margin-top: 96px; }
.site-footer .container { display: flex; flex-direction: column; gap: 36px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 24px; }
.footer-brand { display: flex; flex-direction: column; gap: 6px; }
.footer-rank { font-size: 0.85rem; }
.footer-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.footer-nav .nav-list { gap: 12px 28px; flex-wrap: wrap; }
.footer-nav a, .footer-nav .nav-list a { color: var(--paper); font-size: 0.9rem; font-weight: 400; text-decoration: underline; border: 0; padding: 4px 0; }
.footer-nav a:hover { color: var(--gold); }
.site-footer .stars-divider { color: var(--gold); width: 100%; }
.site-footer .stars-rule { flex: 1 1 auto; background: #3A3A30; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 40px; font-size: 0.8rem; line-height: 1.5; }
.footer-bottom p { margin: 0; }

/* ---------- Home ---------- */
.hero { background: var(--black); color: var(--soft-on-dark); padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 9vw, 112px); }
.hero-inner { display: flex; align-items: center; gap: clamp(40px, 6vw, 80px); }
.hero-text { flex: 1 1 auto; display: flex; flex-direction: column; gap: 24px; max-width: 700px; }
.hero-title { color: var(--paper); font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1.05; }
.hero-lede { margin: 0; font-size: clamp(1.1rem, 2vw, 1.15rem); line-height: 1.6; }
.hero-text .btn-row { margin-top: 8px; }

.hero-portrait { flex: 0 0 400px; position: relative; margin: 0 20px 20px 0; }
.hero-portrait::after { content: ""; position: absolute; inset: 20px -20px -20px 20px; border: 1px solid var(--gold); z-index: 0; }
.hero-portrait img, .hero-portrait .portrait-placeholder { position: relative; z-index: 1; width: 100%; aspect-ratio: 5 / 6; object-fit: cover; }

.portrait-placeholder {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 24px;
    background: var(--placeholder); color: var(--muted-on-dark); font-size: 0.8rem;
}
.portrait-placeholder .star { width: 32px; height: 32px; color: var(--gold); }

@media (max-width: 900px) {
    .hero-inner { flex-direction: column-reverse; align-items: stretch; }
    .hero-portrait { flex-basis: auto; margin: 0; }
    .hero-portrait::after { display: none; }
    .hero-portrait img, .hero-portrait .portrait-placeholder { aspect-ratio: 4 / 3; border-bottom: 3px solid var(--gold); }
    .hero .btn-row .btn { flex: 1 1 100%; }
}

.home-sections { display: flex; flex-direction: column; gap: clamp(56px, 8vw, 88px); padding-top: clamp(48px, 8vw, 88px); }

.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 36px; }
.section-head > div { display: flex; flex-direction: column; gap: 10px; }
.section-title { font-size: clamp(1.7rem, 3.5vw, 2.2rem); }
.more-link { font-weight: 600; }
.empty-note { color: var(--muted); }

/* Book feature */
.book-feature {
    display: flex; align-items: center; gap: clamp(32px, 6vw, 80px);
    padding: clamp(28px, 5vw, 64px) clamp(20px, 5vw, 72px);
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.book-cover { flex: 0 0 300px; display: block; }
.book-cover img, .book-cover-placeholder {
    width: 100%; aspect-ratio: 2 / 3; object-fit: cover;
    box-shadow: 0 20px 44px rgba(21, 21, 15, 0.28); border-radius: 2px;
}
.book-cover-placeholder { display: flex; padding: 18px; background: var(--black); }
.book-cover-frame {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
    border: 1px solid var(--gold); color: var(--muted-on-dark); font-size: 0.75rem; text-align: center; padding: 16px;
}
.book-cover-frame .star { width: 24px; height: 24px; color: var(--gold); }
.book-text { display: flex; flex-direction: column; gap: 20px; max-width: 680px; }
.book-title { font-size: clamp(1.7rem, 4.5vw, 2.6rem); line-height: 1.1; }
.book-blurb { margin: 0; }
.book-text .btn-row { margin-top: 8px; }

@media (max-width: 800px) {
    .book-feature { flex-direction: column; align-items: stretch; }
    .book-cover { flex-basis: auto; width: min(220px, 70%); align-self: center; }
    .book-feature .btn-row .btn { flex: 1 1 100%; }
}

/* Service band */
.service-band {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px;
    padding: clamp(32px, 5vw, 56px) clamp(24px, 5vw, 64px);
    background: var(--olive); color: #F1EFE4; border-radius: var(--radius);
}
.service-band > div { max-width: 760px; display: flex; flex-direction: column; gap: 12px; }
.service-title { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.service-band p { margin: 0; }
.service-band :focus-visible { outline-color: var(--paper); }

/* ---------- Post cards / lists ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 1100px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .post-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

.post-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; position: relative; }
.post-card-media { display: block; aspect-ratio: 16 / 10; background: var(--placeholder); }
.post-card-image { width: 100%; height: 100%; object-fit: cover; }
.post-card-placeholder { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; color: #6E6B58; }
.post-card-placeholder .star { width: 36px; height: 36px; }
.post-card-body { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 24px 26px 28px; }
.post-card-title { font-size: 1.35rem; font-weight: 600; line-height: 1.25; }
.post-card-title a { color: var(--black); text-decoration: none; }
.post-card-title a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.post-card:hover .post-card-title a { text-decoration: underline; text-decoration-thickness: 2px; }
.post-card .tag-chip { position: relative; z-index: 1; }
.post-card:focus-within { outline: 3px solid var(--olive); outline-offset: 3px; }
.post-card-title a:focus-visible { outline: none; }
.post-meta { margin: 0; font-size: 0.8rem; color: var(--muted); }
.post-card-excerpt { margin: 0; font-size: 0.9rem; line-height: 1.6; }

.page-head { padding: clamp(48px, 7vw, 80px) 0 40px; }
.page-head .container { display: flex; flex-direction: column; gap: 14px; }
.page-title { font-size: clamp(1.9rem, 5vw, 2.8rem); }
.page-lede { margin: 0; max-width: 720px; color: var(--muted); }
.list-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 12px; }
.tag-filter { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-filter .tag-chip { font-size: 0.7rem; padding: 10px 14px; }

.pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 56px; flex-wrap: wrap; }
.page-number { color: var(--muted); font-size: 0.85rem; }

/* ---------- Article ---------- */
.article { padding-top: clamp(40px, 6vw, 72px); }
.article-header { width: min(760px, calc(100% - 32px)); margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.article-title { font-size: clamp(1.8rem, 5vw, 2.7rem); line-height: 1.12; }
.article-dek { margin: 0; font-size: 1.15rem; line-height: 1.55; color: var(--muted); }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 0.85rem; color: var(--muted); }
.avatar { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; background: var(--black); color: var(--gold); display: inline-flex; align-items: center; justify-content: center; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar .star { width: 20px; height: 20px; }
.author-name { font-weight: 600; color: var(--ink); }

.article-image { width: min(1040px, calc(100% - 32px)); margin: 48px auto 0; }
.article-image img { width: 100%; border-radius: var(--radius); }
.article-image figcaption, .gh-content figcaption { margin-top: 12px; font-size: 0.8rem; font-style: italic; color: var(--muted); text-align: left; }

.article-footer { width: min(720px, calc(100% - 32px)); margin: 56px auto 0; padding-top: 32px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 28px; }
.article-tags, .share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.label { font-size: 0.85rem; font-weight: 600; margin-right: 6px; }
.copy-status { font-size: 0.8rem; color: var(--olive); }
.post-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.post-nav-link { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }
.post-nav-link:hover { border-color: var(--olive); }
.post-nav-next { grid-column: 2; text-align: right; }
.post-nav-label { font-size: 0.75rem; color: var(--muted); }
.post-nav-title { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; color: var(--black); line-height: 1.3; }
@media (max-width: 640px) { .post-nav { grid-template-columns: minmax(0, 1fr); } .post-nav-next { grid-column: 1; } }

/* ---------- Content from Ghost's editor ---------- */
.gh-content {
    display: grid;
    grid-template-columns:
        [full-start] minmax(16px, 1fr)
        [wide-start] minmax(0, 160px)
        [main-start] min(var(--measure), calc(100% - 32px)) [main-end]
        minmax(0, 160px) [wide-end]
        minmax(16px, 1fr) [full-end];
    margin-top: 48px;
}
.gh-content > * { grid-column: main-start / main-end; margin: 0 0 1.4em; }
.gh-content > .kg-width-wide { grid-column: wide-start / wide-end; }
.gh-content > .kg-width-full { grid-column: full-start / full-end; }
.gh-content > .kg-width-full img { width: 100%; }
.gh-content > :first-child { margin-top: 0; }
.gh-content > p:first-of-type { font-size: 1.15rem; }

.gh-content h2 { font-size: clamp(1.6rem, 3vw, 1.9rem); margin-top: 1.2em; margin-bottom: 0.6em; }
.gh-content h3 { font-size: 1.4rem; margin-top: 1.1em; margin-bottom: 0.5em; }
.gh-content h4 { font-size: 1.15rem; margin-top: 1em; margin-bottom: 0.4em; }
.gh-content ul, .gh-content ol { padding-left: 1.4em; }
.gh-content li { margin-bottom: 0.4em; }
.gh-content blockquote:not([class]) {
    margin: 0.4em 0 1.6em; padding: 4px 0 4px 32px;
    border-left: 4px solid var(--gold);
    font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 1.45rem; line-height: 1.4; color: var(--black);
}
.gh-content blockquote.kg-blockquote-alt {
    font-family: var(--serif); font-style: italic; font-size: 1.6rem; text-align: center; color: var(--black); padding: 0 1em;
}
.gh-content hr { border: 0; height: 1px; background: var(--line); margin: 2em 0; }
.gh-content img { border-radius: var(--radius); }
.gh-content figure { margin-left: 0; margin-right: 0; }
.gh-content .kg-image-card, .gh-content .kg-gallery-card { margin: 0.6em 0 1.8em; }
.gh-content .kg-image { margin: 0 auto; }
.gh-content pre { overflow-x: auto; background: var(--black); color: var(--paper); padding: 20px; border-radius: var(--radius); font-size: 0.8rem; }
.gh-content code { font-size: 0.85em; }
.gh-content table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.gh-content th, .gh-content td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; }
.gh-content .kg-callout-card { border-radius: var(--radius); }
.gh-content .kg-btn { font-family: var(--sans); }

/* ---------- Plain pages ---------- */
.page-article .gh-content:first-child { margin-top: 0; }

/* ---------- About ---------- */
.about { padding-top: clamp(40px, 6vw, 88px); }
.about-grid { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: clamp(32px, 6vw, 72px); align-items: start; }
.about-portrait { position: sticky; top: 24px; }
.about-portrait img, .about-portrait .portrait-placeholder { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; border-radius: var(--radius); }
.about-caption { font-size: 0.8rem; color: var(--muted); font-style: italic; margin: 10px 0 0; }
.portrait-placeholder-light { border-radius: var(--radius); }
.about-body { display: flex; flex-direction: column; gap: 20px; max-width: 760px; }
.about-content { display: block; margin-top: 8px; }
.about-content > * { margin: 0 0 1.2em; }
@media (max-width: 900px) {
    .about-grid { grid-template-columns: minmax(0, 1fr); }
    .about-portrait { position: static; max-width: 420px; }
}

/* Service timeline (site.js adds the classes to the list under a "Timeline" heading) */
.timeline { list-style: none; margin: 8px 0 1.6em 17px !important; padding: 0 !important; border-left: 2px solid var(--olive); }
.timeline > li { position: relative; padding: 0 0 32px 40px; margin: 0; }
.timeline > li:last-child { padding-bottom: 0; }
.timeline > li::before {
    content: ""; position: absolute; left: -18px; top: 0;
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--black) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23E8B923' d='M12 2l2.9 6.9 7.1.6-5.4 4.7 1.7 7-6.3-3.8-6.3 3.8 1.7-7L2 9.5l7.1-.6z'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.timeline > li:last-child::before {
    background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2315150F' d='M12 2l2.9 6.9 7.1.6-5.4 4.7 1.7 7-6.3-3.8-6.3 3.8 1.7-7L2 9.5l7.1-.6z'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.tl-year { display: block; font-family: var(--serif); font-weight: 700; font-size: 1.2rem; color: var(--brass); line-height: 1.4; }
.tl-title { display: block; font-weight: 700; font-size: 1.05rem; line-height: 1.4; margin-top: 2px; }
.tl-detail { display: block; font-size: 0.9rem; color: var(--muted); margin-top: 2px; }

/* ---------- Book page ---------- */
.book-page { padding-top: clamp(40px, 6vw, 88px); }
.book-page-grid { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.book-cover-large { position: sticky; top: 24px; }
.book-page-text { display: flex; flex-direction: column; gap: 20px; max-width: 720px; }
.book-page-text p { margin: 0; }
.book-content { display: block; margin-top: 12px; }
.book-content > * { margin: 0 0 1.2em; }
@media (max-width: 900px) {
    .book-page-grid { grid-template-columns: minmax(0, 1fr); }
    .book-cover-large { position: static; width: min(260px, 70%); justify-self: center; }
}

/* ---------- Contact ---------- */
.contact-wrap { width: min(720px, calc(100% - 32px)); margin: 0 auto; }
.contact-page .gh-content { margin-top: 32px; }
.contact-form { display: flex; flex-direction: column; gap: 22px; padding: clamp(24px, 4vw, 40px); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 0.9rem; font-weight: 600; }
.field input, .field textarea {
    font: inherit; font-size: 1rem; color: var(--ink);
    padding: 14px 16px; background: #fff; border: 2px solid #8C8878; border-radius: var(--radius);
}
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--olive); outline-offset: 1px; border-color: var(--olive); }
.field textarea { resize: vertical; min-height: 180px; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .btn { align-self: flex-start; }
.contact-form .btn[disabled] { opacity: 0.6; cursor: wait; }
.form-status:empty { display: none; }
.form-status { padding: 14px 18px; border-radius: var(--radius); font-size: 0.95rem; outline: none; }
.form-status.is-success { background: #E6EBD6; color: #2F3514; border: 1px solid var(--olive); }
.form-status.is-error { background: #F6E3DF; color: #7A1F10; border: 1px solid #A8321E; }

/* ---------- Errors ---------- */
.error-page { padding-top: clamp(64px, 10vw, 120px); display: flex; flex-direction: column; gap: 20px; }

/* ---------- Print ---------- */
@media print {
    .site-header, .site-footer .footer-nav, .share, .post-nav, .nav-toggle, .skip-link { display: none !important; }
    body { background: #fff; font-size: 12pt; }
    .site-footer { background: none; color: #000; margin-top: 24pt; padding: 0; }
}

/* ---------- Books listing (/books/) ---------- */
.book-row {
    display: flex; align-items: flex-start; gap: clamp(24px, 5vw, 56px);
    padding: clamp(24px, 4vw, 40px);
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    margin-bottom: 32px;
}
.book-row .book-cover { flex: 0 0 220px; }
.book-row-text { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.book-row-text .book-title { font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
.book-row-text .book-title a { color: var(--black); text-decoration: none; }
.book-row-text .book-title a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.book-row-text p { margin: 0; }
@media (max-width: 720px) {
    .book-row { flex-direction: column; align-items: stretch; }
    .book-row .book-cover { flex-basis: auto; width: min(200px, 60%); align-self: center; }
}

/* ---------- Ghost editor buttons ----------
   Ghost injects its own accent colour, which wins over our variable because
   {{ghost_head}} comes after this stylesheet. Force button cards to olive so a
   forgotten accent setting can never put hot pink on the page. */
.gh-content .kg-btn,
.gh-content .kg-btn-accent,
.kg-card.kg-button-card .kg-btn {
    background: var(--olive) !important;
    color: #fff !important;
    font-family: var(--sans);
    font-weight: 700;
    font-size: 0.95rem;
    min-height: 52px;
    padding: 12px 26px;
    border-radius: var(--radius);
    text-decoration: none;
}
.gh-content .kg-btn:hover,
.kg-card.kg-button-card .kg-btn:hover { background: var(--olive-dark) !important; color: #fff !important; }
.kg-card.kg-button-card { margin: 1.2em 0 1.6em; }

/* Anything else Ghost paints with its accent colour */
.gh-content a.kg-header-card-button,
.kg-cta-card .kg-cta-button { background: var(--olive) !important; color: #fff !important; }

/* ---------- "Get in touch" block at the end of the About page ---------- */
.about-cta {
    margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line);
    display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
}
.about-cta p { margin: 0; font-size: 1.05rem; }
