@font-face {
    font-family: Inter;
    src: url("assets/inter-latin.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 300;
    font-display: swap;
}

:root {
    --ink: #181c20;
    --muted: #52616a;
    --accent: #266f7e;
    --line: #dce6e8;
    --soft: #f2f7f8;
    --header-height: 90px;
    --wrap: min(90%, 1500px);
    --light-font: Inter, "Segoe UI", sans-serif;
    --compact-title: clamp(1.625rem, 2.45vw, 1.875rem);
    font-family: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background: #fff;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
    margin: 0;
}

[hidden] {
    display: none !important;
}

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

button, input {
    font: inherit;
}

button {
    color: inherit;
    cursor: pointer;
}

button:disabled {
    cursor: default;
}

img {
    display: block;
    max-width: 100%;
}

h2, h3, p {
    margin: 0;
}

h2 {
    font-size: clamp(2rem, 3.6vw, 3.65rem);
    font-weight: 400;
    line-height: 1.09;
    letter-spacing: -.04em;
}

h3 {
    font-weight: 500;
}

p {
    line-height: 1.65;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

.wrap {
    width: var(--wrap);
    margin-inline: auto;
}

.visually-hidden, .skip-link:not(:focus) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    clip-path: inset(50%);
    overflow: hidden;
    white-space: nowrap;
    border: 0;
}

.listing-empty {
    margin-top: 16px;
    padding: 28px;
    background: var(--soft);
    color: var(--muted);
}

.skip-link:focus {
    position: fixed;
    z-index: 20;
    top: 10px;
    left: 10px;
    padding: 14px;
    background: white;
}

.section {
    padding-block: clamp(65px, 7.7vw, 135px);
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: clamp(27px, 3.4vw, 60px);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    min-height: 44px;
    padding: 0 19px;
    border: 1px solid currentColor;
    border-radius: 4px;
    color: inherit;
    white-space: nowrap;
    background-color: transparent;
    transition: color .2s, background-color .2s;
}

.button:hover {
    background-color: var(--ink);
    border-color: var(--ink);
    color: white;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    color: var(--accent);
    font-size: .94rem;
}

a.text-link:hover, a:hover .text-link {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.section-title {
    font: 300 var(--compact-title)/1.12 var(--light-font);
    letter-spacing: -.025em;
}

/* Site header */
.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 5;
    background: rgb(255 255 255 / 52%);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgb(255 255 255 / 20%);
    transition: background-color .2s, border-color .2s;
}

.site-header.is-scrolled, .site-header:focus-within, .site-header.has-submenu {
    background: rgb(255 255 255 / 96%);
    border-color: var(--line);
}

.header-inner {
    position: relative;
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: inline-flex;
    flex: none;
    align-items: center;
    color: #53b8ca;
}

.brand-mark {
    width: clamp(103px, 11vw, 152px);
    aspect-ratio: 389 / 82;
    background-color: currentColor;
    mask: url("assets/huida-wordmark.jpg") center / 100% 100% no-repeat luminance;
}

.site-header:not(.is-scrolled, :focus-within, .has-submenu) .brand {
    color: #112528;
}

.site-nav {
    display: flex;
    align-self: stretch;
    align-items: center;
    gap: clamp(16px, 2.05vw, 38px);
    margin-inline: auto;
}

.site-nav > a, .nav-toggle {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 44px;
    font-size: .94rem;
    white-space: nowrap;
}

.nav-toggle {
    border: 0;
    padding: 0;
    background: transparent;
}

.nav-toggle[aria-current] {
    color: var(--accent);
}

.site-nav > a::after, .nav-toggle::after {
    content: "";
    position: absolute;
    bottom: 1px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width .2s;
}

.site-nav > a:is(:hover, [aria-current])::after, .nav-toggle:is(:hover, [aria-current], [aria-expanded="true"])::after {
    width: 100%;
}

.nav-scrim {
    position: absolute;
    z-index: 0;
    top: 100%;
    inset-inline: 0;
    height: calc(100dvh - var(--header-height));
    border: 0;
    background: rgb(10 18 23 / 20%);
    backdrop-filter: blur(4px);
}

.nav-panel {
    position: absolute;
    z-index: 1;
    top: 100%;
    inset-inline: 0;
    max-height: calc(100dvh - var(--header-height));
    overflow: auto;
    overscroll-behavior: contain;
    background: white;
    border-top: 1px solid var(--line);
}

.nav-panel-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2.15fr) minmax(0, .83fr);
    align-items: start;
    gap: clamp(24px, 3.4vw, 56px);
    padding-block: clamp(30px, 4vw, 60px);
}

.nav-panel-title {
    font: 300 1.625rem/1.2 var(--light-font);
    letter-spacing: -.025em;
}

