@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono&display=swap');

* {
    box-sizing: border-box;
}

html {
    font-size: 15px;
}

body {
    font-family: 'Roboto Mono', monospace;
    margin: 0;
    background-color: #555;
    color: #333;
}

main {
    padding: 1.5rem;
}

.toolbar {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.btn {
    background: transparent;
    border: 2px dashed #888;
    padding: 0.6rem 0.9rem;
    cursor: pointer;
    transition: 0.2s;
    font: inherit;
    color: #eee;
}

.btn:hover {
    border-color: #fff;
}

.btn.danger {
    border-style: solid;
    border-color: #b55;
}

.btn.small {
    padding: 0.35rem 0.6rem;
    color: #333;
    border-color: #333;
}

.empty {
    background: rgba(255, 255, 255, 0.08);
    color: #eee;
    padding: 0.75rem;
    border: 1px dashed rgba(255, 255, 255, 0.25);
}

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

@media (max-width: 1120px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

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

.note {
    background: #fcfa5d;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    padding: 0.75rem;
    height: 12rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.note textarea {
    flex: 1;
    width: 100%;
    border: 0;
    resize: none;
    outline: none;
    background: transparent;
    font: inherit;
    color: inherit;
}

.note-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.meta {
    font-size: 0.85rem;
    opacity: 0.85;
}