.masthead {
    position: relative;
    padding: 1.7rem 0 0;
    background: var(--sheet);
    border-bottom: 1px solid var(--line);
    text-align: center;
}

.brand {
    display: inline-block;
    border-radius: var(--radius-sm);
}

.brand svg {
    width: 12.5rem;
    height: auto;
}

.brand-sub {
    display: block;
    margin-top: .1rem;
    font-size: .72rem;
    letter-spacing: .32em;
    text-transform: uppercase;
    color: var(--grey);
}

.langs {
    position: absolute;
    top: 1.1rem;
    right: max(1.25rem, calc((100% - 68rem) / 2));
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .08em;
    color: var(--grey);
}

.langs a {
    padding: .25rem .5rem;
    border-radius: 8px;
    color: var(--ink-soft);
    text-decoration: none;
}

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

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

.sections ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .2rem 1.5rem;
    padding: .9rem 1rem 1rem;
}

.sections a {
    color: var(--ink);
    font-size: .95rem;
    text-decoration: none;
    border-bottom: 2px solid transparent;
}

.sections a:hover {
    color: var(--base);
    border-bottom-color: var(--accent);
}

@media (max-width: 600px) {
    .masthead {
        padding-top: .9rem;
    }

    .langs {
        position: static;
        display: flex;
        justify-content: center;
        gap: .2rem;
        margin-bottom: .7rem;
    }

    .sections ul {
        gap: .15rem 1rem;
    }
}

main > section {
    padding: 4.5rem 0;
}

.margin .num {
    display: block;
    margin-bottom: .4rem;
    font-family: var(--serif);
    font-size: .95rem;
    letter-spacing: .14em;
    color: var(--accent-deep);
}

.margin .num::after {
    content: "";
    display: block;
    width: 2.4rem;
    height: 3px;
    margin-top: .5rem;
    border-radius: 2px;
    background: var(--accent);
}

.margin p {
    font-size: .95rem;
    color: var(--ink-soft);
}

.hero {
    background-color: var(--paper);
    background-image: url("../img/pattern.svg");
    background-size: 56px 56px;
}

.hero .doc {
    grid-template-columns: 1.25fr 1fr;
    align-items: center;
}

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

.lead {
    font-size: 1.2rem;
    color: var(--ink-soft);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    margin-top: 1.6rem;
}

.button {
    display: inline-block;
    padding: .7rem 1.3rem;
    border: 2px solid var(--accent);
    border-radius: 12px;
    background: var(--accent);
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
}

.button:hover {
    border-color: var(--accent-deep);
    background: var(--accent-deep);
    color: #ffffff;
}

.button.quiet {
    border-color: var(--base);
    background: transparent;
    color: var(--base);
}

.button.quiet:hover {
    background: var(--base);
    color: #ffffff;
}

.hero figure {
    margin: 0;
    padding: 1rem;
    border-radius: 16px;
    background: var(--sheet);
    box-shadow: 0 18px 40px -24px hsla(161, 40%, 20%, .45);
}

@media (max-width: 760px) {
    .hero .doc {
        grid-template-columns: 1fr;
    }

    .hero figure {
        max-width: 20rem;
    }
}

.slant {
    padding: calc(var(--slant) + 4rem) 0;
    background: var(--base-tint);
    color: var(--ink);
    clip-path: polygon(0 var(--slant), 100% 0, 100% calc(100% - var(--slant)), 0 100%);
}

.slant.flip {
    clip-path: polygon(0 0, 100% var(--slant), 100% 100%, 0 calc(100% - var(--slant)));
}

main > .slant {
    padding: calc(var(--slant) + 4rem) 0;
}

.slant.dark {
    background: var(--base-deep);
    color: hsl(161, 30%, 92%);
}

.slant.dark .margin .num {
    color: var(--accent-soft);
}

.slant.dark .margin .num::after {
    background: var(--accent-soft);
}

.slant.dark .margin p {
    color: hsl(161, 22%, 82%);
}

.slant.dark a {
    color: var(--accent-soft);
}

.slant.warm {
    background: var(--accent-tint);
    color: var(--ink);
}

.roles {
    display: grid;
    gap: 1rem;
}

.roles li {
    display: grid;
    grid-template-columns: 3rem 1fr;
    gap: 1.1rem;
    padding: 1.4rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--sheet);
    color: var(--ink);
}

.roles h3 {
    margin-bottom: .35rem;
    color: var(--base-deep);
}

.roles p {
    margin: 0;
    color: var(--ink-soft);
}

.icon {
    width: 3rem;
    height: 3rem;
    padding: .55rem;
    border-radius: 12px;
    background: var(--base-tint);
    color: var(--base);
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr));
    gap: 1.1rem;
}

.cards li {
    padding: 1.4rem;
    border-radius: var(--radius);
    background: var(--sheet);
    color: var(--ink);
}

.cards h3 {
    margin: .9rem 0 .4rem;
    color: var(--base-deep);
}

