@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@1,400;1,500&display=swap");

.resources-page main {
    background: var(--resources-page-bg, var(--cream));
}

.resources-hero {
    margin: 0 auto;
    max-width: var(--content-width);
    padding: clamp(56px, 7vw, 96px) var(--page-padding) clamp(48px, 6vw, 76px);
}

.resources-hero .breadcrumbs {
    color: rgb(36 23 17 / 62%);
    margin-bottom: 54px;
}

.resources-hero .section-marker {
    color: var(--copper);
    margin-bottom: 24px;
}

.resources-hero h1 {
    font-family: var(--serif);
    font-size: clamp(42px, 4vw, 64px);
    font-weight: 400;
    letter-spacing: -0.035em;
    line-height: 1;
    margin: 0 0 24px;
    max-width: 760px;
}

.resources-hero__lead {
    font-family: var(--serif);
    font-size: clamp(25px, 2vw, 34px);
    line-height: 1.24;
    margin: 0;
    max-width: 940px;
}

.resources-hero__note {
    color: rgb(36 23 17 / 72%);
    font-family: var(--sans);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    margin: 26px 0 0;
    max-width: 760px;
}

.resources-grid {
    display: grid;
    gap: clamp(22px, 2.4vw, 34px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0 auto;
    max-width: var(--content-width);
    padding: 0 var(--page-padding) clamp(60px, 8vw, 110px);
}

.resource-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 4px;
    box-shadow: 0 18px 44px rgb(45 28 21 / 5%);
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.resource-card__header {
    align-items: flex-start;
    display: grid;
    gap: 22px;
    grid-template-columns: 74px minmax(0, 1fr);
    min-height: 204px;
    padding: clamp(28px, 3vw, 42px);
}

.resource-card--1 .resource-card__header { background: var(--resources-card-1, #e8ede5); }
.resource-card--2 .resource-card__header { background: var(--resources-card-2, #f4e4d6); }
.resource-card--3 .resource-card__header { background: var(--resources-card-3, #f2dfd8); }
.resource-card--4 .resource-card__header { background: var(--resources-card-4, #e5ebe3); }
.resource-card--5 .resource-card__header { background: var(--resources-card-5, #f6e9d2); }
.resource-card--6 .resource-card__header { background: var(--resources-card-6, #eee3d9); }

.resource-card__icon {
    align-items: center;
    border-radius: 50%;
    color: var(--paper);
    display: flex;
    height: 68px;
    justify-content: center;
    width: 68px;
}

.resource-card--1 .resource-card__icon { background: var(--sage); }
.resource-card--2 .resource-card__icon { background: var(--copper); }
.resource-card--3 .resource-card__icon { background: var(--terracotta); }
.resource-card--4 .resource-card__icon { background: var(--sage); }
.resource-card--5 .resource-card__icon { background: var(--ochre); color: var(--ink); }
.resource-card--6 .resource-card__icon { background: var(--cocoa); }

.resource-card__icon svg {
    fill: none;
    height: 38px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.5;
    width: 38px;
}

.resource-card--1 .resource-card__icon svg path:first-child {
    fill: currentColor;
    stroke: currentColor;
}

.resource-card--1 .resource-card__icon svg path:last-child {
    fill: currentColor;
    stroke: currentColor;
}

.resource-card__heading {
    border-left: 1px solid rgb(72 43 27 / 24%);
    padding-left: 22px;
}

.resource-card__number {
    color: var(--copper);
    display: block;
    font-family: var(--serif);
    font-size: 17px;
    font-weight: 500;
    line-height: 1;
    margin-bottom: 8px;
}

.resource-card__heading h2 {
    font-family: var(--serif);
    font-size: clamp(28px, 2.5vw, 38px);
    font-weight: 400;
    letter-spacing: -0.025em;
    line-height: 1.05;
    margin: 0 0 12px;
}

.resource-card__heading p {
    color: rgb(36 23 17 / 76%);
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.55;
    margin: 0;
}

.resource-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 10px clamp(28px, 3vw, 42px) 28px;
}

.resource-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.resource-link {
    border-bottom: 1px solid rgb(72 43 27 / 10%);
}

.resource-link:last-child {
    border-bottom: 0;
}

.resource-link a {
    display: block;
    padding: 18px 0;
    text-decoration: none;
}

.resource-link a:hover .resource-link__name,
.resource-link a:focus-visible .resource-link__name {
    color: var(--copper);
}

.resource-link__name {
    align-items: center;
    display: inline-flex;
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 500;
    gap: 8px;
    line-height: 1.15;
    transition: color 160ms ease;
}

.resource-link__name svg {
    fill: none;
    height: 14px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.4;
    width: 14px;
}

.resource-link__text {
    color: rgb(36 23 17 / 68%);
    display: block;
    font-family: var(--sans);
    font-size: 14px;
    line-height: 1.55;
    margin-top: 5px;
}

.resource-more {
    border-top: 1px solid var(--line);
    margin-top: auto;
}

.resource-more summary {
    align-items: center;
    color: var(--cocoa);
    cursor: pointer;
    display: flex;
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 600;
    justify-content: space-between;
    list-style: none;
    padding: 20px 0 2px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.resource-more summary::-webkit-details-marker {
    display: none;
}

.resource-more summary i {
    height: 14px;
    position: relative;
    width: 14px;
}

.resource-more summary i::before,
.resource-more summary i::after {
    background: currentColor;
    content: "";
    left: 0;
    position: absolute;
    top: 6px;
    transition: transform 160ms ease;
}

.resource-more summary i::before {
    height: 1px;
    width: 14px;
}

.resource-more summary i::after {
    height: 14px;
    left: 6px;
    top: 0;
    width: 1px;
}

.resource-more[open] summary i::after {
    transform: rotate(90deg);
}

.resource-list--extra {
    padding-top: 8px;
}

.resources-closing {
    border-top: 1px solid var(--line);
    font-family: var(--serif);
    font-size: clamp(25px, 2vw, 34px);
    font-style: italic;
    font-weight: 400;
    line-height: 1.25;
    margin: 0 auto;
    max-width: calc(var(--content-width) - (2 * var(--page-padding)));
    padding: clamp(40px, 5vw, 68px) 0 clamp(64px, 8vw, 104px);
    text-align: center;
}

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

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

@media (max-width: 640px) {
    .resources-hero {
        padding-top: 40px;
    }

    .resources-hero .breadcrumbs {
        margin-bottom: 34px;
    }

    .resources-hero h1 {
        font-size: clamp(40px, 12vw, 54px);
    }

    .resources-grid {
        gap: 18px;
        padding-left: 18px;
        padding-right: 18px;
    }

    .resource-card__header {
        gap: 16px;
        grid-template-columns: 58px minmax(0, 1fr);
        padding: 24px 22px;
    }

    .resource-card__icon {
        height: 54px;
        width: 54px;
    }

    .resource-card__icon svg {
        height: 30px;
        width: 30px;
    }

    .resource-card__heading {
        padding-left: 16px;
    }

    .resource-card__heading h2 {
        font-size: clamp(27px, 8vw, 34px);
    }

    .resource-card__body {
        padding: 8px 22px 24px;
    }

    .resource-link__name {
        font-size: 21px;
    }

    .resources-closing {
        margin-left: 24px;
        margin-right: 24px;
        max-width: none;
    }
}
