:root {
    --ink: #1a1a1a;
    --muted: #6b6b6b;
    --line: #e2e2e2;
    --accent: #8b2f2f;
    --bg: #fdfcfa;
    --max-width: 680px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.55;
}

header.site-header, main, footer.site-footer {
    max-width: var(--max-width);
    margin: 0 auto;
}

header.site-header {
    padding: 40px 0 20px;
    border-bottom: 1px solid var(--line);
}

.site-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
}

.site-tagline {
    color: var(--muted);
    margin: 6px 0 0;
    font-size: 0.95rem;
}

main {
    padding: 30px 0 60px;
}

.intro {
    color: var(--muted);
    margin-bottom: 24px;
}

ul.people-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.person-item {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    overflow: hidden; /* contains the floated .person-thumb */
}

.person-thumb {
    max-width: 100px;
    float: right;
    border-radius: 12px;
    object-fit: cover;
    margin-left: 10px;
}

.person-text {
    overflow: hidden; /* creates a block that sits cleanly beside the float, instead of wrapping around it line by line */
}

.person-text a {
    color: var(--accent);
    text-decoration: none;
    font-size: 1.05rem;
}

.person-text a:hover {
    text-decoration: underline;
}

.person-header {
    overflow: hidden; /* contains the floated .person-photo, like .person-item does on the index page */
}

.person-photo {
    max-width: 160px;
    width: 160px;
    height: 160px;
    float: right;
    border-radius: 12px;
    object-fit: cover;
    margin: 10px 0 20px 20px;
}

.person-intro {
    overflow: hidden; /* creates a block that sits cleanly beside the float, instead of wrapping around it line by line */
}

.disambig {
    color: var(--muted);
}

.breadcrumb a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
}

.person-page h1 {
    margin: 10px 0 4px;
}

.person-page h1 a {
    color: inherit;
    text-decoration: none;
}

.person-page h1 a:hover {
    text-decoration: underline;
}

.person-page .disambig {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

dl.facts {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 6px 16px;
    margin: 20px 0;
}

dl.facts dt {
    color: var(--muted);
    font-weight: 600;
}

dl.facts dd {
    margin: 0;
}

h2 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
    margin-top: 30px;
}

ul.links {
    list-style: none;
    padding: 0;
}

ul.links li {
    margin-bottom: 6px;
}

ul.links a {
    color: var(--accent);
    word-break: break-all;
}

footer.site-footer {
    padding: 20px 0 40px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.85rem;
}
