@font-face {
    font-family: "AfterText";
    src: url("fonts/AfterText-Regular.251b7977fec6.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "AfterText";
    src: url("fonts/AfterText-Medium.cf78ee75e93f.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "AfterText";
    src: url("fonts/AfterText-Bold.ddf76f5cdab6.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --white: #ffffff;
    --off-white: #f4f2ee;
    --grey-01: #d5d5d5;
    --grey-02: #bababa;
    --grey-03: #a4a4a4;
    --grey-04: #5b5b5b;
    --grey-05: #373737;
    --grey-06: #544d4b;
    --black: #000000;
    --orange: #ff4d00;

    --gutter: 1.5rem;
    --gutter-lg: 2.5rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    background: var(--off-white);
    color: var(--black);
    font-family:
        "AfterText",
        system-ui,
        -apple-system,
        "Helvetica Neue",
        Arial,
        sans-serif;
    font-weight: 400;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

a {
    color: inherit;
}

/* ---------- Header ---------- */

.site-header {
    padding: var(--gutter);
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.site-header__logo {
    display: block;
    height: 2rem;
    width: auto;
}

/* ---------- Hero (mobile-first) ---------- */

.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem var(--gutter);
}

.hero__headline {
    font-size: clamp(1.25rem, 5.2vw, 1.5rem);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
}

.hero__headline > span {
    display: block;
}

.hero__right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero__copy {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 1rem;
    line-height: 1.45;
    max-width: 36rem;
}

.hero__cta-wrap {
    padding-top: 0.5rem;
}

.cta {
    display: inline-block;
    width: 100%;
    background: var(--orange);
    color: var(--white);
    border: 0;
    border-radius: 2px;
    padding: 1.1rem 1.5rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
}

/* ---------- Waitlist dialog ---------- */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.waitlist-dialog {
    margin: auto;
    border: 0;
    padding: 0;
    border-radius: 6px;
    width: min(28rem, calc(100vw - 2rem));
    background: var(--white);
    color: var(--black);
}

.waitlist-dialog::backdrop {
    background: rgba(0, 0, 0, 0.5);
}

.waitlist-dialog__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem 0.75rem;
}

.waitlist-dialog__title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 500;
}

.waitlist-dialog__close {
    background: transparent;
    border: 0;
    padding: 0.25rem;
    margin: -0.25rem;
    color: inherit;
    cursor: pointer;
    line-height: 0;
    border-radius: 2px;
}

.waitlist-dialog__close:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 2px;
}

.waitlist-dialog__body {
    padding: 0.5rem 1.5rem 1.5rem;
}

.waitlist {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.waitlist input[type="email"] {
    width: 100%;
    padding: 0.85rem 1rem;
    font: inherit;
    color: var(--black);
    background: var(--off-white);
    border: 1px solid var(--grey-01);
    border-radius: 3px;
}

.waitlist input[type="email"]::placeholder {
    color: var(--grey-03);
}

.waitlist input[type="email"]:focus {
    outline: 2px solid var(--orange);
    outline-offset: 1px;
}

.waitlist__error {
    margin: 0;
    min-height: 1.25rem;
    color: var(--orange);
    font-size: 0.875rem;
}

.waitlist button[type="submit"] {
    width: 100%;
    background: var(--orange);
    color: var(--white);
    border: 0;
    border-radius: 2px;
    padding: 1.1rem 1.5rem;
    font: inherit;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
}

.waitlist button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.waitlist--success {
    padding: 0.5rem 0 0.75rem;
    font-size: 1rem;
}

/* ---------- Footer ---------- */

.site-footer {
    padding: var(--gutter);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--grey-04);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.site-footer__legal a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.site-footer__icons {
    display: inline-flex;
    align-items: center;
    gap: 0.875rem;
}

.site-footer__icon-link {
    display: inline-flex;
    color: inherit;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 120ms ease;
    position: relative;
}

.site-footer__icon-link::before {
    content: "";
    position: absolute;
    inset: -0.75rem;
}

.site-footer__icon-link:hover,
.site-footer__icon-link:focus-visible {
    opacity: 1;
}

.site-footer__icon-link svg {
    display: block;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---------- Page ---------- */

.page {
    max-width: 42rem;
    margin: 0 auto;
    padding: 3rem var(--gutter) 4rem;
    line-height: 1.6;
}

.page h2 {
    font-size: 1.75rem;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.page h3 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

.page p {
    margin-bottom: 1rem;
}

.page ul {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

.page li {
    margin-bottom: 0.4rem;
}

.page a {
    text-decoration: underline;
}

/* ---------- Desktop ---------- */

@media (min-width: 900px) {
    .site-header {
        padding: var(--gutter-lg);
    }

    .site-header__logo {
        height: 2.25rem;
    }

    .hero {
        padding: var(--gutter-lg);
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 2rem;
        align-content: center;
        flex: 1;
    }

    .hero__headline {
        align-self: start;
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 2rem;
        font-size: clamp(0.95rem, 1vw, 1.05rem);
    }

    .hero__right {
        display: grid;
        grid-template-columns: 1fr auto;
        column-gap: 2rem;
        align-items: start;
    }

    .hero__copy {
        align-self: start;
        font-size: 0.95rem;
        line-height: 1.5;
        max-width: 28rem;
    }

    .hero__cta-wrap {
        padding-top: 0;
    }

    .cta {
        width: auto;
        padding: 0.85rem 1.5rem;
        font-size: 0.85rem;
    }

    .site-footer {
        padding: var(--gutter-lg);
    }
}
