:root {
    --ink: #1f1f1f;
    --paper: #f7f2ea;
    --accent: #9a6a42;
}

body {
    color: var(--ink);
    background: #fff;
}

.hero {
    background: linear-gradient(120deg, rgba(32, 28, 24, 0.88), rgba(74, 55, 42, 0.78)),
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.16), transparent 26%),
    var(--accent);
}

.text-white-75 {
    color: rgba(255, 255, 255, .75);
}

.eyebrow, .section-kicker {
    letter-spacing: .18em;
    text-transform: uppercase;
    font-size: .78rem;
    font-weight: 700;
}

.section-kicker {
    color: var(--accent);
}

.artwork-link {
    color: inherit;
    text-decoration: none;
}

.artwork-link:focus-visible {
    outline: .2rem solid var(--accent);
    outline-offset: .2rem;
}

.artwork-link span {
    color: var(--accent);
}

.artwork-card {
    border: 0;
    box-shadow: 0 .75rem 2rem rgba(0, 0, 0, .08);
    transition: transform .18s ease, box-shadow .18s ease;
    overflow: hidden;
}

.artwork-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, .12);
}

.artwork-card img {
    background: var(--paper);
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.about-panel {
    background: var(--paper);
    border-left: .4rem solid var(--accent);
    border-radius: 1rem;
}

.artwork-detail-img {
    background: var(--paper);
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, .10);
    width: 100%;
}

.detail-panel {
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 1rem;
    box-shadow: 0 .75rem 2rem rgba(0, 0, 0, .06);
}


.artwork-zoom-trigger {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: zoom-in;
}

.zoom-hint {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    padding: .45rem .7rem;
    border-radius: 999px;
    color: #fff;
    background: rgba(0, 0, 0, .62);
    font-size: .85rem;
    font-weight: 600;
}

.zoom-viewer-open {
    overflow: hidden;
}

.zoom-viewer {
    position: fixed;
    inset: 0;
    z-index: 1080;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 5rem 1.25rem 1.25rem;
    background: rgba(0, 0, 0, .86);
}

.zoom-viewer.is-open {
    display: flex;
}

.zoom-toolbar {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1090;
    display: flex;
    gap: .5rem;
    padding: .5rem;
    border-radius: 0.25rem;
    background: rgba(0, 0, 0, .35);
}

.zoom-viewer-img {
    max-width: min(96vw, 1200px);
    max-height: 82vh;
    object-fit: contain;
    transform-origin: center center;
    transition: transform .08s ease-out;
    user-select: none;
    cursor: zoom-in;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .5);
}

.zoom-viewer-img.is-zoomed {
    cursor: grab;
    transition: none;
}

.zoom-viewer-img.is-zoomed:active {
    cursor: grabbing;
}


.page-hero {
    background: var(--paper);
}

.story-row {
    padding: 2rem;
    border-radius: 1.25rem;
    background: #fff;
    border: 3px;
    border-color: #e3c9b7;
    border-style: solid dotted solid dotted;
}

.story-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: var(--paper);
    box-shadow: 0 .75rem 2rem rgba(0, 0, 0, .08);
}

.book-cover-img {
    width: 100%;
    height: 350px;
    object-fit: contain;
}

.navbar .nav-link.active {
    font-weight: 600;
}

.navbar-brand {
    padding-bottom: 0;
    padding-top: 0;
}

.site-logo {
    height: 40px;
    width: auto;
}

@media (max-width: 992px) {
    .story-row {
        padding: 1.25rem;
    }

    .book-cover-img {
        height: 260px;
    }
}
