body {
    font-family: 'Georgia', serif;
    background: #f9f5f0;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

h1 {
    color: #6b8e7e;
    font-size: 2.5em;
    margin-bottom: 0.2em;
}

.subtitle {
    color: #a8a8a8;
    font-style: italic;
    margin-bottom: 2em;
}

textarea, input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #d4c9b8;
    border-radius: 5px;
    background: #fffefb;
}
.thought-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #4a5568;
    font-family: 'Garamond', serif;
    border-bottom: 1px dotted #cbd5e0;
    padding-bottom: 0.5rem;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

button {
    background: #6b8e7e;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.3s;
}

button:hover {
    background: #5a7a6d;
}

.thought-card {
    background: white;
    border: 1px solid #e0d6c2;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.thought-text {
    font-size: 1.1em;
    margin-bottom: 10px;
    color: #555;
}

.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.9em;
    color: #888;
}

.meta span {
    display: flex;
    align-items: center;
    gap: 3px;
}

.commentary {
    padding: 10px;
    background: #f5f0e6;
    border-left: 3px solid #d4c9b8;
    font-style: italic;
}

.empty {
    text-align: center;
    color: #a8a8a8;
    padding: 20px;
}
/* --- Lazy-load UX --- */
/* --- Lazy-load UX --- */
#loader {
    position: fixed;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    padding: 10px 22px;
    background: rgba(255,255,255,0.9);
    border: 1px solid #e0d6c2;
    border-radius: 30px;
    font-style: italic;
    font-family: 'Georgia', serif;
    color: #6b8e7e;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    z-index: 999;
}
#loader.show { opacity: 1; }

/* Fade-in effect for new cards */
@keyframes fadeInUp {
  0%   {opacity: 0; transform: translateY(15px);}
  100% {opacity: 1; transform: translateY(0);}
}
.fade-in { animation: fadeInUp 0.6s ease-out forwards; }
