tractatus/public/docs.html
TheFlow 32ee38ae84 feat: complete Phase 2 - accessibility, performance, mobile polish
- WCAG 2.1 AA compliance (100%)
- Focus indicators on all 9 pages
- Skip links for keyboard navigation
- Form ARIA labels and semantic HTML
- Color contrast fixes (18/18 combinations pass)
- Performance audit (avg 1ms load time)
- Mobile responsiveness verification (9/9 pages)
- All improvements deployed to production

New audit infrastructure:
- scripts/check-color-contrast.js - Color contrast verification
- scripts/performance-audit.js - Load time testing
- scripts/mobile-audit.js - Mobile readiness checker
- scripts/audit-accessibility.js - Automated a11y testing

Documentation:
- audit-reports/accessibility-manual-audit.md - WCAG checklist
- audit-reports/accessibility-improvements-summary.md - Implementation log
- audit-reports/performance-report.json - Performance data
- audit-reports/mobile-audit-report.json - Mobile analysis
- audit-reports/polish-refinement-complete.md - Executive summary
- DEPLOYMENT-2025-10-08.md - Production deployment log
- SESSION-HANDOFF-2025-10-08.md - Session handoff document

New content:
- docs/markdown/organizational-theory-foundations.md
- public/images/tractatus-icon.svg
- public/js/components/navbar.js

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-08 13:29:26 +13:00

