.shift-bestiary {
    --ink: #26221c;
    --muted: #6d6559;
    --paper: #eee7d8;
    --paper-deep: #ded2bd;
    --accent: #7e3f2d;
    --accent-soft: #b98a6d;
    box-sizing: border-box;
    max-width: 980px;
    margin: 0 auto 3rem;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid rgba(42, 34, 26, .22);
    border-radius: 4px;
    box-shadow: 0 18px 55px rgba(10, 8, 5, .22);
    overflow: hidden;
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.7;
}

.shift-bestiary * { box-sizing: border-box; }
.shift-bestiary--tales {
    --paper: #eee9d7;
    --paper-deep: #ddd3b5;
    --accent: #496142;
    --accent-soft: #8b9b72;
}
.shift-bestiary--neo {
    --ink: #dce7e7;
    --muted: #9eadae;
    --paper: #101719;
    --paper-deep: #172326;
    --accent: #d46146;
    --accent-soft: #42a8ad;
    border-color: rgba(77, 184, 191, .26);
    box-shadow: 0 18px 60px rgba(0, 10, 12, .5);
}

.shift-bestiary__cover {
    position: relative;
    isolation: isolate;
    min-height: 540px;
    display: flex;
    align-items: flex-end;
    padding: clamp(2rem, 7vw, 5rem);
    color: #fff;
    background: #111;
}
.shift-bestiary__cover > a:first-child {
    position: absolute;
    z-index: -2;
    inset: 0;
    display: block !important;
    max-width: none !important;
}
.shift-bestiary__cover > img:first-child {
    position: absolute;
    z-index: -2;
    inset: 0;
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    object-fit: cover;
}
.shift-bestiary__cover > a:first-child img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    object-fit: cover;
}
.shift-bestiary__cover-shade {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 8, 8, .08) 12%, rgba(8, 8, 8, .3) 44%, rgba(8, 8, 8, .94) 100%);
}
.shift-bestiary__cover-copy { max-width: 760px; }
.shift-bestiary__kicker,
.shift-bestiary__folio,
.shift-bestiary__toc-title {
    margin: 0 0 .75rem;
    font: 700 .76rem/1.2 Arial, sans-serif;
    letter-spacing: .22em;
    text-transform: uppercase;
}
.shift-bestiary__kicker { color: #e8c6a6; }
.shift-bestiary--tales .shift-bestiary__kicker { color: #d9ddb1; }
.shift-bestiary--neo .shift-bestiary__kicker { color: #7ee4e8; }
.shift-bestiary__cover h2 {
    max-width: 780px;
    margin: 0;
    color: #fff;
    font-size: clamp(2.5rem, 7vw, 5.4rem);
    line-height: .96;
    letter-spacing: -.045em;
    text-shadow: 0 2px 22px #000;
}
.shift-bestiary__intro {
    max-width: 700px;
    margin: 1.45rem 0 0;
    color: rgba(255, 255, 255, .87);
    font-size: clamp(1.05rem, 2.2vw, 1.28rem);
    line-height: 1.6;
}
.shift-bestiary__badge {
    display: inline-block;
    margin: 1.25rem 0 0;
    padding: .45rem .75rem;
    border: 1px solid rgba(126, 228, 232, .7);
    border-radius: 999px;
    background: rgba(5, 24, 26, .72);
    color: #9aebee;
    font: 700 .74rem/1 Arial, sans-serif;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.shift-bestiary__toc {
    padding: 2.5rem clamp(1.4rem, 6vw, 4.5rem);
    background: var(--paper-deep);
    border-top: 1px solid rgba(255, 255, 255, .12);
    border-bottom: 1px solid rgba(38, 34, 28, .18);
}
.shift-bestiary__toc-title { color: var(--accent); }
.shift-bestiary__toc ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .25rem 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.shift-bestiary__toc li {
    margin: 0;
    border-bottom: 1px solid color-mix(in srgb, var(--ink) 16%, transparent);
}
.shift-bestiary__toc a {
    display: flex;
    gap: .85rem;
    align-items: center;
    padding: .7rem 0;
    color: var(--ink);
    text-decoration: none;
}
.shift-bestiary__toc a:hover { color: var(--accent); }
.shift-bestiary__toc a span {
    color: var(--accent);
    font: 700 .72rem/1 Arial, sans-serif;
    letter-spacing: .12em;
}

.shift-bestiary__entry {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 0;
    border-bottom: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
    scroll-margin-top: 1.5rem;
}
.shift-bestiary__entry--reverse figure { order: 2; }
.shift-bestiary__entry figure {
    position: relative;
    min-height: 100%;
    margin: 0;
    background: #0d1112;
    overflow: hidden;
}
.shift-bestiary__entry figure > a {
    position: absolute;
    inset: 0;
    display: block !important;
    max-width: none !important;
}
.shift-bestiary__entry figure img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    object-fit: cover;
}
.shift-bestiary__entry figcaption {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    padding: .35rem .55rem;
    background: rgba(8, 8, 8, .72);
    color: #eee;
    font: 700 .68rem/1 Arial, sans-serif;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.shift-bestiary__entry-copy { padding: clamp(2rem, 5vw, 4rem); }
.shift-bestiary__folio { color: var(--accent); }
.shift-bestiary__entry h2 {
    margin: 0 0 1rem;
    color: var(--ink);
    font-size: clamp(2.1rem, 5vw, 3.9rem);
    line-height: 1;
    letter-spacing: -.035em;
}
.shift-bestiary__meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 0 0 2rem;
    padding: 1rem 0;
    border-top: 1px solid var(--accent-soft);
    border-bottom: 1px solid var(--accent-soft);
}
.shift-bestiary__meta > div { min-width: 0; }
.shift-bestiary__meta-label {
    margin: 0 0 .25rem !important;
    color: var(--accent) !important;
    font: 700 .7rem/1 Arial, sans-serif;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.shift-bestiary__meta-value {
    margin: 0 !important;
    color: var(--ink) !important;
    font-size: .94rem;
    line-height: 1.35;
}
.shift-bestiary__prose h3 {
    margin: 1.8rem 0 .55rem;
    color: var(--accent);
    font: 700 .78rem/1.3 Arial, sans-serif;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.shift-bestiary__prose p {
    margin: 0 0 1rem;
    color: var(--ink);
}
.shift-bestiary__features {
    display: grid;
    gap: .65rem;
    margin: .3rem 0 1.2rem;
}
.shift-bestiary__feature {
    display: grid;
    gap: .15rem;
    padding: .75rem .9rem;
    border-left: 3px solid var(--accent);
    background: color-mix(in srgb, var(--paper-deep) 74%, transparent);
}
.shift-bestiary__feature strong {
    color: var(--ink);
    font-size: .94rem;
}
.shift-bestiary__feature span {
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.55;
}
.shift-bestiary blockquote {
    display: grid;
    gap: .35rem;
    margin: 2rem 0 0;
    padding: 1.15rem 1.25rem;
    border: 0;
    border-top: 1px solid var(--accent);
    border-bottom: 1px solid var(--accent);
    background: transparent;
    color: var(--ink);
    font-style: italic;
}
.shift-bestiary blockquote::before { display: none !important; }
.shift-bestiary blockquote strong {
    color: var(--accent);
    font: 700 .7rem/1 Arial, sans-serif;
    letter-spacing: .15em;
    text-transform: uppercase;
}
.shift-bestiary__return {
    margin: 1.6rem 0 0 !important;
    text-align: right;
}
.shift-bestiary__return a {
    color: var(--muted);
    font: 700 .72rem/1 Arial, sans-serif;
    letter-spacing: .08em;
    text-decoration: none;
    text-transform: uppercase;
}
.shift-bestiary__colophon {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem clamp(1.4rem, 6vw, 4.5rem);
    background: var(--paper-deep);
    color: var(--muted);
    font: 700 .67rem/1.4 Arial, sans-serif;
    letter-spacing: .1em;
    text-transform: uppercase;
}

@media (max-width: 760px) {
    .shift-bestiary__cover { min-height: 480px; }
    .shift-bestiary__toc ol { grid-template-columns: 1fr; }
    .shift-bestiary__entry { display: flex; flex-direction: column; }
    .shift-bestiary__entry figure,
    .shift-bestiary__entry--reverse figure {
        order: 0;
        min-height: 0;
        aspect-ratio: 3 / 2;
    }
    .shift-bestiary__meta { grid-template-columns: 1fr; }
    .shift-bestiary__colophon { flex-direction: column; }
}

@media (max-width: 420px) {
    .shift-bestiary__cover { min-height: 430px; padding: 1.5rem; }
    .shift-bestiary__entry-copy { padding: 1.6rem 1.25rem; }
    .shift-bestiary__cover h2 { font-size: 2.5rem; }
    .shift-bestiary__entry h2 { font-size: 2.25rem; }
}
