:root {
    --azure-900: #064d76;
    --azure-800: #086b9f;
    --azure-600: #159fd8;
    --azure-300: #8cddf7;
    --sky-100: #eaf9ff;
    --paper: #ffffff;
    --ink: #06344d;
    --shadow: 0 20px 42px rgba(5, 56, 84, 0.2);
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    color: var(--ink);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(217, 245, 255, 0.94)),
        var(--sky-100);
    font-family: Arial, Helvetica, sans-serif;
    letter-spacing: 0;
}

.site-header {
    padding: clamp(14px, 2vw, 24px) clamp(14px, 4vw, 56px) 0;
}

.banner {
    min-height: clamp(210px, 32vw, 360px);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(2, 60, 93, 0.78), rgba(2, 60, 93, 0.1)),
        var(--banner-image) center 58% / cover;
    box-shadow: var(--shadow);
}

.banner-copy {
    width: min(100%, 620px);
    padding: clamp(20px, 4vw, 48px);
    color: var(--paper);
    text-shadow: 0 2px 12px rgba(0, 35, 55, 0.64);
}

.banner-copy p {
    margin: 0 0 8px;
    font-size: clamp(1rem, 1.3vw, 1.25rem);
    font-weight: 700;
    text-transform: uppercase;
}

.banner-copy h1 {
    margin: 0;
    max-width: 13ch;
    font-size: clamp(2rem, 5vw, 4.5rem);
    line-height: 0.98;
}

.page-content {
    width: min(1280px, calc(100% - 28px));
    flex: 1;
    margin: clamp(22px, 4vw, 52px) auto;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 2.2vw, 30px);
}

.link-card {
    min-width: 0;
    aspect-ratio: 1 / 0.92;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    overflow: hidden;
    border: 1px solid rgba(21, 159, 216, 0.22);
    border-radius: 8px;
    color: inherit;
    background: var(--paper);
    box-shadow: 0 16px 34px rgba(6, 77, 118, 0.18);
    text-decoration: none;
    transform: translateY(0);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.link-card img {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: block;
    object-fit: cover;
}

.card-copy {
    min-height: 98px;
    display: grid;
    align-content: center;
    gap: 8px;
    padding: 18px clamp(16px, 2vw, 24px);
    border-top: 4px solid var(--azure-300);
    background: linear-gradient(135deg, var(--paper), #dff6ff);
}

.card-copy strong {
    color: var(--azure-900);
    font-size: clamp(1.25rem, 1.8vw, 1.65rem);
    line-height: 1.1;
}

.card-copy small {
    color: #25617d;
    font-size: 1rem;
    line-height: 1.35;
}

.link-card:hover,
.link-card:focus-visible {
    border-color: var(--azure-600);
    box-shadow: 0 22px 44px rgba(6, 77, 118, 0.3);
    outline: none;
    transform: translateY(-5px);
}

.site-footer {
    padding: 20px;
    color: var(--paper);
    text-align: center;
    background: linear-gradient(90deg, var(--azure-900), var(--azure-800));
}

.site-footer p {
    margin: 0;
    font-weight: 700;
}

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

    .link-card {
        aspect-ratio: auto;
        min-height: min(460px, 82vh);
    }

    .link-card img {
        aspect-ratio: 16 / 10;
    }
}
