/* Viewpoint docs site — shared stylesheet.
 *
 * Extracted from index.html's original inline <style> so the
 * landing page AND every Jekyll-rendered markdown page reads
 * with the same dark aesthetic. Visual changes go here once;
 * both surfaces inherit.
 */

:root {
    --bg-color: #0f1115;
    --text-color: #e2e8f0;
    --muted-text: #94a3b8;
    --accent-color: #38bdf8;
    --accent-hover: #7dd3fc;
    --card-bg: #1e222b;
    --card-border: #2e3440;
    --footer-text: #64748b;
}

* { box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 40px 20px;
}

.container {
    max-width: 720px;
    margin: 0 auto;
}

/* ---- Site header (nav across landing + docs) ---- */

.site-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--card-border);
}

.site-header__brand {
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 12px 0;
}

.site-header__brand a {
    color: inherit;
    text-decoration: none;
}

.site-header__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-header__nav a {
    color: var(--muted-text);
    text-decoration: none;
    font-size: 0.95rem;
}

.site-header__nav a:hover,
.site-header__nav a[aria-current="page"] {
    color: var(--accent-color);
}

/* ---- Landing hero ---- */

.hero {
    margin-bottom: 32px;
}

.hero h1 {
    font-size: 2.4rem;
    margin: 0 0 8px 0;
}

.hero p {
    font-size: 1.05rem;
    color: var(--text-color);
    margin: 0;
}

.hero__cta {
    margin-top: 20px !important;
}

/* ---- Page chrome ---- */

main {
    /* Pages with frontmatter render their title as an <h1>
     * inside <main>; main itself stays unstyled so the layout
     * stays generic. */
}

.page-eyebrow {
    display: inline-block;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--muted-text);
    margin-bottom: 8px;
}

.page-meta {
    font-size: 0.85rem;
    color: var(--footer-text);
    margin-top: 0;
    margin-bottom: 24px;
}

.page-meta + h1 {
    /* The page-meta sits above the markdown's first H1 so the
     * small meta-line doesn't visually orphan from its title.
     * Tightens the gap that the H1's default `margin-top: 0`
     * would already collapse — explicit to defend against
     * future H1-margin changes. */
    margin-top: 0;
}

.page-meta__status {
    display: inline-block;
    padding: 2px 8px;
    border: 1px solid var(--card-border);
    border-radius: 4px;
    margin-left: 8px;
    color: var(--muted-text);
}

/* ---- Typography ---- */

h1 { font-size: 2rem; color: #ffffff; margin: 0 0 8px 0; }
h2 { font-size: 1.4rem; color: #ffffff; margin-top: 40px; margin-bottom: 15px; }
h3 { font-size: 1.1rem; color: #ffffff; margin-top: 25px; margin-bottom: 10px; }

p { margin-bottom: 20px; color: var(--muted-text); }

ul, ol { color: var(--muted-text); margin-bottom: 20px; padding-left: 20px; }
li { margin-bottom: 8px; }

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

strong { color: #cbd5e1; }

blockquote {
    border-left: 3px solid var(--accent-color);
    padding: 0 16px;
    margin: 24px 0;
    color: var(--text-color);
    background-color: var(--card-bg);
    padding: 16px 20px;
    border-radius: 4px;
}

blockquote p:last-child { margin-bottom: 0; }

code {
    background-color: var(--card-bg);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
    font-size: 0.9em;
    color: var(--text-color);
}

pre {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 16px;
    border-radius: 6px;
    overflow-x: auto;
    margin-bottom: 24px;
}

pre code {
    background: transparent;
    padding: 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}

th, td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--card-border);
}

th {
    color: #ffffff;
    font-weight: 600;
    background-color: var(--card-bg);
}

td { color: var(--muted-text); }

hr {
    border: none;
    border-top: 1px solid var(--card-border);
    margin: 40px 0;
}

/* ---- Reusable cards (landing page uses these for sections) ---- */

.card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 30px;
}

.legal-section {
    font-size: 0.95rem;
    color: var(--muted-text);
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid var(--card-border);
}

.legal-section h2 { font-size: 1.4rem; }
.legal-section h3 { font-size: 1.05rem; }
.legal-section p, .legal-section li { font-size: 0.95rem; }

.contact-btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--bg-color);
    padding: 10px 20px;
    font-weight: bold;
    border-radius: 4px;
    margin-top: 10px;
}

.anchor-target { scroll-margin-top: 20px; }

/* ---- Documentation index grid (used on landing for doc cards) ---- */

.doc-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 30px;
}

@media (min-width: 600px) {
    .doc-grid { grid-template-columns: 1fr 1fr; }
}

.doc-grid__item {
    display: block;
    padding: 18px 20px;
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    text-decoration: none;
    transition: border-color 0.15s ease;
}

.doc-grid__item:hover {
    border-color: var(--accent-color);
    text-decoration: none;
}

.doc-grid__item h3 {
    margin: 0 0 6px 0;
    font-size: 1rem;
    color: var(--accent-color);
}

.doc-grid__item p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted-text);
}

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

.site-footer {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid var(--card-border);
    font-size: 0.85rem;
    color: var(--footer-text);
}

.site-footer a { color: var(--footer-text); }
.site-footer a:hover { color: var(--accent-color); }