.cards p {
    margin: 0;
    font-size: .97rem;
    color: var(--ink-soft);
}

.cards .icon {
    background: var(--accent-tint);
    color: var(--accent-deep);
}

.split {
    display: grid;
    grid-template-columns: 1fr 15rem;
    gap: 2.5rem;
    align-items: start;
}

.reach {
    margin: 0;
    padding: 1.2rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--sheet);
    color: var(--ink);
}

.reach img {
    width: 100%;
    max-width: 13rem;
    margin: 0 auto 1rem;
}

.reach ol {
    display: grid;
    gap: .35rem;
    font-size: .92rem;
    counter-reset: ring;
}

.reach li {
    display: flex;
    align-items: center;
    gap: .6rem;
    counter-increment: ring;
}

.reach li::before {
    content: counter(ring);
    display: grid;
    place-items: center;
    flex: none;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    background: var(--base);
    color: #ffffff;
    font-size: .8rem;
    font-weight: 600;
}

.reach li:first-child::before {
    background: var(--accent);
}

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

    .reach {
        max-width: 22rem;
    }
}

.timeline {
    position: relative;
    display: grid;
    gap: 1.6rem;
    padding-left: 2.2rem;
}

.timeline::before {
    content: "";
    position: absolute;
    top: .5rem;
    bottom: .5rem;
    left: .55rem;
    border-left: 2px dashed var(--base);
}

.timeline li {
    position: relative;
}

.timeline li::before {
    content: "";
    position: absolute;
    top: .35rem;
    left: -2.2rem;
    width: 1.1rem;
    height: 1.1rem;
    border: 3px solid var(--paper);
    border-radius: 50%;
    background: var(--accent);
}

.timeline h3 {
    margin-bottom: .3rem;
    color: var(--base-deep);
}

.timeline p {
    margin: 0;
    color: var(--ink-soft);
}

.callout {
    padding: 1.8rem;
    border-radius: 16px;
    background: var(--sheet);
    color: var(--ink);
    box-shadow: 0 18px 40px -28px hsla(341, 50%, 30%, .5);
}

.callout .dial {
    display: inline-block;
    margin: .3rem 0 1rem;
    font-family: var(--serif);
    font-size: 1.7rem;
    color: var(--base);
    text-decoration: none;
    border-bottom: 3px solid var(--accent);
}

.callout .dial:hover {
    color: var(--accent-deep);
}

.callout p:last-child {
    margin: 0;
    color: var(--ink-soft);
}

.policy .body h2 {
    margin-top: 2.2rem;
    font-size: 1.5rem;
    color: var(--base-deep);
}

.policy .body h2:first-child {
    margin-top: 0;
}

.policy .body ul {
    margin: 0 0 1em;
}

.policy .body li {
    position: relative;
    margin-bottom: .4rem;
    padding-left: 1.3rem;
}

.policy .body li::before {
    content: "";
    position: absolute;
    top: .65em;
    left: 0;
    width: .5rem;
    height: .5rem;
    border-radius: 2px;
    background: var(--accent);
    transform: rotate(45deg);
}

.toc {
    margin-top: 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--sheet);
    font-size: .9rem;
}

.toc li + li {
    margin-top: .3rem;
}

.toc a {
    color: var(--ink-soft);
    text-decoration: none;
}

.toc a:hover {
    color: var(--accent-deep);
    text-decoration: underline;
}

.stamp {
    display: inline-block;
    padding: .3rem .7rem;
    border-radius: 8px;
    background: var(--base-tint);
    color: var(--base-deep);
    font-size: .9rem;
    font-weight: 600;
}

.site-foot {
    padding: calc(var(--slant) + 3.5rem) 0 2rem;
    background: var(--ink);
    color: hsl(161, 10%, 84%);
    clip-path: polygon(0 var(--slant), 100% 0, 100% 100%, 0 100%);
    font-size: .95rem;
}

.site-foot .cols {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 2rem 3rem;
}

.site-foot h2 {
    margin-bottom: .8rem;
    font-size: 1.15rem;
    color: #ffffff;
}

.site-foot p,
.site-foot li {
    margin: 0 0 .5rem;
}

.site-foot a {
    color: var(--accent-soft);
    overflow-wrap: anywhere;
}

.site-foot a:hover {
    color: #ffffff;
}

.site-foot address strong {
    color: #ffffff;
    font-weight: 600;
}

.site-foot .label {
    display: block;
    font-size: .75rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: hsl(161, 8%, 66%);
}

.site-foot .copy {
    margin-top: 2.5rem;
    padding-top: 1.2rem;
    border-top: 1px solid hsl(161, 8%, 28%);
    color: hsl(161, 8%, 70%);
    font-size: .88rem;
}

@media (max-width: 760px) {
    .site-foot .cols {
        grid-template-columns: 1fr;
    }
}

.policy h1 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: var(--base-deep);
}

.policy .doc > .margin {
    position: static;
}

#history .timeline li::before {
    border-color: var(--base-tint);
}
