/* CarLog website — single stylesheet, no external dependencies, no trackers. */

:root {
    color-scheme: light dark;

    --bg: #f6f7f9;
    --bg-elevated: #ffffff;
    --text: #12161c;
    --text-muted: #5b6470;
    --border: #e2e5ea;
    --accent: #1f6feb;
    --accent-soft: rgba(31, 111, 235, 0.10);
    --shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 8px 24px rgba(16, 24, 40, 0.06);
    --radius: 16px;
    --maxw: 900px;
    --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto,
        "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0e1116;
        --bg-elevated: #161b22;
        --text: #e8ecf1;
        --text-muted: #9aa4b2;
        --border: #262d36;
        --accent: #6aa8ff;
        --accent-soft: rgba(106, 168, 255, 0.12);
        --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 8px 24px rgba(0, 0, 0, 0.35);
    }
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header ------------------------------------------------------------------ */

.site-header {
    border-bottom: 1px solid var(--border);
    background: var(--bg-elevated);
}

.site-header .wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    padding-bottom: 14px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    text-decoration: none;
    color: var(--text);
}

.brand img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 18px;
    font-size: 16px;
    transition: color 0.18s ease;
}

nav a:first-child { margin-left: 0; }
nav a:hover, nav a:focus-visible { color: var(--accent); }

/* Hero -------------------------------------------------------------------- */

.hero {
    padding: 64px 0 40px;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2rem, 6vw, 3rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
}

.hero p.lede {
    font-size: clamp(1.05rem, 2.5vw, 1.25rem);
    color: var(--text-muted);
    max-width: 42ch;
    margin: 0 auto 28px;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 18px;
}

.button {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.button:hover, .button:focus-visible { transform: translateY(-1px); opacity: 0.92; }
.button.secondary {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--border);
}

/* Sections ---------------------------------------------------------------- */

section { padding: 40px 0; }

h2 {
    font-size: clamp(1.35rem, 3.5vw, 1.75rem);
    letter-spacing: -0.01em;
    margin: 0 0 16px;
}

h3 {
    font-size: 1.05rem;
    margin: 0 0 6px;
}

p { margin: 0 0 14px; }

a { color: var(--accent); }

ul { padding-left: 1.2em; }
li { margin-bottom: 6px; }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover { transform: translateY(-2px); border-color: var(--accent); }

.card p { color: var(--text-muted); margin: 0; font-size: 16px; }

/* Screenshots ------------------------------------------------------------- */

.shots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.shot {
    aspect-ratio: 9 / 19.5;
    border: 1px dashed var(--border);
    border-radius: 24px;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    padding: 12px;
}

.shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
}

/* FAQ --------------------------------------------------------------------- */

details {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 18px;
    margin-bottom: 12px;
    transition: border-color 0.2s ease;
}

details[open] { border-color: var(--accent); }

summary {
    cursor: pointer;
    font-weight: 600;
    list-style: none;
}

summary::-webkit-details-marker { display: none; }

summary::after {
    content: "+";
    float: right;
    color: var(--text-muted);
    font-weight: 400;
    transition: transform 0.2s ease;
}

details[open] summary::after { content: "–"; }

details p, details ul { margin-top: 10px; color: var(--text-muted); }

/* Legal text -------------------------------------------------------------- */

.legal h2 { margin-top: 32px; }
.legal p, .legal li { color: var(--text); }
.effective { color: var(--text-muted); font-size: 15px; }

/* Footer ------------------------------------------------------------------ */

.site-footer {
    border-top: 1px solid var(--border);
    margin-top: 40px;
    padding: 28px 0 40px;
    color: var(--text-muted);
    font-size: 15px;
}

.site-footer .wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

.credit { display: flex; align-items: center; gap: 8px; }
.credit img { width: 22px; height: 22px; object-fit: contain; }

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
