:root {
    --bg: #f6f1e7;
    --surface: rgba(255, 253, 248, 0.9);
    --surface-strong: #fffaf2;
    --text: #2f241d;
    --muted: #6f6053;
    --accent: #6d4c34;
    --accent-soft: #e9dbc8;
    --border: rgba(72, 50, 34, 0.12);
    --shadow: 0 22px 70px rgba(79, 57, 38, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    background:
        radial-gradient(circle at top, rgba(175, 144, 104, 0.16), transparent 30%),
        linear-gradient(180deg, #fbf7f0, #f3ece1);
    color: var(--text);
    font-family: Georgia, "Times New Roman", serif;
}

a {
    color: var(--accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.14em;
}

a:hover {
    color: #4d331f;
}

.navbar {
    padding: 0.85rem 1rem;
    background: rgba(255, 249, 241, 0.94) !important;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(72, 50, 34, 0.08);
}

.navbar-light .navbar-nav .nav-link,
.navbar-light .navbar-brand {
    color: var(--text);
}

.navbar-light .navbar-nav .nav-link {
    padding: 0.6rem 0.95rem;
    border-radius: 999px;
    margin-right: 0.25rem;
    font-size: 0.98rem;
}

.navbar-light .navbar-nav .nav-item.active .nav-link,
.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus {
    background: var(--accent-soft);
    color: var(--accent);
}

main {
    padding-top: 5.75rem;
}

.jumbotron {
    max-width: 1120px;
    margin: 0 auto 2rem;
    padding: 2rem 1.5rem !important;
    background: transparent;
}

.jumbotron > .bg-light.text-dark {
    padding: 2rem 2rem 0.5rem;
    background: transparent !important;
}

.display-4 {
    font-size: clamp(2.25rem, 5vw, 4rem);
    font-weight: 700 !important;
    line-height: 0.98;
}

.jumbotron > .row,
.jumbotron > .table-responsive,
.jumbotron > .container.text-center,
.jumbotron > ul.list-group,
.jumbotron > .mx-auto,
.jumbotron > .my_background,
.jumbotron > .container {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}

.jumbotron .row .col,
.jumbotron .row .mx-auto,
.jumbotron .row .col-12 {
    width: 100%;
}

.my_background {
    background-image: url("/images/back.gif");
    background-position: center;
    border-radius: 24px;
    overflow: hidden;
}

.my_background img {
    max-height: 320px;
    object-fit: contain;
}

.list-group {
    border-radius: 20px;
    overflow: hidden;
}

.list-group-item {
    border-color: var(--border);
    background: rgba(255, 253, 248, 0.92);
}

.story-list .list-group-item {
    display: grid;
    gap: 0.35rem;
    padding: 1rem 1.1rem;
}

.story-list .list-group-item a {
    font-size: 1.08rem;
    font-weight: 700;
}

.story-list .list-group-item span {
    color: var(--muted);
    line-height: 1.55;
}

.story-page-intro .col,
.story-page .story-copy {
    max-width: 74ch;
    margin: 0 auto;
}

.story-page-intro h3 {
    margin: 0;
}

.story-page .story-copy {
    font-size: 1.08rem;
    line-height: 1.85;
}

.table {
    margin-bottom: 0;
    color: var(--text);
}

.table thead th {
    border-top: none;
    color: var(--muted);
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.table td,
.table th {
    border-color: var(--border);
}

table[border] {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface-strong);
}

table[border] td,
table[border] th {
    border: 1px solid var(--border);
    padding: 0.75rem;
    vertical-align: top;
}

hr {
    border-top: 1px solid var(--border);
}

.img_thumb {
    width: 64px;
}

.img-thumbnail {
    background: #fff;
    border-color: var(--border);
}

.footer {
    padding-bottom: 2rem;
}

.footer .container {
    color: var(--muted);
}

@media (max-width: 767px) {
    main {
        padding-top: 4.75rem;
    }

    .jumbotron {
        padding: 1rem 0.5rem !important;
    }

    .jumbotron > .bg-light.text-dark,
    .jumbotron > .row,
    .jumbotron > .table-responsive,
    .jumbotron > .container.text-center,
    .jumbotron > ul.list-group,
    .jumbotron > .mx-auto,
    .jumbotron > .my_background,
    .jumbotron > .container {
        padding: 1.1rem;
        border-radius: 18px;
    }

    .display-4 {
        font-size: 2.2rem;
    }
}
