:root {
    --ink: #1b2d2a;
    --ink-soft: #4d625d;
    --base: #3c675f;
    --base-deep: #223a35;
    --base-night: #192a27;
    --base-mist: #cfe3df;
    --base-tint: #e6f0ee;
    --base-pale: #f2f7f6;
    --paper: #ffffff;
    --accent: #a74456;
    --accent-deep: #8a3546;
    --accent-pale: #f6eaec;
    --accent-glow: #e8b0ba;
    --heading: Raleway, "Segoe UI", Arial, sans-serif;
}

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: Poppins, "Segoe UI", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--ink);
    background-color: var(--base-pale);
    background-image: url(images/pattern.svg);
    background-size: 64px 64px;
}

h1,
h2,
h3 {
    font-family: var(--heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--base-deep);
    margin: 0 0 .75rem;
}

h1 {
    font-size: clamp(1.85rem, 4.2vw, 2.85rem);
    letter-spacing: -.01em;
}

h2 {
    font-size: 1.4rem;
}

h3 {
    font-size: 1.08rem;
    margin-top: 1.6rem;
}

p {
    margin: 0 0 1rem;
}

a {
    color: var(--accent);
    text-underline-offset: .2em;
}

a:hover {
    color: var(--accent-deep);
}

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

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

.masthead {
    max-width: 74rem;
    margin: 0 auto;
    padding: 1.25rem 1.25rem .25rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem 1.5rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    color: var(--ink);
    text-decoration: none;
}

.brand img {
    width: 48px;
    height: 48px;
    flex: none;
}

.brand strong {
    display: block;
    font-family: var(--heading);
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--base-deep);
}

.brand small {
    display: block;
    font-size: .78rem;
    letter-spacing: .04em;
    color: var(--ink-soft);
}

.langs ul {
    list-style: none;
    margin: 0;
    padding: .3rem .4rem;
    display: flex;
    align-items: center;
    background: var(--paper);
    border: 1px solid var(--base-mist);
    border-radius: 12px;
}

.langs li + li::before {
    content: "·";
    padding: 0 .1rem;
    color: var(--ink-soft);
}

.langs a {
    display: inline-block;
    padding: .2rem .55rem;
    border-radius: 8px;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .05em;
    color: var(--base);
    text-decoration: none;
}

.langs a:hover {
    background: var(--base-tint);
    color: var(--base-deep);
}

.langs a[aria-current] {
    background: var(--base);
    color: #ffffff;
}

main {
    width: min(74rem, calc(100% - 2rem));
    margin: 1rem auto 3rem;
    background: var(--paper);
    border: 1px solid var(--base-mist);
    border-radius: 16px;
    box-shadow: 0 18px 40px -28px rgba(25, 42, 39, .45);
    overflow: hidden;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: center;
    padding: 3.5rem 3rem 3rem;
    background: linear-gradient(180deg, var(--base-pale), var(--paper));
}

.hero > div:only-child {
    grid-column: 1 / -1;
    max-width: 46rem;
}

.hero h1 + p {
    font-size: 1.06rem;
    color: var(--ink-soft);
}

.hero figure {
    margin: 0;
}

.hero img {
    width: 100%;
    border-radius: 14px;
}

.kicker {
    margin-bottom: .9rem;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.5rem;
}

.actions a {
    display: inline-block;
    padding: .7rem 1.25rem;
    border: 1px solid var(--base);
    border-radius: 10px;
    background: var(--base);
    color: #ffffff;
    font-size: .95rem;
    font-weight: 500;
    text-decoration: none;
}

.actions a:hover {
    background: var(--base-deep);
    color: #ffffff;
}

.actions a + a {
    background: transparent;
    color: var(--base-deep);
}

.actions a + a:hover {
    background: var(--base-tint);
    color: var(--base-deep);
}

main > section:not(.hero) {
    display: grid;
    grid-template-columns: 13rem minmax(0, 1fr);
    gap: 1rem 3rem;
    padding: 2.75rem 3rem;
}

main > section + section {
    border-top: 1px solid var(--base-mist);
}

main > section > header {
    align-self: start;
    position: sticky;
    top: 1.5rem;
    padding-left: 1rem;
    border-left: 3px solid var(--accent);
}

main > section > header span {
    display: block;
    font-family: var(--heading);
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .14em;
    color: var(--accent);
}

main > section > header h2 {
    margin: .2rem 0 0;
    font-size: 1.32rem;
}

main > section > div {
    max-width: 44rem;
}

main > section > div > :last-child {
    margin-bottom: 0;
}

