:root {
    --bg: #fafafa;
    --ink: #323235;
    --muted: #6E6E78;
    --muted-large: #8A8A96;
    --line: #E6E6EA;
    --open: #B4E3A6;
    --closed: #E3A8A6;
    --open-ink: #3F8530;
    --closed-ink: #C2504B;
    --open-tint: rgba(180, 227, 166, 0.32);
    --closed-tint: rgba(227, 168, 166, 0.24);
    --chip: rgba(159, 159, 172, 0.1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg);
    color: var(--ink);
    min-height: 100vh;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background-color: var(--open);
    color: var(--ink);
}

:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 3px;
    border-radius: 4px;
}

a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 40px 80px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    z-index: 10;
}

.logo {
    font-size: 18px;
    font-weight: 400;
    color: var(--ink);
    letter-spacing: -0.01em;
    margin: 0;
    text-decoration: none;
}

.date-display {
    font-size: 14px;
    font-weight: 400;
    color: var(--muted);
    background: var(--chip);
    padding: 6px 12px;
    border-radius: 20px;
    letter-spacing: -0.01em;
}

/* Hero: the answer owns the first viewport */

.hero {
    min-height: calc(100svh - 110px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 64px 0 72px;
    position: relative;
}

.custom-cursor {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    background-color: var(--closed);
    position: fixed;
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%) scale(1);
    transition: background-color 0.4s ease, transform 0.6s var(--ease-out);
    will-change: transform;
}

.custom-cursor.open {
    background-color: var(--open);
}

/* Below the hero the circle shrinks so it never sits behind the lists */
.custom-cursor.is-small {
    transform: translate(-50%, -50%) scale(0.19);
}

.mobile-dot {
    display: none;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--closed);
    margin: 0 0 40px 0;
    transition: background-color 0.4s ease;
}

.mobile-dot.open {
    background-color: var(--open);
}

.main-text {
    font: inherit;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
    position: relative;
    z-index: 10;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.text-line {
    display: block;
    font-size: 120px;
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.text-line-date {
    color: var(--muted-large);
}

.text-line .status-word {
    font-weight: 700;
}

.text-line .status-word.open {
    color: var(--open-ink);
}

.text-line .status-word.closed {
    color: var(--closed-ink);
}

.hero-detail {
    margin-top: 44px;
    font-size: 20px;
    line-height: 1.5;
    position: relative;
    z-index: 10;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.5s forwards;
}

.hero-detail strong {
    font-weight: 700;
}

.muted {
    color: var(--muted);
    white-space: nowrap;
}

/* Subpages: the headline is the answer, but the content starts on the first screen */
.hero.hero-page {
    min-height: 0;
    justify-content: flex-start;
    padding: 56px 0 72px;
}

.hero-page .text-line {
    font-size: 96px;
}

.hero-page .hero-detail {
    margin-top: 36px;
    max-width: 44rem;
}

.hero-summary {
    margin-bottom: 8px;
}

.crumbs {
    position: relative;
    z-index: 10;
    margin-bottom: 32px;
    font-size: 14px;
    color: var(--muted);
}

.crumbs a {
    text-decoration: none;
}

.crumbs a:hover {
    color: var(--ink);
    text-decoration: underline;
}

.crumbs-sep {
    margin: 0 8px;
    color: var(--line);
}

/* Sections below the answer */

.info-section {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 48px;
    padding: 72px 0;
    border-top: 1px solid var(--line);
}

.section-heading {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.section-body {
    max-width: 760px;
}

.section-note {
    margin-top: 20px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--muted);
    max-width: 60ch;
}

.row-list,
.sunday-list {
    list-style: none;
}

.row {
    display: grid;
    grid-template-columns: 10rem minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.row:first-child {
    border-top: 1px solid var(--line);
}

.row-date {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
}

.row-label {
    font-size: 17px;
    line-height: 1.4;
}

.row-sub {
    display: block;
    font-size: 14px;
    color: var(--muted);
}

.row-label a {
    text-decoration-color: #C9C9D1;
}

.row-label a:hover {
    text-decoration-color: currentColor;
}

.row-status {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.row-status:not(:empty) {
    padding: 4px 10px;
    border-radius: 20px;
}

/* Closures echo the hero circle: a pastel dot, with words only where the status differs */
.row-list .row-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    color: #2F6F23;
}

.row-list .row-status::before {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--closed);
}

.row-list .row-status.open::before {
    background: var(--open);
}

.sunday-list .is-next .row-status {
    color: #2F6F23;
    background: var(--open-tint);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.sunday-list .is-past,
.row-list .is-past {
    color: var(--muted);
}

.row-list .is-past .row-status::before {
    opacity: 0.45;
}

.year-link {
    display: inline-block;
    margin-top: 20px;
    font-size: 15px;
    font-weight: 600;
}

.year-link::after {
    content: ' →';
}

.sunday-list .is-past .row-date {
    font-weight: 400;
}

.year-switch {
    display: inline-flex;
    gap: 2px;
    padding: 3px;
    margin-bottom: 20px;
    border-radius: 20px;
    background: var(--chip);
}

.year-switch button {
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--muted);
    background: transparent;
    border: 0;
    border-radius: 17px;
    padding: 6px 14px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.year-switch button:hover {
    color: var(--ink);
}

.year-switch button[aria-pressed="true"] {
    color: var(--ink);
    background: #fff;
    box-shadow: 0 1px 3px rgba(50, 50, 53, 0.12);
}

.pill-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    padding: 12px 20px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--bg);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s var(--ease-out);
}

.pill-button:hover {
    background: #1d1d1f;
}

.pill-button:active {
    transform: scale(0.97);
}

.open-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 40px;
}

