:root {
    color-scheme: light;
    --ink: #111214;
    --ink-muted: #4a4e54;
    --paper: #ffffff;
    --paper-tint: #f5f6f9;
    --line: #e1e3ea;
    --line-strong: #d2d5df;
    --link: #2f3f9c;
    --button-ink: #ffffff;
    --button-hover: #2a2c30;
    --gutter: 24px;
    --measure: 62ch;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --ink: #e8e9ee;
        --ink-muted: #b4b8c4;
        --paper: #111318;
        --paper-tint: #1a1d24;
        --line: #2a2e38;
        --line-strong: #3a3f4b;
        --link: #a9b8f0;
        --button-ink: #111318;
        --button-hover: #cfd2da;
    }
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --ink: #e8e9ee;
    --ink-muted: #b4b8c4;
    --paper: #111318;
    --paper-tint: #1a1d24;
    --line: #2a2e38;
    --line-strong: #3a3f4b;
    --link: #a9b8f0;
    --button-ink: #111318;
    --button-hover: #cfd2da;
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
    font-size: 1.125rem;
    line-height: 1.6;
}

a {
    color: var(--link);
    text-underline-offset: 0.15em;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--link);
    outline-offset: 3px;
}

h1,
h2,
h3 {
    text-wrap: balance;
}

p {
    margin: 0 0 1em;
    max-width: var(--measure);
    text-wrap: pretty;
}

.wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.site-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 20px;
    padding-bottom: 20px;
}

.wordmark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-weight: 700;
    font-size: 1.0625rem;
    letter-spacing: -0.01em;
    text-decoration: none;
}

.wordmark img {
    border-radius: 8px;
}

.button {
    display: inline-block;
    border-radius: 999px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
}

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

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

.button-outline {
    border: 1px solid var(--line-strong);
    background: var(--paper);
    color: var(--ink);
}

.button-outline:hover {
    background: var(--paper-tint);
}

.button-large {
    padding: 18px 30px;
    font-size: 1.0625rem;
    line-height: 1;
}

.button-small {
    padding: 11px 20px;
    font-size: 0.9375rem;
}

.hero {
    padding-top: 40px;
    padding-bottom: 96px;
}

.hero h1 {
    margin: 0 0 24px;
    font-size: clamp(2.375rem, 5.2vw, 3.625rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.lead {
    margin-bottom: 36px;
    font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
    line-height: 1.55;
    color: var(--ink-muted);
    max-width: 42ch;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.cta-note {
    margin: 20px 0 0;
    font-size: 0.9375rem;
    line-height: 1.45;
    color: var(--ink-muted);
}

.section {
    padding: 96px 0;
}

.section-tint {
    background: var(--paper-tint);
}

.section h2 {
    margin: 0 0 48px;
    font-size: clamp(1.75rem, 3.6vw, 2.5rem);
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.theme-switch {
    display: inline-flex;
    padding: 2px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--paper);
}

.theme-switch[hidden] {
    display: none;
}

.theme-switch button {
    padding: 5px 12px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
}

.theme-switch button[aria-pressed="true"] {
    background: var(--ink);
    color: var(--button-ink);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gallery li {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gallery img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--line);
}

.gallery .shot-dark,
:root[data-theme="dark"] .gallery .shot-light {
    display: none;
}

:root[data-theme="dark"] .gallery .shot-dark {
    display: block;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .gallery .shot-light {
        display: none;
    }

    :root:not([data-theme="light"]) .gallery .shot-dark {
        display: block;
    }
}

.caption {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--ink-muted);
}

.feature-list {
    margin: 0;
    padding: 0;
    list-style: none;
    border-bottom: 1px solid var(--line);
}

.feature-list li {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 48px;
    padding: 28px 0;
    border-top: 1px solid var(--line);
}

.feature-list h3 {
    flex: 1 1 260px;
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.35;
    letter-spacing: -0.01em;
    font-weight: 650;
}

.feature-list p {
    flex: 1.6 1 340px;
    margin: 0;
    color: var(--ink-muted);
    max-width: 60ch;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.steps li {
    counter-increment: step;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 28px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 20px;
}

.steps li::before {
    content: counter(step);
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin-bottom: 6px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--button-ink);
    font-size: 0.9375rem;
    font-weight: 700;
}

.steps h3 {
    margin: 0;
    font-size: 1.1875rem;
    line-height: 1.35;
    font-weight: 650;
}

.steps p {
    margin: 0 0 12px;
    color: var(--ink-muted);
    font-size: 1rem;
}

.steps .button {
    margin-top: auto;
    align-self: flex-start;
}

.site-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 32px;
    padding-top: 32px;
    padding-bottom: 48px;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--ink-muted);
}

.site-footer p {
    margin: 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
}

.footer-links a {
    color: inherit;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.legal {
    padding-top: 24px;
    padding-bottom: 72px;
}

.legal h1 {
    margin: 0 0 8px;
    font-size: clamp(2rem, 5vw, 2.5rem);
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.legal h2 {
    margin: 40px 0 12px;
    font-size: 1.375rem;
    line-height: 1.3;
}

.legal ul {
    max-width: var(--measure);
    margin: 0 0 1em;
    padding-left: 1.25em;
}

.legal li {
    margin-bottom: 8px;
}

.updated {
    color: var(--ink-muted);
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}