main > section > div > h3:first-child {
    margin-top: 0;
}

main section ul:not([class]) {
    padding-left: 1.2rem;
}

li::marker {
    color: var(--accent);
}

main figure {
    margin: 1.75rem 0 0;
}

main figure img {
    width: 100%;
    border-radius: 12px;
}

figcaption {
    margin-top: .6rem;
    font-size: .85rem;
    color: var(--ink-soft);
}

img[src$="office-desk.svg"],
img[src$="lake-hallwil.svg"] {
    aspect-ratio: 3 / 2;
    object-fit: cover;
    background: var(--base-tint);
}

.tally {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
    gap: .9rem;
}

.tally li {
    padding: 1.2rem 1.1rem 1.3rem;
    border-radius: 14px;
    background: var(--base-deep);
    color: #e4efec;
}

.tally strong {
    display: block;
    margin-bottom: .5rem;
    font-family: var(--heading);
    font-size: 2.6rem;
    line-height: 1;
    color: var(--accent-glow);
}

.tally span {
    font-size: .9rem;
    line-height: 1.5;
    color: #e4efec;
}

.reach {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: .8rem;
}

.reach li {
    display: flex;
    align-items: center;
    gap: .9rem;
    min-width: 0;
    padding: .85rem 1rem;
    border: 1px solid var(--base-mist);
    border-radius: 12px;
    background: var(--base-pale);
    color: var(--ink);
}

.reach img {
    width: 44px;
    height: 44px;
    flex: none;
}

.reach p {
    min-width: 0;
    margin: 0;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.reach small {
    display: block;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.steps {
    list-style: none;
    counter-reset: step;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .8rem;
}

.steps li {
    counter-increment: step;
    position: relative;
    padding: .9rem 1rem .9rem 3.6rem;
    border-radius: 12px;
    background: var(--accent-pale);
    color: var(--ink);
}

.steps li::before {
    content: counter(step);
    position: absolute;
    top: .95rem;
    left: 1rem;
    width: 1.8rem;
    height: 1.8rem;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--accent);
    color: #ffffff;
    font-size: .85rem;
    font-weight: 600;
}

.steps strong {
    color: var(--base-deep);
}

main dl {
    margin: 0;
    display: grid;
    grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
    border: 1px solid var(--base-mist);
    border-radius: 12px;
    overflow: hidden;
}

main dt,
main dd {
    margin: 0;
    padding: .75rem 1rem;
    border-top: 1px solid var(--base-mist);
}

main dt:first-of-type,
main dd:first-of-type {
    border-top: 0;
}

main dt {
    background: var(--base-pale);
    color: var(--base-deep);
    font-size: .9rem;
    font-weight: 600;
}

main dd {
    color: var(--ink);
    overflow-wrap: anywhere;
}

body > footer {
    padding: 3rem 1.25rem 1.75rem;
    background: var(--base-night);
    color: #d3e4e0;
    font-size: .92rem;
}

body > footer > div {
    max-width: 74rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, .8fr);
    gap: 2rem 3rem;
}

body > footer h2 {
    margin: 0 0 .8rem;
    font-size: .8rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent-glow);
}

body > footer .brand,
body > footer .brand strong {
    color: #ffffff;
}

body > footer .brand small {
    color: #a9c3be;
}

body > footer address {
    margin-top: 1rem;
    font-style: normal;
    line-height: 1.6;
    color: #d3e4e0;
}

body > footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .35rem;
}

body > footer li {
    overflow-wrap: anywhere;
}

body > footer a {
    color: #ffffff;
    text-decoration-color: rgba(232, 176, 186, .6);
}

body > footer a:hover,
body > footer a[aria-current] {
    color: var(--accent-glow);
}

body > footer > p {
    max-width: 74rem;
    margin: 2.5rem auto 0;
    padding-top: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .5rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, .12);
    color: #a9c3be;
    font-size: .82rem;
}

@media (max-width: 820px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.75rem;
        padding: 2.25rem 1.25rem 2rem;
    }

    main > section:not(.hero) {
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
        padding: 2rem 1.25rem;
    }

    main > section > header {
        position: static;
    }

    main dl {
        grid-template-columns: minmax(0, 1fr);
    }

    main dd {
        padding-top: .2rem;
        border-top: 0;
    }

    body > footer > div {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 420px) {
    .masthead {
        padding: 1rem .9rem 0;
    }

    main {
        width: calc(100% - 1.25rem);
    }

    .brand img {
        width: 42px;
        height: 42px;
    }

    .brand strong {
        font-size: .98rem;
    }
}
