@import url('https://fonts.googleapis.com/css2?family=Patrick+Hand&display=swap');

:root {
    /* 
 * Theme: Handwritten
 * Description: A casual, informal theme that looks like it was written in marker.
 */
    --bg-color: #fffef0;
    /* Pale yellow paper */
    --card-bg: #fff;
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --accent: #d35400;
    /* Burnt orange */
    --accent-hover: #e67e22;
    --border-color: #bdc3c7;
    --day-hover-bg: #ecf0f1;
    --today-bg: #d35400;
    /* Circle marker */
    --today-text: #fff;

    --font-family: 'Patrick Hand', cursive;
}

/* Body fixed. Theme is component-based. */
.app-container {
    color: var(--text-primary);
    font-family: var(--font-family);
}

/* UI Controls - Scoped to Grid */
.year-grid input,
.year-grid select {
    background: transparent;
    border: 2px dashed #555;
    color: #333;
    font-family: 'Indie Flower', cursive;
    padding: 5px;
}

select {
    border: 2px dashed var(--border-color);
    background: #fff;
    font-family: inherit;
    font-size: 1.1rem;
}

.app-header {
    background: transparent;
    border: none;
}

h1 {
    font-size: 2.5rem;
}

.month-card {
    background: var(--card-bg);
    border: none;
    background-image: linear-gradient(#e1e1e1 1px, transparent 1px);
    background-size: 100% 2em;
    /* Lined paper look */
    line-height: 2em;
    box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.1);
}

.month-title {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.weekday-header {
    font-size: 1.1rem;
}

.day {
    font-size: 1.2rem;
}

.day.today {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    border-radius: 3px 6px 3px 5px / 6px 3px 5px 3px;
    /* Imperfect circle */
    font-weight: bold;
}

@media print {
    :root {
        --bg-color: #fff;
        --card-bg: #fff;
    }

    .month-card {
        background-image: none;
        border: 1px solid #ddd;
    }
}