:root {
    --page-background: #ffffff;
    --page-text: #1c1c1c;
    --muted-text: #666666;
}

@font-face {
    font-family: 'Noto Sans';
    src: url('assets/fonts/NotoSans-Variable.ttf') format('truetype');
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    background: var(--page-background);
    color: var(--page-text);
    font-family: 'Noto Sans', sans-serif;
}

.page-shell {
    width: min(100%, 960px);
    margin: 0 auto;
    min-height: 100vh;
    padding: 48px 24px 56px;
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 28px;
}

.lion-mark {
    width: clamp(156px, 23.4vw, 234px);
    height: auto;
    display: block;
}

.countdown-panel,
.quotes-panel {
    width: min(100%, 780px);
    background: transparent;
}

.countdown-panel {
    padding: 6px 0 12px;
    text-align: center;
}

.panel-kicker,
.quotes-label,
.target-date {
    color: var(--muted-text);
}

.panel-kicker,
.quotes-label {
    margin: 0;
    font-size: 0.82rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.panel-title {
    margin: 12px 0 8px;
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 650;
    line-height: 0.95;
}

.target-date {
    margin: 0 0 24px;
    font-size: 1rem;
}

.target-date.is-error,
.rotating-text.is-error {
    color: #9f1f1f;
}

.countdown-tick {
    font-size: clamp(0.75rem, 2.25vw, 1.5rem);
    display: inline-block;
}

.tick-group {
    margin: 0 0.24em;
    text-align: center;
}

.tick-label {
    display: block;
    margin-top: 0.9em;
    font-size: 0.82em;
    /* text-transform: uppercase; */
    letter-spacing: 0.18em;
    color: var(--muted-text);
}

.countdown-tick .tick-credits {
    display: none;
}

.tick-flip {
    margin-left: 0.08em;
    margin-right: 0.08em;
    min-width: 1.28em;
    border-radius: 0.18em;
    letter-spacing: 0.22em;
    text-indent: 0.22em;
}

.tick-flip-panel {
    color: #f5f2ec;
    background: linear-gradient(180deg, #353535 0%, #1e1e1e 100%);
}

.tick-flip-shadow {
    box-shadow: 0 0.18em 0.4em rgba(0, 0, 0, 0.18);
}

.quotes-panel {
    padding: 0;
}

.rotating-text {
    margin: 14px auto 0;
    max-width: 36ch;
    font-size: clamp(0.9rem, 2vw, 1.3rem);
    line-height: 1.5;
    text-align: center;
    transition: opacity var(--text-fade-ms, 300ms) ease;
}

.rotating-text.is-fading {
    opacity: 0;
}

@media (max-width: 720px) {
    .page-shell {
        padding: 32px 14px 40px;
        gap: 20px;
    }

    .countdown-panel {
        padding: 4px 0 8px;
    }

    .countdown-tick {
        font-size: clamp(0.93rem, 4.35vw, 1.32rem);
    }
}