/*
 * LEAP
 * Navy and white, with each product's own color appearing only on that
 * product. Unbounded for headlines, Hanken Grotesk for everything read.
 * The one loud moment is the hero: the spring from the LEAP mark launches an
 * arc that lands on Parsey, Graphly and Evidence.
 */

@font-face {
    font-family: "Unbounded";
    src: url("/assets/fonts/unbounded-normal.woff2") format("woff2");
    font-weight: 200 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Hanken Grotesk";
    src: url("/assets/fonts/hanken-normal.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Hanken Grotesk";
    src: url("/assets/fonts/hanken-italic.woff2") format("woff2");
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

:root {
    --ink: #121a33;
    --paper: #ffffff;
    --haze: #f1f4fa;
    --slate: #4e5873;
    --hairline: rgba(18, 26, 51, 0.14);

    --parsey: #eb4812;
    --graphly: #3dc3c0;
    --evidence: #0067ff;

    --wrap: 72rem;
    --gutter: clamp(1.25rem, 4vw, 2.5rem);
    --section: clamp(4.5rem, 10vw, 8rem);

    --text: clamp(1.0625rem, 1rem + 0.2vw, 1.125rem);
    --text-small: 0.9375rem;
    --h3: 1.25rem;
    --h2: clamp(1.875rem, 1.3rem + 2.4vw, 3rem);
    --h1: clamp(2.4rem, 1.2rem + 4.6vw, 4.75rem);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

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

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: var(--text);
    line-height: 1.6;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: "Unbounded", "Hanken Grotesk", system-ui, sans-serif;
    text-wrap: balance;
}

h2 {
    font-size: var(--h2);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.015em;
}

h3 {
    font-size: var(--h3);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.005em;
}

p,
dd {
    margin: 0;
    text-wrap: pretty;
}

a {
    color: inherit;
}

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

.wrap {
    width: 100%;
    max-width: calc(var(--wrap) + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.skip-link {
    position: absolute;
    left: var(--gutter);
    top: -4rem;
    z-index: 10;
    padding: 0.6rem 1rem;
    background: var(--ink);
    color: var(--paper);
    border-radius: 999px;
}

.skip-link:focus {
    top: 1rem;
}

/* Buttons */

.button {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 3.25rem;
    padding: 0.75rem 1.6rem;
    border-radius: 999px;
    background: var(--ink);
    color: var(--paper);
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 150ms ease;
}

.button:hover {
    background: #26305a;
}

.button--light {
    background: var(--paper);
    color: var(--ink);
}

.button--light:hover {
    background: var(--haze);
}

.button img {
    width: 1.5rem;
    height: 1.5rem;
}

/* Header */

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-block: 1.5rem;
}

.brand {
    display: inline-flex;
    color: var(--ink);
}

.brand__logo {
    width: auto;
    height: 1.9rem;
}

.site-nav {
    display: flex;
    gap: clamp(1.25rem, 3vw, 2.25rem);
    font-weight: 600;
    font-size: var(--text-small);
}

.site-nav a {
    color: var(--slate);
    text-decoration: none;
}

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

/* Hero */

.hero {
    padding-block: clamp(2.5rem, 7vw, 6rem) var(--section);
}

.hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 4rem);
}

.hero h1 {
    font-size: var(--h1);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.025em;
}

.hero__lede {
    max-width: 30ch;
    margin: 1.5rem 0 2.25rem;
    font-size: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
    line-height: 1.5;
    color: var(--slate);
}

.leap {
    margin: 0;
}

.leap__art {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.leap__path {
    fill: none;
    stroke: var(--ink);
    stroke-width: 5;
    stroke-linecap: round;
    stroke-dasharray: 0.012 0.022;
}

.leap__stop circle {
    fill: var(--paper);
    stroke: var(--hairline);
    stroke-width: 2;
}

.leap__reveal {
    fill: none;
    stroke: #fff;
    stroke-width: 16;
    stroke-linecap: round;
}

.leap__stop {
    transform-box: fill-box;
    transform-origin: center;
}

/* One orchestrated moment: the spring launches, the dotted path draws along
   its arc, the products land in order. Skipped when motion is unwelcome. */
@media (prefers-reduced-motion: no-preference) {
    .leap__reveal {
        stroke-dasharray: 1 1;
        animation: leap-draw 1.1s cubic-bezier(0.3, 0.7, 0.2, 1) 0.2s both;
    }

    .leap__stop {
        animation: leap-land 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.3) both;
    }

    .leap__stop--1 { animation-delay: 0.45s; }
    .leap__stop--2 { animation-delay: 0.8s; }
    .leap__stop--3 { animation-delay: 1.15s; }
}

@keyframes leap-draw {
    from {
        stroke-dashoffset: 1;
    }
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes leap-land {
    from {
        opacity: 0;
        scale: 0.6;
    }
    to {
        opacity: 1;
        scale: 1;
    }
}

@media (max-width: 52rem) {
    .hero__inner {
        grid-template-columns: 1fr;
    }

    .leap {
        max-width: 30rem;
    }
}

/* Products */

.products {
    padding-block: var(--section);
    border-top: 1px solid var(--hairline);
}

.product-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3rem clamp(2rem, 4vw, 3.5rem);
    margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.product {
    display: flex;
    flex-direction: column;
    padding-top: 1.75rem;
    border-top: 4px solid var(--product);
}

.product img {
    width: 3.5rem;
    height: 3.5rem;
}

.product h3 {
    margin-top: 1.25rem;
    font-size: 1.5rem;
}

.product p {
    margin-top: 0.75rem;
    color: var(--slate);
}

.product__link {
    margin-top: 1.25rem;
    align-self: flex-start;
    font-weight: 650;
    text-decoration-color: var(--product);
    text-decoration-thickness: 3px;
    text-underline-offset: 0.3em;
}

@media (max-width: 52rem) {
    .product-list {
        grid-template-columns: 1fr;
    }
}

/* About */

.about {
    padding-block: var(--section);
    background: var(--haze);
}

.traits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem clamp(2rem, 4vw, 3.5rem);
    margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.trait p {
    margin-top: 0.75rem;
    color: var(--slate);
}

.trait a {
    color: var(--ink);
    font-weight: 650;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.25em;
}

@media (max-width: 52rem) {
    .traits {
        grid-template-columns: 1fr;
    }
}

/* Values */

.values {
    padding-block: var(--section);
}

.value-list {
    margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
    border-top: 1px solid var(--hairline);
}

.value {
    display: grid;
    grid-template-columns: minmax(0, 18rem) minmax(0, 1fr);
    gap: 0.5rem clamp(2rem, 5vw, 4rem);
    padding-block: 1.75rem;
    border-bottom: 1px solid var(--hairline);
}

.value dt {
    font-family: "Unbounded", "Hanken Grotesk", system-ui, sans-serif;
    font-weight: 600;
    font-size: 1.125rem;
    line-height: 1.3;
}

.value dd {
    max-width: 60ch;
    color: var(--slate);
}

@media (max-width: 44rem) {
    .value {
        grid-template-columns: 1fr;
    }
}

/* Start */

.start {
    padding-block: clamp(4rem, 8vw, 6rem);
    background: var(--ink);
    color: var(--paper);
}

.start__list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    list-style: none;
    margin: 2rem 0 0;
    padding: 0;
}

.start :focus-visible {
    outline-color: #9cc2ff;
}

/* Footer */

.site-footer__inner {
    padding-block: 1.75rem;
    font-size: var(--text-small);
    color: var(--slate);
}
