/* Opsynth website: one stylesheet for every page. Light by default, dark when the system asks for it. */

:root {
    --bg: #F7F5FC;
    --card: #FFFFFF;
    --line: #E4DEF2;
    --text: #1D1830;
    --muted: #5C5575;
    --accent: #7C55D9;
    --accent-text: #6A43CC;
    --accent-soft: #F0E9FF;
    --on-accent: #FFFFFF;
    --tile: #A47DEE;
    --radius: 16px;
    --heading: "Space Grotesk", system-ui, "Segoe UI", Roboto, sans-serif;
    --body: "Inter", system-ui, "Segoe UI", Roboto, sans-serif;
    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #13111A;
        --card: #1F1B2C;
        --line: #3A3354;
        --text: #EEEAF8;
        --muted: #B3AACB;
        --accent: #A47DEE;
        --accent-text: #C2A6F7;
        --accent-soft: #2C2347;
        --on-accent: #170F2A;
    }
}

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

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.6 var(--body);
}

a { color: var(--accent-text); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--heading); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 12px; }
h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.6vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 14px; }
code { font-size: 0.9em; background: var(--accent-soft); border-radius: 6px; padding: 1px 6px; overflow-wrap: anywhere; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }

/* Header and footer */

.site-header { padding: 18px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 700 1.2rem var(--heading); }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.site-header nav a { font-weight: 600; text-decoration: none; }

.site-footer { border-top: 1px solid var(--line); margin-top: 72px; padding: 28px 0 40px; color: var(--muted); font-size: 0.9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

/* Buttons */

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 24px; }
.btn {
    display: inline-block;
    background: var(--accent);
    color: var(--on-accent);
    border-radius: 12px;
    padding: 12px 22px;
    font-weight: 600;
    text-decoration: none;
}
.btn:hover { filter: brightness(1.08); }
.link { font-weight: 600; }

/* Home page */

.hero { padding-top: 40px; padding-bottom: 32px; text-align: center; }
.hero .lead { font-size: clamp(1.05rem, 2.4vw, 1.25rem); color: var(--muted); max-width: 640px; margin: 0 auto; }
.hero .actions { justify-content: center; }

.shot {
    position: relative;
    aspect-ratio: 2561 / 1518;
    margin: 0;
    background: var(--accent-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.shot img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top left;
    color: var(--muted);
    font-size: 0.9rem;
}

.feature { display: grid; gap: 28px; align-items: center; padding: 56px 0 0; }
.feature p { color: var(--muted); }
@media (min-width: 820px) {
    .feature.with-shot { grid-template-columns: 2fr 3fr; }
}

.strip { display: grid; gap: 16px; margin-top: 72px; }
@media (min-width: 680px) { .strip { grid-template-columns: 1fr 1fr; } }
.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
}
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--muted); }

/* Policy pages */

.doc { padding: 24px 0 0; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.6rem); }
.doc h2 { font-size: 1.4rem; margin-top: 36px; }
.doc .purpose { font-size: 1.1rem; color: var(--muted); }
.doc .updated { color: var(--muted); font-size: 0.9rem; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.table { overflow-x: auto; margin: 0 0 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.table table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.table th, .table td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.table tr:last-child td { border-bottom: 0; }
.table th { font-weight: 600; }
