@font-face {
    font-family: "CalendarSans";
    src: url("/static/fonts/CalendarSans-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

*, *::before, *::after {
    box-sizing: border-box;
    font-weight: 400;
}

html {
    font-size: calc(16px * var(--font-scale));
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-page);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "CalendarSans", "Segoe UI", Roboto, sans-serif;
    font-weight: 400;
    line-height: 1.65;
    letter-spacing: 0.005em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.2s ease, color 0.2s ease;
}

h1, h2, h3, h4, h5, h6, b, strong, th {
    font-weight: 400 !important;
    margin-top: 0;
    line-height: 1.45;
}

h1, .day-main-holiday {
    font-size: 1.06rem !important;
    margin: 0.2rem 0 !important;
    color: var(--accent);
}

h2 {
    font-size: 1.05rem !important;
    color: var(--text-muted);
    margin: 1.4rem 0 0.65rem !important;
}

h3 {
    font-size: 1.0rem !important;
    margin: 0 0 0.2rem 0 !important;
}

h4 {
    font-size: 0.95rem !important;
    margin: 0 0 0.35rem 0 !important;
}

p {
    margin: 0.5rem 0;
    line-height: 1.65;
}
