body {
    font-family: 'Volkhov', serif;
    font-size: 1.1em;
    color: #222;
    margin: 0;
    background: #fafafa;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Asul', sans-serif;
    font-weight: 700;
    color: #333333;
}

.year-description {
    color: #999999;
}

.container {
    width: 100%;
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding: 1em 1.25em 3em;
    box-sizing: border-box;
}

.history {
    width: 100%;
    columns: 2 auto;
}

.fh-section {
    margin-bottom: 1.5em;
    break-inside: avoid;
}

.fh-section h4 {
    margin-bottom: 0.3em;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.2em;
}

.fh-section .item {
    margin-bottom: 0.4em;
}

.effects {
    width: 100%;
    font-size: 0.9em;
}

.effects h5 {
    margin: 0.6em 0 0.2em;
}

.effects ul {
    margin-top: 0;
}

.item {
    box-sizing: border-box;
    padding-left: 20px;
}

.small {
    font-size: 0.8em;
}

.medium {
    font-size: 0.95em;
}

/* Buttons / actions */
.btn {
    display: inline-block;
    font-family: 'Asul', sans-serif;
    font-size: 0.95rem;
    padding: 0.55em 1.1em;
    margin: 0.25em 0.4em 0.25em 0;
    border: 1px solid #8a1f1f;
    border-radius: 4px;
    background: #8a1f1f;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.btn:hover {
    background: #6f1818;
}

.btn.secondary {
    background: #fff;
    color: #8a1f1f;
}

.btn.secondary:hover {
    background: #f3e7e7;
}

.btn:disabled {
    opacity: 0.5;
    cursor: default;
}

.toolbar {
    margin: 0.5em 0 1.5em;
}

.nav {
    font-size: 0.85em;
    margin-bottom: 0.5em;
}

.nav a {
    color: #8a1f1f;
}

/* Breadcrumb navigation (matches the other RQG tools) */
.text-title {
    color: #9d1b1f;
}

.text-muted {
    color: #6c757d;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: 0.6rem 1rem;
    margin: 0 0 1.25rem;
    list-style: none;
    background-color: #e9ecef;
    border-radius: 0.25rem;
    font-family: 'Asul', sans-serif;
    font-size: 0.9rem;
}

.breadcrumb-item {
    color: #6c757d;
}

.breadcrumb-item a {
    color: #8a1f1f;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item + .breadcrumb-item::before {
    display: inline-block;
    padding-right: 0.5rem;
    padding-left: 0.5rem;
    color: #6c757d;
    content: "/";
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* Landing page cards */
.modes {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25em;
    margin-top: 1.5em;
}

.mode-card {
    flex: 1 1 320px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.25em 1.5em;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.mode-card h3 {
    margin-top: 0;
}

/* Guided wizard */
.guided-step {
    border: 1px solid #e0d6d6;
    border-radius: 8px;
    background: #fff;
    padding: 1em 1.25em;
    margin-bottom: 1.25em;
}

.guided-step h3 {
    margin-top: 0;
}

.intro {
    color: #555;
    font-style: italic;
    margin: 0.3em 0 0.8em;
}

.modifiers {
    font-size: 0.85em;
    color: #777;
    margin: 0.3em 0 0.8em;
}

.options {
    list-style: none;
    padding: 0;
    margin: 0.5em 0;
}

.option {
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 0.5em 0.75em;
    margin-bottom: 0.5em;
    cursor: pointer;
    background: #fdfdfd;
    transition: background 0.12s, border-color 0.12s;
}

.option:hover {
    background: #f3e7e7;
    border-color: #c89a9a;
}

.option .range {
    display: inline-block;
    min-width: 4.5em;
    font-family: 'Asul', sans-serif;
    font-size: 0.8em;
    color: #8a1f1f;
}

.option.rolled {
    background: #fff4cc;
    border-color: #d8b13a;
}

.option.fatal .range {
    color: #444;
}

.transcript .fh-section {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 0.75em 1em;
}

.field {
    margin-bottom: 0.75em;
}

.field label {
    display: inline-block;
    min-width: 11em;
    font-family: 'Asul', sans-serif;
    font-size: 0.9em;
}

select {
    font-size: 1rem;
    padding: 0.25em;
}

.dead-note {
    color: #8a1f1f;
    font-size: 0.85em;
}

.roll-result {
    font-family: 'Asul', sans-serif;
    color: #8a1f1f;
    margin: 0.4em 0;
}
