/* ---------- Fonts ---------- */

@font-face {
    font-family: "Söhne Breit";
    src: url("assets/soehne-breit-leicht.woff2") format("woff2");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* ---------- Tokens ---------- */

:root {
    --bg: #000000;
    --fg: #e9daff;          /* lavender — wordmark, headline, primary text */
    --muted: #796aa2;       /* dusty purple — body, pill border, dividers */
    --accent: #28213d;      /* deep purple — secondary CTA bg */
    --accent-border: #3c315b;
    --on-primary: #191131;  /* near-black ink on the lavender CTA */

    --font-display: "Söhne Breit", "Helvetica Neue", Arial, sans-serif;
    --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

    color-scheme: dark;
}

/* ---------- Reset ---------- */

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-mono);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

main {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
}

/* ---------- Hero (wordmark + chairs) ---------- */

.hero {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative; /* anchor for the .motes canvas overlay */
}

/* Ambient dust canvas — sits above the chairs, below the page content. */
.motes {
    position: absolute;
    top: 0;
    /* Bleed past the hero's padding so motes drift across the whole viewport. */
    left: calc(50% - 50vw);
    width: 100vw;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    display: block;
}

.wordmark {
    /* Negative bottom margin pulls the chairs up so they paint over the
       bottom portion of "Row". Tuned in em so it scales with font-size. */
    margin: 0 0 -0.4em;
    font-family: var(--font-display);
    font-weight: 300;
    /* caps at 127px so the wordmark stays narrow enough to align with the
       tablet-width content card; desktop bumps it up below. */
    font-size: clamp(80px, 22vw, 127px);
    line-height: 0.83;
    letter-spacing: -0.01em;
    color: var(--fg);
    text-align: left;
    width: 100%;
    max-width: 460px;       /* match .pitch / .ctas on mobile + desktop */
    position: relative;
    z-index: 0;             /* paint behind .chairs */
}

.wordmark span {
    display: block;
}

/* Subtle parallax: the wordmark scrolls a little slower than the chairs
   in front of it, so as the page moves the chairs lift away faster.
   Uses scroll-driven animations (Chromium/Firefox/Safari 18+); falls back
   to no parallax in older browsers and respects reduced-motion. */
@supports (animation-timeline: scroll()) {
    @media (prefers-reduced-motion: no-preference) {
        @keyframes wordmark-parallax {
            to { transform: translateY(60px); }
        }

        .wordmark {
            animation: wordmark-parallax linear both;
            animation-timeline: scroll(root block);
            animation-range: 0 400px;
            will-change: transform;
        }
    }
}

.chairs {
    /* Full-bleed: span the viewport edge-to-edge, bypassing the flex column's
       align-items: center so the band always pins to viewport center. */
    align-self: stretch;
    width: auto;
    margin-top: 40px;       /* breathing room below the wordmark */
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow: hidden;
    line-height: 0;
    position: relative;
    z-index: 1;             /* paint over the bottom of the wordmark */
    /* Fixed-height band; the image fills the height and overflows the sides,
       so the center chair stays centered while the outer chairs crop off. */
    height: clamp(300px, 40vw, 540px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.chairs img {
    display: block;
    height: 100%;
    width: auto;
    max-width: none;
    flex-shrink: 0;
    pointer-events: none;
    user-select: none;
}

/* ---------- Pitch (eyebrow + headline + body) ---------- */

.pitch {
    width: 100%;
    max-width: 460px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.eyebrow {
    margin: 0;
    padding: 4px 12px;
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.1;
    color: var(--muted);
    border: 1px solid var(--muted);
    border-radius: 100px;
}

.headline {
    margin: 0;
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 28px;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--fg);
}

.body {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 16px;
    line-height: 1.7;
    letter-spacing: -0.32px;
    color: var(--muted);
}

/* ---------- CTAs ---------- */

.ctas {
    width: 100%;
    max-width: 460px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 16px;
    border-radius: 100px;
    border: 2px solid transparent;
    font-family: var(--font-mono);
    font-size: 16px;
    line-height: 2;
    letter-spacing: -0.32px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.cta-primary {
    background: var(--fg);
    border-color: #ffffff;
    color: var(--on-primary);
}

.cta-primary[disabled],
.cta-primary[aria-disabled="true"] {
    cursor: default;
    opacity: 1; /* design shows it at full opacity — “coming soon” is the message */
}

.cta-secondary {
    background: var(--accent);
    border-color: var(--accent-border);
    color: var(--fg);
}

.cta-secondary:hover,
.cta-secondary:focus-visible {
    border-color: var(--fg);
    outline: none;
}

.cta-secondary:active {
    transform: scale(0.99);
}

/* "and" separator with horizontal rules either side */
.separator {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 90px;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 16px;
    line-height: 1.7;
}

.separator .rule {
    flex: 1 0 0;
    height: 1px;
    background: var(--muted);
}

.separator .and {
    flex: 0 0 auto;
}

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

footer {
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: center;
}

footer nav {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 16px;
    line-height: 1.7;
}

footer a {
    color: var(--fg);
    text-decoration: none;
}

footer a:hover,
footer a:focus-visible {
    text-decoration: underline;
    outline: none;
}

footer .divider {
    color: var(--muted);
}

/* ---------- Tablet ≥ 768px ---------- */

@media (min-width: 768px) {
    main {
        padding: 40px;
        gap: 10px;
    }

    .wordmark,
    .pitch,
    .ctas {
        max-width: 320px;       /* same column as content card */
        align-self: center;
    }
}

/* ---------- Desktop ≥ 1024px ---------- */

@media (min-width: 1024px) {
    main {
        padding: 40px;
        gap: 40px;
    }

    .hero {
        position: relative;
    }

    /* Wordmark column matches the content card below for a clean left-edge alignment */
    .wordmark {
        max-width: 460px;
        font-size: clamp(140px, 13vw, 180px);
    }

    .pitch,
    .ctas {
        max-width: 460px;
    }

    .headline {
        font-size: 36px;
    }

    .pitch {
        gap: 10px;
    }

    .ctas {
        margin-top: 30px;
    }
}