.nav-panel-intro .text-link {
    margin-top: 22px;
    gap: 28px;
}

.nav-panel-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px clamp(14px, 2vw, 32px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-panel-links li {
    display: flex;
}

.nav-panel-links a {
    display: flex;
    flex: 1;
    align-items: center;
    min-height: 44px;
    padding-block: 7px;
    border-bottom: 1px solid var(--line);
    font-size: .925rem;
}

.nav-panel-links a:hover, .nav-panel-links a:focus-visible, .nav-panel-links a[aria-current] {
    color: var(--accent);
}

.nav-panel-image {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 5px;
}

@media (prefers-reduced-motion: no-preference) {
    .nav-panel {
        animation: nav-panel-in .23s ease-out both;
    }

    @keyframes nav-panel-in {
        from {
            opacity: 0;
            transform: translateY(-8px);
        }
    }
}

.header-tools {
    display: flex;
    align-items: center;
    flex: none;
}

.icon-button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 50%;
}

.icon-button:hover {
    background: rgb(255 255 255 / 48%);
    color: var(--accent);
}

.icon {
    width: 20px;
    height: 20px;
    display: block;
    position: relative;
}

.icon-search::before {
    content: "";
    position: absolute;
    inset: 1px 5px 5px 1px;
    border: 1.5px solid;
    border-radius: 50%;
}

.icon-search::after {
    content: "";
    position: absolute;
    height: 1.5px;
    width: 7px;
    transform: rotate(47deg);
    top: 15px;
    left: 12px;
    background: currentColor;
}

.icon-globe {
    border: 1.4px solid;
    border-radius: 50%;
}

.icon-globe::before {
    content: "";
    position: absolute;
    inset: -1px 4px;
    border: 1px solid;
    border-radius: 50%;
}

.icon-globe::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    border-top: 1px solid;
}

.icon-menu {
    height: 13px;
    border-block: 1.5px solid;
}

.icon-menu::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    border-top: 1.5px solid;
    transform: translateY(-50%);
}

.menu-toggle {
    display: none;
}

.language {
    position: relative;
}

.language summary {
    list-style: none;
    cursor: pointer;
}

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

.language-panel, .site-search {
    position: absolute;
    border: 1px solid var(--line);
    background: white;
    border-radius: 8px;
    box-shadow: 0 14px 34px rgb(21 50 63 / 10%);
}

.language-panel {
    z-index: 2;
    right: 0;
    top: 100%;
    min-width: 132px;
    padding: 8px;
}

.language-panel :is(a, span) {
    padding: 10px 12px;
    display: block;
    border-radius: 4px;
    white-space: nowrap;
}

.language-panel a:hover {
    background: var(--soft);
}

.language-panel span {
    color: var(--accent);
}

.site-search {
    top: 100%;
    right: 0;
    width: min(100%, 480px);
    display: flex;
    gap: 10px;
    padding: 14px;
}

.site-search input {
    min-width: 0;
    flex: 1;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 0 14px;
}

.site-search .button {
    background: var(--ink);
    color: white;
}

/* Site footer */
.site-footer {
    background: #fff;
    border-top: 1px solid var(--line);
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 3.3fr;
    gap: clamp(24px, 4vw, 56px);
    padding-block: clamp(45px, 6vw, 85px);
}

.footer-brand .brand {
    margin-bottom: 15px;
}

.social, .sharing {
    display: flex;
    flex-wrap: wrap;
    gap: 3px 13px;
}

.social-button, .sharing a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0;
    border: 0;
    color: var(--muted);
    background: none;
    font-size: .875rem;
}

.social-button:hover, .sharing a:hover, .footer-nav a:hover, .footer-bottom a:hover {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
}

.footer-nav h2 {
    margin-bottom: 9px;
    font-weight: 600;
    font-size: .98rem;
    letter-spacing: 0;
    line-height: 1.45;
}

.footer-nav :not(h2) + h2 {
    margin-top: 18px;
}

.footer-nav div > a {
    display: block;
    width: fit-content;
    padding: 6px 0;
    color: var(--muted);
    font-size: .875rem;
    line-height: 1.35;
}

.footer-bottom {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    column-gap: 22px;
    padding-block: 20px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: .82rem;
}

.footer-bottom a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    gap: 7px;
}

.footer-bottom a:last-child {
    margin-left: auto;
}

dialog {
    max-height: 90dvh;
    padding: 0;
    color: var(--ink);
    background: white;
    border: 0;
    border-radius: 10px;
}

dialog::backdrop {
    background: rgb(11 22 27 / 75%);
}

.dialog-close {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 1;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 0;
    background: white;
    color: var(--ink);
    font-size: 24px;
}

