/*
   Minimal shared stylesheet for weavevault.app.
   System fonts only. No web fonts, no third-party scripts, no analytics —
   keeps the site's behavior consistent with the privacy policy's claim
   that we do not track visitors.
   Light/dark via prefers-color-scheme. Mobile-first.
*/

:root {
    --bg: #ffffff;
    --surface: #f7f7f8;
    --content: #1a1a1c;
    --content-muted: #5e5e64;
    --accent: #2f5af0;
    --border: #e2e2e6;
    --max-width: 720px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0d0d10;
        --surface: #16161a;
        --content: #f3f3f5;
        --content-muted: #9999a1;
        --accent: #6f8fff;
        --border: #2a2a30;
    }
}

* { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--content);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 17px;
    line-height: 1.55;
}

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

/* Header */

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 24px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 24px 24px 0;
}

.brand {
    font-weight: 600;
    color: var(--content);
    font-size: 17px;
}
.brand[aria-current="page"] { color: var(--content); }

.site-header nav {
    display: flex;
    gap: 20px;
    font-size: 15px;
}

.site-header nav a {
    color: var(--content-muted);
}
.site-header nav a[aria-current="page"] {
    color: var(--content);
    font-weight: 500;
}

/* Footer */

.site-footer {
    max-width: var(--max-width);
    margin: 64px auto 32px;
    padding: 24px;
    border-top: 1px solid var(--border);
    color: var(--content-muted);
    font-size: 14px;
    text-align: center;
}

/* Landing */

.landing {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 96px 24px 64px;
    text-align: center;
}

.landing h1 {
    font-size: 44px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 24px;
}

.landing .tagline {
    color: var(--content-muted);
    font-size: 19px;
    line-height: 1.5;
    margin: 0 auto 40px;
    max-width: 480px;
}

.cta { margin: 32px 0 0; }

.store-badge {
    display: inline-block;
    padding: 12px 22px;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--content);
    font-weight: 500;
    background: var(--surface);
}
.store-badge:hover {
    text-decoration: none;
    border-color: var(--content-muted);
}

/* Prose (privacy + terms) */

.prose {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 48px 24px 32px;
}

.prose h1 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 8px;
}

.prose .updated {
    color: var(--content-muted);
    font-size: 14px;
    margin: 0 0 32px;
}

.prose h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 40px 0 12px;
}

.prose p, .prose ul {
    margin: 0 0 16px;
}

.prose ul {
    padding-left: 22px;
}

.prose li { margin-bottom: 8px; }

.prose strong { font-weight: 600; }

/* Mobile tweaks */

@media (max-width: 480px) {
    .landing { padding: 64px 20px 48px; }
    .landing h1 { font-size: 34px; }
    .landing .tagline { font-size: 17px; }
    .prose { padding: 32px 20px 24px; }
    .prose h1 { font-size: 26px; }
    .site-header { padding: 20px 20px 0; }
}
