:root {
    --primary-red: #c41e3a;
    --text-dark: #2c3e50;
    --text-light: #5a6c7d;
    --bg-light: #f4f6f8;
    --white: #fff;
}

body {
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

h1, h2, h3 {
    margin-top: 0;
    color: var(--primary-red);
}

a {
    color: var(--primary-red);
}

a:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 4px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 2rem;
    padding: 1rem 5%;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgb(0 0 0 / 5%);
}

.logo {
    display: block;
    width: min(100%, 395px);
}

.logo img {
    display: block;
    width: 100%;
    height: auto;
}

.site-header nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem clamp(0.9rem, 2.5vw, 2rem);
}

.site-header nav a {
    padding-block: 0.25rem;
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
}

.site-header nav a:hover,
.site-header nav a[aria-current] {
    color: var(--primary-red);
}

.site-header nav a[aria-current] {
    text-decoration: underline;
    text-underline-offset: 0.3em;
}

.site-footer {
    margin-top: 4rem;
    padding: 2rem;
    background-color: var(--text-dark);
    color: var(--white);
    text-align: center;
}

.resources-page {
    max-width: 1200px;
    margin-inline: auto;
    padding: clamp(2rem, 5vw, 4rem) 5% 1rem;
}

.resources-page--detail {
    max-width: 900px;
}

.resources-intro {
    max-width: 44rem;
    margin-bottom: 2rem;
}

.resources-intro h1 {
    margin-bottom: 0.5rem;
    font-size: clamp(2rem, 4vw, 2.75rem);
    line-height: 1.15;
}

.resources-intro p,
.resource-detail p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-block: 0;
}

.resource-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

@media (min-width: 640px) {
    .resource-grid {
        grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
    }
}

.resource-grid li {
    display: flex;
}

.resource-card {
    box-sizing: border-box;
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    min-height: 12rem;
    border: 1px solid #dce3e9;
    border-top: 0.65rem solid var(--primary-red);
    border-radius: 1.1rem;
    padding: 1.4rem;
    background-color: var(--white);
    color: var(--text-dark);
    text-decoration: none;
    box-shadow: 0 4px 10px rgb(44 62 80 / 7%);
}

.resource-card:hover {
    border-color: var(--primary-red);
    box-shadow: 0 6px 14px rgb(44 62 80 / 13%);
}

.resource-card:hover h2,
.resource-card:focus-visible h2 {
    text-decoration: underline;
    text-underline-offset: 0.16em;
}

.resource-card h2 {
    margin: 0 0 0.65rem;
    color: var(--text-dark);
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.25;
}

.resource-card p {
    margin: 0 0 1.25rem;
    color: var(--text-light);
    font-size: 1rem;
}

.resource-card-arrow {
    align-self: flex-end;
    margin-top: auto;
    color: var(--primary-red);
    font-size: 1.3rem;
    line-height: 1;
}

.resource-back {
    display: inline-block;
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-underline-offset: 0.18em;
}

.resource-detail {
    border-top: 0.4rem solid var(--primary-red);
    border-radius: 0.8rem;
    padding: clamp(1.25rem, 4vw, 2rem);
    background-color: var(--white);
    box-shadow: 0 4px 10px rgb(44 62 80 / 7%);
}

.resource-detail h2 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.resource-detail p + p {
    margin-top: 1rem;
}
