:root {
    --ink: #2b2530;
    --ink-soft: #5a5260;
    --accent: #b76e79;
    --accent-dark: #9c5763;
    --cream: #faf7f2;
    --cream-dark: #f3eee6;
    --white: #ffffff;
    --border: #e7e0d6;
    --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --sans: 'Lora', Georgia, serif;
}

body {
    font-family: var(--sans);
    color: var(--ink);
    background: var(--cream);
    letter-spacing: 0.01em;
}

.serif {
    font-family: var(--serif);
}

.text-accent {
    color: var(--accent) !important;
}

.btn-accent {
    background: var(--accent);
    border: 1px solid var(--accent);
    color: #fff;
    transition: all .25s ease;
}

.btn-accent:hover,
.btn-accent:focus {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(183, 110, 121, .3);
}

.btn-outline-accent {
    border: 1px solid var(--accent);
    color: var(--accent);
    transition: all .25s ease;
}

.btn-outline-accent:hover,
.btn-outline-accent:focus {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* ---------- Navbar ---------- */
.navbar {
    background: rgba(250, 247, 242, .92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    padding-top: .9rem;
    padding-bottom: .9rem;
}

.navbar .navbar-brand {
    font-size: 1.25rem;
    letter-spacing: .02em;
}

.navbar .nav-link {
    color: var(--ink-soft);
    font-weight: 500;
    margin: 0 .35rem;
    transition: color .2s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--accent);
}

/* ---------- Hero ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 0 3rem;
    background:
        radial-gradient(ellipse at top right, rgba(183, 110, 121, .08), transparent 55%),
        linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 100%);
}

.hero-kicker {
    text-transform: uppercase;
    letter-spacing: .28em;
    font-size: .8rem;
    color: var(--accent);
    font-weight: 600;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    line-height: 1.15;
    font-weight: 600;
}

.hero-subtitle {
    color: var(--ink-soft);
    max-width: 34rem;
}

.hero-portrait {
    width: min(340px, 80vw);
}

.hero-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: var(--cream-dark);
    border: 6px solid #fff;
}

/* ---------- Sections ---------- */
.section {
    padding: 4.5rem 0;
}

.section-alt {
    background: var(--white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-kicker {
    text-transform: uppercase;
    letter-spacing: .28em;
    font-size: .78rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: .75rem;
}

.section-title {
    font-weight: 600;
}

.page-hero {
    padding: 8.5rem 0 2.5rem;
    background: linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 100%);
}

.page-title {
    font-weight: 600;
    font-size: clamp(2rem, 4vw, 3rem);
}

.page-subtitle {
    max-width: 40rem;
}

/* ---------- Book cards ---------- */
.book-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 1rem;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}

.book-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(43, 37, 48, .12);
}

.book-cover-wrap {
    position: relative;
    overflow: hidden;
    background: var(--cream-dark);
}

.book-cover,
.book-card-img,
.card-img-top {
    width: 100%;
    height: 380px;
    object-fit: cover;
}

.book-cover.placeholder {
    text-align: center;
}

.more-books-section .card-img-top {
    height: 280px;
    object-fit: cover;
}

.home-books-section .card-img-top,
.latest-books .card-img-top {
    height: 280px;
    object-fit: cover;
}

.featured-badge {
    position: absolute;
    top: .6rem;
    left: .6rem;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
}

.book-title {
    font-weight: 600;
}

.pdf-preview {
    width: 100%;
    height: 85vh;
    border: 1px solid var(--border);
    background: var(--white);
}

/* ---------- Post cards ---------- */
.post-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 1rem;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}

.post-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(43, 37, 48, .12);
}

.post-thumb {
    aspect-ratio: 16 / 9;
    background: var(--cream-dark);
}

.post-thumb img {
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.post-card:hover .post-thumb img {
    transform: scale(1.05);
}

.post-thumb.placeholder {
    aspect-ratio: 16 / 9;
}

/* ---------- Prose (blog content) ---------- */
.prose {
    font-size: 1.08rem;
    line-height: 1.85;
    color: var(--ink);
}

.prose h2 {
    font-family: var(--serif);
    font-weight: 600;
    margin: 2rem 0 1rem;
    font-size: 1.6rem;
}

.prose h3 {
    font-family: var(--serif);
    font-weight: 600;
    margin: 1.6rem 0 .8rem;
    font-size: 1.3rem;
}

.prose p {
    margin-bottom: 1.2rem;
}

.prose strong {
    font-weight: 700;
}

.prose a {
    color: var(--accent);
}

.prose blockquote {
    border-left: 3px solid var(--accent);
    padding-left: 1.2rem;
    font-style: italic;
    color: var(--ink-soft);
    margin: 1.5rem 0;
}

/* ---------- Achievement list ---------- */
.achievement-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.achievement-list li {
    padding: .7rem 0;
    border-bottom: 1px dashed var(--border);
    color: var(--ink-soft);
}

.achievement-list li .bi {
    color: var(--accent);
}

.quote-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
}

