/* luminant.dev — Minimalist Light Table Bento */
/* Colors: #1A1A1A, #F0F0F0, #4A4A4A, #FAFAFA, #E0E0E0, #333333, #999999, #FFFFFF */
/* Fonts: Caveat, Inter */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #FFFFFF;
    color: #1A1A1A;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 2fr 1fr 1.2fr 1fr 0.6fr;
    gap: 1px;
    height: 100vh;
    padding: 1px;
    background-color: #E0E0E0;
}

.cell {
    background-color: #FAFAFA;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

/* Cell placements */
.cell-main {
    grid-column: 1 / 3;
    grid-row: 1;
    padding: 40px;
}

.cell-note {
    grid-column: 3 / 5;
    grid-row: 1;
    align-items: center;
    justify-content: center;
}

.cell-counter {
    grid-column: 1;
    grid-row: 2;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cell-tall {
    grid-column: 2;
    grid-row: 2 / 4;
    justify-content: center;
}

.cell-wide {
    grid-column: 3 / 5;
    grid-row: 2;
    justify-content: center;
    gap: 12px;
}

.cell-square {
    grid-column: 1;
    grid-row: 3;
    align-items: center;
    justify-content: center;
}

.cell-text {
    grid-column: 3;
    grid-row: 3;
}

.cell-note2 {
    grid-column: 4;
    grid-row: 3;
    align-items: center;
    justify-content: center;
}

.cell-time {
    grid-column: 1 / 3;
    grid-row: 4;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.cell-footer {
    grid-column: 1 / 5;
    grid-row: 5;
    align-items: center;
    justify-content: center;
}

/* Note cells */
.cell-note,
.cell-note2 {
    grid-row: auto;
}

.cell-time + .cell-footer {
    grid-column: 3 / 5;
    grid-row: 4;
}

/* Typography */
.heading-primary {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.15;
    color: #1A1A1A;
    position: relative;
    display: inline-block;
}

.pen-underline {
    display: block;
    width: 100%;
    height: 12px;
    margin-top: 4px;
}

.handwritten-note {
    font-family: 'Caveat', cursive;
    font-weight: 400;
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    line-height: 1.5;
    color: #4A4A4A;
    max-width: 28ch;
    text-align: center;
}

.handwritten-large {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    line-height: 1.3;
    color: #333333;
}

.body-text {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: clamp(0.8rem, 1vw, 0.9rem);
    line-height: 1.7;
    color: #4A4A4A;
    letter-spacing: 0.01em;
}

.label-text {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #999999;
}

/* Counter */
.counter-value {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: #1A1A1A;
}

/* Gradient Strip */
.gradient-strip {
    width: 100%;
    height: 24px;
    background: linear-gradient(to right, #1A1A1A, #4A4A4A, #999999, #E0E0E0, #FAFAFA);
    border-radius: 2px;
}

.strip-labels {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

/* Breathing Circle */
.breathing-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px solid #E0E0E0;
    background-color: #F0F0F0;
    animation: breathe 6s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% {
        transform: scale(1);
        background-color: #F0F0F0;
        border-color: #E0E0E0;
    }
    50% {
        transform: scale(1.3);
        background-color: #FAFAFA;
        border-color: #999999;
    }
}

/* Time */
.time-value {
    font-family: 'Caveat', cursive;
    font-weight: 400;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: #333333;
}

/* Cell hover */
.cell {
    transition: background-color 0.6s ease;
}

.cell:hover {
    background-color: #FFFFFF;
}

/* Responsive */
@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        height: auto;
        min-height: 100vh;
    }

    .cell-main {
        grid-column: 1 / 3;
    }

    .cell-note {
        grid-column: 1 / 3;
    }

    .cell-tall {
        grid-column: 1;
        grid-row: auto;
    }

    .cell-wide {
        grid-column: 1 / 3;
    }

    .cell-time {
        grid-column: 1 / 3;
    }

    .cell-footer {
        grid-column: 1 / 3;
    }

    .cell {
        min-height: 120px;
    }
}
