@font-face {
    font-family: "Open Sans";
    src: url("/fonts/OpenSans-Regular.ttf");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "Open Sans";
    src: url("/fonts/OpenSans-Semibold.ttf");
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: "Open Sans";
    src: url("/fonts/OpenSans-Bold.ttf");
    font-weight: 700;
    font-style: normal;
}


:root {
    accent-color: #2c8324;
    --primary: #2c8324;

    --base: #f9fafa;
    --base-light: #fff;
    --base-dark: #eef1f1;

    --border: #6a787c;
    --text: #101b1e;
    --text-soft: #6a787c;
    --label: #6a787c;
    --title: #101b1e;
    --headline: #2b3336;
    --link: #2b3336;

    --badge-height: 42.5dvh;
    --ribbon-size: calc(0.75rem + 1.125vmin);
    --py: calc(1rem + 1vmin);
    --py-l: calc(2rem + 2vmin);
}

* {
    box-sizing: border-box;
}

html {
    background: var(--base);
    font-size: 100%;
}

html,
body {
    height: 100%;
    width: 100%;
}

body {
    display: grid;
    margin: 0;
    font:
        normal 400 1rem/1.65 "Open Sans",
        "Helvetica Neue",
        Helvetica,
        Arial,
        system-ui,
        "sans-serif";
    color: var(--text);
}

.s-primary {
    --base: #2c8324;
    --base-dark: #1d7122;
    --text: #fff;
}

.s-soft {
    --base: var(--base-dark);
}

.h1-badge .lg {
    font-weight: 700;
    font-size: calc(1.25em + 0.65vw);
    line-height: 1.35;
}

.h1-badge .sm {
    font-size: calc(1.0em + 0.65vw);
}

.container {
    margin: 0 auto;
    max-width: 75rem;
    padding-inline: 0.5rem;
    width: 100%;
}

header {
    background: var(--base);
    color: var(--text);
    padding: var(--py);
}

.logo {
    display: block;
    margin: 0 auto;
    width: 7.5rem;
}

main > .container {
    display: grid;
    gap: 1.5rem;
    grid-template:
        "ribbon content" auto
        / calc(var(--ribbon-size) * 2) 1fr;
    padding-bottom: var(--py);
    min-height: var(--badge-height);
}

section {
    background: var(--base);
    padding-block: var(--py-l);
}

main section .text {
    text-align: left;
}

h1.h1-badge {
    font: inherit;
    line-height: 1.85;
    margin: auto;
    position: relative;
    padding-bottom: 1.5%;

    & span {
        display: block;
    }
}

.ribbon {
    background: var(--primary);
    color: transparent;
    font-size: 0;
    pointer-events: none;
    height: calc(100% - var(--ribbon-size));
    border: var(--ribbon-size) solid var(--primary);
    border-bottom-color: var(--base);
    border-top: 0;
}

p {
    margin: 0.75em 0;

    &:first-child {
        margin-top: 0;
    }

    &:last-child {
        margin-bottom: 0;
    }
}

.btn-group {
    display: flex;
    gap: 0.5em;
    justify-content: center;
}

.btn,
.social {
    appearance: none;
    border: 1px solid;
    text-decoration: none;
    border-radius: 4px;
    transition: 0.15s ease background-color;
    text-align: center;
    font: inherit;
    cursor: pointer;
    user-select: none;
}

.social {
    background: transparent;
    color: var(--link);
    border-color: var(--text-soft);
    padding: 0.75em;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;

    &:hover,
    &:active {
        background: var(--base-dark);
    }
}

.btn {
    display: inline-block;
    background: var(--base);
    border-color: transparent;
    color: var(--text);
    padding: 0.75em 1.25em;
    line-height: 1.25;
    font-weight: 600;

    &:hover:not(:active) {
        background: var(--base-dark);
    }
}

.icon {
    display: inline-block;
    vertical-align: middle;
    height: 1.5em;
}

.icon-linkedin {
    margin-right: -0.175em;
}

.icon-link {
    filter: brightness(0);
    font-size: 1.25em;
    display: flex;
    justify-content: center;
    width: 1.25em;
    margin-top: -0.1em;
}

.icon-check {
    position: absolute;
    inset: 0;
    background: var(--primary);
    color: var(--base-light);
    font-size: 1.5em;
    display: flex;
    opacity: 0;
    transition: opacity 0.3s ease;

    &::after {
        content: "";
        margin: auto;
        width: 0.675em;
        height: 0.25em;
        border-left: 3px solid;
        border-bottom: 3px solid;
        rotate: -45deg;
        translate: 0 -30%;
        scale: 0.75;
        transition: scale 0.3s ease;
    }
}

.tooltip {
    left: 100%;
    margin-left: 8px;
    position: absolute;
    background: var(--text);
    color: var(--base);
    border-radius: 0.25em;
    font-size: 0.875rem;
    white-space: nowrap;
    padding: 0.375em 0.5em;
    top: 50%;
    translate: 0 -50%;

    &::before {
        content: "";
        border: 5px solid transparent;
        border-left: 0;
        border-right-color: var(--text);
        position: absolute;
        right: 100%;
        top: 50%;
        margin-top: -5px;
    }
}

.copy-link-success {
    .icon-check {
        opacity: 1;
        transition-duration: 0.1s;

        &::after {
            scale: 1;
        }
    }
}

a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.25em;
}

footer {
    background: var(--base-dark);
    color: var(--text);
    padding-block: var(--py);
    margin-top: auto;

    p {
        margin: 0;
    }
}

.footer-links {
    display: flex;
    gap: 1em;
}

@media only screen and (min-width: 30em) {
    body {
        text-align: center;
    }

    main > .container {
        grid-template:
            "ribbon content placeholder" auto
            / calc(var(--ribbon-size) * 2) 1fr calc(var(--ribbon-size) * 2);
    }

    footer > .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

@media only screen and (min-width: 30em) and (max-width: 90em) {
    .container {
        max-width: 90vw;
    }
}
