/* ============================================================
   Remocat — static pages, clean minimal dark theme.
   Few colors, no navigation. Each page is self-contained.
   ============================================================ */

:root {
    color-scheme: dark;
    --bg:      #0d100f;   /* page background            */
    --surface: #161a18;   /* cards / header             */
    --text:    #e2e7e3;   /* primary text               */
    --muted:   #a3ada7;   /* secondary text             */
    --accent:  #6fc2a4;   /* single accent (headings/links) */
    --border:  #2a302d;   /* hairlines                  */
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; }
::selection { background: var(--accent); color: #04140e; }

/* ---- Layout ---- */
.wrap { max-width: 46rem; margin: 0 auto; padding: 0 1.25rem; }

/* ---- Header (brand + language switch) ---- */
.header {
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    max-width: 46rem; margin: 0 auto; padding: 1rem 1.25rem;
}
.brand {
    display: flex; align-items: center; gap: 0.625rem;
}
.brand img { width: 2rem; height: 2rem; }
.brand span { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }

/* ---- Language switcher ---- */
.lang-switch { display: flex; align-items: center; }
.lang-forced .lang-switch { display: none; }
.lang-switch select {
    appearance: none;
    -webkit-appearance: none;
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 0.4rem 2rem 0.4rem 0.75rem;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236fc2a4' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
    transition: border-color 0.15s ease;
}
.lang-switch select:hover { border-color: var(--accent); }
.lang-switch select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lang-switch option { background: var(--surface); color: var(--text); }

/* ---- Page title ---- */
.page-head { padding: 3rem 0 1.5rem; }
.page-head .eyebrow {
    margin: 0 0 0.75rem;
    font-size: 0.72rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.18em;
    color: var(--accent);
}
.page-head h1 { margin: 0; font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; }
.page-head .subtitle { margin: 0.75rem 0 0; color: var(--muted); }

/* ---- Content ---- */
.content { padding-bottom: 4rem; }
.content h2 {
    margin: 2.25rem 0 0.6rem;
    font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em;
    color: var(--text);
}
.content h3 {
    margin: 1.75rem 0 0.4rem;
    font-size: 1.05rem; font-weight: 600;
    color: var(--accent);
}
.content > :first-child { margin-top: 0; }
.content p { margin: 0 0 1rem; color: var(--muted); }
.content ul, .content ol { margin: 0 0 1.25rem; padding-left: 1.4rem; color: var(--muted); }
.content li { margin-bottom: 0.4rem; }
.content li::marker { color: var(--accent); }
.content strong, .content b { color: var(--text); font-weight: 600; }
.content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.content a:hover { opacity: 0.75; }

/* ---- Home navigation cards ---- */
.nav-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 1rem;
    padding-bottom: 4rem;
}
.nav-card {
    display: block;
    padding: 1.25rem 1.4rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, transform 0.15s ease;
}
.nav-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}
.nav-card-title {
    display: block;
    font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em;
    color: var(--accent);
}
.nav-card-desc {
    display: block;
    margin-top: 0.4rem;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

/* ---- Footer (copyright only) ---- */
.footer {
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    color: var(--muted);
    font-size: 0.875rem;
}
.footer .wrap { display: flex; }
