* {
    box-sizing: border-box;
    letter-spacing: 0;
}

html {
    color-scheme: light;
}

body {
    min-width: 0;
    font-family: "Trebuchet MS", "Avenir Next", Arial, sans-serif;
    font-size: 18px;
    line-height: 1.5;
}

img {
    display: block;
}

.header h1,
.header h2,
.site-name,
.site-description,
.review {
    overflow-wrap: anywhere;
}

.header h1 {
    margin: 0.25em 0;
    font-weight: 700;
}

.site-logo-link {
    display: block;
    width: min(600px, 100%);
    margin: 0 auto;
}

.site-brand {
    width: 100%;
    margin: 0 auto 2px;
    line-height: 0;
}

.site-brand--home {
    margin-bottom: 0;
}

.site-logo-link--compact {
    width: min(430px, 100%);
}

.header > .site-brand + h1 {
    margin-top: 0;
}

.site-logo {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.header .home-page-title {
    margin: 2px 0 0;
    font-size: 1.45rem;
    line-height: 1.15;
}

.home-page-title + .big-desc {
    margin-top: 0.25em;
}

.big-desc {
    margin: 0.5em auto;
    max-width: 1180px;
    line-height: 1.35;
}

.category-container {
    break-inside: avoid;
}

.category-grid {
    column-width: auto;
    column-count: 4;
}

.category-name,
.site-name {
    font-weight: 700;
}

.site {
    position: relative;
    grid-template-columns: minmax(0, 1fr) 28px;
    align-items: start;
    column-gap: 6px;
}

.site.has-description-toggle {
    grid-template-columns: minmax(0, 1fr) 28px 28px;
}

.site-link-container {
    max-width: none;
    min-width: 0;
    align-items: flex-start;
}

.site-link {
    overflow: visible;
    white-space: normal;
    text-overflow: clip;
    overflow-wrap: anywhere;
    line-height: 1.3;
}

.site-icon {
    flex: 0 0 auto;
    margin-top: 1px;
}

.review-link {
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    opacity: 0.55;
    transition: background-color 150ms ease, opacity 150ms ease;
}

.review-link:hover,
.review-link:focus-visible {
    background-color: rgb(212, 245, 241);
    opacity: 1;
}

.description-toggle {
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(13, 54, 105, 0.28);
    border-radius: 50%;
    background: rgb(212, 245, 241);
    color: #0d3669;
    font: 700 16px/26px Georgia, serif;
    text-align: center;
    cursor: pointer;
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.description-toggle:hover,
.description-toggle:focus-visible,
.site.is-description-open > .description-toggle {
    border-color: #0d3669;
    background-color: rgb(224, 212, 245);
    color: #071f3c;
}

.site-description-info {
    display: none;
}

.site-description-tooltip {
    position: fixed;
    z-index: 2147483647;
    inset: auto;
    top: -9999px;
    left: -9999px;
    width: min(320px, calc(100vw - 24px));
    max-height: min(320px, calc(100vh - 24px));
    margin: 0;
    padding: 10px 12px;
    overflow: auto;
    border: 1px solid rgba(13, 54, 105, 0.22);
    border-radius: 6px;
    background-color: rgb(212, 245, 241);
    color: rgb(0, 0, 0);
    font: inherit;
    line-height: 1.4;
    box-shadow: 0 8px 24px rgba(7, 31, 60, 0.22);
    visibility: hidden;
    opacity: 0;
    text-align: left;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity 120ms ease, transform 120ms ease, visibility 0s linear 120ms;
}

.site-description-tooltip.is-visible {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s;
}

.site-description-tooltip.is-pinned {
    border-color: rgba(13, 54, 105, 0.42);
}

.site-description-tooltip a,
.site-description-tooltip a:visited {
    color: rgb(0, 0, 0);
}

.site-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.review-page {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.review-media {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.review-screenshot {
    display: block;
    width: min(400px, 100%);
    overflow: hidden;
    border-radius: 8px;
    background: rgb(212, 232, 245);
    box-shadow: 0 1px 0 rgba(13, 54, 105, 0.10);
}

.review-screenshot img {
    width: 100%;
    height: auto;
}

.review-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    width: min(760px, 100%);
    margin: 0 auto 10px;
}

.review-action {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border: 1px solid rgba(13, 54, 105, 0.16);
    border-radius: 8px;
    background: rgb(212, 232, 245);
    font-weight: 700;
    text-align: center;
    overflow-wrap: anywhere;
    transition: background-color 150ms ease, border-color 150ms ease;
}

.review-action:hover,
.review-action:focus-visible {
    border-color: rgba(13, 54, 105, 0.34);
    background: rgb(224, 212, 245);
}

.review-action--primary,
.review-action--primary:visited {
    border-color: #153e66;
    background: #153e66;
    color: #fff;
}

.review-action--primary:hover,
.review-action--primary:focus-visible {
    background: #197d78;
    color: #fff;
}

.review-copy {
    line-height: 1.6;
}

.contact-page {
    width: min(900px, 100%);
    margin: 0 auto;
}

.contact-copy {
    line-height: 1.6;
}

.contact-copy h2 {
    margin: 1.25em 0 0.35em;
    font-size: 1.25rem;
    line-height: 1.25;
}

.contact-email {
    margin: 12px 0 20px;
    padding: 14px 18px;
    border: 1px solid rgba(13, 54, 105, 0.16);
    border-radius: 8px;
    background: rgb(212, 245, 241);
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    overflow-wrap: anywhere;
}

.contact-email a,
.contact-email a:visited {
    color: #0d3669;
}

.review p:first-child {
    margin-top: 0;
}

.review p:last-child {
    margin-bottom: 0;
}

a:focus-visible {
    outline: 3px solid #0d3669;
    outline-offset: 3px;
}

.footer a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

@media (max-width: 1280px) {
    .category-grid {
        column-count: 3;
    }
}

@media (max-width: 960px) {
    .category-grid {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 10px 12px;
    }

    .header h1 {
        font-size: 1.65rem;
    }

    .header .home-page-title {
        font-size: 1.25rem;
    }

    .site-logo-link--compact {
        width: min(360px, 100%);
    }

    .big-desc {
        padding: 0 4px;
        font-size: 1rem;
    }

    .category-grid {
        column-width: auto;
        column-count: 1;
    }

    .review {
        padding: 18px;
    }

    .navigation {
        overflow-wrap: anywhere;
    }

    .review-actions {
        grid-template-columns: 1fr;
    }

    .site-grid {
        grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    }

}

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

}
