/* =========================================================
   Buttons
   ========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 15px;
    letter-spacing: -.01em;
    transition: transform .35s cubic-bezier(.22, .7, .3, 1),
        background .25s, color .25s, border-color .25s;
    white-space: nowrap;
    border: 1px solid transparent;
}

.btn .ic {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: var(--ink);
    color: var(--paper);
}

.btn-primary:hover {
    background: var(--pine);
    transform: translateY(-1px);
}

.btn-primary .ic {
    transition: transform .35s;
}

.btn-primary:hover .ic {
    transform: translateX(4px);
}

.btn-ghost {
    color: var(--ink);
    border-color: var(--line-2);
}

.btn-ghost:hover {
    border-color: var(--ink);
    transform: translateY(-1px);
}

.btn-leaf {
    background: var(--leaf);
    color: var(--paper);
}

.btn-leaf:hover {
    background: #167E50;
    transform: translateY(-1px);
}

.btn-lg {
    padding: 18px 30px;
    font-size: 16px;
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 90;
    background: rgba(244, 241, 234, .78);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s, background .3s;
}

.site-header.scrolled {
    border-color: var(--line);
}

.hbar {
    display: flex;
    align-items: center;
    height: var(--header-h);
    gap: 36px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand .mark {
    width: 30px;
    height: 30px;
    color: var(--leaf);
}

.brand .wordmark {
    font-family: var(--font-d);
    font-weight: 600;
    font-size: 21px;
    letter-spacing: -.02em;
    color: var(--ink);
}

.brand .wordmark .dev {
    font-family: var(--font-m);
    font-size: 11px;
    font-weight: 500;
    color: var(--ink-2);
    margin-left: 3px;
    letter-spacing: 0;
}

/* Nav */
.nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 14px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--ink-2);
    border-radius: 8px;
    transition: color .2s, background .2s;
}

.nav-link:hover {
    color: var(--ink);
}

.nav-link[aria-current="true"] {
    color: var(--ink);
}

.nav-link .ic {
    width: 15px;
    height: 15px;
    color: var(--ink-3);
}

.header-cta {
    margin-left: 14px;
}

/* Dropdown */
.nav-dd {
    position: relative;
}

.dd-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 380px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 10px;
    box-shadow: 0 24px 60px -22px rgba(13, 33, 26, .30);
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity .22s, transform .22s;
}

.nav-dd.open .dd-panel {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dd-item {
    display: grid;
    grid-template-columns: 38px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: 10px;
    transition: background .2s;
}

.dd-item:hover {
    background: var(--paper);
}

.dd-glyph {
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: var(--leaf);
}

.dd-item-title {
    font-family: var(--font-d);
    font-size: 18px;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: -.01em;
}

.dd-item-desc {
    font-size: 12.5px;
    color: var(--ink-2);
}

.dd-item .ic {
    width: 16px;
    height: 16px;
    color: var(--ink-3);
}

.dd-foot {
    margin-top: 6px;
    border-top: 1px solid var(--line);
    padding-top: 10px;
}

.dd-foot a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: var(--ink-2);
}

.dd-foot a:hover {
    color: var(--ink);
}

.dd-foot .ic {
    width: 16px;
    height: 16px;
}

/* Burger */
.burger {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid var(--line-2);
    align-items: center;
    justify-content: center;
}

.burger .ic {
    width: 20px;
    height: 20px;
}

/* =========================================================
   Mobile menu
   ========================================================= */
.mmenu {
    position: fixed;
    inset: 0;
    z-index: 95;
    background: var(--paper);
    display: flex;
    flex-direction: column;
    padding: 24px 28px;
    transform: translateY(-100%);
    transition: transform .5s cubic-bezier(.7, 0, .2, 1);
}

body.menu-open .mmenu {
    transform: translateY(0);
}

body.menu-open {
    overflow: hidden;
}

.mmenu-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
    margin-bottom: 30px;
}

.mmenu-close {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid var(--line-2);
    display: grid;
    place-items: center;
}

.mmenu-close .ic {
    width: 20px;
    height: 20px;
}

.mmenu-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mmenu-link {
    font-family: var(--font-d);
    font-size: 34px;
    font-weight: 500;
    letter-spacing: -.02em;
    color: var(--ink);
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mmenu-link .ic {
    width: 24px;
    height: 24px;
    color: var(--ink-3);
}

.mmenu-sub {
    padding: 6px 0 14px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mmenu-sub a {
    font-size: 15px;
    color: var(--ink-2);
    padding: 9px 0;
    display: flex;
    gap: 10px;
    align-items: center;
}

.mmenu-sub a .ic {
    width: 15px;
    height: 15px;
    color: var(--leaf);
}

.mmenu-cta {
    margin-top: auto;
    padding-top: 30px;
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
    background: var(--pine-2);
    color: var(--paper);
    padding: 84px 0 32px;
    border-top: 1px solid var(--line-inv);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr .8fr .8fr 1fr;
    gap: 40px;
}

.footer-brand .brand .wordmark {
    color: var(--paper);
}

.footer-brand .brand .wordmark .dev {
    color: var(--leaf-2);
}

.footer-brand .brand .mark {
    color: var(--leaf-2);
}

.footer-blurb {
    margin-top: 18px;
    color: rgba(244, 241, 234, .6);
    font-size: 14px;
    line-height: 1.6;
    max-width: 300px;
}

.status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
    font-family: var(--font-m);
    font-size: 12px;
    letter-spacing: .1em;
    color: rgba(244, 241, 234, .7);
    text-transform: uppercase;
}

.status .sdot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--leaf-2);
    animation: breathe 2s infinite;
}

@keyframes breathe {

    0%,
    100% {
        opacity: .6;
    }

    50% {
        opacity: 1;
    }
}

.footer-col h4 {
    font-family: var(--font-m);
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--leaf-2);
    margin-bottom: 20px;
    font-weight: 500;
}

.footer-col a {
    display: block;
    padding: 8px 0;
    color: rgba(244, 241, 234, .74);
    font-size: 14.5px;
    transition: color .2s;
}

.footer-col a:hover {
    color: var(--paper);
}

.footer-col a.mail {
    font-family: var(--font-d);
    font-size: 18px;
    color: var(--paper);
    font-weight: 500;
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 24px;
    border-top: 1px solid var(--line-inv);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom .mono {
    font-family: var(--font-m);
    font-size: 11.5px;
    color: rgba(244, 241, 234, .5);
    letter-spacing: .06em;
}

.to-top {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-m);
    font-size: 11.5px;
    letter-spacing: .1em;
    color: rgba(244, 241, 234, .7);
    text-transform: uppercase;
}

.to-top .ic {
    width: 14px;
    height: 14px;
}

/* =========================================================
   Toast
   ========================================================= */
#toast-root {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.toast {
    background: var(--ink);
    color: var(--paper);
    padding: 14px 18px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    box-shadow: 0 18px 40px -14px rgba(13, 33, 26, .4);
    transform: translateY(20px);
    opacity: 0;
    transition: transform .35s, opacity .35s;
    max-width: 340px;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast .ic {
    width: 18px;
    height: 18px;
    color: var(--leaf-2);
    flex-shrink: 0;
}

/* =========================================================
   Header / Footer responsive
   ========================================================= */
@media (max-width: 1080px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 820px) {

    .nav,
    .header-cta {
        display: none;
    }

    .burger {
        display: flex;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .mmenu-link {
        font-size: 28px;
    }

    .wrap {
        padding: 0 24px;
    }
}