345 lines
8.2 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Framework Documentation | Tractatus AI Safety</title>
<link rel="stylesheet" href="/css/tailwind.css?v=1759833751">
<style>
html { scroll-behavior: smooth; }
/* Accessibility: Skip link */
.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 0; z-index: 100; background: white; padding: 1rem; border: 2px solid #3b82f6; }
/* Accessibility: Focus indicators (WCAG 2.4.7) */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
outline: 3px solid #3b82f6;
outline-offset: 2px;
}
a:focus:not(:focus-visible) { outline: none; }
a:focus-visible { outline: 3px solid #3b82f6; outline-offset: 2px; }
/* Card-based layout */
.doc-header {
text-align: center;
padding: 2rem 0;
}
.card-grid-container {
width: 100%;
overflow: visible;
min-height: auto;
}
.category-section {
margin-bottom: 2rem;
}
.card-grid {
display: grid;
gap: 1rem;
width: 100%;
}
@media (min-width: 768px) {
.card-grid {
grid-template-columns: repeat(2, 1fr);
}
}
@media (min-width: 1024px) {
.card-grid {
grid-template-columns: repeat(3, 1fr);
}
}
.doc-card {
min-height: 180px;
display: flex;
flex-direction: column;
transition: all 0.2s ease;
cursor: pointer;
user-select: none;
}
.doc-card:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.doc-card:active {
transform: translateY(0);
}
.line-clamp-3 {
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
}
/* Prose styles for modal content */
.prose {
max-width: none;
line-height: 1.75;
color: #374151;
}
.prose h1 {
font-size: 1.875rem;
font-weight: 700;
color: #111827;
margin-bottom: 1.5rem;
margin-top: 2rem;
line-height: 1.2;
border-bottom: 2px solid #e5e7eb;
padding-bottom: 0.5rem;
}
.prose h2 {
font-size: 1.5rem;
font-weight: 600;
color: #111827;
margin-bottom: 1rem;
margin-top: 2rem;
line-height: 1.3;
border-bottom: 1px solid #e5e7eb;
padding-bottom: 0.375rem;
}
.prose h3 {
font-size: 1.25rem;
font-weight: 600;
color: #1f2937;
margin-bottom: 0.75rem;
margin-top: 1.5rem;
line-height: 1.4;
}
.prose h4 {
font-size: 1.125rem;
font-weight: 600;
color: #374151;
margin-bottom: 0.5rem;
margin-top: 1.25rem;
line-height: 1.5;
}
.prose p {
color: #4b5563;
margin-bottom: 1.25rem;
line-height: 1.8;
font-size: 1rem;
}
.prose li {
margin-bottom: 0.5rem;
line-height: 1.75;
color: #4b5563;
}
.prose code {
background-color: #f3f4f6;
padding: 0.125rem 0.375rem;
border-radius: 0.25rem;
font-size: 0.875rem;
font-family: ui-monospace, 'Courier New', monospace;
color: #1f2937;
border: 1px solid #e5e7eb;
}
.prose pre {
background-color: #1f2937;
color: #f3f4f6;
padding: 1.25rem;
border-radius: 0.5rem;
margin-bottom: 1.5rem;
overflow-x: auto;
border: 1px solid #374151;
}
.prose pre code {
background-color: transparent;
padding: 0;
border: none;
color: inherit;
font-size: 0.875rem;
}
.prose ul {
list-style-type: disc;
padding-left: 1.75rem;
margin-bottom: 1.25rem;
color: #4b5563;
}
.prose ol {
list-style-type: decimal;
padding-left: 1.75rem;
margin-bottom: 1.25rem;
color: #4b5563;
}
.prose > h2:first-child {
margin-top: 0;
}
/* Download links in sidebar */
.doc-download-link {
position: absolute;
right: 0.5rem;
top: 50%;
transform: translateY(-50%);
padding: 0.5rem;
color: #3b82f6;
background-color: transparent;
border-radius: 0.25rem;
transition: all 0.15s ease-in-out;
display: flex;
align-items: center;
justify-content: center;
text-decoration: none;
z-index: 10;
}
.doc-download-link:hover {
color: #1d4ed8;
background-color: #dbeafe;
}
.doc-download-link svg {
width: 1.25rem;
height: 1.25rem;
display: block;
}
/* Document list container */
#document-list .relative,
#document-list > div {
position: relative !important;
}
.doc-link {
padding-right: 3rem !important;
display: block;
width: 100%;
}
/* Modal styles */
#section-modal {
position: fixed;
inset: 0;
background-color: rgba(0, 0, 0, 0.5);
z-index: 9999;
display: none;
align-items: center;
justify-content: center;
padding: 1rem;
}
#section-modal.show {
display: flex !important;
animation: fadeIn 0.2s ease-out;
}
#section-modal > div {
display: flex;
flex-direction: column;
max-height: 90vh;
width: 100%;
max-width: 56rem;
background-color: white;
border-radius: 0.5rem;
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
animation: slideUp 0.3s ease-out;
}
#modal-content {
flex: 1 1 0%;
overflow-y: auto;
overflow-x: hidden;
padding: 1.5rem;
min-height: 0;
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes slideUp {
from {
transform: translateY(20px);
opacity: 0;
}
to {
transform: translateY(0);
opacity: 1;
}
}
</style>
</head>
<body class="bg-gray-50">
<!-- Skip Link for Keyboard Navigation -->
<a href="#main-content" class="skip-link">Skip to main content</a>
<!-- Navigation (injected by navbar.js) -->
<script src="/js/components/navbar.js?v=1759875690"></script>
<!-- Page Header -->
<div class="bg-white border-b border-gray-200">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
<h1 class="text-3xl font-bold text-gray-900">Framework Documentation</h1>
<p class="text-gray-600 mt-2">Technical specifications, guides, and reference materials</p>
</div>
</div>
<!-- Main Layout -->
<main id="main-content" class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
<div class="grid grid-cols-1 lg:grid-cols-4 gap-8">
<!-- Sidebar -->
<aside class="lg:col-span-1">
<div class="bg-white rounded-lg shadow-sm border border-gray-200 p-4 sticky top-24">
<h3 class="font-semibold text-gray-900 mb-3">Documents</h3>
<div id="document-list" class="space-y-1">
<div class="text-sm text-gray-500">Loading...</div>
</div>
<div class="mt-6 pt-4 border-t border-gray-200">
<h4 class="font-semibold text-gray-900 mb-3 text-sm">Table of Contents</h4>
<div id="toc" class="text-sm space-y-1">
<div class="text-gray-500">Select a document</div>
</div>
</div>
</div>
</aside>
<!-- Main Content -->
<main class="lg:col-span-3">
<div id="document-content" class="bg-white rounded-lg shadow-sm border border-gray-200 p-8">
<div class="text-center py-12">
<svg class="mx-auto h-12 w-12 text-gray-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"/>
</svg>
<h3 class="mt-2 text-lg font-medium text-gray-900">Select a Document</h3>
<p class="mt-1 text-sm text-gray-500">Choose a document from the sidebar to begin reading</p>
</div>
</div>
</main>
</div>
</div>
<script src="/js/components/document-cards.js?v=1759874236"></script>
<script src="/js/docs-app.js?v=1759874236"></script>
</body>
</html>