/* Base styles for sashas.life - brutalist, minimalist design */

@font-face {
    font-family: "Libre Baskerville";
    src: url("../fonts/LibreBaskerville-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "Libre Baskerville";
    src: url("../fonts/LibreBaskerville-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: "Libre Baskerville";
    src: url("../fonts/LibreBaskerville-Italic.ttf") format("truetype");
    font-weight: 400;
    font-style: italic;
}

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

html {
    font-size: 16px;
}

body {
    font-family: "Libre Baskerville", Georgia, serif;
    background: #fff;
    color: #000;
    line-height: 1.5;
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* Site navigation */
.site-nav {
    margin-bottom: 2rem;
}

.site-nav a {
    color: #000;
    text-decoration: none;
    margin-right: 1.5rem;
}

.site-nav a:hover {
    text-decoration: underline;
}

.site-nav a.current {
    font-weight: 700;
}

/* Calendar navigation */
.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.calendar-nav button {
    font-family: inherit;
    font-size: 1rem;
    background: #fff;
    border: 1px solid #000;
    padding: 0.25rem 0.75rem;
    cursor: pointer;
}

.calendar-nav button:hover:not(.disabled) {
    background: #000;
    color: #fff;
}

.calendar-nav button.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.calendar-nav .month-label {
    font-weight: 700;
}

/* Calendar grid */
.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border: 1px solid #000;
    border-bottom: none;
    border-right: none;
}

.calendar-header {
    font-weight: 700;
    text-align: center;
    padding: 0.5rem;
    border-bottom: 1px solid #000;
    border-right: 1px solid #000;
    font-size: 0.875rem;
}

.calendar-day {
    min-height: 5rem;
    padding: 0.25rem;
    border-bottom: 1px solid #000;
    border-right: 1px solid #000;
    font-size: 0.75rem;
    vertical-align: top;
}

.calendar-day.empty {
    background: #fafafa;
}

.calendar-day .date {
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.calendar-day .run-stats {
    line-height: 1.3;
}

.calendar-day .run-stats .distance {
    font-weight: 700;
}
