:root {
    --bg: #ECEBF5;
    --ink: #23204A;
    --honey: #F5B335;
    --honey-d: #8A5A00;
    --teal: #1F8A7D;
    --paper: #F8F7FC;
    --head: "Bricolage Grotesque", system-ui, sans-serif;
    --body: "Instrument Sans", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #1B1838;
        --ink: #ECEBF5;
        --paper: #25214A;
        --honey-d: #F5B335
    }
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 400 1.05rem/1.6 var(--body)
}

h1, h2, h3 {
    font-family: var(--head);
    line-height: 1.1;
    margin: 0
}

a {
    color: inherit
}

:focus-visible {
    outline: 3px solid var(--teal);
    outline-offset: 3px
}

.top {
    position: absolute;
    inset: 0 0 auto 0;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem clamp(1rem, 5vw, 3rem)
}

.logo {
    font: 800 1.25rem var(--head);
    text-decoration: none
}

.top nav {
    display: flex;
    gap: 1.5rem;
    align-items: center
}

.top nav a {
    text-decoration: none
}

.btn {
    display: inline-block;
    background: var(--honey);
    color: #23204A;
    font: 600 1rem var(--body);
    padding: .8rem 1.6rem;
    border: 0;
    border-radius: 999px;
    text-decoration: none;
    cursor: pointer;
    transition: transform .15s
}

.btn:hover {
    transform: translateY(-2px)
}

.btn.small {
    padding: .45rem 1.1rem
}

.hero {
    position: relative;
    min-height: 100svh;
    display: grid;
    align-items: center;
    overflow: hidden
}

#hive {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%
}

.hero-text {
    position: relative;
    z-index: 1;
    padding: 6rem clamp(1rem, 5vw, 3rem) 3rem;
    max-width: 44rem;
    pointer-events: none
}

.hero-text > * {
    pointer-events: auto
}

.hero h1 {
    font-size: clamp(2.4rem, 7vw, 5rem);
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: 1.25rem
}

.hero p {
    max-width: 34rem;
    margin: 0 0 2rem;
    font-size: 1.2rem
}

.wrap {
    padding: 5rem clamp(1rem, 5vw, 3rem);
    max-width: 70rem;
    margin: 0 auto
}

.wrap h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin-bottom: 2rem
}

.alt {
    max-width: none;
    background: var(--paper)
}

.alt > * {
    max-width: 62rem;
    margin-inline: auto
}

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

.cells li {
    padding-left: 3.2rem;
    position: relative
}

.cells li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .1rem;
    width: 2.2rem;
    height: 2.5rem;
    background: var(--honey);
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%)
}

.cells li:nth-child(2)::before {
    background: var(--teal)
}

.cells li:nth-child(3)::before {
    background: var(--ink)
}

.cells h3 {
    font-size: 1.35rem;
    margin-bottom: .4rem
}

.cells p {
    margin: 0
}

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

.steps li {
    counter-increment: s;
    padding-left: 3.5rem;
    position: relative;
    max-width: 40rem
}

.steps li::before {
    content: counter(s);
    position: absolute;
    left: 0;
    top: -.15rem;
    width: 2.4rem;
    height: 2.4rem;
    display: grid;
    place-items: center;
    background: var(--honey);
    color: #23204A;
    font: 800 1.1rem var(--head);
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%)
}

.join form {
    max-width: 34rem
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: .5rem
}

.row {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap
}

input {
    flex: 1 1 14rem;
    padding: .8rem 1.1rem;
    font: inherit;
    color: var(--ink);
    background: var(--paper);
    border: 2px solid var(--ink);
    border-radius: 999px
}

input[aria-invalid="true"] {
    border-color: #C0392B
}

#msg {
    min-height: 1.6rem;
    margin: .75rem 0 0
}

#msg.err {
    color: #C0392B
}

#msg.ok {
    color: var(--teal);
    font-weight: 600
}

footer {
    padding: 2rem clamp(1rem, 5vw, 3rem);
    border-top: 2px solid var(--ink);
    font-size: .9rem
}

@media (max-width: 560px) {
    .top nav a:not(.btn) {
        display: none
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto
    }

    .btn {
        transition: none
    }
}