:root {
    --ink: #172033;
    --muted: #5b6475;
    --line: #dce3ec;
    --paper: #ffffff;
    --wash: #f5f7fb;
    --blue: #1b63d8;
    --teal: #007f89;
    --coral: #d35a45;
    --green: #3c7a4d;
    --gold: #ad7c14;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    font: 16px/1.6 Arial, Helvetica, sans-serif;
    background: linear-gradient(180deg, #eef4fb 0, #ffffff 460px, #f8fafc 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px clamp(18px, 5vw, 64px);
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(220, 227, 236, 0.8);
    backdrop-filter: blur(16px);
}

.brand,
.site-header nav,
.hero-actions,
.logo-strip {
    display: flex;
    align-items: center;
}

.brand {
    gap: 12px;
    font-size: 18px;
}

.brand-mark {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.brand-mark img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.site-header nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
}

.site-header nav > a,
.github-link {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 10px;
    color: var(--muted);
    background: transparent;
    border: 0;
    border-radius: 8px;
    font: inherit;
    cursor: pointer;
}

.site-header nav > a:hover,
.site-header nav > a:focus-visible,
.github-link:hover,
.github-link:focus-visible {
    color: var(--ink);
    background: var(--wash);
    text-decoration: none;
    outline: 2px solid transparent;
}

.github-link {
    width: 38px;
    justify-content: center;
    padding: 0;
}

.github-link svg {
    width: 21px;
    height: 21px;
    fill: currentColor;
}

main {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.hero {
    display: flex;
    align-items: flex-end;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    min-height: 520px;
    padding: clamp(72px, 9vw, 118px) max(16px, calc((100vw - 1180px) / 2)) clamp(52px, 7vw, 82px);
    color: #ffffff;
    background:
        linear-gradient(90deg, rgba(13, 31, 52, 0.84), rgba(13, 31, 52, 0.48) 58%, rgba(13, 31, 52, 0.28)),
        url("assets/images/heart35.jpg") center / cover;
}

.hero-copy {
    max-width: 860px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--teal);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: #9ae2df;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 900px;
    margin-bottom: 22px;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.02;
    letter-spacing: 0;
}

.lede {
    max-width: 700px;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(18px, 2vw, 22px);
}

.hero-actions {
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.button {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 8px;
    font-weight: 700;
}

.button.primary,
.button.secondary {
    color: var(--ink);
    background: #ffffff;
    border: 1px solid var(--line);
}

.button.primary:hover,
.button.secondary:hover {
    background: #f5f7fb;
    text-decoration: none;
}

.icon-button {
    gap: 8px;
}

.button-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
    flex: 0 0 auto;
}

.logo-strip {
    justify-content: space-between;
    gap: 28px;
    margin: 34px 0 72px;
    padding: 22px 28px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.logo-strip a {
    display: grid;
    min-width: 0;
    flex: 1;
    place-items: center;
}

.logo-strip img {
    max-width: 220px;
    max-height: 66px;
    object-fit: contain;
}

.section-intro {
    max-width: 760px;
    margin-bottom: 26px;
}

.section-intro h2 {
    margin-bottom: 10px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.12;
}

.section-intro p:last-child {
    color: var(--muted);
}

.section-intro.compact {
    margin-top: 72px;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.resource-card {
    display: flex;
    min-height: 360px;
    flex-direction: column;
    padding: 18px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-top: 5px solid var(--blue);
    border-radius: 8px;
    box-shadow: 0 12px 34px rgba(31, 45, 61, 0.07);
}

.accent-2 { border-top-color: var(--teal); }
.accent-3 { border-top-color: var(--coral); }
.accent-4 { border-top-color: var(--green); }
.accent-5 { border-top-color: var(--gold); }

.image-link {
    display: grid;
    height: 98px;
    place-items: center;
    margin-bottom: 20px;
    background: var(--wash);
    border-radius: 8px;
}

.image-link img {
    max-width: 78%;
    max-height: 72px;
    object-fit: contain;
}

.card-body {
    flex: 1;
}

.tag,
.paper-link {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.tag {
    text-transform: uppercase;
}

.resource-card h3,
.tool-row h3 {
    margin: 8px 0 10px;
    font-size: 20px;
    line-height: 1.25;
}

.resource-card p,
.tool-row p {
    color: var(--muted);
    font-size: 14px;
}

.paper-link {
    margin-top: 16px;
    color: var(--blue);
}

.tool-list {
    display: grid;
    gap: 12px;
    margin-bottom: 72px;
}

.tool-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 22px;
    align-items: center;
    padding: 18px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.tool-row img {
    width: 130px;
    max-height: 72px;
    object-fit: contain;
}

.site-footer {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 36px;
    padding-top: 28px;
    color: var(--muted);
    border-top: 1px solid var(--line);
    font-size: 14px;
}

.content-page {
    padding: 56px 0 84px;
}

.page-hero {
    max-width: 850px;
    margin-bottom: 34px;
}

.page-hero h1 {
    color: var(--ink);
}

.page-hero p:last-child {
    color: var(--muted);
    font-size: 18px;
}

.accessibility-panel,
.accessibility-grid article {
    margin-bottom: 18px;
    padding: 24px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 34px rgba(31, 45, 61, 0.05);
}

.accessibility-panel h2,
.accessibility-grid h2 {
    margin-bottom: 10px;
    font-size: 26px;
}

.accessibility-panel p,
.accessibility-grid p,
.accessibility-panel li {
    color: var(--muted);
}

.accessibility-panel ul {
    padding-left: 22px;
}

.accessibility-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

@media (max-width: 900px) {
    .site-header,
    .tool-row,
    .site-footer {
        grid-template-columns: 1fr;
    }

    .site-header {
        position: static;
        display: grid;
    }

    .site-header nav {
        justify-content: flex-start;
    }

    .hero {
        min-height: auto;
        padding-inline: 18px;
    }

    .resource-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .accessibility-grid {
        grid-template-columns: 1fr;
    }

    .logo-strip {
        flex-wrap: wrap;
        justify-content: center;
    }

    .logo-strip a {
        flex-basis: 42%;
    }
}

@media (max-width: 620px) {
    main,
    .site-footer {
        width: min(100% - 24px, 1180px);
    }

    h1 {
        font-size: 40px;
    }

    .resource-grid {
        grid-template-columns: 1fr;
    }

    .resource-card {
        min-height: 0;
    }

    .tool-row {
        grid-template-columns: 1fr;
    }
}
