.tools-page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 7rem clamp(1rem, 4vw, 2rem) 3rem;
    font-family: 'Outfit', sans-serif;
}

.tools-intro {
    margin-bottom: 3rem;
}

.tools-intro h1 {
    font: 700 clamp(2.25rem, 6vw, 3.5rem)/1.15 'Playfair Display', serif;
    margin-bottom: 0.75rem;
}

.tools-intro p {
    max-width: 38rem;
    color: var(--text-secondary);
    font-size: 1.15rem;
}

.tools-group {
    margin-bottom: 2.5rem;
}

.tools-group h2 {
    font-size: 1.45rem;
    margin-bottom: 0.85rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
    gap: 0.75rem;
    list-style: none;
    padding: 0;
}

.tools-grid a {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    height: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    background: var(--bg-main);
    color: var(--text-color);
    text-decoration: none;
}

.tools-grid a:hover,
.tools-grid a:focus-visible {
    border-color: var(--accent-color);
}

.tools-grid span {
    color: var(--text-secondary);
}

.tools-formats,
.tools-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1.25rem;
    margin-top: 1rem;
    padding: 0;
    list-style: none;
}

.tools-formats a,
.tools-footer a {
    color: var(--accent-color);
    text-underline-offset: 0.2em;
}

.tools-studio-link {
    text-decoration: none;
    white-space: nowrap;
}

@media (max-width: 400px) {
    .tools-studio-link {
        padding-inline: 0.5rem;
    }
}
