body {
    font-family: "IBM Plex Sans", system-ui;
    margin: 0;
    min-height: 100vh;
}


main {
    margin-left: auto;
    margin-right: auto;
}

main {
    max-width: 1264px;
    padding:  16px;
}

h1 {
    font-size: 3rem;
    margin-top: 24px;
    margin-bottom: 0;
    text-align: center;
}
.card,
.icon {
    box-shadow: 0 1px 2px rgba(120, 70, 30, 0.06),
        0 4px 12px rgba(120, 70, 30, 0.08),
        0 12px 28px rgba(120, 70, 30, 0.07);
    background: white;
    border-radius: 16px;
    padding: 8px;
}

.grid .card {
    grid-column: span 2;
    grid-row: span 2;
}

.notes .card {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: 100%;
    aspect-ratio: 4 / 3;
    padding: 0;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.notes .card:hover {
    box-shadow: 0 2px 4px rgba(120, 70, 30, 0.08),
        0 8px 20px rgba(120, 70, 30, 0.12),
        0 16px 36px rgba(120, 70, 30, 0.1);
    transform: translateY(-1px);
}

.notes .card.card-text {
    padding: 20px;
    justify-content: center;
    align-items: center;
}

.notes .card.card-text .note-preview {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 8;
    overflow: hidden;
}

.notes .card:not(.card-text) .note-cover {
    flex: 1;
    min-height: 0;
    width: 100%;
    object-fit: cover;
}

.notes .card:not(.card-text) .note-preview {
    flex-shrink: 0;
    padding: 10px 14px 12px;
}

.notes .card:not(.card-text) .note-preview h2 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.3;
}

.notes .card:not(.card-text) .note-preview > :not(h2) {
    display: none;
}

.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media screen and (max-width: 480px) {


    .grid {
        grid-template-columns: repeat(4, 1fr);
    }
}


.grid h2 {
    margin-top: 8px;
    margin-bottom: 8px;
}

.grid ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.grid li {
    padding-bottom: 8px;
}

#globe {
    width: 24px;
}

.flex-center {
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
}

.flex-col {
    flex-direction: column;
}

.notes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 400px));
    justify-content: center;
    gap: 16px;
    align-items: stretch;
}

.note-cover {
    display: block;
    width: 100%;
    object-fit: cover;
}

.note-preview {
    line-height: 1.5;
    max-width: 100%;
    overflow: hidden;
}

.note-preview > :first-child {
    margin-top: 0;
}

.note-preview > :last-child {
    margin-bottom: 0;
}

.notes .card .note-preview a {
    pointer-events: none;
    color: inherit;
    text-decoration: inherit;
}

.footer-hint {
    margin-top: 24px;
    color: #9f9f9f;
    font-size: 0.9rem;
    text-align: center;
}

.notes-more {
    grid-column: 1 / -1;
    min-height: 48px;
}

@media screen and (max-width: 767px) {
    .notes {
        grid-template-columns: minmax(0, 400px);
    }
}

.card-link h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}
