﻿/* ===== TCHT – Type & Layout polish (Bootstrap 5 companion) ===== */

/* Base rhythm */
:root {
    --tcht-max-width: 72rem; /* ~1152px comfy read width */
    --tcht-leading: 1.65; /* paragraph line-height */
    --tcht-heading-tight: 1.15; /* heading line-height */
    --tcht-muted: #6c757d;
    --tcht-body: #1c1f20;
}

body {
    color: var(--tcht-body);
    line-height: var(--tcht-leading);
    text-rendering: optimizeLegibility;
}

/* Keep main content comfortably narrow inside the container */
.container-lg, .container {
    max-width: var(--tcht-max-width);
}

/* Headings: spacing + readable scale */
h1, .h1,
h2, .h2,
h3, .h3,
h4, .h4 {
    line-height: var(--tcht-heading-tight);
    letter-spacing: .2px;
    margin-top: 1.2rem;
    margin-bottom: .6rem;
}

h1, .h1 {
    margin-top: 0;
    font-weight: 800;
}
.header-h1 {
    margin-left: 5rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

h2, .h2 {
    font-weight: 700;
}

h3, .h3 {
    font-weight: 700;
}

h4, .h4 {
    font-weight: 600;
}

/* Paragraphs & lists */
p {
    margin-bottom: 0.9rem;
}

.lead {
    line-height: 1.5;
}

ul, ol {
    margin-bottom: 1rem;
}

li + li {
    margin-top: .25rem;
}

/* Muted helper for meta notes */
.text-muted-soft {
    color: var(--tcht-muted) !important;
}

/* Links: subtle hover lift */
a {
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

/* Hero bar (full-width H1) tweaks */
.hero-bar {
    padding: 1.25rem 0;
}

@media (min-width: 992px) {
    .hero-bar {
        padding: 2.25rem 0;
    }
}

.hero-bar h1 {
    margin: 0;
}

.hero-bar .lead {
    margin-top: .4rem;
    opacity: .95;
}

/* Section wrappers for consistent vertical rhythm */
.section {
    padding: 1.25rem 0;
}

    .section + .section {
        padding-top: 0;
    }

@media (min-width: 992px) {
    .section {
        padding: 2rem 0;
    }
}

/* Images: responsive, neat, and aligned with captions */
img,
figure img {
    display: block;
    max-width: 100%;
    height: auto;
}

.figure {
    margin: 1rem 0 1.25rem;
}

    .figure img {
        border-radius: .5rem;
    }

.figure-caption {
    font-size: .95rem;
    color: var(--tcht-muted);
    margin-top: .5rem;
}

/* Utility: tidy image blocks in text (align + size presets) */
.img-sm {
    max-width: 360px;
}

.img-md {
    max-width: 560px;
}

.img-lg {
    max-width: 820px;
}

.img-left {
    float: left;
    margin: .25rem 1rem .75rem 0;
}

.img-right {
    float: right;
    margin: .25rem 0 .75rem 1rem;
}

@media (max-width: 768px) {
    .img-left, .img-right {
        float: none;
        margin: .75rem 0;
    }
}

/* Cards: softer, “paper” look */
.card {
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 1rem;
    box-shadow: 0 1px 12px rgba(0,0,0,.04);
}

    .card > .list-group {
        border-radius: 0 0 1rem 1rem;
    }

/* Blockquotes */
blockquote {
    border-left: 4px solid rgba(0,0,0,.08);
    padding-left: 1rem;
    margin: 1rem 0 1.25rem;
    font-style: italic;
    color: #495057;
}

/* Tables: readable rows */
.table {
    --bs-table-striped-bg: rgba(0,0,0,.02);
    --bs-table-hover-bg: rgba(0,0,0,.035);
    margin-bottom: 1.25rem;
}

    .table th {
        font-weight: 700;
    }

/* Buttons: slightly rounder */
.btn {
    border-radius: .55rem;
}

/* Breadcrumb spacing under hero (if you use them) */
.breadcrumb {
    margin: .5rem 0 0;
}

/* Footer spacing */
.site-footer {
    margin-top: 2rem;
}

/* Optional: “content well” spacing for long text pages */
.content-well > * + * {
    margin-top: .8rem;
}

@media (min-width: 992px) {
    .content-well {
        font-size: 1.05rem;
    }
}

/* Optional dark tweak (if you add a dark hero) */
.hero-dark .figure-caption {
    color: rgba(255,255,255,.85);
}

.header-fluid-bg {
    background-image: url('../img/fluid-bg-000.png');
    background-repeat: no-repeat;
    background-position: top center;
    background-origin: border-box;
    background-size: cover;
}