:root {
    --accent: #e06d10;
    --accent-dark: #c25400;
    --text: #1d1d1f;
    --secondary: #5f5f66;
    --background: #ffffff;
    --surface: #f5f5f7;
    --border: #d9d9de;
    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root {
        --accent: #ff9f45;
        --accent-dark: #f2913a;
        --text: #f5f5f7;
        --secondary: #a1a1a8;
        --background: #000000;
        --surface: #1c1c1e;
        --border: #38383c;
    }
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.5;
    color: var(--text);
    background: var(--background);
    -webkit-text-size-adjust: 100%;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }

header.site {
    position: sticky;
    top: 0;
    z-index: 1;
    background: color-mix(in srgb, var(--background) 85%, transparent);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border);
}

header.site .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 52px;
}

.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; }

nav.site { display: flex; gap: 20px; font-size: 15px; }
nav.site a { color: var(--secondary); }
nav.site a[aria-current="page"] { color: var(--text); font-weight: 600; }

.hero { text-align: center; padding: 72px 0 48px; }
.hero img.icon { width: 128px; height: 128px; }
.hero h1 { font-size: 56px; line-height: 1.07; margin: 16px 0 8px; letter-spacing: -0.02em; }
.hero p.lead { font-size: 24px; line-height: 1.3; color: var(--secondary); max-width: 680px; margin: 0 auto 28px; }

.button {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 980px;
    background: var(--accent-dark);
    color: #fff;
    font-weight: 600;
}
.button:hover { text-decoration: none; background: var(--accent); }
.note { font-size: 14px; color: var(--secondary); margin-top: 12px; }

.screens {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 8px 20px 24px;
    scroll-snap-type: x mandatory;
}
/* Centred when they fit; when they don't, the row still scrolls from the first one. */
.screens img:first-child { margin-left: auto; }
.screens img:last-child { margin-right: auto; }
.screens img {
    height: 520px;
    width: auto;
    border-radius: 24px;
    scroll-snap-align: center;
    flex: none;
}
.wide { display: grid; gap: 32px; justify-items: center; max-width: 720px; margin: 24px auto 48px; }
.wide img { width: 100%; height: auto; border-radius: 16px; }
.wide img.portrait { max-width: 420px; }

section.features { padding: 48px 0; }
section.features h2, .page h1 { font-size: 40px; line-height: 1.1; letter-spacing: -0.01em; margin: 0 0 24px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card { background: var(--surface); border-radius: 18px; padding: 24px; }
.card h3 { margin: 0 0 8px; font-size: 20px; }
.card p { margin: 0; color: var(--secondary); }

.page { padding-top: 48px; padding-bottom: 64px; max-width: 760px; }
.page h2 { font-size: 26px; margin: 40px 0 12px; }
.page h3 { font-size: 19px; margin: 24px 0 6px; }
.page p, .page li { color: var(--text); }
.page .updated { color: var(--secondary); font-size: 15px; }
.callout { background: var(--surface); border-radius: 18px; padding: 24px; margin: 24px 0; }
.callout p:last-child { margin-bottom: 0; }

footer.site { border-top: 1px solid var(--border); padding: 24px 0 40px; font-size: 14px; color: var(--secondary); }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
footer.site nav { display: flex; gap: 20px; }
footer.site a { color: var(--secondary); }

@media (max-width: 600px) {
    .hero { padding: 48px 0 32px; }
    .hero h1 { font-size: 40px; }
    .hero p.lead { font-size: 20px; }
    .screens img { height: 420px; }
    section.features h2, .page h1 { font-size: 32px; }
    nav.site { gap: 14px; flex-wrap: wrap; }
    /* Four links don't fit beside the name on a phone: they go on their own line. */
    header.site .wrap { flex-wrap: wrap; row-gap: 2px; padding-top: 8px; padding-bottom: 8px; }
}