.open-list li {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
    line-height: 1.45;
    color: var(--muted);
}

.open-list li:nth-child(-n+2) {
    border-top: 1px solid var(--line);
}

.open-list strong {
    display: block;
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
}

/* Link grid: whole cell is the target, the name underlines on hover */
.link-list li {
    padding: 0;
}

.link-list a {
    display: block;
    padding: 16px 0;
    text-decoration: none;
}

.link-list a:hover strong {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.link-list strong::after {
    content: ' →';
    font-weight: 400;
    color: var(--muted);
}

.faq-list > div {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

.faq-list > div:first-child {
    border-top: 1px solid var(--line);
}

.faq-list dt {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
}

.faq-list dd {
    margin-top: 6px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--muted);
    max-width: 65ch;
}

footer {
    position: relative;
    z-index: 10;
    padding: 48px 0 8px;
    border-top: 1px solid var(--line);
    font-size: 14px;
    line-height: 1.6;
    color: var(--muted);
}

.site-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin-bottom: 24px;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
}

.site-nav a {
    text-decoration: none;
}

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

@media (max-width: 1024px) {
    .container {
        padding: 40px 60px;
    }

    .info-section {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 32px 40px;
    }

    .hero {
        min-height: calc(100svh - 100px);
        padding: 48px 0 56px;
    }

    .mobile-dot {
        display: block;
    }

    .text-line {
        font-size: 72px;
    }

    .hero-detail {
        font-size: 18px;
        margin-top: 32px;
    }

    .hero.hero-page {
        padding: 40px 0 56px;
    }

    .hero-page .text-line {
        font-size: 60px;
    }

    .info-section {
        padding: 56px 0;
    }

    .section-heading {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 24px 24px;
    }

    header {
        flex-direction: column;
        gap: 16px;
    }

    .hero {
        min-height: calc(100svh - 120px);
        padding: 40px 0 48px;
    }

    .text-line {
        font-size: 48px;
    }

    .hero.hero-page {
        padding: 32px 0 48px;
    }

    .hero-page .text-line {
        font-size: 42px;
    }

    .crumbs {
        margin-bottom: 24px;
    }

    .hero-detail {
        font-size: 17px;
    }

    .hero-detail .muted {
        display: block;
    }

    .hero-detail .sep {
        display: none;
    }

    .row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 4px 12px;
    }

    .row-date {
        font-size: 19px;
    }

    .row-label {
        grid-column: 1 / -1;
        grid-row: 2;
        font-size: 15px;
    }

    .row-status {
        grid-column: 2;
        grid-row: 1;
    }

    .open-list {
        grid-template-columns: 1fr;
    }

    .open-list li:nth-child(2) {
        border-top: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .main-text,
    .hero-detail {
        animation: none;
        opacity: 1;
    }

    .custom-cursor {
        transition: background-color 0.4s ease;
    }
}
