:root {
    /* Chattanooga blue, per the city flag (Pantone 2736 C) */
    --chatt-blue: #2E30BE;
    --chatt-blue-bright: #6e72eb;

    --bg: #060815;
    --ink: #eef0fb;
    --ink-dim: #a9adc9;

    /* Stand-in for Chatype (city's official typeface) — chatype.com is
       currently an expired/parked domain, so headings use a slab-serif
       system stack in the same industrial spirit instead. */
    --font-display: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
}

#mesh-bg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: block;
}

.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 9vw, 5.5rem);
    margin: 0;
    letter-spacing: 0.01em;
}

.accent { color: var(--chatt-blue-bright); }

.location {
    margin: 0.75rem 0 0;
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-dim);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.4em;
    max-width: 100%;
    text-align: center;
}

.location-text {
    max-width: 100%;
}

.word-ticker {
    display: inline-block;
    position: relative;
    height: 1em;
    line-height: 1em;
    overflow: hidden;
    min-width: 8ch;
    flex-shrink: 0;
    color: var(--chatt-blue-bright);
    font-weight: 600;
    text-align: right;
}

@media (max-width: 480px) {
    .location {
        flex-direction: column;
        align-items: center;
        gap: 0.3em;
    }

    .word-ticker {
        text-align: center;
    }
}

.word-ticker-current,
.word-ticker-next {
    position: absolute;
    inset: 0;
    white-space: nowrap;
}

.word-ticker-current { transform: translateY(0); }
.word-ticker-next { transform: translateY(100%); }

.word-ticker.rolling .word-ticker-current,
.word-ticker.rolling .word-ticker-next {
    transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.word-ticker.rolling .word-ticker-current { transform: translateY(-100%); }
.word-ticker.rolling .word-ticker-next { transform: translateY(0); }

.discord-link {
    margin-top: 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    color: var(--ink-dim);
    font-size: 0.95rem;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.discord-link:hover {
    color: var(--chatt-blue-bright);
    border-color: var(--chatt-blue-bright);
}

.discord-icon {
    height: 1em;
    width: auto;
    display: block;
}

.site-footer {
    position: fixed;
    z-index: 1;
    left: 0;
    right: 0;
    bottom: 1.5rem;
    text-align: center;
}

.tennmesh-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    color: var(--ink-dim);
    font-size: 0.9rem;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.tennmesh-link:hover {
    color: var(--chatt-blue-bright);
    border-color: var(--chatt-blue-bright);
}

.tennmesh-logo {
    height: 1em;
    width: auto;
    display: block;
}
