:root {
    color-scheme: dark;
    --background: #0b2823;
    --surface: #102d27;
    --text: #f7ebd9;
    --muted: #e7ddce;
    --gold: #dfaa6b;
    --gold-subtle: #a47e56;
    --heading: Baskerville, "Iowan Old Style", Georgia, serif;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--text);
    background: radial-gradient(ellipse at 50% 0%, #143831 0, var(--background) 46rem);
}

a {
    color: inherit;
    text-underline-offset: .2em;
}

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

.page-width {
    width: min(77rem, 100% - clamp(2.25rem, 8vw, 7rem));
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    z-index: 1;
    top: .75rem;
    left: .75rem;
    padding: .75rem 1rem;
    background: var(--text);
    color: var(--background);
    translate: 0 calc(-100% - 1.5rem);
}

.skip-link:focus {
    translate: none;
}

.portal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-block: 1.1rem;
    border-bottom: 1px solid #567067;
}

.wordmark {
    color: var(--text);
    font: 600 2.15rem/1 var(--heading);
    letter-spacing: .04em;
    text-decoration: none;
}

.portal-header nav {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem clamp(1rem, 3vw, 2.1rem);
    font-size: 1rem;
}

.portal-header nav a {
    padding-block: .5rem;
    text-decoration: none;
}

.portal-header nav a:hover, .service:hover h3 {
    text-decoration: underline;
}

.introduction {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    align-items: end;
    gap: clamp(2rem, 6vw, 6rem);
    padding-block: clamp(2.4rem, 4vw, 4rem) clamp(1.7rem, 3vw, 2.75rem);
}

.introduction h1, .concept h2, .accompagnements h2, .service h3 {
    margin: 0;
    font-family: var(--heading);
    font-weight: 500;
}

.introduction h1 {
    max-width: 15ch;
    font-size: clamp(2.8rem, 5.35vw, 5.3rem);
    line-height: .98;
    text-wrap: balance;
    letter-spacing: -.035em;
}

.introduction > p {
    margin: 0;
    max-width: 39ch;
    color: var(--muted);
    font-size: clamp(1rem, 1.45vw, 1.23rem);
    line-height: 1.55;
}

.concept-grid, .service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.3rem, 3vw, 2.6rem);
}

.concept {
    position: relative;
    display: flex;
    flex-direction: column;
    border-top: 2px solid var(--gold);
    border-bottom: 1px solid #61726a;
}

.concept-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2.55;
    object-fit: cover;
    object-position: center 54%;
}

.concept-copy {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: clamp(1.05rem, 2.1vw, 1.65rem) .15rem 1.4rem;
}

.concept h2 {
    font-size: clamp(2.15rem, 3.4vw, 3.45rem);
    line-height: 1.05;
    letter-spacing: -.025em;
}

.concept-question {
    color: #ffdab1;
    max-width: 37ch;
    margin: .8rem 0 .5rem;
    font: italic 1.4rem/1.25 var(--heading);
}

.concept-description {
    margin: 0 0 1.15rem;
    max-width: 48ch;
    color: var(--muted);
    font-size: 1.04rem;
    line-height: 1.5;
}

.concept-link {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    margin-top: auto;
    color: var(--text);
    font-weight: 600;
    text-decoration-color: var(--gold);
    text-decoration-thickness: 2px;
    text-underline-offset: .34em;
}

.concept-link::after {
    content: "";
    position: absolute;
    inset: 0;
}

.concept:focus-within {
    outline: 3px solid #ffdc9e;
    outline-offset: 4px;
}

.concept:hover .concept-link {
    color: #ffdc9e;
}

.accompagnements {
    padding-block: clamp(2.1rem, 4.5vw, 4rem) .45rem;
}

.accompagnements h2 {
    margin-bottom: 1.1rem;
    font-size: clamp(1.85rem, 3.25vw, 2.65rem);
}

.service {
    display: flex;
    gap: 1.05rem;
    align-items: center;
    text-decoration: none;
}

.service img {
    width: clamp(5.5rem, 8vw, 7rem);
    height: auto;
    aspect-ratio: 1.2;
    object-fit: cover;
}

.service h3 {
    font-size: clamp(1.3rem, 2.1vw, 1.7rem);
    line-height: 1.2;
}

.service p {
    margin: .25rem 0 0;
    max-width: 38ch;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.4;
}

.reserved-access {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    margin-top: clamp(1.45rem, 3.15vw, 2.9rem);
    padding: .68rem .8rem;
    border-radius: .2rem;
    background: #38574a;
    text-align: center;
    font-family: var(--heading);
    font-size: clamp(1.1rem, 1.65vw, 1.4rem);
    line-height: 1.15;
}

.reserved-access h2 {
    margin: 0;
    padding: .32rem .4rem;
    font: inherit;
    font-weight: 600;
}

.reserved-access a {
    display: grid;
    place-items: center;
    min-height: 2.75rem;
    padding: .32em .5em;
    border-inline-start: 1px solid var(--gold);
    text-decoration: none;
}

.reserved-access a:is(:hover, :focus-visible) {
    text-decoration: underline;
}

.news {
    margin-block: 3rem 1rem;
}

.news h2, .news h3 {
    margin: 0;
    font-family: var(--heading);
    line-height: 1.15;
}

.news h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
}

.news > p, .news-meta {
    color: var(--muted);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
    gap: 1rem;
}

.news-card {
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    border: 1px solid var(--gold-subtle);
    border-radius: .3rem;
    background: var(--surface);
    line-height: 1.5;
}

.news-card h3 {
    font-size: 1.5rem;
}

.news-meta {
    margin: .35rem 0;
    font-size: .85rem;
}

.news-card a {
    align-self: flex-start;
    margin-top: auto;
}

.portal-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .4rem 1.2rem;
    padding-block: 1.25rem;
    color: var(--muted);
    font-size: .85rem;
    line-height: 1.4;
}

@media (max-width: 52rem) {
    .introduction {
        display: block;
    }

    .introduction h1 {
        max-width: 20ch;
    }

    .introduction > p {
        max-width: 55ch;
        margin-top: 1rem;
    }

    .concept-image {
        aspect-ratio: 1.9;
    }
}

@media (max-width: 42rem) {
    .concept-grid, .service-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .concept-image {
        aspect-ratio: 2.2;
    }

    .concept-question {
        font-size: 1.28rem;
    }

    .portal-header {
        flex-wrap: wrap;
        gap: .4rem 1.2rem;
        padding-block: .8rem;
    }
}

@media (max-width: 29rem) {
    .reserved-access {
        grid-template-columns: minmax(0, 1fr);
    }

    .reserved-access a {
        border-inline-start: 0;
        border-top: 1px solid var(--gold-subtle);
    }
}
