/* ronri.day */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: #FFFFFF;
    color: #000000;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 1.0625rem;
    line-height: 1.8;
}

.page {
    max-width: 640px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Hero */
.hero {
    text-align: center;
    margin-bottom: 2rem;
}

.date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: #666666;
    display: block;
    margin-bottom: 1rem;
}

.headline {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    color: #000000;
    line-height: 1.25;
    margin-bottom: 0.5rem;
}

.category-label {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
    font-size: 0.85rem;
    color: #2563EB;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.thin-rule {
    border-top: 1px solid #E5E5E5;
    margin: 1.5rem 0;
}

/* Puzzle */
.puzzle {
    margin-bottom: 2rem;
}

.premise {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 400;
    font-size: 0.95rem;
    color: #000000;
    padding-left: 2rem;
    position: relative;
    margin: 0.75rem 0;
    line-height: 1.6;
}

.premise-number {
    position: absolute;
    left: 0;
    color: #666666;
    font-size: 0.85rem;
}

.prompt-text {
    font-weight: 700;
    font-size: 1rem;
    color: #000000;
    margin-bottom: 1rem;
}

.answer-area {
    display: flex;
    gap: 0.75rem;
}

.answer-input {
    flex: 1;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    padding: 0.75rem;
    border: 1px solid #E5E5E5;
    background: #F5F5F5;
    outline: none;
    transition: border 0.2s ease;
}

.answer-input:focus {
    border: 2px solid #2563EB;
}

.submit-btn {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    background: #000000;
    color: #FFFFFF;
    border: none;
    padding: 0.75rem 2rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.submit-btn:hover {
    background: #333333;
}

.submit-btn:active {
    background: #000000;
}

/* Feedback */
.feedback {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    margin-top: 0.75rem;
    min-height: 1.2em;
    transition: opacity 0.3s ease;
}

.feedback.correct {
    color: #16A34A;
}

.feedback.incorrect {
    color: #DC2626;
}

/* Stats */
.stats {
    margin-bottom: 2rem;
}

.stats-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
}

.stat-block {
    text-align: center;
    flex: 1;
    padding: 1rem;
}

.stat-num {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 2rem;
    color: #000000;
    display: block;
}

.stat-label {
    font-size: 0.8rem;
    color: #666666;
}

.stat-sep {
    width: 1px;
    height: 48px;
    background: #E5E5E5;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.stat-dot {
    position: absolute;
    color: #666666;
    font-size: 1.2rem;
    line-height: 1;
}

/* Archive */
.archive {
    margin-bottom: 2rem;
}

.archive-heading {
    font-weight: 700;
    font-size: 1rem;
    color: #000000;
    text-align: center;
    margin-bottom: 1rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 32px);
    gap: 4px;
    justify-content: center;
}

.day-square {
    width: 32px;
    height: 32px;
}

.day-square.solved {
    background: #000000;
}

.day-square.missed {
    border: 1px solid #000000;
    background: transparent;
}

.day-square.today {
    background: #2563EB;
}

.day-square.future {
    border: 1px solid #E5E5E5;
    background: transparent;
}

/* Footer */
.footer {
    text-align: center;
}

.footer-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #666666;
}

/* Responsive */
@media (max-width: 480px) {
    .answer-area {
        flex-direction: column;
    }
    .calendar-grid {
        grid-template-columns: repeat(7, 28px);
    }
    .day-square {
        width: 28px;
        height: 28px;
    }
}

/* Fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