/* ---------- About ---------- */
.about-section {
    overflow-x: hidden;
}

.tracking-wider {
    letter-spacing: .1em;
}

.letter-spacing-1 {
    letter-spacing: .06em;
}

.about-portrait {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    filter: grayscale(1);
    background: var(--cream-dark);
    border: 6px solid #fff;
}

.about-subtitle {
    font-family: var(--serif);
    font-size: 1.1rem;
    letter-spacing: .06em;
    color: var(--accent);
    font-weight: 500;
}

.about-lead {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--ink-soft);
}

.about-prose {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--ink);
}

.about-prose p {
    margin-bottom: 1.2rem;
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: .9rem;
    padding: 1.25rem 1rem;
    text-align: center;
    height: 100%;
}

.stat-value {
    display: block;
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent);
}

.stat-label {
    display: block;
    font-size: .82rem;
    color: var(--ink-soft);
    line-height: 1.4;
    margin-top: .25rem;
}

.work-pill {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: .5rem 1.1rem;
    font-size: .95rem;
    color: var(--ink);
    transition: all .2s ease;
    overflow-wrap: break-word;
    max-width: 100%;
}

.work-pill:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.quote-card blockquote {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--ink-soft);
    overflow-wrap: break-word;
}

/* ---------- CTA ---------- */
.cta-inner {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: #fff;
}

.cta-text {
    max-width: 38rem;
    opacity: .92;
}

/* ---------- Contact ---------- */
.contact-form-wrap {
    background: var(--white);
    border: 1px solid var(--border);
}

.form-control {
    background: var(--cream);
    border: 1px solid var(--border);
    padding: .8rem 1rem;
    border-radius: .6rem;
}

.form-control:focus {
    background: #fff;
    border-color: var(--accent);
    box-shadow: 0 0 0 .2rem rgba(183, 110, 121, .18);
}

.errorlist {
    list-style: none;
    padding: 0;
    margin: .35rem 0 0;
    color: #b02a37;
    font-size: .85rem;
}

.category-pill {
    text-transform: capitalize;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--ink);
    color: rgba(255, 255, 255, .8);
}

.site-footer h5 {
    color: #fff;
}

.site-footer .btn-light {
    background: rgba(255, 255, 255, .1);
    border-color: transparent;
    color: rgba(255, 255, 255, .85);
}

.site-footer .btn-light:hover {
    background: rgba(255, 255, 255, .2);
    color: #fff;
}

.site-footer hr {
    border-color: rgba(255, 255, 255, .12);
}

.social-links .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    background: var(--cream-dark);
    color: var(--ink-soft);
    font-size: 1.05rem;
    transition: all .2s ease;
}

.social-links .social-icon:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-2px);
}

.site-footer .social-icon {
    background: rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .8);
}

.site-footer .social-icon:hover {
    background: var(--accent);
    color: #fff;
}

/* ---------- Post detail ---------- */
.post-title {
    font-weight: 600;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.featured-image {
    width: 100%;
    object-fit: cover;
    max-height: 480px;
}

/* ---------- Blog sidebar ---------- */
.sidebar-card {
    background: var(--white);
    border: 1px solid var(--border);
}

.sidebar-post-link {
    display: flex;
    padding: .55rem 0;
    border-bottom: 1px dashed var(--border);
}

.sidebar-post-link:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-post-link:hover .link-body-emphasis {
    color: var(--accent) !important;
}

.sidebar-thumb {
    width: 64px;
    height: 48px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--border);
}

.min-w-0 {
    min-width: 0;
}

.author-avatar {
    width: 2.2rem;
    height: 2.2rem;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: .9rem;
}

.tag-pill {
    text-transform: capitalize;
}

/* ---------- Cursor ---------- */
body,
.post-card,
.book-card,
.sidebar-card,
.page-hero,
.page-subtitle,
.hero,
.hero-subtitle,
.section,
.prose,
.text-muted {
    cursor: default;
}

a,
button,
.btn,
.category-pill,
.tag-pill,
.page-link,
.navbar-toggler,
input[type='submit'],
input[type='button'] {
    cursor: pointer;
}

/* ---------- Pagination ---------- */
.pagination .page-link {
    border: 1px solid var(--border);
    color: var(--ink-soft);
    background: var(--white);
    min-width: 2.4rem;
    text-align: center;
    transition: all .2s ease;
}

.pagination .page-link:hover {
    background: var(--cream-dark);
    color: var(--accent);
}

.pagination .active .page-link {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

@media (max-width: 768px) {
    .hero {
        padding-top: 7rem;
    }
    .section {
        padding: 3.25rem 0;
    }
}
