body {
    display: flex;
    flex-direction: column;
    max-width: 900px;
    margin: 0 auto;
}

a,
a:visited {
    color: var(--link);
    text-decoration: none;
    border-bottom: dotted 1px var(--link);
}

h1 {
    margin: 0;
    padding: var(--padd);
    border-bottom: solid 1px var(--border);
    text-transform: uppercase;
    font-size: x-large;
    display: flex;
    gap: var(--padd);
    align-items: baseline;
}

.def,
h1 span {
    line-height: 1;
}

.def {
    font-size: x-small;
}

.back,
.back:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    font-size: 1em;
    line-height: 1;
    color: var(--link);
    border: solid 1px var(--border);
    text-decoration: none;
}

.back svg {
    display: block;
    width: 0.72em;
    height: 0.72em;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--padd);
    padding: var(--padd);
}

.tool-card {
    display: flex;
    flex-direction: column;
    background: #eee;
}

.tool-card:hover {
    background: #ddd;
}

.tool-image-link {
    display: block;
}

.tool-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
}

.tool-content {
    padding: var(--padd);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tool-content h2 {
    margin: 0;
    font-size: large;
    text-transform: uppercase;
}

.tool-content p {
    margin: 0;
    flex: 1;
    line-height: 1.35;
}

@media (max-width: 900px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }
}
