/* Photo Flux — support site
   One stylesheet for the whole site. No frameworks, no web fonts, nothing
   fetched from anywhere else: the site is uploaded by hand and has to work
   from a plain folder on any host. */

:root {
    color-scheme: light dark;

    --accent: #2f6fe0;
    --accent-2: #a13ad9;
    --accent-soft: #eaf1fe;
    --accent-line: #c5d7fa;

    --bg: #ffffff;
    --bg-sunk: #f5f7fb;
    --bg-raised: #ffffff;
    --border: #dfe3ec;

    --ink: #1b2540;
    --ink-soft: #545d72;
    --ink-faint: #7b8397;

    --pro: #8a2fc0;
    --pro-soft: #f5ebfb;

    --shadow: 0 1px 2px rgba(20, 22, 30, .06), 0 6px 20px rgba(20, 22, 30, .07);
    --radius: 14px;
    --measure: 70ch;
}

@media (prefers-color-scheme: dark) {
    :root {
        --accent: #8fb3ff;
        --accent-2: #cf8cf2;
        --accent-soft: #18213a;
        --accent-line: #2e3d66;

        --bg: #0f1320;
        --bg-sunk: #141a2a;
        --bg-raised: #171c2b;
        --border: #262d40;

        --ink: #eef1f8;
        --ink-soft: #a6aec0;
        --ink-faint: #7f889c;

        --pro: #d9a2f5;
        --pro-soft: #261a33;

        --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 26px rgba(0, 0, 0, .38);
    }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 400 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    overflow-wrap: break-word;
}

a { color: var(--accent); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3, h4 { line-height: 1.25; font-weight: 650; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.7rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.7rem); margin-top: 2.2em; letter-spacing: -.01em; }
h3 { font-size: 1.16rem; margin-top: 1.9em; }
h4 { font-size: 1rem; margin-top: 1.6em; color: var(--ink-soft); }

p, ul, ol, dl { margin: 0 0 1.1em; }
li { margin-bottom: .35em; }
dt { font-weight: 650; margin-top: .9em; }
dd { margin: .2em 0 0 1.2em; }

code, kbd {
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    font-size: .89em;
    background: var(--bg-sunk);
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: .1em .4em;
}

hr { border: 0; border-top: 1px solid var(--border); margin: 2.5em 0; }

.pro-tag {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--pro);
    background: var(--pro-soft);
    border: 1px solid color-mix(in srgb, var(--pro) 35%, transparent);
    border-radius: 999px;
    padding: .05em .55em;
    vertical-align: .15em;
    margin-left: .3em;
    white-space: nowrap;
}

/* ---------- shell ---------- */

.wrap { width: min(100% - 2.5rem, 1180px); margin-inline: auto; }
.prose { max-width: var(--measure); }

.masthead {
    position: sticky;
    top: 0;
    z-index: 20;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: saturate(1.6) blur(10px);
    border-bottom: 1px solid var(--border);
}

.masthead .wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem 1.4rem;
    padding: .7rem 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-weight: 750;
    font-size: 1.05rem;
    color: var(--ink);
    text-decoration: none;
    margin-right: auto;
}
.brand span {
    background: linear-gradient(100deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* The launcher artwork is already a rounded tile, so no radius of our own. */
.brand img { width: 32px; height: 32px; }

.masthead nav { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; font-size: .95rem; }
.masthead nav a { color: var(--ink-soft); text-decoration: none; padding: .15rem 0; }
.masthead nav a:hover { color: var(--accent); }
.masthead nav a[aria-current="page"] { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); }

.site-foot {
    margin-top: 5rem;
    border-top: 1px solid var(--border);
    background: var(--bg-sunk);
    color: var(--ink-soft);
    font-size: .93rem;
}

.site-foot .wrap { padding: 2.4rem 0 3rem; display: grid; gap: 1.6rem; }
.site-foot h2 { font-size: .82rem; text-transform: uppercase; letter-spacing: .09em; margin: 0 0 .5em; color: var(--ink-faint); }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot .foot-cols { display: grid; gap: 1.6rem 2.5rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.site-foot .fine { border-top: 1px solid var(--border); padding-top: 1.4rem; font-size: .87rem; color: var(--ink-faint); display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; align-items: center; }
.site-foot .fine img { width: 120px; height: auto; }

main { padding-top: 2.5rem; }

/* ---------- hero ---------- */

.hero { padding: 1.5rem 0 .5rem; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 3.5rem; } }

.hero h1 { margin-bottom: .35em; }
.hero .standfirst { font-size: 1.16rem; color: var(--ink-soft); max-width: 46ch; }

.hero-shots { display: flex; gap: 1rem; justify-content: center; }
.hero-shots img {
    width: min(44%, 250px);
    height: auto;
    border-radius: 18px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.hero-shots img:nth-child(2) { transform: translateY(1.6rem); }
@media (max-width: 560px) { .hero-shots img:nth-child(2) { display: none; } }

/* The tablet shot sits under the two phones, clear of the second one's drop. */
.hero-tablet {
    display: block;
    width: min(100%, 520px);
    height: auto;
    margin: 3rem auto 0;
    border-radius: 14px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
@media (max-width: 560px) { .hero-tablet { margin-top: 1.4rem; } }

.cta { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; margin-top: 1.6rem; }
.btn {
    display: inline-block;
    padding: .62rem 1.25rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: .97rem;
    text-decoration: none;
    border: 1px solid transparent;
}
.btn-play { border-color: var(--accent); color: var(--bg); background: var(--accent); }
.btn-play:hover { color: var(--bg); opacity: .88; }
.btn-quiet { border-color: var(--border); color: var(--ink); background: var(--bg-raised); }
.btn-quiet:hover { border-color: var(--accent-line); color: var(--accent); }

.play-badge { display: block; height: 63px; width: auto; }
.hero-price { margin-top: .8rem; color: var(--ink-faint); font-size: .92rem; }

/* ---------- cards ---------- */

.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); padding: 0; list-style: none; margin: 0; }

.card {
    display: block;
    height: 100%;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.15rem 1.25rem 1.25rem;
    text-decoration: none;
    color: inherit;
}
.cards > li { margin: 0; }
a.card:hover { border-color: var(--accent-line); box-shadow: var(--shadow); }
.card h3 { margin: 0 0 .35em; font-size: 1.04rem; }
.card p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.card .num { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: .5em; }

/* ---------- screenshots ---------- */

figure { margin: 1.8em 0; }

figure img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    background: var(--bg-sunk);
}

