:root {
--color-bg: #ffffff;
--color-bg-secondary: #f8fafc;
--color-bg-tertiary: #f1f5f9;
--color-text: #1e293b;
--color-text-secondary: #64748b;
--color-text-muted: #94a3b8;
--color-border: #e2e8f0;
--color-border-hover: #cbd5e1;
--color-primary: #3b82f6;
--color-primary-hover: #2563eb;
--color-primary-bg: #eff6ff;
--status-proposed: #f59e0b;
--status-proposed-bg: #fef3c7;
--status-accepted: #10b981;
--status-accepted-bg: #d1fae5;
--status-deprecated: #ef4444;
--status-deprecated-bg: #fee2e2;
--status-superseded: #6b7280;
--status-superseded-bg: #f3f4f6;
--sidebar-width: 280px;
--header-height: 60px;
--footer-height: 40px;
--border-radius: 6px;
--border-radius-lg: 8px;
--font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
--font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
--shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
--transition-fast: 150ms ease;
--transition-normal: 200ms ease;
}
[data-theme="dark"] {
--color-bg: #0f172a;
--color-bg-secondary: #1e293b;
--color-bg-tertiary: #334155;
--color-text: #f1f5f9;
--color-text-secondary: #94a3b8;
--color-text-muted: #64748b;
--color-border: #334155;
--color-border-hover: #475569;
--color-primary: #60a5fa;
--color-primary-hover: #93c5fd;
--color-primary-bg: #1e3a5f;
--status-proposed-bg: #422006;
--status-accepted-bg: #064e3b;
--status-deprecated-bg: #450a0a;
--status-superseded-bg: #1f2937;
--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
--shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.4);
--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
}
@media (prefers-color-scheme: dark) {
[data-theme="auto"] {
--color-bg: #0f172a;
--color-bg-secondary: #1e293b;
--color-bg-tertiary: #334155;
--color-text: #f1f5f9;
--color-text-secondary: #94a3b8;
--color-text-muted: #64748b;
--color-border: #334155;
--color-border-hover: #475569;
--color-primary: #60a5fa;
--color-primary-hover: #93c5fd;
--color-primary-bg: #1e3a5f;
--status-proposed-bg: #422006;
--status-accepted-bg: #064e3b;
--status-deprecated-bg: #450a0a;
--status-superseded-bg: #1f2937;
}
}
*, *::before, *::after {
box-sizing: border-box;
}
html {
font-size: 16px;
-webkit-text-size-adjust: 100%;
}
body {
margin: 0;
padding: 0;
font-family: var(--font-sans);
font-size: 0.875rem;
line-height: 1.5;
color: var(--color-text);
background: var(--color-bg);
}
h1, h2, h3, h4, h5, h6 {
margin: 0;
font-weight: 600;
}
a {
color: var(--color-primary);
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
button {
font-family: inherit;
cursor: pointer;
}
input, select {
font-family: inherit;
font-size: inherit;
}
table {
border-collapse: collapse;
width: 100%;
}
.hidden {
display: none !important;
}
.header {
position: fixed;
top: 0;
left: 0;
right: 0;
height: var(--header-height);
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 1rem;
background: var(--color-bg);
border-bottom: 1px solid var(--color-border);
z-index: 100;
}
.header-left, .header-right {
display: flex;
align-items: center;
gap: 0.75rem;
}
.header-center {
flex: 1;
max-width: 600px;
margin: 0 1rem;
}
.logo {
font-size: 1.125rem;
font-weight: 700;
color: var(--color-text);
}
.search-container {
position: relative;
width: 100%;
}
#search {
width: 100%;
padding: 0.5rem 2.5rem 0.5rem 1rem;
border: 1px solid var(--color-border);
border-radius: var(--border-radius);
background: var(--color-bg-secondary);
color: var(--color-text);
transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
#search:focus {
outline: none;
border-color: var(--color-primary);
box-shadow: 0 0 0 3px var(--color-primary-bg);
}
#search::placeholder {
color: var(--color-text-muted);
}
.search-shortcut {
position: absolute;
right: 0.75rem;
top: 50%;
transform: translateY(-50%);
padding: 0.125rem 0.375rem;
font-size: 0.75rem;
font-family: var(--font-mono);
color: var(--color-text-muted);
background: var(--color-bg-tertiary);
border-radius: 4px;
}
.view-toggle {
display: flex;
gap: 0.25rem;
padding: 0.25rem;
background: var(--color-bg-secondary);
border-radius: var(--border-radius);
}
.view-btn {
display: flex;
align-items: center;
justify-content: center;
width: 2rem;
height: 2rem;
padding: 0;
border: none;
border-radius: 4px;
background: transparent;
color: var(--color-text-secondary);
transition: background var(--transition-fast), color var(--transition-fast);
}
.view-btn:hover {
background: var(--color-bg-tertiary);
color: var(--color-text);
}
.view-btn.active {
background: var(--color-bg);
color: var(--color-primary);
box-shadow: var(--shadow-sm);
}
.theme-toggle {
display: flex;
align-items: center;
justify-content: center;
width: 2.25rem;
height: 2.25rem;
padding: 0;
border: 1px solid var(--color-border);
border-radius: var(--border-radius);
background: var(--color-bg);
color: var(--color-text-secondary);
transition: border-color var(--transition-fast), color var(--transition-fast);
}
.theme-toggle:hover {
border-color: var(--color-border-hover);
color: var(--color-text);
}
.sun-icon { display: block; }
.moon-icon { display: none; }
[data-theme="dark"] .sun-icon { display: none; }
[data-theme="dark"] .moon-icon { display: block; }
@media (prefers-color-scheme: dark) {
[data-theme="auto"] .sun-icon { display: none; }
[data-theme="auto"] .moon-icon { display: block; }
}
.main-container {
display: flex;
margin-top: var(--header-height);
min-height: calc(100vh - var(--header-height) - var(--footer-height));
}
.sidebar {
position: fixed;
top: var(--header-height);
left: 0;
bottom: var(--footer-height);
width: var(--sidebar-width);
padding: 1rem;
background: var(--color-bg-secondary);
border-right: 1px solid var(--color-border);
overflow-y: auto;
}
.sidebar-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1rem;
padding-bottom: 0.75rem;
border-bottom: 1px solid var(--color-border);
}
.sidebar-header h2 {
font-size: 0.875rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--color-text-secondary);
}
.clear-filters {
padding: 0.25rem 0.5rem;
font-size: 0.75rem;
border: none;
border-radius: 4px;
background: transparent;
color: var(--color-primary);
}
.clear-filters:hover {
background: var(--color-primary-bg);
}
.filter-section {
margin-bottom: 1.25rem;
}
.filter-section h3 {
margin-bottom: 0.5rem;
font-size: 0.8125rem;
font-weight: 500;
color: var(--color-text);
}
.status-filters {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
}
.status-chip {
display: inline-flex;
align-items: center;
gap: 0.375rem;
padding: 0.25rem 0.625rem;
font-size: 0.75rem;
border: 1px solid transparent;
border-radius: 9999px;
cursor: pointer;
transition: all var(--transition-fast);
user-select: none;
}
.status-chip.status-proposed {
background: var(--status-proposed-bg);
color: var(--status-proposed);
}
.status-chip.status-accepted {
background: var(--status-accepted-bg);
color: var(--status-accepted);
}
.status-chip.status-deprecated {
background: var(--status-deprecated-bg);
color: var(--status-deprecated);
}
.status-chip.status-superseded {
background: var(--status-superseded-bg);
color: var(--status-superseded);
}
.status-chip:hover {
filter: brightness(0.95);
}
.status-chip.active {
border-color: currentColor;
}
.status-chip .count {
font-weight: 600;
}
.filter-select {
width: 100%;
padding: 0.5rem;
border: 1px solid var(--color-border);
border-radius: var(--border-radius);
background: var(--color-bg);
color: var(--color-text);
cursor: pointer;
}
.filter-select:focus {
outline: none;
border-color: var(--color-primary);
}
.tag-cloud {
display: flex;
flex-wrap: wrap;
gap: 0.375rem;
max-height: 150px;
overflow-y: auto;
}
.tag-chip {
display: inline-flex;
align-items: center;
padding: 0.125rem 0.5rem;
font-size: 0.75rem;
border: 1px solid var(--color-border);
border-radius: 9999px;
background: var(--color-bg);
color: var(--color-text-secondary);
cursor: pointer;
transition: all var(--transition-fast);
}
.tag-chip:hover {
border-color: var(--color-primary);
color: var(--color-primary);
}
.tag-chip.active {
background: var(--color-primary-bg);
border-color: var(--color-primary);
color: var(--color-primary);
}
.date-filters {
display: flex;
gap: 0.5rem;
}
.date-filters input {
flex: 1;
padding: 0.5rem;
border: 1px solid var(--color-border);
border-radius: var(--border-radius);
background: var(--color-bg);
color: var(--color-text);
}
.date-filters input:focus {
outline: none;
border-color: var(--color-primary);
}
.content {
flex: 1;
margin-left: var(--sidebar-width);
padding: 1rem;
}
.content-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1rem;
padding-bottom: 0.75rem;
border-bottom: 1px solid var(--color-border);
}
.result-count {
font-size: 0.875rem;
color: var(--color-text-secondary);
}
.sort-controls {
display: flex;
align-items: center;
gap: 0.5rem;
}
.sort-controls label {
font-size: 0.8125rem;
color: var(--color-text-secondary);
}
.sort-select {
padding: 0.375rem 0.5rem;
font-size: 0.8125rem;
border: 1px solid var(--color-border);
border-radius: var(--border-radius);
background: var(--color-bg);
color: var(--color-text);
cursor: pointer;
}
.view-container {
min-height: 400px;
}
.adr-table {
border: 1px solid var(--color-border);
border-radius: var(--border-radius-lg);
overflow: hidden;
}
.adr-table th,
.adr-table td {
padding: 0.75rem 1rem;
text-align: left;
}
.adr-table thead {
background: var(--color-bg-secondary);
}
.adr-table th {
font-size: 0.75rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--color-text-secondary);
border-bottom: 1px solid var(--color-border);
}
.adr-table th.sortable {
cursor: pointer;
user-select: none;
}
.adr-table th.sortable:hover {
color: var(--color-text);
}
.adr-table tbody tr {
border-bottom: 1px solid var(--color-border);
transition: background var(--transition-fast);
cursor: pointer;
}
.adr-table tbody tr:last-child {
border-bottom: none;
}
.adr-table tbody tr:hover {
background: var(--color-bg-secondary);
}
.adr-table tbody tr.selected {
background: var(--color-primary-bg);
}
.adr-table .title-cell {
font-weight: 500;
color: var(--color-text);
}
.adr-table .title-cell:hover {
color: var(--color-primary);
}
.status-badge {
display: inline-flex;
align-items: center;
padding: 0.25rem 0.5rem;
font-size: 0.75rem;
font-weight: 500;
border-radius: 9999px;
}
.status-badge.status-proposed {
background: var(--status-proposed-bg);
color: var(--status-proposed);
}
.status-badge.status-accepted {
background: var(--status-accepted-bg);
color: var(--status-accepted);
}
.status-badge.status-deprecated {
background: var(--status-deprecated-bg);
color: var(--status-deprecated);
}
.status-badge.status-superseded {
background: var(--status-superseded-bg);
color: var(--status-superseded);
}
.category-badge {
display: inline-flex;
padding: 0.125rem 0.5rem;
font-size: 0.75rem;
background: var(--color-bg-tertiary);
border-radius: 4px;
color: var(--color-text-secondary);
}
.date-cell {
font-size: 0.8125rem;
color: var(--color-text-secondary);
white-space: nowrap;
}
.date-cell.recent {
color: var(--status-accepted);
}
.card-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
gap: 1rem;
}
.adr-card {
position: relative;
padding: 1rem;
background: var(--color-bg);
border: 1px solid var(--color-border);
border-radius: var(--border-radius-lg);
cursor: pointer;
transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.adr-card:hover {
border-color: var(--color-border-hover);
box-shadow: var(--shadow-md);
}
.adr-card.selected {
border-color: var(--color-primary);
box-shadow: 0 0 0 3px var(--color-primary-bg);
}
.card-status {
position: absolute;
top: 1rem;
right: 1rem;
}
.card-title {
margin-bottom: 0.5rem;
font-size: 1rem;
font-weight: 600;
color: var(--color-text);
padding-right: 5rem;
}
.card-description {
margin-bottom: 0.75rem;
font-size: 0.875rem;
color: var(--color-text-secondary);
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.card-meta {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
margin-bottom: 0.75rem;
}
.card-tags {
display: flex;
flex-wrap: wrap;
gap: 0.375rem;
}
.card-tag {
padding: 0.125rem 0.375rem;
font-size: 0.6875rem;
background: var(--color-bg-tertiary);
border-radius: 4px;
color: var(--color-text-muted);
}
.card-footer {
display: flex;
justify-content: space-between;
padding-top: 0.75rem;
border-top: 1px solid var(--color-border);
font-size: 0.75rem;
color: var(--color-text-muted);
}
.timeline {
position: relative;
padding-left: 2rem;
}
.timeline::before {
content: '';
position: absolute;
left: 0.5rem;
top: 0;
bottom: 0;
width: 2px;
background: var(--color-border);
}
.timeline-group {
margin-bottom: 2rem;
}
.timeline-month {
margin-bottom: 1rem;
font-size: 0.875rem;
font-weight: 600;
color: var(--color-text-secondary);
}
.timeline-item {
position: relative;
margin-bottom: 1rem;
padding: 0.75rem 1rem;
background: var(--color-bg);
border: 1px solid var(--color-border);
border-radius: var(--border-radius);
cursor: pointer;
transition: border-color var(--transition-fast);
}
.timeline-item::before {
content: '';
position: absolute;
left: -1.75rem;
top: 1rem;
width: 10px;
height: 10px;
border-radius: 50%;
background: var(--color-bg);
border: 2px solid var(--color-border);
}
.timeline-item.status-proposed::before { border-color: var(--status-proposed); }
.timeline-item.status-accepted::before { border-color: var(--status-accepted); }
.timeline-item.status-deprecated::before { border-color: var(--status-deprecated); }
.timeline-item.status-superseded::before { border-color: var(--status-superseded); }
.timeline-item:hover {
border-color: var(--color-border-hover);
}
.timeline-item.selected {
border-color: var(--color-primary);
}
.timeline-title {
font-weight: 500;
color: var(--color-text);
}
.timeline-date {
font-size: 0.75rem;
color: var(--color-text-muted);
}
.graph-container {
position: relative;
height: 600px;
background: var(--color-bg-secondary);
border: 1px solid var(--color-border);
border-radius: var(--border-radius-lg);
overflow: hidden;
}
#graph-canvas {
width: 100%;
height: 100%;
}
.graph-node {
cursor: pointer;
}
.graph-legend {
position: absolute;
bottom: 1rem;
left: 1rem;
padding: 0.75rem;
background: var(--color-bg);
border: 1px solid var(--color-border);
border-radius: var(--border-radius);
font-size: 0.75rem;
}
.detail-panel {
position: fixed;
top: var(--header-height);
right: 0;
bottom: var(--footer-height);
width: 50%;
max-width: 800px;
background: var(--color-bg);
border-left: 1px solid var(--color-border);
box-shadow: var(--shadow-lg);
overflow-y: auto;
z-index: 50;
transform: translateX(100%);
transition: transform var(--transition-normal);
}
.detail-panel:not(.hidden) {
transform: translateX(0);
}
.detail-header {
position: sticky;
top: 0;
display: flex;
justify-content: space-between;
align-items: center;
padding: 0.75rem 1rem;
background: var(--color-bg);
border-bottom: 1px solid var(--color-border);
z-index: 10;
}
.close-detail {
display: flex;
align-items: center;
justify-content: center;
width: 2rem;
height: 2rem;
padding: 0;
border: none;
border-radius: var(--border-radius);
background: transparent;
color: var(--color-text-secondary);
transition: background var(--transition-fast), color var(--transition-fast);
}
.close-detail:hover {
background: var(--color-bg-secondary);
color: var(--color-text);
}
.detail-nav {
display: flex;
gap: 0.5rem;
}
.nav-btn {
display: flex;
align-items: center;
justify-content: center;
width: 2rem;
height: 2rem;
padding: 0;
border: 1px solid var(--color-border);
border-radius: var(--border-radius);
background: var(--color-bg);
color: var(--color-text-secondary);
transition: all var(--transition-fast);
}
.nav-btn:hover:not(:disabled) {
border-color: var(--color-border-hover);
color: var(--color-text);
}
.nav-btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.detail-content {
padding: 1.5rem;
}
.detail-title {
margin-bottom: 1rem;
font-size: 1.5rem;
font-weight: 700;
}
.detail-meta {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 1rem;
margin-bottom: 1.5rem;
padding: 1rem;
background: var(--color-bg-secondary);
border-radius: var(--border-radius);
}
.meta-item {
display: flex;
flex-direction: column;
gap: 0.25rem;
}
.meta-label {
font-size: 0.75rem;
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--color-text-muted);
}
.meta-value {
font-size: 0.875rem;
color: var(--color-text);
}
.detail-body {
font-size: 0.9375rem;
line-height: 1.7;
}
.detail-body h1 { font-size: 1.5rem; margin: 1.5rem 0 1rem; }
.detail-body h2 { font-size: 1.25rem; margin: 1.25rem 0 0.75rem; }
.detail-body h3 { font-size: 1.125rem; margin: 1rem 0 0.5rem; }
.detail-body h4 { font-size: 1rem; margin: 1rem 0 0.5rem; }
.detail-body p { margin: 0 0 1rem; }
.detail-body ul, .detail-body ol {
margin: 0 0 1rem;
padding-left: 1.5rem;
}
.detail-body li { margin-bottom: 0.375rem; }
.detail-body code {
padding: 0.125rem 0.375rem;
font-family: var(--font-mono);
font-size: 0.875em;
background: var(--color-bg-tertiary);
border-radius: 4px;
}
.detail-body pre {
margin: 0 0 1rem;
padding: 1rem;
overflow-x: auto;
background: var(--color-bg-tertiary);
border-radius: var(--border-radius);
}
.detail-body pre code {
padding: 0;
background: none;
}
.detail-body table {
margin: 0 0 1rem;
border: 1px solid var(--color-border);
border-radius: var(--border-radius);
}
.detail-body th, .detail-body td {
padding: 0.5rem 0.75rem;
border-bottom: 1px solid var(--color-border);
}
.detail-body th {
background: var(--color-bg-secondary);
font-weight: 600;
text-align: left;
}
.detail-body blockquote {
margin: 0 0 1rem;
padding: 0.5rem 1rem;
border-left: 4px solid var(--color-primary);
background: var(--color-bg-secondary);
}
.detail-related {
margin-top: 1.5rem;
padding-top: 1rem;
border-top: 1px solid var(--color-border);
}
.detail-related h3 {
margin-bottom: 0.75rem;
font-size: 0.875rem;
font-weight: 600;
color: var(--color-text-secondary);
}
.related-list {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
}
.related-link {
padding: 0.375rem 0.75rem;
font-size: 0.8125rem;
background: var(--color-bg-secondary);
border-radius: var(--border-radius);
color: var(--color-text);
transition: background var(--transition-fast);
}
.related-link:hover {
background: var(--color-bg-tertiary);
text-decoration: none;
}
.footer {
position: fixed;
bottom: 0;
left: 0;
right: 0;
height: var(--footer-height);
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 1rem 0 calc(var(--sidebar-width) + 1rem);
background: var(--color-bg);
border-top: 1px solid var(--color-border);
font-size: 0.75rem;
color: var(--color-text-muted);
}
.footer a {
color: var(--color-text-secondary);
}
.footer a:hover {
color: var(--color-primary);
}
.modal {
position: fixed;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
background: rgba(0, 0, 0, 0.5);
z-index: 200;
}
.modal-content {
max-width: 400px;
width: 90%;
padding: 1.5rem;
background: var(--color-bg);
border-radius: var(--border-radius-lg);
box-shadow: var(--shadow-lg);
}
.modal h2 {
margin-bottom: 1rem;
font-size: 1.125rem;
}
.shortcuts-table {
width: 100%;
margin-bottom: 1rem;
}
.shortcuts-table td {
padding: 0.5rem 0;
}
.shortcuts-table td:first-child {
width: 80px;
}
kbd {
display: inline-block;
padding: 0.125rem 0.375rem;
font-family: var(--font-mono);
font-size: 0.75rem;
background: var(--color-bg-tertiary);
border: 1px solid var(--color-border);
border-radius: 4px;
}
.close-modal {
width: 100%;
padding: 0.625rem;
border: none;
border-radius: var(--border-radius);
background: var(--color-primary);
color: white;
font-weight: 500;
transition: background var(--transition-fast);
}
.close-modal:hover {
background: var(--color-primary-hover);
}
@media (max-width: 1024px) {
.sidebar {
transform: translateX(-100%);
transition: transform var(--transition-normal);
z-index: 60;
}
.sidebar.open {
transform: translateX(0);
}
.content {
margin-left: 0;
}
.footer {
padding-left: 1rem;
}
.detail-panel {
width: 100%;
max-width: none;
}
}
@media (max-width: 768px) {
.header-center {
display: none;
}
.card-grid {
grid-template-columns: 1fr;
}
.detail-meta {
grid-template-columns: 1fr;
}
}
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
}
:focus-visible {
outline: 2px solid var(--color-primary);
outline-offset: 2px;
}
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}