/* hearse.css - light cleanup styling for hearse.krollmark.com */

:root {
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    --font-mono: "SF Mono", Menlo, Consolas, monospace;
    --size-base: 1rem;
    --size-small: 0.9rem;
    --size-title: 3rem;
    --size-h2: 1.25rem;
}

body {
    background-color: #ececec;
    margin: 0;
    padding: 1.5rem;
    font-family: var(--font-sans);
    font-size: var(--size-base);
    color: #1a1a1a;
    line-height: 1.55;
}

/* Force form controls and tables to inherit the body font — browsers
   default to a different family for tables/inputs in some engines, which
   was making the stats pages look mixed. */
table,
th,
td,
input,
button,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
}

.page {
    max-width: 820px;
    margin: 0 auto;
    padding: 1.25rem 2rem 2rem;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 6px;
    box-shadow: 0 2px 22px rgba(0, 0, 0, 0.3);
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    padding-bottom: 0.85rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid #ddd;
    font-size: var(--size-small);
}

.nav a {
    color: #444;
    text-decoration: none;
}

.nav a:hover {
    color: #000;
    text-decoration: underline;
}

.title {
    text-align: center;
    margin: 0.5rem 0 1.25rem;
}

.title h1 {
    font-size: var(--size-title);
    margin: 0.25rem 0 0.1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.title .tagline {
    margin: 0;
    font-style: italic;
    color: #666;
    font-size: var(--size-small);
}

hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 1.2rem 0;
}

p {
    margin: 0.6rem 0;
}

ul {
    margin: 0.4rem 0 0.8rem;
    padding-left: 1.4rem;
}

li {
    margin: 0.25rem 0;
}

li.dead,
.dead {
    color: #999;
    text-decoration: line-through;
}

li.dead a,
.dead a {
    color: inherit;
}

h2 {
    font-size: var(--size-h2);
    margin: 1.5rem 0 0.6rem;
}

.q {
    font-weight: 600;
    margin-top: 1.3rem;
}

.q i,
.q em {
    font-weight: 400;
}

code {
    font-family: var(--font-mono);
    background: #f3f3f3;
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
}

a {
    color: #1c5e9a;
}

a:visited {
    color: #6a3c8a;
}

/* Tables. Styles both modern <th>-using tables and legacy sproc-generated
   tables that put headers in bare <td>s and rely on border="1" attributes. */
table {
    border-collapse: collapse;
    border-spacing: 0;
    margin: 0.5rem 0 1rem;
    border: none;
}

table th,
table td {
    padding: 0.35rem 0.85rem;
    border: 1px solid #e5e5e5;
    text-align: left;
}

table th,
table tr:first-child td {
    background: #f5f5f5;
    font-weight: 600;
}

.site-footer {
    margin-top: 2rem;
    padding-top: 0.9rem;
    border-top: 1px solid #ddd;
    color: #888;
    font-size: var(--size-small);
}
