:root {
    --eyv-bg: #f6f2ea;
    --eyv-bg-soft: #fbf8f3;
    --eyv-surface: rgba(255, 255, 255, 0.88);
    --eyv-surface-strong: #ffffff;
    --eyv-line: rgba(21, 26, 38, 0.08);
    --eyv-line-strong: rgba(21, 26, 38, 0.12);
    --eyv-text: #111827;
    --eyv-muted: #6b7280;
    --eyv-primary: #9b1c31;
    --eyv-primary-dark: #7e1527;
    --eyv-accent: #f4b257;
    --eyv-radius-xl: 32px;
    --eyv-radius-lg: 24px;
    --eyv-radius-md: 18px;
    --eyv-shadow: 0 20px 55px rgba(17, 24, 39, 0.07);
    --eyv-shadow-soft: 0 10px 28px rgba(17, 24, 39, 0.05);
}

html {
    scroll-behavior: smooth;
}

body.eyv-body {
    margin: 0;
    background: radial-gradient(circle at top left, rgba(155, 28, 49, 0.08), transparent 24rem), radial-gradient(circle at top right, rgba(244, 178, 87, 0.14), transparent 22rem), linear-gradient(180deg, #fcfaf6 0%, var(--eyv-bg) 100%);
    color: var(--eyv-text);
    font-family: Inter, "Segoe UI", system-ui, sans-serif;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
}

.eyv-container {
    width: min(1200px, calc(100% - 32px));
    margin-inline: auto;
}

.eyv-main {
    min-height: 72vh;
}

.eyv-header {
    position: sticky;
    top: 0;
    z-index: 1040;
    background: rgba(252, 250, 246, 0.78);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--eyv-line);
}

.eyv-header-row {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.eyv-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--eyv-text);
}

.eyv-brand-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.eyv-brand-copy {
    display: grid;
    line-height: 1;
    gap: 4px;
}

    .eyv-brand-copy strong {
        font-size: 1.18rem;
        font-weight: 800;
        letter-spacing: -0.03em;
    }

    .eyv-brand-copy small {
        color: var(--eyv-muted);
        font-size: 0.76rem;
        text-transform: uppercase;
        letter-spacing: 0.12em;
        font-weight: 700;
    }

.eyv-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1;
}

    .eyv-nav a {
        color: var(--eyv-text);
        padding: 10px 14px;
        border-radius: 999px;
        font-weight: 600;
    }

        .eyv-nav a:hover {
            background: rgba(155, 28, 49, 0.08);
            color: var(--eyv-primary);
        }

.eyv-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.eyv-btn {
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 700;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

    .eyv-btn:hover {
        transform: translateY(-1px);
    }

.eyv-btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--eyv-primary), #c12745);
    box-shadow: 0 16px 30px rgba(155, 28, 49, 0.22);
}

    .eyv-btn-primary:hover {
        background: linear-gradient(135deg, var(--eyv-primary-dark), var(--eyv-primary));
        color: #fff;
    }

.eyv-btn-soft {
    color: var(--eyv-primary);
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(155, 28, 49, 0.12);
}

    .eyv-btn-soft:hover {
        color: var(--eyv-primary-dark);
        background: #fff;
    }

.eyv-hero {
    padding: 34px 0 22px;
}

.eyv-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
    gap: 28px;
    align-items: stretch;
}

.eyv-hero-copy,
.eyv-hero-shelf {
    background: var(--eyv-surface);
    border: 1px solid var(--eyv-line);
    box-shadow: var(--eyv-shadow);
    border-radius: var(--eyv-radius-xl);
}

.eyv-hero-copy {
    padding: clamp(28px, 4vw, 52px);
}

.eyv-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(155, 28, 49, 0.08);
    color: var(--eyv-primary);
    font-weight: 700;
    font-size: .82rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.eyv-hero-copy h1 {
    font-size: clamp(2.5rem, 5vw, 4.9rem);
    line-height: .94;
    letter-spacing: -0.055em;
    font-weight: 900;
    max-width: 10ch;
    margin: 0 0 16px;
}

.eyv-hero-copy p {
    color: var(--eyv-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    max-width: 54ch;
    margin-bottom: 22px;
}

.eyv-search-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--eyv-line-strong);
    border-radius: 999px;
    padding: 10px 10px 10px 16px;
    box-shadow: var(--eyv-shadow-soft);
    max-width: 680px;
}

    .eyv-search-bar i {
        color: var(--eyv-muted);
        font-size: 1.05rem;
    }

    .eyv-search-bar input {
        border: 0;
        outline: 0;
        background: transparent;
        flex: 1;
        font-size: 1rem;
        min-width: 0;
    }

.eyv-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.eyv-hero-shelf {
    padding: 22px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-content: center;
}

