.notebook-library {
    --notebook-gold: #d6b85c;
    --notebook-gold-deep: #725d22;
}

.notebook-library__header {
    max-width: 58rem;
}

.notebook-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.notebook-card {
    display: flex;
    min-height: 20rem;
    flex-direction: column;
    padding: 1.75rem;
    border: 1px solid #292524;
    border-radius: 1rem;
    background: linear-gradient(145deg, #1c1917, #0c0a09);
    transition: border-color .2s ease, transform .2s ease;
}

.notebook-card:hover {
    transform: translateY(-2px);
    border-color: var(--notebook-gold-deep);
}

.notebook-card__symbol {
    display: grid;
    width: 3.5rem;
    height: 3.5rem;
    place-items: center;
    border: 1px solid var(--notebook-gold-deep);
    border-radius: 999px;
    color: #e5cc7a;
}

.notebook-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.notebook-card__link {
    margin-top: auto;
}

.notebook-empty {
    grid-column: 1 / -1;
}

.notebook-reader__header,
.notebook-format-bar__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
}

.notebook-reader__status {
    white-space: nowrap;
}

.notebook-format-bar {
    margin-top: 1.75rem;
    padding: 1.25rem;
    border: 1px solid #292524;
    border-radius: .75rem;
    background: #1c1917;
}

.notebook-format-bar__inner {
    align-items: center;
    gap: 1rem;
}

.notebook-format-bar__copy {
    flex: 1 1 26rem;
}

.notebook-downloads {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.notebook-download {
    min-width: 8.8rem;
    cursor: not-allowed;
}

.notebook-download--locked {
    color: #78716c;
    border-color: #44403c;
    background: #0c0a09;
}

.notebook-download--locked span {
    margin-right: .3rem;
    filter: grayscale(1);
    opacity: .85;
}

@media (max-width: 900px) {
    .notebook-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .notebook-grid {
        grid-template-columns: 1fr;
    }

    .notebook-card {
        min-height: 17rem;
    }

    .notebook-downloads,
    .notebook-download {
        width: 100%;
    }
}
