/* Personal App Store — minimal styling that looks decent on iOS Safari. */

* { box-sizing: border-box; }

:root {
    color-scheme: light dark;
    --bg: #fafafa;
    --fg: #1a1a1a;
    --muted: #6a6a6a;
    --card: #ffffff;
    --border: #e5e5e5;
    --accent: #007aff;
    --accent-fg: #ffffff;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #000000;
        --fg: #f5f5f5;
        --muted: #9a9a9a;
        --card: #1c1c1e;
        --border: #2c2c2e;
        --accent: #0a84ff;
    }
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    max-width: 640px;
    margin: 0 auto;
    padding: 24px 20px env(safe-area-inset-bottom) 20px;
}

header { margin: 12px 0 32px; }
header h1 {
    margin: 0 0 6px;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.02em;
}
header p {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
}

main {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.app {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    object-fit: cover;
    background: var(--border);
}

.meta { min-width: 0; }
.meta h2 {
    margin: 0 0 2px;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.desc {
    margin: 0 0 4px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.35;
}
.version {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.install {
    display: inline-block;
    padding: 8px 16px;
    background: var(--accent);
    color: var(--accent-fg);
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}
.install:active { opacity: 0.7; }

footer {
    margin-top: 40px;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}
footer p { margin: 0; }
