*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    background: var(--surface);
    color: var(--ink);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 18px;
    line-height: 1.55;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
}

img,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

a:hover {
    text-decoration-thickness: 2px;
}

:focus-visible {
    outline: var(--stroke-focus) solid var(--accent);
    outline-offset: 3px;
    border-radius: 2px;
}

.page {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.site-header {
    display: flex;
    align-items: center;
    gap: var(--space-m);
    padding-top: var(--space-xxl);
}

.site-header img {
    width: 40px;
    height: 40px;
    border-radius: 9px;
}

@media (prefers-color-scheme: dark) {
    .site-header img {
        outline: var(--stroke-outline) solid var(--hover-outline);
    }
}

.brand {
    font-size: 1.333rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--ink);
    text-decoration: none;
}

h1,
h2 {
    margin: 0;
    font-weight: 650;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.25rem, 1.5rem + 3.2vw, 3.5rem);
    line-height: 1.08;
    letter-spacing: -0.015em;
    max-width: 12.5em;
}

h2 {
    font-size: 1.444rem;
    line-height: 1.25;
}

p,
li {
    max-width: 68ch;
    text-wrap: pretty;
}

p {
    margin: 0;
}

.hero {
    padding-top: 72px;
}

.lead {
    margin-top: var(--space-xl);
    font-size: 1.222rem;
    line-height: 1.5;
    max-width: 60ch;
}

.status {
    margin-top: var(--space-l);
    color: var(--muted);
    max-width: 60ch;
}

.pair {
    margin-top: 56px;
}

.pair-stage {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
    gap: var(--space-xxl);
}

.shot {
    margin: 0;
    max-width: 100%;
}

.shot picture {
    display: block;
}

.shot img {
    width: 100%;
    border-radius: var(--radius-row);
    outline: var(--stroke-outline) solid var(--hover-outline);
    outline-offset: -1px;
}

.shot figcaption {
    margin-top: var(--space-s);
    color: var(--muted);
    font-size: 16px;
    line-height: 1.4;
}

.shot-sender {
    width: 418px;
}

.shot-receiver {
    width: 360px;
}

.hop {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    overflow: visible;
    pointer-events: none;
}

.hop-line {
    fill: none;
    stroke: var(--ink);
    stroke-width: 4;
    stroke-linecap: round;
}

.hop-ring {
    fill: var(--surface);
    stroke: var(--ink);
    stroke-width: 3.5;
}

.hop-dot {
    fill: var(--accent);
}

.steps,
.points,
.site-footer {
    margin-top: 112px;
}

.steps ol {
    margin: var(--space-xl) 0 0;
    padding-left: 1.5em;
}

.steps li {
    padding-left: var(--space-s);
}

.steps li + li {
    margin-top: var(--space-m);
}

.steps li::marker {
    font-weight: 650;
}

.points {
    display: grid;
    grid-template-columns: 1fr;
    gap: 56px;
}

.points h2 + p {
    margin-top: var(--space-m);
}

.site-footer {
    padding: var(--space-xxl) 0 48px;
    color: var(--muted);
    font-size: 16px;
}

.notfound {
    padding-top: 96px;
}

.notfound p {
    margin-top: var(--space-l);
}

@media (min-width: 860px) {
    .points {
        grid-template-columns: 1fr 1fr;
        column-gap: 72px;
        row-gap: 64px;
    }

    .points p {
        max-width: 44ch;
    }
}

@media (max-width: 699px) {
    .page {
        padding: 0 var(--space-l);
    }

    .site-header {
        padding-top: var(--space-xl);
    }

    .hero {
        padding-top: 48px;
    }

    .pair {
        margin-top: 40px;
    }

    h1 .line {
        display: block;
    }

    .steps,
    .points,
    .site-footer {
        margin-top: 80px;
    }
}

@media (max-width: 499px) {
    .shot-sender {
        width: 385px;
    }
}

@media (min-width: 1000px) {
    .pair-stage {
        display: flex;
        align-items: flex-start;
        gap: 160px;
        width: 938px;
    }

    .shot-sender {
        margin-top: 50px;
    }

    .shot-receiver {
        margin-top: 30px;
    }

    .hop {
        display: block;
    }
}
