
:root {
    --background: #070b16;
    --surface: rgba(17, 27, 47, 0.76);
    --surface-hover: rgba(27, 43, 70, 0.88);
    --border: rgba(164, 193, 232, 0.18);
    --silver: #c8d9f2;
    --muted: #879bb9;
    --glow: rgba(105, 157, 235, 0.16);
}

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

body {
    min-height: 100vh;
    color: #edf3ff;
    background:
        radial-gradient(
            ellipse at 50% 0%,
            rgba(35, 66, 115, 0.3),
            transparent 55%
        ),
        radial-gradient(
            ellipse at 100% 65%,
            rgba(35, 59, 103, 0.13),
            transparent 45%
        ),
        var(--background);
    font-family: Georgia, "Times New Roman", serif;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

.calendar-stars {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.35;
    z-index: -1;
    background-image:
        radial-gradient(1px 1px at 10% 20%, #d9e8ff 50%, transparent 100%),
        radial-gradient(1px 1px at 75% 15%, #d9e8ff 50%, transparent 100%),
        radial-gradient(2px 2px at 45% 48%, #9bbff5 50%, transparent 100%),
        radial-gradient(1px 1px at 88% 72%, #d9e8ff 50%, transparent 100%),
        radial-gradient(1px 1px at 25% 82%, #d9e8ff 50%, transparent 100%),
        radial-gradient(1px 1px at 65% 91%, #9bbff5 50%, transparent 100%);
    background-size: 360px 320px;
}

/* HEADER */

.calendar-header {
    position: relative;
    text-align: center;
    padding: 45px 20px 25px;
}

.return-link {
    position: absolute;
    top: 30px;
    left: 5%;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-family: Arial, sans-serif;
    font-size: 0.75rem;
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

.return-link span {
    font-size: 1.2rem;
}

.return-link:hover {
    color: white;
}

.header-mark {
    color: #91b9f5;
    font-size: 1.8rem;
    margin-bottom: 14px;
    text-shadow: 0 0 25px rgba(116, 169, 245, 0.7);
}

.eyebrow,
.section-label {
    color: #91afd9;
    font-family: Arial, sans-serif;
    font-size: 0.68rem;
    letter-spacing: 4px;
}

.calendar-header h1 {
    margin-top: 15px;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: normal;
    letter-spacing: 2px;
    color: #f0f5ff;
    text-shadow: 0 5px 35px rgba(116, 160, 230, 0.2);
}

.subtitle {
    margin-top: 13px;
    color: #9cacc7;
    font-size: 1rem;
    font-style: italic;
    letter-spacing: 0.5px;
}

.ornament {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 27px;
    color: #91afd9;
}

.ornament span {
    width: 65px;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(145, 175, 217, 0.65)
    );
}

.ornament span:last-child {
    transform: rotate(180deg);
}

.ornament i {
    font-size: 1.1rem;
    font-style: normal;
}

/* MAIN CONTENT */

.calendar-main {
    width: min(1120px, 90%);
    margin: 35px auto 80px;
}

.calendar-intro {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 25px;
}

.section-label {
    font-size: 0.62rem;
    letter-spacing: 3px;
}

.calendar-intro h2 {
    margin-top: 9px;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: normal;
    color: #e0eaff;
}

.intro-description {
    max-width: 280px;
    color: #879bb9;
    font-family: Arial, sans-serif;
    font-size: 0.82rem;
    line-height: 1.7;
    text-align: right;
}

/* MONTH CARDS */

.months-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.month-card {
    position: relative;
    min-height: 190px;
    padding: 25px 20px 22px;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(107, 153, 219, 0.1),
            transparent 45%
        ),
        var(--surface);
    border: 1px solid var(--border);
    border-radius: 5px;
    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease;
}

.month-card::before {
    content: "";
    position: absolute;
    top: -55px;
    right: -45px;
    width: 130px;
    height: 130px;
    border: 1px solid rgba(166, 197, 242, 0.1);
    border-radius: 50%;
}

.month-card::after {
    content: "";
    position: absolute;
    top: -35px;
    right: -25px;
    width: 90px;
    height: 90px;
    border: 1px solid rgba(166, 197, 242, 0.08);
    border-radius: 50%;
}

.month-card:hover {
    transform: translateY(-5px);
    background-color: var(--surface-hover);
    border-color: rgba(155, 190, 242, 0.5);
    box-shadow: 0 12px 35px var(--glow);
}

.month-number {
    position: absolute;
    top: 17px;
    right: 18px;
    color: rgba(177, 199, 232, 0.38);
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.month-symbol {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 17px;
    color: #a9c9fa;
    background: rgba(107, 153, 219, 0.08);
    border: 1px solid rgba(155, 190, 242, 0.2);
    border-radius: 50%;
    font-size: 1.25rem;
}

.month-card h3 {
    color: #e3edff;
    font-size: 1.45rem;
    font-weight: normal;
    letter-spacing: 0.3px;
}

.month-reference {
    margin-top: 9px;
    color: #8098bc;
    font-family: Arial, sans-serif;
    font-size: 0.62rem;
    letter-spacing: 2px;
}

.card-line {
    display: block;
    width: 34px;
    height: 1px;
    margin-top: 17px;
    background: #729bd7;
    opacity: 0.65;
}

/* YEAR BOUNDARIES */

.dawnrise {
    border-color: rgba(150, 190, 245, 0.38);
    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(113, 166, 244, 0.18),
            transparent 48%
        ),
        var(--surface);
}

.nightend {
    border-color: rgba(169, 174, 225, 0.35);
    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(126, 120, 205, 0.17),
            transparent 48%
        ),
        var(--surface);
}

.nightend .month-symbol {
    color: #c1bafa;
    border-color: rgba(176, 164, 239, 0.3);
}

.nightend .card-line {
    background: #a99ee8;
}

/* FOOTNOTE */

.calendar-note {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 13px;
    margin-top: 35px;
    padding: 23px 20px;
    border-top: 1px solid rgba(164, 193, 232, 0.12);
    border-bottom: 1px solid rgba(164, 193, 232, 0.12);
    text-align: center;
}

.note-symbol {
    color: #8db7f5;
    font-size: 1.2rem;
}

.calendar-note p {
    color: #8fa2c0;
    font-size: 0.92rem;
    line-height: 1.7;
}

.calendar-note strong {
    color: #dbe7fc;
    font-weight: normal;
}

/* FOOTER */

.calendar-footer {
    padding: 25px 20px 35px;
    text-align: center;
    font-family: Arial, sans-serif;
}

.calendar-footer a {
    color: #9aafd0;
    font-size: 0.68rem;
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

.calendar-footer a:hover {
    color: white;
}

.calendar-footer span {
    padding: 0 15px;
    color: #6687b8;
}

.calendar-footer p {
    margin-top: 18px;
    color: #596b87;
    font-size: 0.62rem;
    letter-spacing: 2px;
}

/* RESPONSIVE */

@media (max-width: 750px) {
    .calendar-main {
        width: 92%;
        margin-top: 25px;
    }

    .months-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 13px;
    }

    .month-card {
        min-height: 175px;
        padding: 21px 16px;
    }

    .calendar-intro {
        align-items: start;
        flex-direction: column;
        gap: 10px;
    }

    .intro-description {
        text-align: left;
    }
}

@media (max-width: 430px) {
    .calendar-header {
        padding-top: 90px;
    }

    .return-link {
        top: 25px;
        left: 5%;
    }

    .calendar-header h1 {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    .months-grid {
        grid-template-columns: 1fr;
    }

    .month-card {
        min-height: 155px;
    }

    .month-card h3 {
        font-size: 1.35rem;
    }

    .calendar-note {
        align-items: flex-start;
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
    }
}
