:root {
    --color-bg: #eef1f4;
    --color-bg-deep: #d9e0e8;
    --color-ink: #15202b;
    --color-muted: #5b6775;
    --color-brand: #c8102e;
    --color-brand-dark: #9e0c24;
    --color-line: rgba(21, 32, 43, 0.14);
    --font-display: system-ui, "Segoe UI", "Helvetica Neue", "Liberation Sans", "DejaVu Sans", sans-serif;
    --font-body: system-ui, "Segoe UI", "Helvetica Neue", "Liberation Sans", "DejaVu Sans", sans-serif;
    --space: clamp(1rem, 2vw, 1.5rem);
    --measure: 90vw;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    margin: 0;
    min-height: 100%;
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--color-ink);
    background:
        linear-gradient(115deg, rgba(200, 16, 46, 0.09) 0%, transparent 42%),
        linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-deep) 100%);
}

.page {
    width: min(100% - 2 * var(--space), var(--measure));
    margin: 0 auto;
    padding: clamp(3rem, 12vh, 6rem) 0 clamp(2rem, 6vh, 4rem);
}

.hero {
    margin-bottom: clamp(2rem, 6vh, 3.5rem);
    animation: rise 520ms ease-out both;
}

.brand {
    margin: 0 0 1.1rem;
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 3.75rem);
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -0.03em;
    color: var(--color-brand);
}

.hero h1 {
    margin: 0 0 0.85rem;
    font-size: clamp(1.3rem, 3.2vw, 1.65rem);
    font-weight: 600;
    line-height: 1.25;
}

.lede {
    margin: 0;
    max-width: 100%;
    color: var(--color-muted);
    animation: rise 520ms ease-out 80ms both;
}

.tools {
    animation: rise 520ms ease-out 160ms both;
}

.tools ul {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--color-line);
}

.tool-link {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1.15rem 0.1rem;
    border-bottom: 1px solid var(--color-line);
    color: inherit;
    text-decoration: none;
    transition: color 160ms ease, transform 160ms ease;
}

.tool-link:hover,
.tool-link:focus-visible {
    color: var(--color-brand-dark);
    transform: translateX(0.35rem);
    outline: none;
}

.tool-name {
    font-weight: 600;
}

.tool-desc {
    color: var(--color-muted);
    font-size: 0.95rem;
}

.tool-link:hover .tool-desc,
.tool-link:focus-visible .tool-desc {
    color: inherit;
}

.placeholder {
    width: min(100% - 2 * var(--space), var(--measure));
    margin: 0 auto;
    padding: clamp(2.5rem, 10vh, 5rem) 0;
    animation: rise 520ms ease-out both;
}

.placeholder .brand {
    font-size: clamp(1.5rem, 4vw, 1.9rem);
    margin-bottom: 0.75rem;
}

.placeholder h1 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.5rem, 4vw, 2rem);
}

.placeholder p {
    margin: 0 0 1.5rem;
    color: var(--color-muted);
}

.back-link {
    color: var(--color-brand);
    font-weight: 600;
    text-decoration: none;
}

.back-link:hover,
.back-link:focus-visible {
    color: var(--color-brand-dark);
    text-decoration: underline;
    outline: none;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(0.6rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
