:root {
    color-scheme: light;
    --ink: #1a1a1a;
    --muted: #666660;
    --accent: #3b82f6;
    --font-heading: "Faculty Glyphic", "Vollkorn", Georgia, serif;
    --font-body: "Vollkorn", Georgia, serif;
    --font-ui: "Urbanist", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    display: grid;
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    padding: 48px 24px;
    place-items: center;
    color: var(--ink);
    background: #fff;
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}

.notice {
    width: min(100%, 960px);
    text-align: center;
}

.logo {
    display: block;
    width: 78px;
    height: auto;
    margin: 0 auto 30px;
}

h1 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    font-weight: 400;
    letter-spacing: -0.045em;
    line-height: 1.08;
}

.headline-line {
    display: block;
    font-size: clamp(1.7rem, 3.5vw, 3rem);
    letter-spacing: -0.04em;
    white-space: nowrap;
}

.subtitle {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    line-height: 1.5;
}

.countdown {
    margin-top: clamp(34px, 6vh, 52px);
}

.clock {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: clamp(7px, 1.7vw, 16px);
}

.clock-unit {
    display: grid;
    justify-items: center;
    gap: 9px;
}

.clock-value {
    position: relative;
    display: grid;
    width: clamp(48px, 7vw, 58px);
    height: clamp(48px, 7vw, 54px);
    overflow: hidden;
    place-items: center;
    color: #fff;
    background: linear-gradient(to bottom, #171717 0 49.2%, #3b3b3b 49.2% 50.8%, #202020 50.8% 100%);
    border: 1px solid #111;
    border-radius: 4px;
    box-shadow: 0 3px 0 #c9c9c9, 0 5px 12px rgba(0, 0, 0, 0.1);
    font-family: var(--font-ui);
    font-size: clamp(1.45rem, 4vw, 1.8rem);
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    line-height: 1;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.4);
}

.clock-value::after {
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.18);
    content: "";
}

.clock-value.is-changing {
    animation: flip 220ms ease-in;
}

.clock-separator {
    padding-top: 10px;
    color: #171717;
    font-family: var(--font-ui);
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 600;
}

.unit-label {
    color: var(--muted);
    font-family: var(--font-ui);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

@keyframes flip {
    0% { transform: perspective(180px) rotateX(0); }
    50% { transform: perspective(180px) rotateX(-12deg); }
    100% { transform: perspective(180px) rotateX(0); }
}

.contact {
    margin-top: clamp(40px, 7vh, 64px);
}

.contact h2 {
    margin: 0 0 18px;
    font-family: var(--font-heading);
    font-size: clamp(1.45rem, 3vw, 1.8rem);
    font-weight: 400;
    line-height: 1.3;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 26px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-family: var(--font-ui);
    font-size: 0.9rem;
}

.contact-links a {
    color: var(--ink);
    text-decoration-color: #b8b8b0;
    text-underline-offset: 4px;
    transition: color 160ms ease;
}

.contact-links a:hover {
    color: var(--accent);
}

.contact-links a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

@media (max-width: 480px) {
    body {
        padding: 36px 22px;
    }

    .logo {
        width: 64px;
        margin-bottom: 24px;
    }

    .clock {
        gap: 6px;
    }

    .clock-value {
        width: clamp(42px, 13vw, 50px);
        height: 44px;
        font-size: 1.35rem;
    }

    .headline-line {
        white-space: normal;
    }

    .unit-label {
        font-size: 0.58rem;
        letter-spacing: 0.04em;
    }

    .contact-links {
        flex-direction: column;
        align-items: center;
        gap: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