.qr-dialog {
    width: min(86vw, 320px);
    padding: 38px 30px;
    text-align: center;
}

.qr-dialog h2 {
    margin-bottom: 18px;
    font-size: 1.45rem;
}

.qr-dialog img {
    margin-inline: auto;
    object-fit: contain;
}

@media (max-width: 1050px) {
    .header-inner {
        gap: 18px;
    }

    .site-nav {
        gap: 13px;
    }

    .site-nav > a, .nav-toggle {
        font-size: .88rem;
    }
}

@media (min-width: 921px) {
    .header-inner {
        position: static;
    }

    .site-search {
        right: max(5%, calc((100% - 1500px) / 2));
    }

    .nav-group {
        display: flex;
        align-self: stretch;
        align-items: center;
    }
}

@media (max-width: 920px) {
    :root {
        --header-height: 68px;
    }

    .site-nav {
        display: none;
        position: absolute;
        z-index: 1;
        top: 100%;
        right: -5.56%;
        left: -5.56%;
        max-height: calc(100dvh - var(--header-height));
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 12px 5vw 20px;
        background: white;
        border-bottom: 1px solid var(--line);
    }

    .site-nav.is-open {
        display: grid;
        gap: 0;
    }

    .site-nav > a, .nav-toggle {
        min-height: 48px;
        border-bottom: 1px solid var(--line);
        font-size: 1rem;
    }

    .nav-toggle {
        justify-content: space-between;
        width: 100%;
    }

    .nav-toggle::before {
        content: "";
        order: 1;
        width: 7px;
        height: 7px;
        margin-right: 4px;
        border-right: 1px solid;
        border-bottom: 1px solid;
        transform: translateY(-2px) rotate(45deg);
    }

    .nav-toggle[aria-expanded="true"]::before {
        transform: translateY(2px) rotate(225deg);
    }

    .site-nav > a::after, .nav-toggle::after {
        content: none;
    }

    .nav-panel {
        position: static;
        max-height: none;
        overflow: visible;
        border: 0;
        animation: none;
    }

    .nav-panel-inner {
        display: block;
        width: 100%;
        padding: 4px 0 14px 14px;
    }

    .nav-panel-title, .nav-panel-image {
        display: none;
    }

    .nav-panel-intro .text-link {
        margin-top: 0;
    }

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

    .menu-toggle {
        display: grid;
    }

    .footer-main {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 570px) {
    :root {
        --wrap: calc(100% - 36px);
        --header-height: 62px;
    }

    .site-nav {
        inset-inline: -18px;
        padding-inline: 18px;
    }

    .section {
        padding-block: 52px;
    }

    .section-head {
        align-items: center;
    }

    .section-head .text-link {
        flex: none;
        font-size: .82rem;
    }

    .footer-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }

    .footer-bottom a:last-child {
        margin-left: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}

.section-subnav {
    position: sticky;
    z-index: 3;
    top: calc(var(--header-height) + 1px);
    border-bottom: 1px solid var(--line);
    background: white;
}

.section-subnav > div {
    display: flex;
    justify-content: center;
    gap: clamp(28px, 5vw, 72px);
}

.section-subnav a {
    display: flex;
    align-items: center;
    min-height: 60px;
    padding-inline: 7px;
    border-bottom: 2px solid transparent;
    color: var(--muted);
}

.section-subnav a:is([aria-current], :hover) {
    border-color: currentColor;
    color: var(--accent);
}

.section-subnav a:focus-visible {
    outline-offset: -3px;
}

.page-banner {
    position: relative;
    isolation: isolate;
    display: grid;
    align-items: center;
    min-height: clamp(390px, 34vw, 650px);
    padding-block: calc(var(--header-height) + 32px) 40px;
    color: #fff;
    background: #234352;
}

.page-banner img,
.page-banner::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    width: 100%;
    height: 100%;
}

.page-banner img {
    object-fit: cover;
    object-position: 64% center;
}

.page-banner::after {
    content: '';
    background: linear-gradient(90deg, rgb(9 29 39 / 70%), rgb(9 29 39 / 40%) 44%, transparent 80%);
}

.page-banner-copy h1 {
    margin: 0;
    font: 300 clamp(2.25rem, 3.2vw, 3.375rem)/1.12 var(--light-font);
    letter-spacing: -.025em;
}

.page-banner p {
    max-width: 30ch;
    margin-top: 16px;
    font: 300 clamp(1rem, 1.5vw, 1.25rem)/1.6 var(--light-font);
}

@media (max-width: 760px) {
    .page-banner {
        min-height: 325px;
    }

    .page-banner img {
        object-position: 42% center;
    }
}