.eyv-hero-book {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 18px 30px rgba(17, 24, 39, 0.12);
    aspect-ratio: 0.76;
    background: linear-gradient(135deg, #fff3e8, #fff);
}

    .eyv-hero-book:nth-child(2) {
        transform: translateY(22px);
    }

    .eyv-hero-book:nth-child(3) {
        transform: translateY(-8px);
    }

    .eyv-hero-book:nth-child(4) {
        transform: translateY(12px);
    }

    .eyv-hero-book img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.eyv-section {
    padding: 22px 0 18px;
}

.eyv-section-soft {
    padding: 28px 0;
}

    .eyv-section-soft .eyv-container {
        background: rgba(255,255,255,0.48);
        border: 1px solid rgba(255,255,255,0.7);
        border-radius: var(--eyv-radius-xl);
        padding: clamp(20px, 3vw, 28px);
    }

.eyv-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

    .eyv-section-head h2 {
        margin: 0;
        font-size: clamp(1.6rem, 3vw, 2.5rem);
        line-height: 1;
        letter-spacing: -0.04em;
        font-weight: 800;
    }

.eyv-inline-link {
    color: var(--eyv-primary);
    font-weight: 700;
}

.eyv-book-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.eyv-book-card,
.eyv-rail-card,
.eyv-chip,
.eyv-author-card {
    color: inherit;
}

.eyv-book-card {
    background: rgba(255,255,255,0.92);
    border: 1px solid var(--eyv-line);
    border-radius: 24px;
    padding: 16px;
    box-shadow: var(--eyv-shadow-soft);
    transition: transform .18s ease, box-shadow .18s ease;
}

    .eyv-book-card:hover,
    .eyv-rail-card:hover,
    .eyv-chip:hover,
    .eyv-author-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--eyv-shadow);
    }

.eyv-book-cover-wrap {
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(135deg, #fce7df, #fdfcf9);
    aspect-ratio: 0.74;
}

.eyv-book-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.eyv-book-body {
    padding-top: 14px;
}

    .eyv-book-body h3 {
        font-size: 1.06rem;
        line-height: 1.3;
        margin: 10px 0 6px;
        font-weight: 800;
    }

.eyv-meta {
    margin: 0;
    color: var(--eyv-muted);
    font-size: .94rem;
    line-height: 1.55;
}

.eyv-price-pill {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    background: #fff6ea;
    color: #9c5f08;
    font-size: .82rem;
    font-weight: 800;
}

.eyv-chip-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.eyv-chip {
    background: rgba(255,255,255,0.9);
    border: 1px solid var(--eyv-line);
    border-radius: 22px;
    padding: 18px 20px;
    box-shadow: var(--eyv-shadow-soft);
}

    .eyv-chip strong,
    .eyv-rail-card strong,
    .eyv-author-card h3 {
        display: block;
        font-size: 1rem;
        font-weight: 800;
        color: var(--eyv-text);
    }

    .eyv-chip span,
    .eyv-rail-card span,
    .eyv-author-card p {
        display: block;
        margin-top: 4px;
        color: var(--eyv-muted);
        font-size: .92rem;
        line-height: 1.55;
    }

.eyv-author-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.eyv-author-card {
    background: rgba(255,255,255,0.92);
    border: 1px solid var(--eyv-line);
    border-radius: 24px;
    padding: 20px;
    box-shadow: var(--eyv-shadow-soft);
}

.eyv-author-avatar,
.eyv-author-photo {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    margin-bottom: 14px;
}

.eyv-author-avatar {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--eyv-primary), #d44861);
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
}

.eyv-author-photo {
    object-fit: cover;
}

.eyv-rail {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}

.eyv-rail-card {
    background: rgba(255,255,255,0.92);
    border: 1px solid var(--eyv-line);
    border-radius: 22px;
    padding: 12px;
    box-shadow: var(--eyv-shadow-soft);
}

    .eyv-rail-card img {
        width: 100%;
        aspect-ratio: 0.76;
        object-fit: cover;
        border-radius: 16px;
        margin-bottom: 12px;
        background: linear-gradient(135deg, #fce7df, #fdfcf9);
    }

.eyv-footer {
    padding: 34px 0 50px;
}

.eyv-footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    background: rgba(255,255,255,0.72);
    border: 1px solid var(--eyv-line);
    border-radius: 28px;
    padding: 24px;
}

.eyv-footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

    .eyv-footer-brand img {
        width: 54px;
        height: 54px;
        object-fit: contain;
    }

    .eyv-footer-brand strong {
        display: block;
        font-size: 1rem;
        font-weight: 800;
    }

    .eyv-footer-brand p {
        margin: 4px 0 0;
        color: var(--eyv-muted);
        max-width: 38rem;
    }

.eyv-footer-links {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

    .eyv-footer-links a {
        color: var(--eyv-text);
        font-weight: 600;
    }

        .eyv-footer-links a:hover,
        .eyv-inline-link:hover {
            color: var(--eyv-primary-dark);
        }

/* Keep existing project pages visually safe */
.site-header,
.site-footer {
    background: transparent;
}

.logo,
.footer-logo {
    object-fit: contain;
}

@media (max-width: 1199.98px) {
    .eyv-book-grid,
    .eyv-chip-grid,
    .eyv-author-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .eyv-rail {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .eyv-header-row {
        min-height: auto;
        padding: 14px 0;
        flex-wrap: wrap;
    }

    .eyv-nav {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .eyv-hero-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .eyv-container {
        width: min(100% - 22px, 1200px);
    }

    .eyv-search-bar {
        flex-wrap: wrap;
        border-radius: 26px;
    }

        .eyv-search-bar .eyv-btn {
            width: 100%;
        }

    .eyv-book-grid,
    .eyv-chip-grid,
    .eyv-author-grid,
    .eyv-rail,
    .eyv-hero-shelf {
        grid-template-columns: 1fr;
    }

    .eyv-hero-book,
    .eyv-hero-book:nth-child(2),
    .eyv-hero-book:nth-child(3),
    .eyv-hero-book:nth-child(4) {
        transform: none;
    }

    .eyv-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}