figcaption { margin-top: .7em; font-size: .9rem; color: var(--ink-soft); }

.shot { max-width: 300px; }
.shot.wide { max-width: 860px; }

.video { max-width: 860px; }
.video iframe {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    background: var(--bg-sunk);
}

.shot-row {
    display: grid;
    gap: 1.4rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 240px));
    margin: 1.8em 0;
    justify-content: start;
}
.shot-row figure { margin: 0; }
.shot-row figure img { border-radius: 12px; }

/* ---------- notes ---------- */

.note {
    border: 1px solid var(--accent-line);
    background: var(--accent-soft);
    border-radius: var(--radius);
    padding: 1rem 1.2rem;
    margin: 1.8em 0;
    max-width: var(--measure);
}
.note > :last-child { margin-bottom: 0; }
.note .label {
    display: block;
    font-size: .76rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: .4em;
}
.note.pro { border-color: color-mix(in srgb, var(--pro) 35%, transparent); background: var(--pro-soft); }
.note.pro .label { color: var(--pro); }
.note.warn { border-color: #e2b25c; background: color-mix(in srgb, #e2b25c 14%, var(--bg)); }
.note.warn .label { color: #b07514; }
@media (prefers-color-scheme: dark) { .note.warn .label { color: #f0c46e; } }

/* ---------- tables ---------- */

.table-scroll { overflow-x: auto; margin: 1.6em 0; max-width: var(--measure); }

table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: .6rem .9rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-weight: 650; color: var(--ink-soft); font-size: .84rem; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }

/* ---------- change history ---------- */

.releases { list-style: none; padding: 0; margin: 0; }
.release { border-top: 1px solid var(--border); padding: 1.6rem 0; display: grid; gap: .4rem 2rem; }
@media (min-width: 760px) { .release { grid-template-columns: 190px 1fr; } }
.release:first-child { border-top: 0; }
.release .when { color: var(--ink-faint); font-size: .9rem; }
.release .when strong { display: block; color: var(--ink); font-size: 1.05rem; font-weight: 650; }
.release ul { margin: 0; padding-left: 1.15em; max-width: var(--measure); }

/* ---------- manual page furniture ---------- */

.page-head { border-bottom: 1px solid var(--border); padding-bottom: 1.6rem; margin-bottom: 2rem; }
.page-head .eyebrow { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 .6em; }
.page-head .standfirst { font-size: 1.1rem; color: var(--ink-soft); max-width: var(--measure); margin: 0; }
.page-head .updated { font-size: .92rem; color: var(--ink-faint); margin: 0 0 1em; }

.pager { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; border-top: 1px solid var(--border); margin-top: 3.5rem; padding-top: 1.4rem; font-size: .95rem; }
.pager div:last-child { text-align: right; margin-left: auto; }
.pager span { color: var(--ink-faint); display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }

.toc { background: var(--bg-sunk); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.3rem; margin: 0 0 2.5rem; }
.toc h2 { margin: 0 0 .6em; font-size: .8rem; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-faint); }
.toc ul { columns: 2; column-gap: 2rem; list-style: none; padding: 0; margin: 0; font-size: .95rem; }
@media (max-width: 620px) { .toc ul { columns: 1; } }

.skip {
    position: absolute;
    left: -9999px;
}
.skip:focus {
    left: 1rem;
    top: .6rem;
    z-index: 50;
    background: var(--bg-raised);
    border: 1px solid var(--accent);
    border-radius: 8px;
    padding: .5rem .9rem;
}
