/* Color tokens + body font + dark mode live in theme.css (loaded first). */
.page-body { padding: 24px 32px 48px 32px; }
.home { max-width: 1120px; margin: 0 auto; }

.home-welcome {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 18px;
}

/* ── Splash: the big "what's new" banner with the starburst ── */
.splash {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 28px;
    padding: 28px 32px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--splash-bg-1), var(--splash-bg-2));
    color: var(--splash-text);
    margin-bottom: 32px;
    overflow: hidden;
}

.burst {
    position: relative;
    display: grid;
    place-items: center;
    width: 240px;
    height: 240px;
    text-decoration: none;
    border-radius: 50%;
    animation: burst-pop 0.6s ease-out both;
}
.burst:focus-visible { outline: 3px solid var(--burst-fill); outline-offset: 6px; }
.burst-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 6px 10px var(--burst-shadow));
}
.burst-spin { transform-origin: 0 0; animation: burst-spin 40s linear infinite; }
.burst-shape {
    fill: var(--burst-fill);
    stroke: var(--burst-edge);
    stroke-width: 5;
    stroke-linejoin: round;
}
.burst-words {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: rotate(-12deg);
    color: var(--burst-text);
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}
.burst-small { font-size: 22px; letter-spacing: 3px; }
.burst-big   { font-size: 30px; letter-spacing: 0.5px; margin-top: 4px; }
.burst:hover .burst-words { transform: rotate(-12deg) scale(1.06); }

.splash-copy { min-width: 0; }
.splash-title { font-size: 28px; font-weight: 800; margin: 0 0 10px; }
.splash-text  { font-size: 16px; line-height: 1.55; color: var(--splash-muted); margin: 0 0 18px; max-width: 620px; }
.splash-text strong { color: var(--splash-text); }
.splash-link {
    display: inline-block;
    padding: 11px 20px;
    border-radius: 999px;
    background: var(--burst-fill);
    color: var(--burst-text);
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
}
.splash-link:hover { filter: brightness(1.05); }
.splash-link:focus-visible { outline: 3px solid var(--splash-text); outline-offset: 3px; }

/* Grows into place; never fades, so it is fully visible even if the
   animation stalls (background tab, slow device). */
@keyframes burst-pop {
    0%   { transform: scale(0.6) rotate(-20deg); }
    70%  { transform: scale(1.08) rotate(4deg); }
    100% { transform: scale(1)    rotate(0); }
}
@keyframes burst-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .burst, .burst-spin { animation: none; }
}

/* ── Tiles: one per main section of the site ── */
.home-section-title { font-size: 18px; font-weight: 700; margin: 0 0 12px; }
.home-tiles {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}
.tile {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 2px;
    align-items: center;
    height: 100%;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-card);
    color: var(--text);
    text-decoration: none;
    transition: transform 0.12s ease, border-color 0.12s ease;
}
.tile:hover { border-color: var(--accent); transform: translateY(-2px); }
.tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tile-icon { grid-row: 1 / span 2; font-size: 30px; line-height: 1; }
.tile-name { font-size: 16px; font-weight: 700; }
.tile-desc { font-size: 13px; color: var(--text-muted); line-height: 1.4; }
@media (prefers-reduced-motion: reduce) {
    .tile { transition: none; }
    .tile:hover { transform: none; }
}

/* Admin Tools tile: hidden until we know the person is an admin (api.js
   puts is-admin / is-non-admin on <body>). */
.admin-only { display: none; }
.is-admin .admin-only { display: block; }

/* ── Phones ── */
@media (max-width: 700px) {
    .page-body { padding: 16px 16px 32px; }
    .home-welcome { font-size: 22px; }
    .splash {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        padding: 22px 18px;
        gap: 16px;
    }
    .burst { width: 200px; height: 200px; }
    .burst-small { font-size: 18px; }
    .burst-big   { font-size: 25px; }
    .splash-title { font-size: 22px; }
    .splash-text  { font-size: 15px; }
    .home-tiles { grid-template-columns: 1fr; gap: 10px; }
}
