/* TransSys Internetworking — custom theme layer for bootstrap4.
   Workshop palette: slate chrome, copper accent. */

:root {
    --ts-slate: #1f2937;
    --ts-slate-dark: #111827;
    --ts-copper: #c2571b;
    --ts-copper-dark: #9a4413;
    --ts-line: #e5e7eb;
}

/* Chrome ------------------------------------------------------------- */
/* Body: Lucida Bright (elegant readable serif) with Georgia fallback
   for visitors who don't have Lucida licensed/installed.  Headings and
   UI chrome: Lucida Sans for contrast (Lucida Grande / Lucida Sans
   Unicode stand in closely where Lucida Sans is absent). */
body {
    font-family: "Lucida Bright", "Lucida Bright Std", Georgia,
                 "Times New Roman", "DejaVu Serif", serif;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #212529;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6,
.navbar, .navbar-brand, .nav-link,
.project-card-title, .search-results .search-type,
footer, .footer {
    font-family: "Lucida Sans", "Lucida Sans Std", "Lucida Grande",
                 "Lucida Sans Unicode", "Segoe UI", -apple-system,
                 sans-serif;
}

h1, h2, h3 {
    color: #111827;
    letter-spacing: -0.01em;
}

/* Code blocks keep the monospace stack */
code, pre, kbd, samp {
    font-family: "Lucida Console", "SF Mono", Menlo, Consolas,
                 "DejaVu Sans Mono", monospace;
}

.navbar {
    background-color: var(--ts-slate) !important;
    font-weight: 500;
}

a, .postflow a, .list-social-links a:hover {
    color: var(--ts-copper);
}

a:hover, a:focus {
    color: var(--ts-copper-dark);
}

/* Article pages ------------------------------------------------------- */
article > header h1 {
    font-weight: 700;
    letter-spacing: -0.01em;
}

.byline, .metadata {
    color: #6b7280;
    font-size: 0.9rem;
}

img {
    border-radius: 4px;
}

main p img, figure img {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* Generated project navigation (templates/page.tmpl) -------------------- */
.project-back {
    margin: -0.5rem 0 1.25rem;
}

.project-back a {
    display: inline-block;
    padding: 0.2rem 0.75rem;
    border: 1px solid var(--ts-line);
    border-radius: 999px;
    background: #f8f9fa;
    font-size: 0.85rem;
    color: #374151;
}

.project-back a:hover {
    background: var(--ts-copper);
    border-color: var(--ts-copper);
    color: #fff;
}

.project-pager {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--ts-line);
}

.project-pager nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.project-pager a {
    font-size: 0.95rem;
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--ts-line);
    border-radius: 6px;
}

.project-pager a:hover {
    border-color: var(--ts-copper);
    text-decoration: none;
}

.project-pager .pager-next {
    margin-left: auto;
}

/* Project card grid ---------------------------------------------------- */
.project-grid {
    margin-top: 1.25rem;
    margin-bottom: 1.5rem;
}

.project-card {
    display: block;
    height: 100%;
    margin-bottom: 1.25rem;
    border: 1px solid var(--ts-line);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    text-decoration: none !important;
    color: inherit;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.project-card:hover {
    box-shadow: 0 4px 14px rgba(17, 24, 39, 0.12);
    transform: translateY(-2px);
}

.project-card-img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-bottom: 1px solid var(--ts-line);
    border-radius: 0;
}

.project-card-body {
    padding: 0.9rem 1rem 1rem;
}

.project-card-body .project-card-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--ts-slate-dark);
}

.project-card:hover .project-card-title {
    color: var(--ts-copper);
}

.project-card-body p {
    font-size: 0.9rem;
    color: #4b5563;
    margin-bottom: 0.25rem;
}

.project-meta {
    font-size: 0.78rem !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #9ca3af !important;
}

.project-card-noimg {
    border-top: 4px solid var(--ts-copper);
}

/* Home hero image ------------------------------------------------------ */
.home-hero {
    margin: 0.25rem 0 1rem;
}

.home-hero img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(17, 24, 39, 0.18);
}

/* Home intro lead paragraph ------------------------------------------- */
p.home-intro {
    font-size: 1.35rem;
    line-height: 1.55;
    font-weight: 500;
    color: #1f2937;
    margin: 0 0 1.25rem;
}

p.home-intro a {
    color: var(--ts-copper);
    font-weight: 600;
}

/* Search page ----------------------------------------------------------- */
.search-form input {
    width: 100%;
    max-width: 32rem;
    padding: 0.55rem 0.9rem;
    font-size: 1.05rem;
    border: 1px solid var(--ts-line);
    border-radius: 8px;
    margin: 0.75rem 0 1.25rem;
}

.search-form input:focus {
    outline: 2px solid var(--ts-copper);
    outline-offset: 1px;
    border-color: transparent;
}

.search-results {
    list-style: none;
    padding: 0;
}

.search-results li {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--ts-line);
}

.search-results .search-type {
    margin-left: 0.5rem;
    padding: 0.05rem 0.45rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    background: #f3f4f6;
    border-radius: 999px;
}

.search-results p {
    margin: 0.2rem 0 0;
    font-size: 0.88rem;
    color: #6b7280;
}

.search-empty {
    color: #9ca3af;
    font-style: italic;
}

/* Footer ----------------------------------------------------------------- */
.footer {
    color: #6b7280;
    padding-top: 1.5rem;
    border-top: 1px solid var(--ts-line);
}
