/* Forget Me Not — 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: #4351b8;
    --accent-soft: #eceefc;
    --accent-line: #c8cdf0;

    --bg: #ffffff;
    --bg-sunk: #f5f6fa;
    --bg-raised: #ffffff;
    --border: #dfe1ea;

    --ink: #1a1c23;
    --ink-soft: #565b6b;
    --ink-faint: #7d8394;

    --shadow: 0 1px 2px rgba(20, 22, 30, .06), 0 6px 20px rgba(20, 22, 30, .07);
    --radius: 14px;
    --measure: 68ch;
}

@media (prefers-color-scheme: dark) {
    :root {
        --accent: #b9c0ff;
        --accent-soft: #1e2136;
        --accent-line: #343a5e;

        --bg: #101116;
        --bg-sunk: #16181f;
        --bg-raised: #1a1c24;
        --border: #2b2e39;

        --ink: #e8eaf2;
        --ink-soft: #a8adbd;
        --ink-faint: #7f8598;

        --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; }

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; }

/* ---------- 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: 650;
    font-size: 1.02rem;
    color: var(--ink);
    text-decoration: none;
    margin-right: auto;
}

/* 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); }

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; } }

.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-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { filter: brightness(1.08); }
.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;
    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;
}
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: 760px; }
.shot.plain img { border-radius: 10px; }

.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;
}
.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;
}

/* ---------- tables ---------- */

.table-scroll { overflow-x: auto; margin: 1.6em 0; }

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; }

/* ---------- 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 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;
}
