DOCS-1: Init document work

This commit is contained in:
Blake Ridgway
2026-07-28 07:20:32 -05:00
parent 8f02a3fc8e
commit 0cbcc962f7
66 changed files with 12224 additions and 71 deletions

834
static/css/base.css Normal file
View File

@@ -0,0 +1,834 @@
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
--white: #ffffff;
--bg: #f8fafc;
--border: #e2e8f0;
--border-subtle: #f1f5f9;
--text: #475569;
--text-strong: #1e293b;
--text-muted: #94a3b8;
--accent: #0077cc;
--accent-dark: #005fa3;
--accent-light: #eff6ff;
--accent-border: #bfdbfe;
--cyan: #00c8f0;
--green: #16a34a;
--dark: #0f172a;
--radius-sm: 6px;
--radius: 12px;
--radius-lg: 16px;
--shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
--shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
--shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
--t: 0.15s ease;
--sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
--mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', Menlo, monospace;
}
html { scroll-behavior: smooth; }
body {
font-family: var(--sans);
background: var(--white);
color: var(--text);
line-height: 1.6;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
/* ── CONTAINER ── */
.container {
max-width: 1100px;
margin: 0 auto;
padding: 0 1.5rem;
}
/* ── BUTTONS ── */
.btn {
display: inline-flex;
align-items: center;
gap: 0.375rem;
padding: 0.625rem 1.25rem;
border-radius: var(--radius-sm);
font-size: 0.9rem;
font-weight: 600;
font-family: var(--sans);
text-decoration: none;
cursor: pointer;
border: none;
transition: all var(--t);
white-space: nowrap;
line-height: 1;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); }
.btn--ghost { background: transparent; color: var(--text); padding: 0.625rem 0.875rem; }
.btn--ghost:hover { color: var(--text-strong); background: var(--bg); }
.btn--sm { padding: 0.4rem 0.875rem; font-size: 0.8125rem; }
/* ── NAV ── */
.nav {
position: sticky;
top: 0;
z-index: 100;
background: rgba(255,255,255,0.95);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border-bottom: 1px solid var(--border);
}
.nav__inner {
display: flex;
align-items: center;
height: 60px;
gap: 1rem;
}
.nav__logo {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 1rem;
font-weight: 700;
color: var(--text-strong);
text-decoration: none;
flex-shrink: 0;
letter-spacing: -0.01em;
}
.nav__logo svg { flex-shrink: 0; }
.nav__docs-badge {
font-size: 0.7rem;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--accent);
background: var(--accent-light);
border: 1px solid var(--accent-border);
border-radius: 100px;
padding: 0.2em 0.6em;
text-decoration: none;
flex-shrink: 0;
}
.nav__search-wrap {
flex: 1;
max-width: 360px;
position: relative;
}
.nav__search {
width: 100%;
font-family: var(--sans);
font-size: 0.875rem;
color: var(--text-strong);
background: var(--bg);
border: 1.5px solid var(--border);
border-radius: var(--radius-sm);
padding: 0.45rem 0.875rem;
outline: none;
transition: border-color var(--t), box-shadow var(--t);
}
.nav__search::placeholder { color: var(--text-muted); }
.nav__search:focus {
border-color: var(--accent);
box-shadow: 0 0 0 3px rgba(0,119,204,0.12);
background: var(--white);
}
.nav__actions {
display: flex;
gap: 0.5rem;
margin-left: auto;
align-items: center;
}
.nav__hamburger {
display: none;
flex-direction: column;
gap: 5px;
background: none;
border: none;
cursor: pointer;
padding: 6px;
margin-left: auto;
flex-shrink: 0;
}
.nav__hamburger span {
display: block;
width: 22px;
height: 2px;
background: var(--text-strong);
border-radius: 2px;
transition: all 0.2s;
}
.nav__mobile {
display: none;
flex-direction: column;
position: fixed;
top: 60px;
left: 0; right: 0;
z-index: 99;
background: var(--white);
border-top: 1px solid var(--border);
padding: 0.75rem 1.5rem 1.25rem;
gap: 0;
box-shadow: 0 4px 16px rgba(0,0,0,0.08);
max-height: calc(100vh - 60px);
overflow-y: auto;
}
.nav__mobile.open { display: flex; }
.nav__mobile-section {
font-size: 0.675rem;
font-weight: 700;
letter-spacing: 0.1em;
text-transform: uppercase;
color: var(--text-muted);
padding: 1rem 0 0.375rem;
}
.nav__mobile a {
font-size: 0.9rem;
font-weight: 500;
color: var(--text-strong);
text-decoration: none;
padding: 0.625rem 0;
border-bottom: 1px solid var(--border-subtle);
display: block;
}
.nav__mobile a.active { color: var(--accent); font-weight: 600; }
.nav__mobile-actions {
display: flex;
gap: 0.75rem;
padding-top: 1rem;
}
.nav__mobile-actions .btn { flex: 1; justify-content: center; }
/* ── BREADCRUMB ── */
.breadcrumb {
display: flex;
align-items: center;
gap: 0.375rem;
font-size: 0.8rem;
font-weight: 500;
color: var(--text-muted);
margin-bottom: 1.75rem;
}
.breadcrumb a {
color: var(--text-muted);
text-decoration: none;
transition: color var(--t);
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb__sep { color: var(--border); font-weight: 400; }
/* ── FOOTER ── */
.footer {
background: var(--dark);
border-top: 1px solid rgba(255,255,255,0.06);
padding: 3.5rem 0 2rem;
margin-top: auto;
}
.footer__grid {
display: grid;
grid-template-columns: 2fr 1fr 1fr 1fr;
gap: 3rem;
margin-bottom: 2.5rem;
}
.footer__brand { max-width: 280px; }
.footer__logo {
display: flex;
align-items: center;
gap: 0.5rem;
color: #f1f5f9;
font-weight: 700;
font-size: 0.9375rem;
margin-bottom: 0.875rem;
text-decoration: none;
letter-spacing: -0.01em;
}
.footer__tagline { font-size: 0.8125rem; color: #475569; line-height: 1.65; margin-bottom: 1.125rem; }
.footer__status {
display: inline-flex;
align-items: center;
gap: 0.4rem;
font-size: 0.75rem;
font-weight: 600;
color: #22c55e;
text-decoration: none;
}
.footer__status::before {
content: '';
width: 6px; height: 6px;
border-radius: 50%;
background: #22c55e;
box-shadow: 0 0 0 2px rgba(34,197,94,0.2);
}
.footer__col-title {
font-size: 0.675rem;
font-weight: 700;
letter-spacing: 0.1em;
text-transform: uppercase;
color: #475569;
margin-bottom: 1rem;
}
.footer__links { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer__link { font-size: 0.8125rem; color: #475569; text-decoration: none; transition: color var(--t); }
.footer__link:hover { color: #94a3b8; }
.footer__bottom {
border-top: 1px solid rgba(255,255,255,0.06);
padding-top: 1.5rem;
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 1rem;
}
.footer__copy { font-size: 0.75rem; color: #475569; }
.footer__legal { display: flex; gap: 1.25rem; }
.footer__legal a { font-size: 0.75rem; color: #475569; text-decoration: none; }
.footer__legal a:hover { color: #64748b; }
/* ── RESPONSIVE ── */
@media (max-width: 960px) {
@media (max-width: 768px) {
.nav__actions { display: none; }
.nav__search-wrap { display: none; }
.nav__docs-menu { display: none; }
.nav__hamburger { display: flex; }
}
.footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
.nav__actions { display: none; }
.nav__search-wrap { display: none; }
.nav__hamburger { display: flex; }
}
@media (max-width: 600px) {
.footer__grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}
=======
/* ============================================================
base.css — Arcline design system base
============================================================ */
/* ── ROOT ── */
:root {
--sans: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
--mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
--accent: #0ea5e9;
--accent-dark: #0284c7;
--accent-light: #e0f2fe;
--accent-border:#bae6fd;
--bg: #f8fafc;
--white: #ffffff;
--text: #334155;
--text-strong: #0f172a;
--text-muted: #64748b;
--border: #e2e8f0;
--border-subtle:#f1f5f9;
--radius: 8px;
--radius-sm: 6px;
--shadow-md: 0 4px 12px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
--t: 0.15s ease;
}
/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
font-family: var(--sans);
font-size: 1rem;
color: var(--text);
background: var(--white);
line-height: 1.6;
min-height: 100vh;
}
img, svg { max-width: 100%; height: auto; display: block; }
/* ── UTILITIES ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
/* ── BUTTONS ── */
.btn {
display: inline-flex; align-items: center; gap: 0.375rem;
font-family: var(--sans); font-weight: 600;
font-size: 0.875rem; padding: 0.625rem 1.25rem;
border-radius: var(--radius-sm); border: 1px solid transparent;
text-decoration: none; cursor: pointer;
transition: background var(--t), border-color var(--t), color var(--t), box-shadow var(--t);
line-height: 1.3;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); box-shadow: 0 2px 8px rgba(14,165,233,0.3); }
.btn--ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn--ghost:hover { border-color: #cbd5e1; background: var(--bg); color: var(--text-strong); }
.btn--danger { background: transparent; border-color: #fecaca; color: #dc2626; }
.btn--danger:hover { background: #fef2f2; border-color: #f87171; }
.btn--sm { font-size: 0.775rem; padding: 0.4rem 0.875rem; }
/* ── NAV ── */
.nav {
background: var(--white);
border-bottom: 1px solid var(--border);
position: sticky; top: 0; z-index: 100;
height: 60px; display: flex; align-items: center;
}
.nav__inner {
display: flex; align-items: center; gap: 1rem;
width: 100%;
}
.nav__logo {
display: flex; align-items: center; gap: 0.5rem;
font-size: 1.05rem; font-weight: 800;
color: var(--text-strong); text-decoration: none;
letter-spacing: -0.03em;
}
.nav__docs-badge {
font-size: 0.775rem; font-weight: 700; letter-spacing: 0.04em;
text-transform: uppercase; color: var(--accent);
text-decoration: none; background: var(--accent-light);
padding: 0.2rem 0.5rem; border-radius: 3px;
transition: color var(--t), background var(--t);
}
.nav__docs-badge:hover { color: var(--accent-dark); background: var(--accent-border); }
.nav__actions { display: flex; gap: 0.5rem; margin-left: auto; white-space: nowrap; }
.nav__search-wrap { flex: 0 1 320px; margin-left: auto; }
.nav__search {
width: 100%; font-family: var(--sans); font-size: 0.875rem;
padding: 0.5rem 0.75rem; border: 1px solid var(--border);
border-radius: var(--radius-sm); background: var(--bg);
color: var(--text-strong); outline: none;
transition: border-color var(--t), box-shadow var(--t);
}
.nav__search:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(14,165,233,0.15); }
.nav__search::placeholder { color: var(--text-muted); }
/* ── HAMBURGER ── */
.nav__hamburger {
display: none; flex-direction: column; gap: 4px;
background: none; border: none; cursor: pointer;
padding: 0.375rem;
}
.nav__hamburger span {
display: block; width: 20px; height: 2px;
background: var(--text); border-radius: 1px;
transition: transform var(--t), opacity var(--t);
}
/* ── MOBILE NAV ── */
.nav__mobile {
display: none; background: var(--white);
border-bottom: 1px solid var(--border);
padding: 1rem 1.5rem 1.5rem;
position: sticky; top: 60px; z-index: 99;
max-height: calc(100vh - 60px); overflow-y: auto;
}
.nav__mobile.open { display: block; }
.nav__mobile-section {
font-size: 0.675rem; font-weight: 700;
letter-spacing: 0.1em; text-transform: uppercase;
color: var(--text-muted); margin: 1rem 0 0.375rem;
}
.nav__mobile-section:first-child { margin-top: 0; }
.nav__mobile a {
display: block; font-size: 0.875rem; color: var(--text);
text-decoration: none; padding: 0.4rem 0.5rem;
border-radius: var(--radius-sm);
transition: color var(--t), background var(--t);
}
.nav__mobile a:hover { color: var(--text-strong); background: var(--border-subtle); }
.nav__mobile a.active { color: var(--accent); font-weight: 600; background: var(--accent-light); }
.nav__mobile-actions { display: flex; gap: 0.5rem; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--border); }
/* ── BREADCRUMB ── */
.breadcrumb {
display: flex; align-items: center; gap: 0.375rem;
font-size: 0.8125rem; color: var(--text-muted);
margin-bottom: 1.75rem;
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb__sep { color: var(--border); font-size: 0.75rem; }
/* ── FOOTER ── */
.footer {
background: #0f172a; color: #94a3b8;
padding: 3rem 1.5rem; margin-top: 3rem;
font-size: 0.875rem;
}
.footer__grid {
display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
gap: 3rem; margin-bottom: 2rem;
}
.footer__logo {
display: flex; align-items: center; gap: 0.5rem;
font-size: 1.125rem; font-weight: 800;
color: #f1f5f9; text-decoration: none; margin-bottom: 0.75rem;
}
.footer__tagline { font-size: 0.8125rem; line-height: 1.65; margin-bottom: 0.75rem; }
.footer__status {
display: inline-flex; align-items: center; gap: 0.4rem;
font-size: 0.8125rem; font-weight: 600;
color: #22c55e; text-decoration: none;
}
.footer__status::before {
content: ''; display: block; width: 8px; height: 8px;
border-radius: 50%; background: #22c55e;
}
.footer__col-title {
font-size: 0.675rem;
font-weight: 700;
letter-spacing: 0.1em;
text-transform: uppercase;
color: #475569;
margin-bottom: 1rem;
}
.footer__links { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer__link { font-size: 0.8125rem; color: #475569; text-decoration: none; transition: color var(--t); }
.footer__link:hover { color: #94a3b8; }
.footer__bottom {
border-top: 1px solid rgba(255,255,255,0.06);
padding-top: 1.5rem;
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 1rem;
}
.footer__copy { font-size: 0.75rem; color: #475569; }
.footer__legal { display: flex; gap: 1.25rem; }
.footer__legal a { font-size: 0.75rem; color: #475569; text-decoration: none; }
.footer__legal a:hover { color: #64748b; }
/* ── RESPONSIVE ── */
@media (max-width: 960px) {
.footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
.nav__actions { display: none; }
.nav__search-wrap { display: none; }
.nav__docs-menu { display: none; }
.nav__hamburger { display: flex; }
}
@media (max-width: 600px) {
.footer__grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
--white: #ffffff;
--bg: #f8fafc;
--border: #e2e8f0;
--border-subtle: #f1f5f9;
--text: #475569;
--text-strong: #1e293b;
--text-muted: #94a3b8;
--accent: #0077cc;
--accent-dark: #005fa3;
--accent-light: #eff6ff;
--accent-border: #bfdbfe;
--cyan: #00c8f0;
--green: #16a34a;
--dark: #0f172a;
--radius-sm: 6px;
--radius: 12px;
--radius-lg: 16px;
--shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
--shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
--shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
--t: 0.15s ease;
--sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
--mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', Menlo, monospace;
}
html { scroll-behavior: smooth; }
body {
font-family: var(--sans);
background: var(--white);
color: var(--text);
line-height: 1.6;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
/* ── CONTAINER ── */
.container {
max-width: 1100px;
margin: 0 auto;
padding: 0 1.5rem;
}
/* ── BUTTONS ── */
.btn {
display: inline-flex;
align-items: center;
gap: 0.375rem;
padding: 0.625rem 1.25rem;
border-radius: var(--radius-sm);
font-size: 0.9rem;
font-weight: 600;
font-family: var(--sans);
text-decoration: none;
cursor: pointer;
border: none;
transition: all var(--t);
white-space: nowrap;
line-height: 1;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); }
.btn--ghost { background: transparent; color: var(--text); padding: 0.625rem 0.875rem; }
.btn--ghost:hover { color: var(--text-strong); background: var(--bg); }
.btn--sm { padding: 0.4rem 0.875rem; font-size: 0.8125rem; }
/* ── NAV ── */
.nav {
position: sticky;
top: 0;
z-index: 100;
background: rgba(255,255,255,0.95);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border-bottom: 1px solid var(--border);
}
.nav__inner {
display: flex;
align-items: center;
height: 60px;
gap: 1rem;
}
.nav__logo {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 1rem;
font-weight: 700;
color: var(--text-strong);
text-decoration: none;
flex-shrink: 0;
letter-spacing: -0.01em;
}
.nav__logo svg { flex-shrink: 0; }
.nav__docs-badge {
font-size: 0.7rem;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--accent);
background: var(--accent-light);
border: 1px solid var(--accent-border);
border-radius: 100px;
padding: 0.2em 0.6em;
text-decoration: none;
flex-shrink: 0;
}
.nav__search-wrap {
flex: 1;
max-width: 360px;
position: relative;
}
.nav__search {
width: 100%;
font-family: var(--sans);
font-size: 0.875rem;
color: var(--text-strong);
background: var(--bg);
border: 1.5px solid var(--border);
border-radius: var(--radius-sm);
padding: 0.45rem 0.875rem;
outline: none;
transition: border-color var(--t), box-shadow var(--t);
}
.nav__search::placeholder { color: var(--text-muted); }
.nav__search:focus {
border-color: var(--accent);
box-shadow: 0 0 0 3px rgba(0,119,204,0.12);
background: var(--white);
}
.nav__actions {
display: flex;
gap: 0.5rem;
margin-left: auto;
align-items: center;
}
.nav__hamburger {
display: none;
flex-direction: column;
gap: 5px;
background: none;
border: none;
cursor: pointer;
padding: 6px;
margin-left: auto;
flex-shrink: 0;
}
.nav__hamburger span {
display: block;
width: 22px;
height: 2px;
background: var(--text-strong);
border-radius: 2px;
transition: all 0.2s;
}
.nav__mobile {
display: none;
flex-direction: column;
position: fixed;
top: 60px;
left: 0; right: 0;
z-index: 99;
background: var(--white);
border-top: 1px solid var(--border);
padding: 0.75rem 1.5rem 1.25rem;
gap: 0;
box-shadow: 0 4px 16px rgba(0,0,0,0.08);
max-height: calc(100vh - 60px);
overflow-y: auto;
}
.nav__mobile.open { display: flex; }
.nav__mobile-section {
font-size: 0.675rem;
font-weight: 700;
letter-spacing: 0.1em;
text-transform: uppercase;
color: var(--text-muted);
padding: 1rem 0 0.375rem;
}
.nav__mobile a {
font-size: 0.9rem;
font-weight: 500;
color: var(--text-strong);
text-decoration: none;
padding: 0.625rem 0;
border-bottom: 1px solid var(--border-subtle);
display: block;
}
.nav__mobile a.active { color: var(--accent); font-weight: 600; }
.nav__mobile-actions {
display: flex;
gap: 0.75rem;
padding-top: 1rem;
}
.nav__mobile-actions .btn { flex: 1; justify-content: center; }
/* ── BREADCRUMB ── */
.breadcrumb {
display: flex;
align-items: center;
gap: 0.375rem;
font-size: 0.8rem;
font-weight: 500;
color: var(--text-muted);
margin-bottom: 1.75rem;
}
.breadcrumb a {
color: var(--text-muted);
text-decoration: none;
transition: color var(--t);
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb__sep { color: var(--border); font-weight: 400; }
/* ── FOOTER ── */
.footer {
background: var(--dark);
border-top: 1px solid rgba(255,255,255,0.06);
padding: 3.5rem 0 2rem;
margin-top: auto;
}
.footer__grid {
display: grid;
grid-template-columns: 2fr 1fr 1fr 1fr;
gap: 3rem;
margin-bottom: 2.5rem;
}
.footer__brand { max-width: 280px; }
.footer__logo {
display: flex;
align-items: center;
gap: 0.5rem;
color: #f1f5f9;
font-weight: 700;
font-size: 0.9375rem;
margin-bottom: 0.875rem;
text-decoration: none;
letter-spacing: -0.01em;
}
.footer__tagline { font-size: 0.8125rem; color: #475569; line-height: 1.65; margin-bottom: 1.125rem; }
.footer__status {
display: inline-flex;
align-items: center;
gap: 0.4rem;
font-size: 0.75rem;
font-weight: 600;
color: #22c55e;
text-decoration: none;
}
.footer__status::before {
content: '';
width: 6px; height: 6px;
border-radius: 50%;
background: #22c55e;
box-shadow: 0 0 0 2px rgba(34,197,94,0.2);
}
.footer__col-title {
font-size: 0.675rem;
font-weight: 700;
letter-spacing: 0.1em;
text-transform: uppercase;
color: #475569;
margin-bottom: 1rem;
}
.footer__links { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer__link { font-size: 0.8125rem; color: #475569; text-decoration: none; transition: color var(--t); }
.footer__link:hover { color: #94a3b8; }
.footer__bottom {
border-top: 1px solid rgba(255,255,255,0.06);
padding-top: 1.5rem;
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 1rem;
}
.footer__copy { font-size: 0.75rem; color: #475569; }
.footer__legal { display: flex; gap: 1.25rem; }
.footer__legal a { font-size: 0.75rem; color: #475569; text-decoration: none; }
.footer__legal a:hover { color: #64748b; }
/* ── RESPONSIVE ── */
@media (max-width: 960px) {
@media (max-width: 768px) {
.nav__actions { display: none; }
.nav__search-wrap { display: none; }
.nav__docs-menu { display: none; }
.nav__hamburger { display: flex; }
}
.footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
.nav__actions { display: none; }
.nav__search-wrap { display: none; }
.nav__hamburger { display: flex; }
}
@media (max-width: 600px) {
.footer__grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}

530
static/css/docs.css Normal file
View File

@@ -0,0 +1,530 @@
/* ============================================================
docs.css — Inline document layout and content styles
============================================================ */
/* ── MAIN CONTENT ── */
.docs-main {
max-width: 780px;
margin: 0 auto;
padding: 2.5rem 2rem 5rem;
}
/* ── ARTICLE ── */
.docs-article h1 {
font-size: clamp(1.75rem, 3.5vw, 2.5rem);
font-weight: 800;
color: var(--text-strong);
letter-spacing: -0.035em;
line-height: 1.1;
margin-bottom: 0.75rem;
}
.docs-article > h1 + p {
font-size: 1.1rem;
color: var(--text);
line-height: 1.7;
margin-bottom: 2.5rem;
padding-bottom: 1.75rem;
border-bottom: 1px solid var(--border);
}
/* ── INLINE TABLE OF CONTENTS ── */
.docs-toc {
margin-bottom: 2.5rem;
}
.docs-toc__details {
background: var(--bg);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 0;
overflow: hidden;
}
.docs-toc__summary {
font-size: 0.8rem;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--text-muted);
padding: 0.875rem 1.25rem;
cursor: pointer;
user-select: none;
list-style: none;
transition: color var(--t);
}
.docs-toc__summary::-webkit-details-marker { display: none; }
.docs-toc__summary:hover { color: var(--text-strong); }
.docs-toc__summary::before {
content: '\25b8 ';
font-size: 0.7rem;
color: var(--text-muted);
transition: transform var(--t);
}
.docs-toc__details[open] .docs-toc__summary::before { content: '\25be '; }
.docs-toc__links {
padding: 0 1.25rem 1rem;
border-top: 1px solid var(--border-subtle);
}
.docs-toc__list {
list-style: none;
display: flex;
flex-direction: column;
gap: 0.125rem;
padding: 0;
}
.docs-toc__sublist {
list-style: none;
display: flex;
flex-direction: column;
gap: 0.125rem;
padding-left: 1.25rem;
margin-top: 0.125rem;
}
.docs-toc__item {
font-size: 0.875rem;
line-height: 1.5;
}
.docs-toc__item a {
display: block;
padding: 0.3rem 0.625rem;
border-radius: var(--radius-sm);
color: var(--text);
text-decoration: none;
transition: color var(--t), background var(--t);
}
.docs-toc__item a:hover {
color: var(--accent);
background: var(--accent-light);
}
.docs-toc__item--sub a {
font-size: 0.825rem;
color: var(--text-muted);
padding-left: 0.75rem;
}
.docs-toc__item--sub a:hover { color: var(--text); }
/* ── PROSE ── */
.prose h2 {
font-size: 1.5rem;
font-weight: 800;
color: var(--text-strong);
letter-spacing: -0.025em;
line-height: 1.2;
margin-top: 3rem;
margin-bottom: 0.75rem;
padding-top: 2rem;
border-top: 1px solid var(--border);
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.prose h3 {
font-size: 1.1rem;
font-weight: 700;
color: var(--text-strong);
margin-top: 2rem;
margin-bottom: 0.5rem;
}
.prose h4 {
font-size: 0.95rem;
font-weight: 700;
color: var(--text-strong);
margin-top: 1.5rem;
margin-bottom: 0.375rem;
}
.prose p {
font-size: 1rem;
color: var(--text);
line-height: 1.82;
margin-bottom: 1.125rem;
}
.prose p:last-child { margin-bottom: 0; }
.prose ul, .prose ol {
padding-left: 1.5rem;
margin-bottom: 1.25rem;
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.prose li {
font-size: 0.9625rem;
color: var(--text);
line-height: 1.75;
}
.prose li > ul, .prose li > ol {
margin-top: 0.5rem;
margin-bottom: 0.25rem;
}
.prose a {
color: var(--accent);
text-decoration: underline;
text-underline-offset: 2px;
text-decoration-thickness: 1px;
}
.prose a:hover { color: var(--accent-dark); }
.prose strong {
font-weight: 600;
color: var(--text-strong);
}
.prose hr {
border: none;
border-top: 1px solid var(--border);
margin: 2.5rem 0;
}
.prose table {
width: 100%;
border-collapse: collapse;
font-size: 0.875rem;
margin: 1.5rem 0;
border: 1px solid var(--border);
border-radius: var(--radius-sm);
overflow: hidden;
display: block;
overflow-x: auto;
}
.prose th {
background: var(--bg);
font-size: 0.75rem;
font-weight: 700;
letter-spacing: 0.06em;
text-transform: uppercase;
color: var(--text-muted);
padding: 0.625rem 1rem;
text-align: left;
border-bottom: 1px solid var(--border);
white-space: nowrap;
}
.prose td {
padding: 0.75rem 1rem;
color: var(--text);
border-bottom: 1px solid var(--border-subtle);
vertical-align: top;
line-height: 1.55;
}
.prose tr:last-child td { border-bottom: none; }
/* ── CODE ── */
.prose code {
font-family: var(--mono);
font-size: 0.845em;
background: var(--bg);
border: 1px solid var(--border);
border-radius: 4px;
padding: 0.15em 0.4em;
color: var(--text-strong);
}
.prose pre {
background: #0f172a;
border-radius: var(--radius);
padding: 1.375rem 1.5rem;
overflow-x: auto;
margin: 1.5rem 0;
border: 1px solid rgba(255,255,255,0.06);
}
.prose pre code {
font-family: var(--mono);
font-size: 0.875rem;
background: none;
border: none;
padding: 0;
color: #e2e8f0;
line-height: 1.7;
}
/* ── CALLOUT BOXES ── */
.prose blockquote {
background: var(--accent-light);
border: 1px solid var(--accent-border);
border-left: 3px solid var(--accent);
border-radius: var(--radius-sm);
padding: 1rem 1.25rem;
margin: 1.5rem 0;
}
.prose blockquote p {
font-size: 0.9375rem;
color: var(--text-strong);
line-height: 1.65;
margin: 0;
}
/* ── SECTION INDEX ── */
.section-index {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 1rem;
margin-top: 1.5rem;
}
.section-index__card {
display: flex;
flex-direction: column;
gap: 0.375rem;
padding: 1.25rem 1.375rem;
background: var(--white);
border: 1px solid var(--border);
border-radius: var(--radius);
text-decoration: none;
transition: box-shadow var(--t), border-color var(--t);
}
.section-index__card:hover {
box-shadow: var(--shadow-md);
border-color: #cbd5e1;
}
.section-index__title {
font-size: 0.9375rem;
font-weight: 700;
color: var(--accent);
}
.section-index__desc {
font-size: 0.845rem;
color: var(--text);
line-height: 1.6;
}
/* ── HOME PAGE ── */
.docs-home__intro {
font-size: 1.1rem;
color: var(--text);
line-height: 1.72;
margin-bottom: 2.5rem;
max-width: 620px;
}
.docs-home__section {
margin-bottom: 2.5rem;
}
.docs-home__section-title {
font-size: 1.25rem;
font-weight: 800;
color: var(--text-strong);
letter-spacing: -0.02em;
margin-bottom: 0.875rem;
}
.docs-home__section-title a {
color: inherit;
text-decoration: none;
transition: color var(--t);
}
.docs-home__section-title a:hover { color: var(--accent); }
.docs-home__list {
list-style: none;
display: flex;
flex-direction: column;
gap: 0.5rem;
padding-left: 0;
margin: 0;
}
.docs-home__list li {
font-size: 0.9375rem;
color: var(--text);
line-height: 1.6;
}
.docs-home__list a {
color: var(--accent);
font-weight: 500;
text-decoration: none;
}
.docs-home__list a:hover { text-decoration: underline; }
.docs-home__desc { color: var(--text-muted); font-weight: 400; }
/* ── NAV DROPDOWN ── */
.nav__docs-menu {
position: relative;
}
.nav__browse-btn {
display: flex;
align-items: center;
gap: 0.375rem;
padding: 0.45rem 0.875rem;
font-size: 0.8125rem;
font-weight: 600;
color: var(--text);
background: transparent;
border: 1px solid var(--border);
border-radius: var(--radius-sm);
cursor: pointer;
font-family: var(--sans);
white-space: nowrap;
transition: border-color var(--t), background var(--t);
}
.nav__browse-btn:hover {
border-color: var(--accent);
background: var(--accent-light);
}
.nav__browse-btn::after {
content: '\25be';
font-size: 0.6rem;
margin-top: 2px;
}
.nav__dropdown {
display: none;
position: absolute;
top: calc(100% + 4px);
left: 0;
min-width: 260px;
max-height: 70vh;
overflow-y: auto;
background: var(--white);
border: 1px solid var(--border);
border-radius: var(--radius);
box-shadow: 0 8px 24px rgba(0,0,0,0.1), 0 2px 8px rgba(0,0,0,0.06);
z-index: 200;
padding: 0.5rem 0;
}
.nav__dropdown.open { display: block; }
.nav__dropdown-section {
padding: 0.5rem 1rem 0.125rem;
font-size: 0.65rem;
font-weight: 700;
letter-spacing: 0.1em;
text-transform: uppercase;
color: var(--text-muted);
}
.nav__dropdown-link {
display: block;
padding: 0.45rem 1rem;
font-size: 0.875rem;
font-weight: 500;
color: var(--text);
text-decoration: none;
transition: background var(--t);
}
.nav__dropdown-link:hover { background: var(--bg); color: var(--text-strong); }
.nav__dropdown-link--active { color: var(--accent); font-weight: 600; }
/* ── PAGER ── */
.docs-pager {
display: flex;
justify-content: space-between;
gap: 1rem;
margin-top: 3.5rem;
padding-top: 2.5rem;
border-top: 1px solid var(--border);
}
.docs-pager__side { flex: 1; }
.docs-pager__side--right { text-align: right; }
.docs-pager__link {
display: inline-flex;
flex-direction: column;
gap: 0.25rem;
padding: 1rem 1.25rem;
background: var(--white);
border: 1px solid var(--border);
border-radius: var(--radius);
text-decoration: none;
transition: box-shadow var(--t), border-color var(--t);
max-width: 300px;
}
.docs-pager__link:hover { box-shadow: var(--shadow-md); border-color: #cbd5e1; }
.docs-pager__link--next { margin-left: auto; text-align: right; }
.docs-pager__dir {
font-size: 0.75rem;
font-weight: 600;
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 0.06em;
}
.docs-pager__title {
font-size: 0.9rem;
font-weight: 600;
color: var(--accent);
}
/* ── SEARCH RESULTS ── */
.search-wrap { position: relative; flex: 1 1 auto; max-width: 320px; }
.search-results {
position: absolute;
top: calc(100% + 6px);
left: 0;
right: 0;
background: var(--white);
border: 1px solid var(--border);
border-radius: var(--radius);
box-shadow: 0 8px 24px rgba(0,0,0,0.1), 0 2px 8px rgba(0,0,0,0.06);
z-index: 200;
overflow: hidden;
max-height: 400px;
overflow-y: auto;
}
.search-result {
display: flex;
flex-direction: column;
gap: 0.25rem;
padding: 0.875rem 1.125rem;
border-bottom: 1px solid var(--border-subtle);
text-decoration: none;
transition: background var(--t);
}
.search-result:last-child { border-bottom: none; }
.search-result:hover { background: var(--bg); }
.search-result__section {
font-size: 0.7rem;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--accent);
}
.search-result__title {
font-size: 0.9rem;
font-weight: 600;
color: var(--text-strong);
line-height: 1.3;
}
.search-result__excerpt {
font-size: 0.8125rem;
color: var(--text-muted);
line-height: 1.5;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
/* ── RESPONSIVE ── */
@media (max-width: 900px) {
.docs-main { padding: 2rem 1.5rem 3.5rem; }
}
@media (max-width: 600px) {
.docs-main { padding: 1.5rem 1rem 2.5rem; }
.section-index { grid-template-columns: 1fr; }
.docs-pager { flex-direction: column; }
.docs-pager__link--next { margin-left: 0; text-align: left; }
.nav__browse-btn span.label { display: none; }
}

35
static/css/fonts.css Normal file
View File

@@ -0,0 +1,35 @@
@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 400 700;
font-display: swap;
src: url('/public/fonts/inter-latin.woff2') format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 400 700;
font-display: swap;
src: url('/public/fonts/inter-latin-ext.woff2') format('woff2');
unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
font-family: 'JetBrains Mono';
font-style: normal;
font-weight: 400 700;
font-display: swap;
src: url('/public/fonts/jbmono-latin.woff2') format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
font-family: 'JetBrains Mono';
font-style: normal;
font-weight: 400 700;
font-display: swap;
src: url('/public/fonts/jbmono-latin-ext.woff2') format('woff2');
unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

93
static/js/search.js Normal file
View File

@@ -0,0 +1,93 @@
(function () {
'use strict';
var index = null;
var input = document.getElementById('search-input');
var results = document.getElementById('search-results');
if (!input || !results) return;
function root() {
var meta = document.querySelector('meta[name="docs-root"]');
return meta ? meta.content : '';
}
function loadIndex(cb) {
if (index) { cb(); return; }
fetch(root() + 'search.json')
.then(function (r) { return r.json(); })
.then(function (data) { index = data; cb(); })
.catch(function () {});
}
function esc(s) {
return s.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/"/g, '&quot;');
}
function search(q) {
if (!index) return;
q = q.trim();
if (!q) { hide(); return; }
var terms = q.toLowerCase().split(/\s+/).filter(Boolean);
var matches = index.filter(function (doc) {
var text = (doc.title + ' ' + doc.section + ' ' + doc.excerpt).toLowerCase();
return terms.every(function (t) { return text.indexOf(t) !== -1; });
}).slice(0, 8);
if (!matches.length) { hide(); return; }
results.innerHTML = matches.map(function (doc) {
return '<a href="' + esc(doc.url) + '" class="search-result">' +
'<span class="search-result__section">' + esc(doc.section) + '</span>' +
'<span class="search-result__title">' + esc(doc.title) + '</span>' +
'<span class="search-result__excerpt">' + esc(doc.excerpt) + '</span>' +
'</a>';
}).join('');
results.hidden = false;
}
function hide() { results.hidden = true; }
input.addEventListener('focus', function () { loadIndex(function () {}); });
input.addEventListener('input', function () {
loadIndex(function () { search(input.value); });
});
document.addEventListener('click', function (e) {
if (!e.target.closest('.search-wrap')) hide();
});
document.addEventListener('keydown', function (e) {
if (e.key === 'Escape') { hide(); input.blur(); }
if ((e.metaKey || e.ctrlKey) && e.key === 'k') {
e.preventDefault();
input.focus();
input.select();
}
});
// Keyboard navigation inside results
results.addEventListener('keydown', function (e) {
var links = results.querySelectorAll('.search-result');
var active = results.querySelector('.search-result:focus');
var idx = Array.prototype.indexOf.call(links, active);
if (e.key === 'ArrowDown') {
e.preventDefault();
var next = links[idx + 1] || links[0];
if (next) next.focus();
} else if (e.key === 'ArrowUp') {
e.preventDefault();
var prev = links[idx - 1] || links[links.length - 1];
if (prev) prev.focus();
}
});
input.addEventListener('keydown', function (e) {
if (e.key === 'ArrowDown' && !results.hidden) {
e.preventDefault();
var first = results.querySelector('.search-result');
if (first) first.focus();
}
});
})();

4
static/robots.txt Normal file
View File

@@ -0,0 +1,4 @@
User-agent: *
Allow: /
Sitemap: https://docs.arcline.it/sitemap.xml