diff --git a/portfolio/src/App.tsx b/portfolio/src/App.tsx index aab3556..dfa37fd 100644 --- a/portfolio/src/App.tsx +++ b/portfolio/src/App.tsx @@ -130,7 +130,10 @@ function HeroPlan({ item, t }: { item: IndexExperiment; t: Copy }) { {[op.operation, op.options].filter(Boolean).join(' ')} - {op.object ?? ''} + + {op.object && {columns[2]} } + {op.object ?? ''} + {columns[3]} {op.estimated_rows ?? '—'} @@ -148,70 +151,104 @@ function HeroPlan({ item, t }: { item: IndexExperiment; t: Copy }) { ); } +const experimentNames: Record = { + 'E01-email-baseline': 'expE01', + 'E02-simple-baseline': 'expE02s', + 'E02-composite-baseline': 'expE02c', + 'E03-date-index-baseline': 'expE03t', + 'E03-date-index-range': 'expE03r', + 'E05-status-date-baseline': 'expE05', +}; +const baselineNames: Record = { + 'Q01-baseline': 'expE01', + 'Q02-baseline': 'expE02s', + 'Q07-baseline': 'expE03t', + 'Q07-range': 'expE03r', + 'Q06-baseline': 'expQ06p', + 'Q06-rare': 'expQ06c', + 'Q08-baseline': 'expE05', +}; +/** Plain-language query name; Q02 baselines drop the index suffix because no index existed yet. */ +function baselineName(m: { queryId: string; variant: string }, t: Copy) { + const key = baselineNames[`${m.queryId}-${m.variant}`]; + const name = key ? t[key] : `${m.queryId} · ${m.variant}`; + return m.queryId === 'Q02' ? name.split(' · ')[0] : name; +} +/** Deepest operator that touches a table or index: the access path a reader compares. */ +function accessPath(m: Measurement) { + const ops = m.estimatedPlan.operators.filter((op) => op.object); + const leaf = ops[ops.length - 1]; + return leaf ? [leaf.operation, leaf.options].filter(Boolean).join(' ') : '—'; +} +const glossaryKeys = ['g1', 'g2', 'g3', 'g4', 'g5', 'g6', 'g7', 'g8'] as const; function ExperimentCard({ item, t }: { item: IndexExperiment; t: Copy }) { + const before = accessPath(item.before); + const after = accessPath(item.after); + const key = experimentNames[item.id]; return (
-
-
- - {item.before.experimentId} / {item.before.queryId} - -

- {item.before.experimentId === 'E03' - ? `ORDER_DATE · ${item.before.variant === 'baseline' ? 'TRUNC' : 'range'}` - : item.before.experimentId === 'E01' - ? 'EMAIL' - : item.before.experimentId === 'E02' - ? `CUSTOMER_ID · ${item.after.scenario}` - : 'Top-N'} -

-
- - {percent(item.changePercent)} - +
+

{key ? t[key] : item.id}

+

+ {item.before.experimentId} / {item.before.queryId} +

- -

- - {usesIndex(item) ? t.selected : t.ignored} +

+ {t.planLabel}: + {before} + {before === after ? ( + · {t.samePlan} + ) : ( + <> + {' → '} + {after} + + )}

+ + + {percent(item.changePercent)} +
{t.details} +

{usesIndex(item) ? t.selected : t.ignored}.

{item.configuration}

{item.storageKiB} KiB · {item.before.rows.toLocaleString('en-US')} {t.rows} · n = 10 /{' '} {t.baseline}, n = 10 / {t.indexed}

- - - - - - - - - - - - {[item.before, item.after].map((m, i) => ( - - - - - +
{t.client} (ms)
{t.experiment}{t.median}IQRp95
{i ? t.indexed : t.baseline}{number(m.median, 6)}{number(m.iqr, 6)}{number(m.p95, 6)}
+ + + + + + + - ))} - -
{t.client} (ms)
{t.experiment}{t.median}IQRp95
+ + + {[item.before, item.after].map((m, i) => ( + + {i ? t.indexed : t.baseline} + {number(m.median, 6)} + {number(m.iqr, 6)} + {number(m.p95, 6)} + + ))} + +
{item.before.sql} -

{t.cursorUnavailable}

+ + {t.methodology} + {t.evidence} · {item.index} @@ -326,10 +363,7 @@ function Baselines({ t }: { t: Copy }) { > {evidence.baselines.map((item, i) => ( ))} @@ -377,10 +411,10 @@ function Baselines({ t }: { t: Copy }) { {evidence.baselines.map((item) => ( - {item.experimentId} / {item.queryId} · {item.variant} - {item.queryId === 'Q06' - ? ` (${item.variant === 'baseline' ? 'PAID' : 'CANCELLED'})` - : ''} + {baselineName(item, t)} + + {item.experimentId} / {item.queryId} + {item.rows.toLocaleString('en-US')} {number(item.median, 6)} @@ -398,7 +432,6 @@ function Histogram({ t }: { t: Copy }) { return (
-

Group B, E04

{t.histogramTitle}

{t.histogramText}

@@ -457,7 +490,6 @@ function Histogram({ t }: { t: Copy }) { 36248429
-

{t.cursorUnavailable}

{t.restoration}

@@ -471,13 +503,30 @@ export default function App() { const [language, setLanguage] = useState('en'); const [menuOpen, setMenuOpen] = useState(false); const [view, setView] = useState<'groupA' | 'stageA' | 'storage'>('groupA'); + const [activeSection, setActiveSection] = useState(''); const t = translations[language]; useEffect(() => { document.documentElement.lang = language; document.title = `OSPA — ${language === 'en' ? 'Oracle SQL Performance Analyzer' : 'Laboratorio de rendimiento SQL'}`; }, [language]); + // Mark the section being read in the sticky navigation; skipped where IntersectionObserver is missing. + useEffect(() => { + if (typeof IntersectionObserver === 'undefined') return; + const observer = new IntersectionObserver( + (entries) => { + for (const entry of entries) if (entry.isIntersecting) setActiveSection(entry.target.id); + }, + { rootMargin: '-40% 0px -55% 0px' }, + ); + for (const id of sectionIds) { + const element = document.getElementById(id); + if (element) observer.observe(element); + } + return () => observer.disconnect(); + }, []); const e01 = evidence.indexes[0]; const e03Range = evidence.indexes[4]; + const navCurrent = activeSection === 'features' ? 'overview' : activeSection; return ( <> @@ -496,7 +545,12 @@ export default function App() { {sectionIds .filter((id) => !['features', 'future'].includes(id)) .map((id) => ( - setMenuOpen(false)}> + setMenuOpen(false)} + > {t[id]} ))} @@ -533,7 +587,6 @@ export default function App() {
-

{t.eyebrow}

Oracle SQL Performance Analyzer

{t.subtitle}

{t.heroText}

@@ -552,9 +605,9 @@ export default function App() {
{t.observation} - n = 10 + E01 / Q01 · n = 10
-
+              
                 
                   SELECT customer_id, full_name, email{'\n'}
                   FROM customers{'\n'}
@@ -562,42 +615,29 @@ export default function App() {
                 
               
+

{t.planKey}

{number(-e01.changePercent, 2)}% {t.lower}

-

{t.heroCaveat}

- {t.evidence} · Phase 4 / Group A -
-
-
- {[ - [number(evidence.dataset.businessRows, 0), t.synthetic], - ['8', t.queries], - [String(evidence.quality.unitTests), t.tests], - ['5', t.experimental], - ].map(([value, label]) => ( -
- {value} - {label} +
+ + {t.howMeasured} + + {t.evidence} · Phase 4 / Group A
- ))} +
-

- {t.heroNote} - - {language === 'en' ? 'Three key findings' : 'Tres hallazgos clave'} - +

+ {number(evidence.dataset.businessRows, 0)} {t.synthetic}, 8 {t.queries},{' '} + 5 {t.experimental} {t.and} {evidence.quality.unitTests} {t.tests}.

-
-

{t.briefEyebrow}

-

{t.briefTitle}

-
+

{t.briefTitle}

{t.briefText}

@@ -645,32 +685,47 @@ export default function App() {
-

{t.briefCaveat}

+

+ {t.briefCaveat}{' '} + {t.howMeasured} +

- -
+ +
    {[ [t.problemTitle, t.problemText], [t.approachTitle, t.approachText], [t.proofTitle, t.proofText], ].map(([title, text]) => ( -
    +
  1. {title}

    {text}

    -
  2. + ))} +
+
+

{t.featuresTitle}

+
+ {[ + [t.f1Title, t.f1Text], + [t.f2Title, t.f2Text], + [t.f3Title, t.f3Text], + [t.f4Title, t.f4Text], + [t.f5Title, t.f5Text], + [t.f6Title, t.f6Text], + ].map(([title, text]) => ( +
+
{title}
+
{text}
+
+ ))} +
{t.technical}
- +
@@ -717,30 +772,26 @@ export default function App() {
{t.architectureDoc}
-
- -
- {[ - [t.f1Title, t.f1Text], - [t.f2Title, t.f2Text], - [t.f3Title, t.f3Text], - [t.f4Title, t.f4Text], - [t.f5Title, t.f5Text], - [t.f6Title, t.f6Text], - ].map(([title, text]) => ( -
-

{title}

-

{text}

-
- ))} -
-
- +
+ {glossaryKeys.map((key) => { + const [term, definition] = t[key].split('|'); + return ( +
+
{term}
+
{definition}
+
+ ); + })} +
+

+ {t.cursorUnavailable} {t.inference} +

+
{(['groupA', 'stageA', 'storage'] as const).map((key) => (
-
-
- - {evidence.quality.unitTests} - + {evidence.quality.subtests} - - - {t.tests} / {language === 'en' ? 'subtests' : 'subpruebas'} - -
-
- SHA-256 - {t.q1Title} -
-
- 0 - - {language === 'en' - ? 'Oracle connections needed by this site' - : 'conexiones Oracle requeridas por este sitio'} - -
-
{[ [t.q1Title, t.q1Text], @@ -828,16 +853,30 @@ export default function App() {

{t.historical}

-
+
+
+ +

{t.futureTitle}

+
+
+ {[ + [t.future1, t.future1Text], + [t.future2, t.future2Text], + [t.future3, t.future3Text], + [t.future4, t.future4Text], + ].map(([title, text]) => ( +
+ {t.futureBadge} +

{title}

+

{text}

+
+ ))} +
+
+
+
-

- {t.repositoryAccess} -
- - {t.provenance} - -

{t.offline}

@@ -855,14 +894,19 @@ export default function App() {

{t.live}

{t.liveText}

-
- {t.lab} -
+

{t.lab}

{t.guide}
+

+ {t.repositoryAccess}{' '} + + {t.provenance} + +

{[ ['README.md', t.technical], @@ -880,23 +924,6 @@ export default function App() {
-
- -
- {[ - [t.future1, t.future1Text], - [t.future2, t.future2Text], - [t.future3, t.future3Text], - [t.future4, t.future4Text], - ].map(([title, text]) => ( -
- {t.futureBadge} -

{title}

-

{text}

-
- ))} -
-
); diff --git a/portfolio/src/i18n.ts b/portfolio/src/i18n.ts index 45028ce..345db7c 100644 --- a/portfolio/src/i18n.ts +++ b/portfolio/src/i18n.ts @@ -10,7 +10,6 @@ const en = { quality: 'Reproducibility', docs: 'Documentation', future: 'Future work', - eyebrow: 'Database performance engineering lab', subtitle: 'A Reproducible Database Performance Engineering Laboratory', heroText: 'From SQL hypotheses to verifiable evidence. Explore execution plans, B-tree indexes, optimizer statistics, and measured trade-offs on Oracle Database.', @@ -24,9 +23,7 @@ const en = { queries: 'parameterized SQL queries', tests: 'offline unit tests', experimental: 'experimental indexes evaluated', - heroNote: - 'One small dataset. Real Oracle experiments. Favorable and unfavorable results preserved.', - observation: 'Observed in E01 / Q01', + observation: 'Looking up one customer by email', planBefore: 'Before: no index', planAfter: 'After: index on EMAIL', planColumns: 'Id|Operation|Name|E-Rows|Cost', @@ -34,21 +31,19 @@ const en = { lower: 'lower median client latency', baseline: 'Baseline', indexed: 'With index', - heroCaveat: '10 measured repetitions per state · descriptive observation, not causal proof.', - briefEyebrow: 'Three verified observations', briefTitle: 'Three findings. Three different outcomes.', briefText: 'A quick technical tour based on preserved Phase 4 samples—not a promise that every index is faster.', - briefImproveTag: 'Faster · E01 / Q01', + briefImproveTag: 'Faster · email lookup (E01 / Q01)', briefImproveTitle: 'Selective lookup benefited', briefImproveText: 'Lower observed median client latency with the email index; the estimated plan selected an index range scan.', - briefRegressionTag: 'Slower · E03 / Q07 range', + briefRegressionTag: 'Slower · one day of orders by date range (E03 / Q07)', briefRegressionTitle: 'Index use did not guarantee speed', briefRegressionText: 'The date-range plan selected an index, yet observed median client latency increased on the small dataset.', - briefHistogramTag: 'No change · E04 / Q06', + briefHistogramTag: 'No change · orders by status (E04 / Q06)', briefHistogramTitle: 'A new histogram, unchanged estimate', briefHistogramText: 'Captured estimated rows remained unchanged for the tested binds after a 4-bucket frequency histogram. Runtime cursor metrics were not captured.', briefInspect: 'Inspect result', - briefCaveat: 'All comparisons are historical, descriptive client execute + full-fetch observations; n = 10 per state. Not causal or production performance claims.', + briefCaveat: 'Historical client measurements with 10 timed runs per state. They describe what happened in this lab; they do not prove causes or production performance.', overviewTitle: 'Performance claims need a chain of evidence.', overviewText: 'A faster-looking plan is only the beginning. SQL tuning needs correct results, controlled experiments, and measurements that another engineer can inspect.', @@ -92,16 +87,15 @@ const en = { f6Title: 'Offline reports', f6Text: 'CSV, JSON, Markdown, charts, and provenance manifests regenerated without Oracle.', resultsTitle: 'An index is a hypothesis. Measure the outcome.', - resultsText: - 'Phase 4 · small profile · seed 20261016 · 5 warmups + 10 measured repetitions per variant and state.', - methodology: 'Measurement scope', + resultsText: 'Measured in Phase 4 on the small dataset (seed 20261016): 5 warm-up runs, then 10 timed runs for each variant, without and with the index.', + methodology: 'How to read the measurements', caveatText: 'All times include client execute + complete fetch over loopback, driver decoding, and Python row collection. Index states ran in sequential blocks. Cache, order, and host-load confounders remain. These observations are descriptive; they are not universal gains or server CPU measurements.', groupA: 'Index experiments', stageA: 'Baseline explorer', storage: 'Storage trade-offs', - indexCaption: 'Group A · contemporaneous baseline vs. indexed state', - baselineCaption: 'Stage A · different workloads, shown for context only', + indexCaption: 'Same query, timed without and with the index (Group A)', + baselineCaption: 'Stage A: different queries, each timed in one state. Context only.', baselineNote: 'Q03–Q05 have no timed Phase 4 benchmarks. PAID and CANCELLED return different rows and must not be ranked as equivalent workloads.', storageCaption: 'Allocated index storage vs. change in median client latency', @@ -129,8 +123,7 @@ const en = { 'E01 and E02: selective lookups used index range scans and had lower observed medians.', dateInsight: 'E03 range: the estimated plan selected the date index, but median latency rose. Small-table access overhead is a plausible explanation, not a measured cause.', - topInsight: - 'E03 TRUNC retained a full scan. E05 also retained a full scan and STOPKEY sort; its SQL has no STATUS filter matching the index leading column.', + topInsight: 'E03 TRUNC and E05 kept full table scans in their estimated plans; E05 added a STOPKEY sort for its first 20 rows.', histogramTitle: 'E04 / A histogram changed statistics. The estimated plan stayed the same.', histogramText: 'ORDERS.STATUS moved from NONE to a 4-bucket FREQUENCY histogram. Captured EXPLAIN PLAN trees still estimated 2,500 rows for both binds. This is consistent with unpeeked binds; runtime bind peeking was not inspected.', @@ -157,17 +150,17 @@ const en = { docsTitle: 'Read the evidence. Reproduce the analysis.', repositoryAccess: 'Reviewed documentation, source files and benchmark evidence are available here and in the public GitHub repository.', - offline: '01 / Offline demonstration', + offline: 'Offline demonstration', offlineText: 'Run unit tests and regenerate historical reports from the repository. No Oracle, container, or credentials required.', - live: '02 / Oracle laboratory', + live: 'Oracle laboratory', liveText: 'Explore the documented Oracle-backed workflow in an isolated laboratory. Changes to a preserved database require fresh owner authorization.', guide: 'Open demonstration guide', architectureDoc: 'Architecture reference', reproducibilityDoc: 'Reproducibility guide', findingsDoc: 'Engineering findings', - futureTitle: 'The next questions are clearly marked.', + futureTitle: 'What has not been measured yet', futureBadge: 'Not Implemented / Future Work', future1: 'Group C · Runtime cursor metrics', future1Text: @@ -182,6 +175,27 @@ const en = { 'Evaluate larger profiles, multiple seeds, and stronger cache/order controls. Current measurements cover small only.', footer: 'Independent educational engineering project. Not affiliated with or certified by Oracle.', + planKey: 'E-Rows are the rows the optimizer expects; Cost is its relative estimate, not time. Each median comes from 10 timed runs.', + howMeasured: 'How these numbers were measured', + and: 'and', + planLabel: 'Estimated access path', + samePlan: 'same plan', + g1: 'Median|The middle value of the 10 timed runs. Every chart and percentage on this page uses it.', + g2: 'IQR|Interquartile range: how spread out the middle half of the runs is (Q75 − Q25).', + g3: 'p95|The time that 95% of runs stayed under. With 10 runs it sits close to the slowest one.', + g4: 'E-Rows and Cost|The optimizer’s estimates from EXPLAIN PLAN: expected rows and relative cost. Cost is not milliseconds.', + g5: 'Group A|The same query timed without and then with an index, in sequential blocks.', + g6: 'Stage A|Different queries, each timed in a single state. Shown for context, not for ranking.', + g7: 'TRUNC vs. range|Two ways to ask for one day of orders in E03: TRUNC(order_date) = :day wraps the column in a function; the range form compares order_date directly.', + g8: 'Warm-up runs|5 untimed executions before the 10 measured ones.', + expE01: 'Customer by email', + expE02s: 'One customer’s orders in a date range · index on CUSTOMER_ID', + expE02c: 'One customer’s orders in a date range · index on CUSTOMER_ID, ORDER_DATE', + expE03t: 'Orders for one day · TRUNC filter', + expE03r: 'Orders for one day · date range filter', + expE05: 'Latest 20 orders for one status', + expQ06p: 'Orders by status · PAID', + expQ06c: 'Orders by status · CANCELLED', back: 'Back to top', }; export type Copy = { [K in keyof typeof en]: string }; @@ -196,7 +210,6 @@ const es: Copy = { quality: 'Reproducibilidad', docs: 'Documentación', future: 'Trabajo futuro', - eyebrow: 'Laboratorio de rendimiento de bases de datos', subtitle: 'Un laboratorio reproducible de ingeniería de rendimiento de bases de datos', heroText: 'De hipótesis SQL a evidencia verificable. Explora planes de ejecución, índices B-tree, estadísticas del optimizador y compromisos medidos en Oracle Database.', @@ -210,9 +223,7 @@ const es: Copy = { queries: 'consultas SQL parametrizadas', tests: 'pruebas unitarias sin Oracle', experimental: 'índices experimentales evaluados', - heroNote: - 'Un conjunto pequeño de datos. Experimentos reales en Oracle. Resultados favorables y desfavorables preservados.', - observation: 'Observado en E01 / Q01', + observation: 'Buscar un cliente por su email', planBefore: 'Antes: sin índice', planAfter: 'Después: índice sobre EMAIL', planColumns: 'Id|Operación|Nombre|E-Rows|Costo', @@ -220,21 +231,19 @@ const es: Copy = { lower: 'menos latencia mediana del cliente', baseline: 'Base', indexed: 'Con índice', - heroCaveat: '10 repeticiones medidas por estado · observación descriptiva, sin prueba causal.', - briefEyebrow: 'Tres observaciones verificadas', briefTitle: 'Tres hallazgos. Tres resultados distintos.', briefText: 'Un recorrido técnico breve basado en muestras históricas de Fase 4; no prometemos que cada índice sea más rápido.', - briefImproveTag: 'Más rápido · E01 / Q01', + briefImproveTag: 'Más rápido · búsqueda por email (E01 / Q01)', briefImproveTitle: 'La búsqueda selectiva mejoró', briefImproveText: 'Menor mediana observada de latencia cliente con el índice de correo; el plan estimado eligió un recorrido por índice.', - briefRegressionTag: 'Más lento · E03 / Q07 rango', + briefRegressionTag: 'Más lento · pedidos de un día por rango de fechas (E03 / Q07)', briefRegressionTitle: 'Usar un índice no garantiza velocidad', briefRegressionText: 'El plan para fechas usó un índice, pero la mediana observada de latencia cliente aumentó con el conjunto pequeño.', - briefHistogramTag: 'Sin cambio · E04 / Q06', + briefHistogramTag: 'Sin cambio · pedidos por estado (E04 / Q06)', briefHistogramTitle: 'Nuevo histograma, misma estimación', briefHistogramText: 'Las filas estimadas capturadas permanecieron iguales para los binds probados tras un histograma de frecuencia de cuatro valores. No se capturaron métricas de cursores en ejecución.', briefInspect: 'Examinar resultado', - briefCaveat: 'Comparaciones históricas y descriptivas de ejecución más recuperación completa del cliente; n = 10 por estado. No demuestran causalidad ni rendimiento en producción.', + briefCaveat: 'Mediciones históricas del cliente con 10 ejecuciones medidas por estado. Describen lo que pasó en este laboratorio; no prueban causas ni rendimiento en producción.', overviewTitle: 'Afirmar rendimiento exige una cadena de evidencia.', overviewText: 'Un plan que parece más rápido es solo el comienzo. Optimizar SQL exige resultados correctos, experimentos controlados y mediciones que otro ingeniero pueda revisar.', @@ -279,16 +288,15 @@ const es: Copy = { f6Title: 'Reportes sin Oracle', f6Text: 'CSV, JSON, Markdown, gráficas y manifiestos de procedencia regenerados sin Oracle.', resultsTitle: 'Un índice es una hipótesis. Mide el resultado.', - resultsText: - 'Fase 4 · perfil small · semilla 20261016 · 5 calentamientos + 10 repeticiones medidas por variante y estado.', - methodology: 'Alcance de la medición', + resultsText: 'Medido en la Fase 4 con el conjunto pequeño (semilla 20261016): 5 ejecuciones de calentamiento y después 10 medidas por variante, sin y con índice.', + methodology: 'Cómo leer las mediciones', caveatText: 'Los tiempos incluyen ejecución y recuperación completa del cliente por loopback, decodificación del driver y materialización de filas en Python. Los estados de índices se midieron en bloques secuenciales. Persisten factores de caché, orden y carga del equipo. Son observaciones descriptivas; no son mejoras universales ni mediciones de CPU del servidor.', groupA: 'Experimentos de índices', stageA: 'Explorar bases', storage: 'Costo de almacenamiento', - indexCaption: 'Grupo A · base contemporánea frente al estado con índice', - baselineCaption: 'Etapa A · cargas diferentes, mostradas solo como contexto', + indexCaption: 'Misma consulta, medida sin y con índice (Grupo A)', + baselineCaption: 'Etapa A: consultas distintas, cada una medida en un solo estado. Solo como contexto.', baselineNote: 'Q03–Q05 no tienen mediciones de tiempo en la Fase 4. PAID y CANCELLED devuelven filas distintas y no deben clasificarse como cargas equivalentes.', storageCaption: @@ -317,8 +325,7 @@ const es: Copy = { 'E01 y E02: las búsquedas selectivas usaron recorridos de rango de índice y mostraron medianas menores.', dateInsight: 'E03 range: el plan estimado eligió el índice de fecha, pero la latencia mediana aumentó. La sobrecarga de acceso en tablas pequeñas es una explicación posible, no una causa medida.', - topInsight: - 'E03 TRUNC conservó un recorrido completo. E05 también conservó el recorrido completo y ordenamiento STOPKEY; su SQL no filtra STATUS, primera columna del índice.', + topInsight: 'E03 TRUNC y E05 conservaron recorridos completos de tabla en sus planes estimados; E05 añadió un ordenamiento STOPKEY para sus primeras 20 filas.', histogramTitle: 'E04 / El histograma cambió las estadísticas. El plan estimado siguió igual.', histogramText: 'ORDERS.STATUS pasó de NONE a un histograma FREQUENCY de 4 grupos. Los árboles EXPLAIN PLAN capturados siguieron estimando 2,500 filas para ambos binds. Es consistente con binds no inspeccionados; no se inspeccionó bind peeking en ejecución.', @@ -345,17 +352,17 @@ const es: Copy = { docsTitle: 'Lee la evidencia. Reproduce el análisis.', repositoryAccess: 'La documentación, los archivos fuente y la evidencia revisados están disponibles aquí y en el repositorio público de GitHub.', - offline: '01 / Demostración sin Oracle', + offline: 'Demostración sin Oracle', offlineText: 'Ejecuta pruebas unitarias y regenera reportes históricos desde el repositorio. Sin Oracle, contenedores ni credenciales.', - live: '02 / Laboratorio Oracle', + live: 'Laboratorio Oracle', liveText: 'Explora el flujo documentado con Oracle en un laboratorio aislado. Modificar una base preservada requiere nueva autorización del propietario.', guide: 'Abrir guía de demostración', architectureDoc: 'Referencia de arquitectura', reproducibilityDoc: 'Guía de reproducibilidad', findingsDoc: 'Hallazgos de ingeniería', - futureTitle: 'Las siguientes preguntas están claramente marcadas.', + futureTitle: 'Lo que todavía no se ha medido', futureBadge: 'No implementado / Trabajo futuro', future1: 'Grupo C · Métricas de cursores en ejecución', future1Text: @@ -370,6 +377,27 @@ const es: Copy = { 'Evaluar perfiles mayores, varias semillas y controles más sólidos de caché y orden. Las mediciones actuales cubren solo small.', footer: 'Proyecto independiente educativo de ingeniería. Sin afiliación ni certificación de Oracle.', + planKey: 'E-Rows son las filas que espera el optimizador; Costo es su estimación relativa, no tiempo. Cada mediana sale de 10 ejecuciones medidas.', + howMeasured: 'Cómo se midieron estas cifras', + and: 'y', + planLabel: 'Ruta de acceso estimada', + samePlan: 'mismo plan', + g1: 'Mediana|El valor central de las 10 ejecuciones medidas. Todas las gráficas y porcentajes de esta página la usan.', + g2: 'IQR|Rango intercuartílico: cuánto se dispersa la mitad central de las ejecuciones (Q75 − Q25).', + g3: 'p95|El tiempo por debajo del cual quedó el 95 % de las ejecuciones. Con 10 ejecuciones queda cerca de la más lenta.', + g4: 'E-Rows y Costo|Las estimaciones del optimizador en EXPLAIN PLAN: filas esperadas y costo relativo. El costo no son milisegundos.', + g5: 'Grupo A|La misma consulta medida sin y luego con un índice, en bloques secuenciales.', + g6: 'Etapa A|Consultas distintas, cada una medida en un solo estado. Se muestran como contexto, no para compararlas.', + g7: 'TRUNC frente a rango|Dos formas de pedir los pedidos de un día en E03: TRUNC(order_date) = :day envuelve la columna en una función; la forma por rango compara order_date directamente.', + g8: 'Calentamiento|5 ejecuciones sin medir antes de las 10 medidas.', + expE01: 'Cliente por email', + expE02s: 'Pedidos de un cliente en un rango de fechas · índice sobre CUSTOMER_ID', + expE02c: 'Pedidos de un cliente en un rango de fechas · índice sobre CUSTOMER_ID, ORDER_DATE', + expE03t: 'Pedidos de un día · filtro TRUNC', + expE03r: 'Pedidos de un día · filtro por rango de fechas', + expE05: 'Últimos 20 pedidos de un estado', + expQ06p: 'Pedidos por estado · PAID', + expQ06c: 'Pedidos por estado · CANCELLED', back: 'Volver al inicio', }; export const translations: Record = { en, es }; diff --git a/portfolio/src/styles.css b/portfolio/src/styles.css index 9205217..b09a659 100644 --- a/portfolio/src/styles.css +++ b/portfolio/src/styles.css @@ -47,7 +47,9 @@ * { box-sizing: border-box; } html { scroll-behavior: smooth; scroll-padding-top: 84px; } body { margin: 0; background: var(--ground); font-size: 1.0625rem; line-height: 1.65; } -h1, h2, h3, h4, p, figure, ol, ul { margin: 0; } +h1, h2, h3, h4, p, figure, ol, ul, dl, dd { margin: 0; } +h1, h2, h3, h4 { text-wrap: balance; } +p, li, dd { text-wrap: pretty; } ol, ul { padding: 0; list-style: none; } a { color: inherit; } button, select { font: inherit; color: inherit; } @@ -59,7 +61,6 @@ pre { margin: 0; } .skip-link:focus { top: 12px; } .small { font-size: 0.875rem; } .muted { color: var(--ink-3); } -.eyebrow { font-size: 0.95rem; font-style: italic; color: var(--ink-2); } /* Header ------------------------------------------------------------------ */ .site-header { @@ -74,6 +75,7 @@ pre { margin: 0; } .navigation { display: flex; gap: 4px; margin-left: auto; } .navigation a { padding: 8px 10px; font-size: 0.95rem; color: var(--ink-2); text-decoration: none; border-radius: 3px; } .navigation a:hover { color: var(--ink); background: var(--raised); } +.navigation a[aria-current='location'] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; } .nav-actions { display: flex; align-items: center; gap: 10px; } .language-switch { display: flex; border: 1px solid var(--rule-strong); border-radius: 3px; overflow: hidden; } .language-switch button { min-width: 40px; min-height: 34px; padding: 0 8px; background: none; border: 0; font-family: var(--mono); font-size: 0.78rem; color: var(--ink-2); cursor: pointer; } @@ -87,7 +89,7 @@ main > section { max-width: var(--max); margin: 0 auto; padding: 104px var(--pad .section + .section { border-top: 1px solid var(--rule); } .section-heading { display: grid; gap: 16px; max-width: 46rem; margin-bottom: 52px; } .section-heading h2, .brief-heading h2 { font-weight: 600; font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem); line-height: 1.1; letter-spacing: -0.015em; text-wrap: balance; } -.section-heading p { color: var(--ink-2); font-size: 1.15rem; max-width: 40em; } +.section-heading p { color: var(--ink-2); font-size: 1.15rem; max-width: 62ch; } h3 { font-weight: 600; font-size: 1.3rem; line-height: 1.25; } /* Buttons & links ----------------------------------------------------------- */ @@ -98,7 +100,7 @@ h3 { font-weight: 600; font-size: 1.3rem; line-height: 1.25; } .source-link { display: inline-flex; align-items: center; gap: 4px; font-size: 0.9rem; color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 4px; } .source-link:hover { color: var(--ink); text-decoration-color: var(--ink-2); } .source-link svg { flex: none; } -.callout { padding: 18px 22px; border-left: 3px solid var(--ink-3); background: var(--raised); color: var(--ink-2); max-width: 52rem; } +.callout { padding: 18px 22px; background: var(--raised); border-radius: 3px; color: var(--ink-2); max-width: 70ch; } /* Hero ---------------------------------------------------------------------- */ .hero { padding-top: 88px !important; } @@ -112,9 +114,9 @@ h3 { font-weight: 600; font-size: 1.3rem; line-height: 1.25; } .hero-docs:hover { color: var(--ink); } .hero-visual { display: grid; gap: 18px; padding: 26px; background: var(--sunk); border: 1px solid var(--rule); border-radius: 4px; } -.visual-label { display: flex; justify-content: space-between; gap: 12px; font-size: 0.92rem; font-style: italic; color: var(--ink-2); } -.visual-label .mono { font-style: normal; color: var(--ink-3); } -.hero-sql { padding: 14px 16px; background: var(--raised); border-radius: 3px; overflow-x: auto; line-height: 1.7; } +.visual-label { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 0.92rem; font-style: italic; color: var(--ink-2); } +.visual-label .mono { font-style: normal; color: var(--ink-3); white-space: nowrap; } +.hero-sql { padding: 14px 16px; background: var(--raised); border-radius: 3px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.7; } .hero-sql code { font-size: 0.82rem; } .sql-keyword { color: var(--faster-text); } @@ -123,30 +125,25 @@ h3 { font-weight: 600; font-size: 1.3rem; line-height: 1.25; } .xplan-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 0.95rem; } .xplan-median { font-size: 0.85rem; color: var(--ink-3); } .xplan-median b { font-family: var(--mono); font-size: 0.92em; color: var(--ink); font-weight: 600; } -.xplan-row { display: grid; grid-template-columns: 2.4ch minmax(0, 1.5fr) minmax(0, 1.1fr) 6ch 4.5ch; gap: 10px; padding: 5px 0; font-family: var(--mono); font-size: 0.74rem; color: var(--ink-2); border-top: 1px solid var(--rule); } -.xplan-row > span:nth-child(3) { overflow-wrap: anywhere; } +.xplan-row { display: grid; grid-template-columns: 2.4ch minmax(0, 1.4fr) minmax(20ch, 1fr) 6ch 4.5ch; gap: 10px; padding: 5px 6px; font-family: var(--mono); font-size: 0.8rem; color: var(--ink-2); border-top: 1px solid var(--rule); } +.xplan-row > span:nth-child(3) { overflow-wrap: break-word; min-width: 0; } .xplan-row > span:nth-child(n + 4) { text-align: right; font-variant-numeric: tabular-nums; } -.xplan-cols { border-top: 0; color: var(--ink-3); font-size: 0.7rem; padding-bottom: 2px; } -.xplan-key { color: var(--ink); } -.xplan-block:first-child .xplan-key > span:nth-child(2) { box-shadow: inset 2px 0 0 var(--slower); padding-left: 1ch; } -.xplan-block:last-child .xplan-key > span:nth-child(2) { box-shadow: inset 2px 0 0 var(--faster); } -.xplan-block:last-child .xplan-key > span:nth-child(2) > * { display: inline; } +.xplan-cols { border-top: 0; color: var(--ink-3); font-size: 0.75rem; padding-bottom: 2px; } +.xplan-key { color: var(--ink); border-radius: 2px; } +.xplan-block:first-child .xplan-key { background: color-mix(in srgb, var(--slower) 16%, transparent); } +.xplan-block:last-child .xplan-key { background: color-mix(in srgb, var(--faster) 16%, transparent); } +.plan-key { font-size: 0.88rem; color: var(--ink-2); max-width: 62ch; } +.hero-links { display: flex; flex-wrap: wrap; gap: 8px 24px; } +.hero-facts { margin-top: 64px; padding-top: 22px; border-top: 1px solid var(--rule); color: var(--ink-2); font-size: 1.05rem; max-width: 70ch; } +.hero-facts b { font-family: var(--mono); font-size: 0.92em; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; } .hero-result { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; padding-top: 14px; border-top: 1px solid var(--rule); } .hero-result-value { font-family: var(--mono); font-size: 1.6rem; font-weight: 600; color: var(--faster-text); font-variant-numeric: tabular-nums; } .hero-result > span:last-child { color: var(--ink-2); } -.metrics-strip { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 72px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); } -.metrics-strip div { display: grid; gap: 2px; padding: 20px 20px 20px 0; } -.metrics-strip div + div { padding-left: 20px; border-left: 1px solid var(--rule); } -.metrics-strip strong { font-family: var(--mono); font-size: 1.5rem; font-weight: 600; font-variant-numeric: tabular-nums; } -.metrics-strip span { color: var(--ink-3); font-size: 0.92rem; } -.hero-footnote { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 18px; font-size: 0.9rem; color: var(--ink-3); } -.hero-footnote a { color: var(--ink-2); text-underline-offset: 4px; } /* Findings ledger ----------------------------------------------------------- */ .recruiter-brief { border-top: 1px solid var(--rule); } .brief-heading { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px 64px; align-items: end; margin-bottom: 44px; } -.brief-heading > div { display: grid; gap: 14px; } .brief-heading > p { color: var(--ink-2); } .brief-grid { border-top: 1px solid var(--rule-strong); } .brief-card { @@ -168,14 +165,23 @@ h3 { font-weight: 600; font-size: 1.3rem; line-height: 1.25; } .improvement .brief-card-top::before { background: var(--faster); } .regression .brief-card-top::before { background: var(--slower); } .estimate .brief-card-top::before { background: transparent; box-shadow: inset 0 0 0 2px var(--ink-3); } -.brief-caveat { margin-top: 20px; font-size: 0.9rem; color: var(--ink-3); max-width: 52rem; } +.brief-caveat { margin-top: 20px; font-size: 0.9rem; color: var(--ink-3); max-width: 70ch; } +.brief-caveat a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--ink-3); text-underline-offset: 4px; } /* Overview, features, quality ---------------------------------------------- */ -.overview-grid, .quality-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-bottom: 36px; } -.overview-grid article, .quality-grid article, .feature { display: grid; gap: 10px; align-content: start; padding-top: 20px; border-top: 1px solid var(--rule-strong); } -.overview-grid p, .quality-grid p, .feature p { color: var(--ink-2); } -.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 56px; } -.feature h3, .quality-grid h3, .overview-grid h3 { font-size: 1.2rem; } +.quality-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-bottom: 36px; } +.quality-grid article { display: grid; gap: 10px; align-content: start; padding-top: 20px; border-top: 1px solid var(--rule-strong); } +.quality-grid p { color: var(--ink-2); } +.quality-grid h3 { font-size: 1.2rem; } +.approach { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-bottom: 64px; counter-reset: step; } +.approach li { display: grid; gap: 10px; align-content: start; } +.approach h3 { font-size: 1.2rem; } +.approach p { color: var(--ink-2); } +.capabilities { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr); gap: 24px 56px; padding: 32px 0; margin-bottom: 28px; border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule); } +.capabilities h3 { font-size: 1.45rem; line-height: 1.2; } +.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 40px; } +.feature dt { font-weight: 600; margin-bottom: 4px; } +.feature dd { color: var(--ink-2); font-size: 0.97rem; } /* Architecture -------------------------------------------------------------- */ .architecture { display: grid; gap: 14px; margin-bottom: 28px; } @@ -192,18 +198,31 @@ h3 { font-weight: 600; font-size: 1.3rem; line-height: 1.25; } .architecture figcaption { font-size: 0.9rem; font-style: italic; color: var(--ink-3); } /* Results ------------------------------------------------------------------- */ -.methodology { display: grid; gap: 6px; padding: 18px 22px; margin-bottom: 32px; border-left: 3px solid var(--ink-3); background: var(--raised); max-width: 56rem; } -.methodology p:last-child { color: var(--ink-2); font-size: 0.95rem; } +.method { display: grid; gap: 16px; padding: 26px 28px; margin-bottom: 40px; background: var(--raised); border: 1px solid var(--rule); border-radius: 4px; scroll-margin-top: 84px; } +.method h3 { font-size: 1.25rem; } +.method > p { color: var(--ink-2); max-width: 70ch; } +.glossary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 40px; padding: 18px 0 4px; border-top: 1px solid var(--rule); } +.glossary dt { font-weight: 600; } +.glossary dd { color: var(--ink-2); font-size: 0.95rem; } .view-controls { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 28px; border-bottom: 1px solid var(--rule); } .view-controls button { min-height: 44px; padding: 0 16px; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--ink-2); cursor: pointer; } .view-controls button:hover { color: var(--ink); } .view-controls button[aria-pressed='true'] { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; } .results-panel { display: grid; gap: 18px; margin-bottom: 72px; } .figure-title { font-size: 1.15rem; font-weight: 600; } -.experiments-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } -.experiment-card { display: grid; gap: 14px; align-content: start; padding: 20px; background: var(--raised); border: 1px solid var(--rule); border-radius: 4px; min-width: 0; } -.experiment-top { display: flex; justify-content: space-between; align-items: start; gap: 12px; } -.experiment-top h4 { font-size: 1.15rem; font-weight: 600; margin-top: 2px; } +.experiments-grid { display: grid; border-top: 1px solid var(--rule-strong); } +.experiment-card { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.25fr) minmax(0, 1.3fr) 5.5rem; grid-template-areas: 'main plan bars delta' 'details details details details'; gap: 6px 28px; align-items: center; padding: 18px 0 8px; border-bottom: 1px solid var(--rule); min-width: 0; } +.experiment-main { grid-area: main; display: grid; gap: 2px; } +.experiment-main h4 { font-size: 1.05rem; font-weight: 600; line-height: 1.3; } +.experiment-id { font-family: var(--mono); font-size: 0.78rem; color: var(--ink-3); } +.experiment-plan { grid-area: plan; font-size: 0.85rem; color: var(--ink-3); } +.experiment-plan code { color: var(--ink); font-size: 0.78rem; } +.experiment-same { font-style: italic; } +.experiment-card .pair-bars { grid-area: bars; } +.experiment-card .delta { grid-area: delta; justify-self: end; font-size: 0.95rem; } +.experiment-card details { grid-area: details; } +.experiment-card details summary { border-top: 0; padding-top: 4px; min-height: 40px; } +.row-id { display: block; font-family: var(--mono); font-size: 0.75rem; font-weight: 400; color: var(--ink-3); } .delta { font-family: var(--mono); font-size: 0.85rem; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; } .delta.favorable { color: var(--faster-text); } .delta.unfavorable { color: var(--slower-text); } @@ -214,10 +233,6 @@ h3 { font-weight: 600; font-size: 1.3rem; line-height: 1.25; } .bar-track { height: 8px; background: var(--track); border-radius: 2px; overflow: hidden; min-width: 20px; } .bar-fill { height: 100%; background: var(--ink-3); border-radius: 2px; } .bar-fill.alternative { background: var(--ink); } -.plan-status { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--ink-2); } -.status-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: none; } -.status-dot.cyan { background: var(--faster); } -.status-dot.amber { background: transparent; box-shadow: inset 0 0 0 2px var(--slower); } details summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding-top: 10px; border-top: 1px solid var(--rule); font-size: 0.92rem; color: var(--ink-2); cursor: pointer; list-style: none; } details summary::-webkit-details-marker { display: none; } details summary:hover { color: var(--ink); } @@ -226,11 +241,11 @@ details > * + * { margin-top: 14px; } details p { font-size: 0.9rem; color: var(--ink-2); } .sql { display: block; padding: 12px 14px; background: var(--sunk); border-radius: 3px; font-size: 0.76rem; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink-2); } .plan { display: grid; gap: 8px; padding: 14px; border: 1px solid var(--rule); border-radius: 3px; } -.plan > p { color: var(--ink-3); font-size: 0.74rem; } +.plan > p { color: var(--ink-3); font-size: 0.75rem; } .plan ol { display: grid; gap: 6px; } .plan li { display: grid; gap: 2px; } .plan li code { color: var(--ink); font-size: 0.76rem; overflow-wrap: anywhere; } -.plan li span { font-family: var(--mono); font-size: 0.72rem; color: var(--ink-3); } +.plan li span { font-family: var(--mono); font-size: 0.75rem; color: var(--ink-3); } table { width: 100%; border-collapse: collapse; font-size: 0.88rem; } caption { text-align: left; padding-bottom: 8px; font-size: 0.9rem; font-style: italic; color: var(--ink-2); } th, td { padding: 8px 10px; border-bottom: 1px solid var(--rule); text-align: right; font-variant-numeric: tabular-nums; } @@ -280,20 +295,14 @@ select { justify-self: start; min-height: 44px; min-width: min(100%, 22rem); pad .histogram-plan { display: grid; gap: 4px; padding: 14px 16px; background: var(--sunk); border-radius: 3px; } .histogram-plan code { color: var(--ink); overflow-wrap: anywhere; } .histogram-plan span { font-family: var(--mono); font-size: 0.76rem; color: var(--ink-3); } -.restoration { color: var(--ink-2); font-size: 0.95rem; padding-left: 14px; border-left: 2px solid var(--faster); } +.restoration { color: var(--ink-2); font-size: 0.95rem; max-width: 70ch; } .histogram .callout { background: var(--sunk); } /* Quality ------------------------------------------------------------------- */ -.quality-banner { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 44px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); } -.quality-banner > div { display: grid; gap: 4px; padding: 22px 22px 22px 0; } -.quality-banner > div + div { padding-left: 22px; border-left: 1px solid var(--rule); } -.quality-banner strong { font-family: var(--mono); font-size: 1.6rem; font-weight: 600; } -.quality-banner small { font-size: 0.6em; color: var(--ink-3); } -.quality-banner span { color: var(--ink-3); font-size: 0.92rem; } .source-row, .doc-links { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-bottom: 16px; } /* Docs ---------------------------------------------------------------------- */ -#docs .callout { margin-bottom: 36px; } +#docs .callout { margin-bottom: 28px; } .demo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 36px; } .demo-card { display: grid; gap: 14px; align-content: start; padding: 24px; background: var(--raised); border: 1px solid var(--rule); border-radius: 4px; min-width: 0; } .demo-card p { color: var(--ink-2); } @@ -302,7 +311,12 @@ select { justify-self: start; min-height: 44px; min-width: min(100%, 22rem); pad .lab-tag { justify-self: start; padding: 6px 12px; border: 1px solid var(--rule-strong); border-radius: 3px; font-size: 0.88rem; color: var(--ink-2); } /* Future -------------------------------------------------------------------- */ -.future-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 56px; } +.future-section { padding-top: 56px !important; padding-bottom: 56px !important; } +.future > summary { border-top: 0; padding: 0; min-height: 48px; } +.future > summary h2 { font-weight: 600; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem); color: var(--ink-2); } +.future[open] > summary h2 { color: var(--ink); } +.future > summary svg { flex: none; color: var(--ink-3); } +.future-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 56px; padding-top: 24px; } .future-grid article { display: grid; gap: 8px; padding-top: 18px; border-top: 1px dashed var(--rule-strong); } .future-grid p { color: var(--ink-2); } .future-badge { font-size: 0.85rem; font-style: italic; color: var(--ink-3); } @@ -329,26 +343,24 @@ footer > a:last-child { color: var(--ink-2); text-underline-offset: 4px; } .nav-actions { margin-left: auto; } main > section { padding-top: 72px; padding-bottom: 72px; } .brief-heading { grid-template-columns: 1fr; } - .overview-grid, .quality-grid { grid-template-columns: 1fr; gap: 28px; } - .experiments-grid, .demo-grid { grid-template-columns: 1fr; } + .quality-grid, .approach { grid-template-columns: 1fr; gap: 28px; } + .demo-grid { grid-template-columns: 1fr; } + .capabilities { grid-template-columns: 1fr; } + .experiment-card { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'main delta' 'plan plan' 'bars bars' 'details details'; gap: 10px 16px; } .histogram-grid { grid-template-columns: 1fr; } - .metrics-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } - .metrics-strip div:nth-child(3) { border-left: 0; padding-left: 0; } - .metrics-strip div:nth-child(n + 3) { border-top: 1px solid var(--rule); } } @media (max-width: 620px) { .brand-description { display: none; } .hero { padding-top: 48px !important; } .hero-visual { padding: 16px; } - .xplan-row { grid-template-columns: 2ch minmax(0, 1fr) 6.5ch 4ch; gap: 8px; font-size: 0.7rem; } + .xplan-row { grid-template-columns: 2ch minmax(0, 1fr) 6.5ch 4ch; gap: 8px; font-size: 0.75rem; } .xplan-cols span { white-space: nowrap; } .xplan-row > span:nth-child(3) { display: none; } .brief-card { grid-template-columns: 1fr; grid-template-areas: 'tag' 'value' 'unit' 'title' 'text' 'actions'; } .brief-card h3 { margin-top: 10px; } - .feature-grid, .future-grid { grid-template-columns: 1fr; gap: 28px; } + .feature-list, .future-grid, .glossary { grid-template-columns: 1fr; gap: 20px; } + .method { padding: 20px; } .arch-modules, .architecture-offline { grid-template-columns: 1fr; } - .quality-banner { grid-template-columns: 1fr; } - .quality-banner > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); } .histogram { padding: 20px; } .experiment-card { padding: 16px; } .bar-line { grid-template-columns: minmax(4.5rem, auto) minmax(20px, 1fr) auto; gap: 8px; }