/* Last Line website. Colours follow the game's interface: dark translucent panels, thin cool-white outlines,
   rounded corners, amber for emphasis; no glow, no chamfers. */

:root {
    --bg: #050a10;
    --bg-raise: #09121a;
    --panel: rgba(11, 20, 29, 0.6);
    --panel-solid: #0c1720;
    --button: rgba(22, 34, 46, 0.55);
    --button-hover: rgba(48, 74, 94, 0.7);
    --line: rgba(232, 244, 255, 0.25);
    --line-strong: rgba(232, 244, 255, 0.35);
    --line-faint: rgba(232, 244, 255, 0.1);
    --text: #e8f4ff;
    --text-dim: #a9bccb;
    --text-faint: #7f93a4;
    --accent: #ffb347;
    --radius: 12px;
    --radius-sm: 8px;
    --container: 1180px;
    --gutter: clamp(20px, 4vw, 40px);
    --header-h: 64px;
    --section-space: clamp(72px, 10vw, 136px);
    --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
        "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", sans-serif;
    color-scheme: dark;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:lang(zh) body,
body:lang(zh) {
    line-height: 1.75;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

button {
    font: inherit;
    color: inherit;
}

h1,
h2,
h3,
p {
    margin: 0;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

.container {
    width: min(var(--container), 100% - 2 * var(--gutter));
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    background: var(--panel-solid);
    border: 1px solid var(--line-strong);
    text-decoration: none;
}

.skip-link:focus {
    top: 12px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Header */

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    height: var(--header-h);
    border-bottom: 1px solid transparent;
    transition: background-color 0.25s, border-color 0.25s;
}

.site-header.is-solid,
.site-header.is-open {
    background: rgba(6, 12, 18, 0.86);
    border-bottom-color: var(--line-faint);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 100%;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.brand img {
    width: 34px;
    height: 34px;
    border-radius: 8px;
}

.brand-name {
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    white-space: nowrap;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.site-nav a {
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-dim);
    font-size: 15px;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s, background-color 0.2s;
}

.site-nav a:hover {
    color: var(--text);
    background: var(--button);
}

.lang-switch {
    display: flex;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--button);
    flex-shrink: 0;
}

.lang-switch a {
    padding: 4px 10px;
    border-radius: 5px;
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.5;
    text-decoration: none;
}

.lang-switch a:hover {
    color: var(--text);
}

.lang-switch a[aria-current="page"] {
    background: rgba(232, 244, 255, 0.14);
    color: var(--text);
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    margin-left: 4px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--button);
    cursor: pointer;
}

.menu-button span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    border-radius: 1px;
    background: var(--text);
    transition: transform 0.2s, opacity 0.2s;
}

.site-header.is-open .menu-button span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.site-header.is-open .menu-button span:nth-child(2) {
    opacity: 0;
}

.site-header.is-open .menu-button span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 960px) {
    .menu-button {
        display: block;
    }

    .header-inner {
        gap: 12px;
    }

    .lang-switch {
        margin-left: auto;
    }

    .site-nav {
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        margin: 0;
        padding: 10px var(--gutter) 18px;
        background: rgb(6, 12, 18);
        border-bottom: 1px solid var(--line-faint);
        max-height: calc(100vh - var(--header-h));
        overflow-y: auto;
    }

    .site-header.is-open .site-nav {
        display: flex;
    }

    .site-nav a {
        padding: 12px 14px;
        font-size: 17px;
    }

    .no-js .site-nav {
        position: static;
        display: none;
    }
}

@media (max-width: 420px) {
    .brand-name {
        display: none;
    }
}

/* Language suggestion */

.lang-suggest {
    position: fixed;
    left: 50%;
    bottom: 16px;
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 8px 14px;
    flex-wrap: wrap;
    justify-content: center;
    width: max-content;
    max-width: calc(100% - 24px);
    padding: 10px 10px 10px 18px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: rgba(9, 18, 26, 0.94);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    transform: translateX(-50%);
    font-size: 15px;
}

.lang-suggest[hidden] {
    display: none;
}

.lang-suggest-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.lang-suggest .button {
    min-height: 36px;
    padding: 6px 14px;
    font-size: 15px;
}

.icon-button {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-dim);
    cursor: pointer;
}

.icon-button:hover {
    color: var(--text);
    background: var(--button);
}

