:root {
    --color-background: #000000;
    --color-text: #ffffff;
    --color-day: #888888;
    --color-event-bg: rgba(255, 255, 255, 0.08);
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--color-background);
    color: var(--color-text);
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.01em;
    font-weight: 400;
}

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

/* Header */
header {
    position: relative;
    margin: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

header .logo {
    font-size: 16px;
    font-weight: 500;
}

header .close {
    font-size: 16px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
}

header .close:hover {
    opacity: 1;
}

/* Main */
main {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 48px 160px 48px;
}

/* Intro */
.intro {
    margin-bottom: 60px;
    max-width: 800px;
}

.intro h1 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 20px;
}

.intro p {
    font-size: 16px;
    line-height: 24px;
    margin-bottom: 12px;
}

.intro a {
    text-decoration: underline;
}

/* Days container */
.days-container {
    font-size: 16px;
    line-height: 2.8;
    letter-spacing: 0.1em;
    word-spacing: 0.05em;
}

/* Milestone markers */
.milestone {
    display: inline;
    color: var(--color-text);
    font-weight: 500;
    font-size: 16px;
    margin: 0 8px;
    opacity: 0.5;
}

/* Day dashes */
.day {
    display: inline;
    cursor: default;
    transition: all 0.2s ease;
    position: relative;
    color: var(--color-day);
    opacity: 0.3;
}

.day.past {
    opacity: 0.5;
}

.day.future {
    opacity: 0.2;
}

.day.event {
    background: var(--color-event-bg);
    color: var(--color-text);
    padding: 2px 8px;
    border-radius: 4px;
    opacity: 1;
    font-weight: 500;
}

.day.has-article {
    cursor: pointer;
}

.day.has-article:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Add spacing after day text */
.day::after {
    content: ' ';
    white-space: pre;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-background);
    z-index: 100;
    overflow-y: auto;
}

.modal.show {
    display: block;
}

.modal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 160px 48px;
}

.modal-content h2 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 8px;
}

.modal-content p {
    font-size: 24px;
    line-height: 36px;
    opacity: 0.5;
    margin-bottom: 20px;
}

.modal-content #modal-article {
    font-size: 24px;
    line-height: 36px;
    white-space: pre-wrap;
}

/* Desktop */
@media (min-width: 1020px) {
    body {
        font-size: 24px;
        line-height: 36px;
    }

    header {
        margin: 24px;
    }

    header .logo,
    header .close {
        font-size: 24px;
    }

    .intro h1 {
        font-size: 24px;
    }

    .modal-content {
        padding: 160px 48px;
    }

    .modal-content h2 {
        font-size: 24px;
    }

    .modal-content p,
    .modal-content #modal-article {
        font-size: 24px;
        line-height: 36px;
    }
}

/* Mobile */
@media (max-width: 759px) {
    body {
        font-size: 14px;
        line-height: 20px;
    }

    header {
        margin: 16px;
    }

    header .logo,
    header .close {
        font-size: 16px;
    }

    main {
        padding: 60px 20px 100px 20px;
    }

    .intro h1 {
        font-size: 16px;
    }

    .intro p {
        font-size: 14px;
        line-height: 20px;
    }

    .days-container {
        font-size: 14px;
        line-height: 2.4;
        letter-spacing: 0.05em;
    }

    .milestone {
        font-size: 14px;
    }

    .modal-content {
        padding: 60px 20px;
    }

    .modal-content h2 {
        font-size: 16px;
    }

    .modal-content p,
    .modal-content #modal-article {
        font-size: 16px;
        line-height: 24px;
    }
}
