/* criminals.live
   Change the look of the whole site from the variables below. */

:root {
    --accent: #ff7300;          /* sampled from the live site's link color */
    --text: #111111;
    --text-muted: #555555;
    --rule: #111111;
    --bg: #ffffff;
    --max-width: 720px;
    --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

/* Manrope, served from this site (no Google call). Put manrope.woff2
   (variable font, weights 200 to 800) in /assets/fonts/. If the file is
   missing, the browser quietly uses the system fonts listed above. */
@font-face {
    font-family: 'Manrope';
    src: url('/assets/fonts/Manrope-VariableFont_wght.ttf') format('truetype');
    font-weight: 200 800;
    font-display: swap;
}


* { box-sizing: border-box; }

body {
    margin: 0 auto;
    max-width: var(--max-width);
    padding: 1.5rem 1.25rem 3rem;
    font-family: var(--font);
    font-weight: 300;
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

strong, b { font-weight: 700; }

/* Header */
.site-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem 1.5rem;
    padding-bottom: 1rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--rule);
}
.site-logo {
    display: inline-block;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--bg);
    background: var(--text);
    padding: 0.3rem 0.8rem;
}
.site-logo:hover { text-decoration: none; background: var(--accent); }
.site-nav a { margin-left: 1.25rem; font-size: 1rem; font-weight: 400; color: var(--text); }
.site-nav a:first-child { margin-left: 0; }

/* Headings */
h1 { font-size: 2.6rem; font-weight: 300; line-height: 1.1; margin: 1.5rem 0 1.25rem; }
h2 { font-size: 1.6rem; font-weight: 700; line-height: 1.2; margin: 2rem 0 0.75rem; }
h3 { font-size: 1.2rem; font-weight: 700; margin: 1.5rem 0 0.5rem; }

/* Homepage definition block ("Crime : ... Criminals :") */
.home-definition h1 { font-weight: 700; font-size: 2.8rem; }
.home-definition-text { font-size: 1.8rem; line-height: 1.3; font-weight: 400; margin: 0 0 0.75rem; }
.home-definition-source { font-size: 1rem; margin: 0 0 3rem; }

/* Person pages */
/* Only unsettled (Open) cases carry a mark; settled ones show nothing. */
.case-badge {
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent);
}

.case-dates { margin: -0.5rem 0 1.5rem; color: var(--text-muted); font-size: 1rem; }

/* Photos run edge to edge of the text column, no border or rounding */
.case-image { display: block; margin: 1.5rem 0; }
.case-image img { display: block; width: 100%; height: auto; }

.case-quote {
    margin: 1.5rem 0;
    padding: 0;
    border: none;
    font-style: italic;
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.4;
}

.case-body p { margin: 0 0 1.25rem; }

.case-open-section {
    margin: 2rem 0;
    padding: 1rem 1.5rem;
    background: #fff8f0;
    border: 1px solid #f0cfa8;
    border-radius: 6px;
}
.case-open-section h2 {
    margin: 1.25rem 0 0.4rem;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.case-open-section h2:first-child { margin-top: 0.5rem; }

.case-links ul { padding-left: 1.2rem; }
.case-links li { margin-bottom: 0.4rem; font-size: 1rem; font-weight: 400; }

/* Previous / next / jump-to */
.case-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid var(--rule);
    font-size: 1rem;
    font-weight: 400;
}
.case-nav-prev-next a,
.case-nav-prev-next .disabled { margin-right: 1.25rem; }
.case-nav-prev-next .disabled { color: var(--text-muted); }
.jump { position: relative; }
.jump summary {
    cursor: pointer;
    list-style: none;
    padding: 0.35rem 0.8rem;
    border: 1px solid var(--rule);
    border-radius: 999px;
    user-select: none;
}
.jump summary::-webkit-details-marker { display: none; }
.jump[open] summary { background: var(--text); color: var(--bg); }
.jump-panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 0.5rem);
    z-index: 10;
    width: min(46rem, calc(100vw - 2.5rem));
    max-height: 60vh;
    overflow-y: auto;
    padding: 1rem 1.25rem;
    background: var(--bg);
    border: 1px solid var(--rule);
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
}
.jump-panel ul { list-style: none; margin: 0; padding: 0; column-count: 3; column-gap: 1.5rem; }
.jump-panel li { break-inside: avoid; margin-bottom: 0.4rem; font-size: 0.95rem; }
.jump-panel a[aria-current] { color: var(--accent); font-weight: 700; }
.jump-all { margin: 0.75rem 0 0; padding-top: 0.75rem; border-top: 1px solid var(--rule); font-size: 0.95rem; }
@media (max-width: 640px) {
    .jump-panel { left: 0; right: auto; }
    .jump-panel ul { column-count: 1; }
}

/* Homepage list of people */
.case-index { list-style: none; margin: 0; padding: 0; }
.case-index li { margin-bottom: 3rem; }
.case-index h2 { margin: 0.5rem 0; font-size: 2rem; }
.case-index .case-quote { margin: 0.5rem 0; }
.case-more { margin: 0.25rem 0 0; font-size: 1rem; }

.home-all { margin: 1rem 0 0; font-weight: 700; }

/* A to Z page */
.az-list { list-style: none; margin: 0; padding: 0; }
.az-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e5e5;
    font-weight: 400;
}

/* About page */
.about-page p { margin: 0 0 1.5rem; }

/* Footer */
.site-footer {
    margin-top: 4rem;
    text-align: center;
    font-size: 1rem;
    line-height: 1.8;
}
.site-footer a { display: block; }
.site-footer-name { color: var(--text); font-weight: 700; font-size: 1.15rem; }

.site-footer-note { margin: 0 0 2rem; font-size: 0.9rem; color: var(--text-muted); }
.site-footer-note a { display: inline; }


/* Small screens */
@media (max-width: 480px) {
    body { font-size: 1.1rem; }
    h1, .home-definition h1 { font-size: 2.2rem; }
    .home-definition-text { font-size: 1.5rem; }
}