/* Buttons */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 10px 22px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--button);
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}

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

.button-accent {
    border-color: rgba(255, 179, 71, 0.75);
    background: rgba(255, 179, 71, 0.14);
}

.button-accent:hover {
    background: rgba(255, 179, 71, 0.24);
}

.button svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Hero */

.hero {
    position: relative;
    display: grid;
    align-items: end;
    min-height: min(100vh, 1000px);
    min-height: min(100svh, 1000px);
    padding: calc(var(--header-h) + 56px) 0 clamp(48px, 9vh, 104px);
    overflow: hidden;
    isolation: isolate;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--hero-focus, 60% 40%);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(5, 10, 16, 0.86) 0%, rgba(5, 10, 16, 0.6) 34%, rgba(5, 10, 16, 0) 64%),
        linear-gradient(0deg, var(--bg) 0%, rgba(5, 10, 16, 0) 32%),
        linear-gradient(180deg, rgba(5, 10, 16, 0.55) 0%, rgba(5, 10, 16, 0) 22%);
}

.hero-content {
    max-width: 640px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--accent);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

:lang(zh) .eyebrow {
    letter-spacing: 0.12em;
}

.hero-title {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 22px;
}

.wordmark {
    font-size: clamp(46px, 8.4vw, 96px);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.title-local {
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 700;
    letter-spacing: 0.3em;
    color: var(--text-dim);
}

.tagline {
    margin-bottom: 14px;
    font-size: clamp(21px, 2.6vw, 28px);
    font-weight: 650;
    line-height: 1.35;
}

.lead {
    color: var(--text-dim);
    font-size: clamp(17px, 1.6vw, 19px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
    margin-top: 30px;
}

.hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.hero-facts li {
    padding: 5px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--panel);
    color: var(--text-dim);
    font-size: 14px;
}

.coming-soon {
    color: var(--text-dim);
    font-size: 15px;
}

.coming-soon strong {
    color: var(--text);
    font-weight: 600;
}

@media (max-width: 760px) {
    .hero {
        align-items: end;
        padding-top: calc(var(--header-h) + 40vw);
    }

    .hero-media img {
        object-position: var(--hero-focus-narrow, 72% 30%);
    }

    .hero::after {
        background:
            linear-gradient(0deg, var(--bg) 10%, rgba(5, 10, 16, 0.82) 48%, rgba(5, 10, 16, 0.15) 78%),
            linear-gradient(180deg, rgba(5, 10, 16, 0.6) 0%, rgba(5, 10, 16, 0) 20%);
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding-top: calc(var(--header-h) + 32px);
    }

    .hero::after {
        background:
            linear-gradient(90deg, rgba(5, 10, 16, 0.9) 0%, rgba(5, 10, 16, 0.7) 45%, rgba(5, 10, 16, 0.1) 80%),
            linear-gradient(0deg, var(--bg) 0%, rgba(5, 10, 16, 0) 30%);
    }
}

/* Sections */

.section {
    padding: var(--section-space) 0;
}

.section + .section {
    padding-top: 0;
}

.section-head {
    max-width: 760px;
    margin-bottom: clamp(32px, 5vw, 56px);
}

.section-head.centered {
    margin-inline: auto;
    text-align: center;
}

.section-title {
    font-size: clamp(30px, 4.4vw, 48px);
    font-weight: 750;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

:lang(zh) .section-title {
    letter-spacing: 0.02em;
}

.section-intro {
    margin-top: 16px;
    color: var(--text-dim);
    font-size: clamp(17px, 1.7vw, 19px);
}

.panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
}

/* Gameplay */

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

.step {
    padding: 24px 22px 26px;
}

.step-number {
    display: block;
    margin-bottom: 14px;
    color: var(--accent);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.14em;
    font-variant-numeric: tabular-nums;
}

.step h3 {
    margin-bottom: 8px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.step p {
    color: var(--text-dim);
    font-size: 16px;
}

.showcase {
    margin: clamp(28px, 4vw, 44px) 0 0;
}

.showcase-frame {
    display: block;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel-solid);
}

.showcase-frame img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.showcase figcaption {
    margin-top: 12px;
    color: var(--text-faint);
    font-size: 15px;
    text-align: center;
}

@media (max-width: 1080px) {
    .steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .steps {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Features */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.feature {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.feature-media {
    display: block;
    overflow: hidden;
    border-bottom: 1px solid var(--line-faint);
    background: var(--panel-solid);
}

.feature-media img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.feature-body {
    padding: 20px 22px 24px;
}

.feature h3 {
    margin-bottom: 8px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.feature p {
    color: var(--text-dim);
    font-size: 16px;
}

@media (hover: hover) {
    .feature-media:hover img,
    .showcase-frame:hover img,
    .gallery-item:hover img {
        transform: scale(1.035);
    }
}

@media (max-width: 1080px) {
    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .feature-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Campaign */

.chapters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.chapter {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 260px;
    padding: 22px;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel-solid);
}

.chapter img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chapter::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(0deg, rgba(5, 10, 16, 0.94) 0%, rgba(5, 10, 16, 0.7) 42%, rgba(5, 10, 16, 0.08) 100%);
}

.chapter-label {
    margin-bottom: 6px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.chapter h3 {
    margin-bottom: 6px;
    font-size: 22px;
    font-weight: 750;
    line-height: 1.25;
}

.chapter p {
    color: var(--text-dim);
    font-size: 15.5px;
}

.chapter-endless {
    border-color: rgba(255, 179, 71, 0.5);
}

@media (max-width: 960px) {
    .chapters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .chapters {
        grid-template-columns: minmax(0, 1fr);
    }

    .chapter {
        min-height: 220px;
    }
}

/* Gallery */

.gallery {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gallery li {
    grid-column: span 4;
}

.gallery li.wide {
    grid-column: span 8;
    grid-row: span 2;
}

.gallery-item {
    position: relative;
    display: block;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel-solid);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item .caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 28px 14px 10px;
    background: linear-gradient(0deg, rgba(5, 10, 16, 0.85), rgba(5, 10, 16, 0));
    color: var(--text);
    font-size: 14px;
    line-height: 1.4;
    opacity: 0;
    transition: opacity 0.25s;
}

.gallery-item:hover .caption,
.gallery-item:focus-visible .caption {
    opacity: 1;
}

.gallery-note {
    margin-top: 16px;
    color: var(--text-faint);
    font-size: 14px;
    text-align: center;
}

@media (max-width: 960px) {
    .gallery li,
    .gallery li.wide {
        grid-column: span 6;
        grid-row: auto;
    }

    .gallery li.wide:first-child {
        grid-column: span 12;
    }
}

@media (max-width: 560px) {
    .gallery {
        gap: 10px;
    }

    .gallery li,
    .gallery li.wide,
    .gallery li.wide:first-child {
        grid-column: span 12;
    }

    .gallery-item .caption {
        opacity: 1;
    }
}

@media (hover: none) {
    .gallery-item .caption {
        opacity: 1;
    }
}

/* Lightbox */

html.has-dialog {
    overflow: hidden;
}

.lightbox {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgb(3, 6, 10);
    color: var(--text);
}

.lightbox::backdrop {
    background: rgba(3, 6, 10, 0.7);
}

.lightbox[open] {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
}

.lightbox-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px 10px 20px;
    color: var(--text-dim);
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

.lightbox-stage {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 0;
    padding: 0 clamp(8px, 6vw, 88px);
    touch-action: pan-y;
}

.lightbox-stage img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    border-radius: var(--radius-sm);
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

.lightbox-caption {
    min-height: 56px;
    padding: 14px 20px 20px;
    color: var(--text-dim);
    font-size: 15px;
    text-align: center;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--button);
    color: var(--text);
    cursor: pointer;
    transform: translateY(-50%);
}

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

.lightbox-nav svg {
    width: 22px;
    height: 22px;
}

.lightbox-prev {
    left: clamp(6px, 1.5vw, 24px);
}

.lightbox-next {
    right: clamp(6px, 1.5vw, 24px);
}

@media (max-width: 640px) {
    .lightbox-nav {
        top: auto;
        bottom: -60px;
        transform: none;
    }

    .lightbox-stage {
        padding: 0 8px;
    }

    .lightbox-caption {
        padding-inline: 70px;
    }
}

/* Pricing */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.price-card {
    padding: 24px 22px 26px;
}

.price-card svg {
    width: 28px;
    height: 28px;
    margin-bottom: 14px;
    color: var(--accent);
}

.price-card h3 {
    margin-bottom: 8px;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
}

.price-card p {
    color: var(--text-dim);
    font-size: 16px;
}

.pricing-note {
    margin-top: 18px;
    color: var(--text-faint);
    font-size: 14px;
    text-align: center;
}

@media (max-width: 1080px) {
    .pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .pricing-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Platforms */

.platforms {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
}

.platform-devices {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.platform-devices li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--panel);
    color: var(--text-dim);
    font-size: 15px;
}

.platform-devices svg {
    width: 20px;
    height: 20px;
    color: var(--text);
}

.platform-meta {
    margin-top: 22px;
    color: var(--text-dim);
    font-size: 16px;
}

.platform-meta strong {
    color: var(--text);
    font-weight: 600;
}

.stores {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.store {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
}

.store-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
}

.store-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.store-name {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.store-devices {
    color: var(--text-dim);
    font-size: 15px;
}

.store-action {
    min-height: 44px;
    padding: 8px 18px;
}

.store-soon {
    padding: 8px 14px;
    border: 1px dashed var(--line);
    border-radius: var(--radius-sm);
    color: var(--text-faint);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.store-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    margin: 0;
    color: var(--text-dim);
    font-size: 14px;
}

.store-facts div {
    display: flex;
    gap: 6px;
    min-width: 0;
}

.store-facts dt {
    flex: none;
    color: var(--text-faint);
    white-space: nowrap;
}

.store-facts dd {
    min-width: 0;
    margin: 0;
}

.store-hash {
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.store-note {
    color: var(--text-faint);
    font-size: 14px;
}

@media (max-width: 860px) {
    .platforms {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 560px) {
    .store-main {
        flex-direction: column;
        align-items: stretch;
    }

    .store-soon {
        text-align: center;
    }
}

/* Privacy and footer */

.privacy {
    max-width: 860px;
    margin-inline: auto;
    padding: clamp(24px, 4vw, 40px);
}

.privacy h2 {
    margin-bottom: 14px;
    font-size: clamp(24px, 3vw, 30px);
    font-weight: 750;
}

.privacy p {
    color: var(--text-dim);
}

.privacy p + p {
    margin-top: 12px;
}

.privacy a {
    color: var(--text);
    text-underline-offset: 3px;
}

.privacy-more {
    margin-top: 18px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.privacy .text-link {
    color: var(--accent);
}

.text-link:hover {
    text-decoration: underline;
}

.text-link svg {
    width: 18px;
    height: 18px;
}

.site-footer {
    padding: 40px 0 48px;
    border-top: 1px solid var(--line-faint);
    color: var(--text-faint);
    font-size: 14px;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 32px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-dim);
}

.footer-brand img {
    width: 40px;
    height: 40px;
    border-radius: 9px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--text);
    text-decoration: underline;
}

.footer-fineprint {
    display: grid;
    gap: 6px;
    flex-basis: 100%;
    max-width: 760px;
}

.footer-fineprint a {
    color: inherit;
}

/* Privacy policy page */

.policy {
    width: min(760px, 100% - 2 * var(--gutter));
    padding-top: calc(var(--header-h) + clamp(40px, 7vw, 88px));
    padding-bottom: var(--section-space);
}

.policy h1 {
    margin-top: 10px;
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 750;
    line-height: 1.15;
}

.policy-updated {
    margin-top: 12px;
    color: var(--text-faint);
    font-size: 15px;
}

.policy-intro {
    margin-top: 24px;
    font-size: clamp(17px, 1.7vw, 19px);
}

.policy section {
    margin-top: 36px;
}

.policy h2 {
    margin-bottom: 10px;
    font-size: clamp(20px, 2.4vw, 24px);
    font-weight: 700;
}

.policy section p,
.policy li {
    color: var(--text-dim);
}

.policy section p + p {
    margin-top: 12px;
}

.policy ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 1.2em;
}

.policy p a {
    color: var(--text);
    text-underline-offset: 3px;
}

.policy-back {
    margin-top: 48px;
}

/* Reveal on scroll, only when scripts run and motion is welcome */

@media (prefers-reduced-motion: no-preference) {
    .js .reveal {
        opacity: 0;
        transform: translateY(18px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .js .reveal.is-visible {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}
