:root {
    --founder-aubergine: #3b2134;
    --founder-aubergine-deep: #25151f;
    --founder-stone: #e8e2da;
    --founder-stone-light: #f3f0eb;
    --founder-copper: #a75832;
    --founder-teal: #27646a;
    --founder-ink: #1b1a1a;
    --founder-muted: #68615d;
}

.founder-display {
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: -0.046em;
}

body.founder-menu-open {
    overflow: hidden;
}

.founder-shell-nav,
.founder-shell-footer {
    font-family: Inter, Arial, Helvetica, sans-serif;
}

.founder-shell-nav {
    max-width: 100vw;
}

.founder-shell-nav > div > a:first-child {
    max-width: calc(100% - 3.5rem);
}

.founder-shell-nav [data-founder-menu-button] {
    display: inline-flex !important;
}

.founder-share-status {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 12px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.founder-share-status.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.founder-back-to-top {
    position: fixed;
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
    z-index: 50;
    display: inline-flex;
    width: 3rem;
    height: 3rem;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: var(--founder-aubergine);
    color: #fff;
    font: 700 1.2rem/1 Inter, Arial, Helvetica, sans-serif;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(0.5rem);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease,
        background-color 180ms ease;
}

.founder-back-to-top.is-visible {
    opacity: 0.92;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.founder-back-to-top:hover {
    background: var(--founder-aubergine-deep);
    opacity: 1;
}

.founder-back-to-top:focus-visible {
    outline: 3px solid var(--founder-copper);
    outline-offset: 3px;
}

.founder-back-to-top .founder-back-to-top__icon {
    width: 1rem;
    height: 1rem;
    stroke-width: 2.25;
}

@media (min-width: 640px) {
    .founder-back-to-top {
        right: max(2rem, env(safe-area-inset-right));
        bottom: max(2rem, env(safe-area-inset-bottom));
    }
}

@media (prefers-reduced-motion: reduce) {
    .founder-back-to-top {
        transition: none;
    }
}

@media (min-width: 1280px) {
    body.founder-menu-open {
        overflow: auto;
    }

    .founder-shell-nav [data-founder-menu-button] {
        display: none !important;
    }
}
